/* ============================================================
   站点公共片段样式：导航栏 + 页脚
   ------------------------------------------------------------
   由全部页面共用，改这里全站同步生效。
   HTML 结构由 js/site-chrome.js 注入，两者配套使用。

   依赖各页面 :root 里的 CSS 变量：
     --primary  --accent  --text  --text-muted  --border

   注意：页脚上方留白（.footer 的 margin-top）属于各页面的
   版面节奏差异，放在各页面自己的 <style> 里，不在此文件。
   ============================================================ */

/* ---------- 导航栏 ---------- */

.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.navbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 48px; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-icon { width: 40px; height: 40px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.logo-text { display: flex; flex-direction: column; }
.logo-brand { font-size: 18px; font-weight: 600; color: var(--primary); letter-spacing: 1px; line-height: 1.2; }
.logo-sub { font-size: 11px; color: var(--text-muted); letter-spacing: 0.5px; line-height: 1.2; margin-top: 2px; }

/* 导航项间距：40px，与首页一致 */
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text); font-size: 14px; font-weight: 500; letter-spacing: 0.5px; position: relative; padding: 4px 0; transition: color 0.3s; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* 电话：字号由 site-content.js 的 phone 样式动态覆盖（全站统一） */
.nav-phone { font-size: 14px; font-weight: 600; color: var(--primary); letter-spacing: 0.5px; }

/* ---------- 页脚 ---------- */

.footer { background: var(--primary); color: white; padding: 72px 48px 32px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1.6fr 1.4fr; gap: 40px; margin-bottom: 48px; align-items: start; }
.footer-brand-wrap { display: flex; align-items: flex-start; gap: 20px; }
.footer-copy { flex: 1; min-width: 0; }
.footer-brand { font-size: 20px; font-weight: 700; margin-bottom: 16px; letter-spacing: 1px; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.8; max-width: 168px; }
.footer-title { font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; color: rgba(255,255,255,0.9); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links li { margin: 0; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: white; }
.footer-contact { display: flex; flex-direction: column; gap: 16px; }
.footer-contact p { font-size: 14px; color: rgba(255,255,255,0.7); margin: 0; line-height: 1.6; }
.footer-contact p + p { margin-top: 0; }
.footer-contact strong { color: white; font-weight: 600; }
.footer-qrcode { display: flex; align-items: flex-start; justify-content: flex-start; margin-top: 30px; }
.footer-qrcode img { display: block; width: auto; max-width: 240px; height: auto; max-height: 240px; object-fit: contain; border-radius: 8px; background: white; padding: 4px; cursor: zoom-in; transition: transform 0.2s ease; }
.footer-qrcode img:hover { transform: translateY(-1px); }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.5); }

/* ---------- 响应式 ---------- */

@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar-inner { padding: 0 24px; }
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
