/* =====================================================
   AIDA64 簡體香港官方網站 · 公共樣式 common.css
   主題色：#000000 / #0779BF
===================================================== */

/* ---------- 基礎重置 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: #000;
  color: #e6edf3;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
a { color: inherit; text-decoration: none; transition: color .25s ease; }
a:hover { color: #0779BF; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- 變量 ---------- */
:root {
  --brand: #0779BF;
  --brand-light: #35a3e6;
  --brand-dark: #055a8f;
  --bg: #000000;
  --bg-soft: #0a0f14;
  --bg-card: #0d141c;
  --line: rgba(255,255,255,0.08);
  --text: #e6edf3;
  --muted: #8b9bab;
  --radius: 14px;
  --shadow: 0 20px 60px rgba(0,0,0,.5);
  --max: 1240px;
}

/* ---------- 容器 ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ================= 導航 header ================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0,0,0,.75);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center;
  gap: 24px;
  height: 72px; max-width: var(--max); margin: 0 auto; padding: 0 24px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 36px; width: auto; }
.nav-brand { flex: none; }
.nav-brand .brand-text { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.nav-brand .brand-name { font-size: 18px; font-weight: 700; letter-spacing: .5px; color: #fff; white-space: nowrap; }
.nav-brand .brand-sub { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; }

.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-cta { flex: none; }
.nav-menu a {
  position: relative;
  padding: 10px 12px;
  font-size: 14px;
  color: #d0d7de;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-menu a:hover { color: #fff; background: rgba(7,121,191,.1); }
.nav-menu a.active { color: #fff; }
.nav-menu a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: linear-gradient(90deg,#0779BF,#35a3e6); border-radius: 2px;
}

.nav-cta { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-ghost {
  color: #c9d1d9; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.02);
}
.btn-ghost:hover { color: #fff; border-color: rgba(7,121,191,.6); background: rgba(7,121,191,.08); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg,#0779BF 0%, #35a3e6 100%);
  box-shadow: 0 8px 24px rgba(7,121,191,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(7,121,191,.5); color:#fff; }

/* 語言切換 */
.lang-switch { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.02);
  color: #cfd8e2; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: .2s;
  white-space: nowrap;
}
.lang-trigger .lang-cur { white-space: nowrap; }
.lang-trigger:hover {
  color:#fff; border-color: rgba(7,121,191,.6); background: rgba(7,121,191,.1);
}
.lang-trigger svg { width: 15px; height: 15px; flex: none; }
.lang-caret { transition: transform .2s; opacity: .7; }
.lang-switch.open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 50;
  min-width: 230px;
  padding: 6px;
  border: 1px solid rgba(7,121,191,.3);
  border-radius: 12px;
  background: rgba(10,15,20,.96);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(7,121,191,.08);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, visibility .2s, transform .2s;
}
.lang-switch.open .lang-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.lang-item {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: #cfd8e2; cursor: pointer; transition: .15s;
  position: relative;
}
.lang-item:hover { background: rgba(7,121,191,.14); color: #fff; }
.lang-item.active {
  background: linear-gradient(135deg, rgba(7,121,191,.22), rgba(53,163,230,.06));
  color: #fff;
}
.lang-item.active::after {
  content:""; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: #35a3e6; box-shadow: 0 0 10px #35a3e6;
}
.lang-name { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: .3px; }
.lang-sub {
  display: block; margin-top: 2px;
  color: var(--muted); font-size: 11px; letter-spacing: 1px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

/* 漢堡 */
.nav-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 10px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.nav-toggle span { position: relative; display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
.nav-toggle span::before, .nav-toggle span::after {
  content:""; position:absolute; left:0; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: .25s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after  { top: 0; transform: rotate(-45deg); }

/* 中等寬度：語言按鈕只顯示圖標 + 簡短代號 */
@media (max-width: 1180px) {
  .nav-wrap { gap: 20px; }
  .nav-menu a { padding: 10px 10px; font-size: 13.5px; }
}
@media (max-width: 1060px) {
  .lang-trigger .lang-cur { display: none; }
  .lang-trigger { padding: 9px 10px; gap: 4px; }
}

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu, .nav-cta {
    position: absolute; left: 0; right: 0; top: 72px;
    background: rgba(0,0,0,.96); backdrop-filter: blur(14px);
    flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-menu.open { max-height: 500px; padding: 12px 0; }
  .nav-cta.open  { max-height: 360px; padding: 0 20px 20px; gap: 10px; }
  .nav-menu a { padding: 14px 24px; border-radius: 0; }
  .nav-menu a.active::after { display: none; }
  .nav-menu a.active { background: rgba(7,121,191,.12); }
  .btn { justify-content: center; width: 100%; }
  .lang-switch { width: 100%; }
  .lang-trigger { width: 100%; justify-content: space-between; padding: 12px 16px; border-radius: 10px; font-size: 14px; }
  .lang-trigger .lang-cur { display: inline; }
  .lang-menu { position: static; margin-top: 8px; width: 100%; min-width: 0; transform: none; }
  .lang-switch.open .lang-menu { transform: none; }
}

/* ================= 頁腳 footer ================= */
.site-footer {
  position: relative;
  margin-top: 80px;
  background:
    radial-gradient(600px 220px at 85% 0%, rgba(7,121,191,.15), transparent 60%),
    linear-gradient(180deg,#05090d 0%, #000 100%);
  color: #a6b1bd;
  font-size: 13.5px;
  overflow: hidden;
}
.site-footer::before {
  content:""; position: absolute; top:0; left:0; right:0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(7,121,191,.55) 50%, transparent);
}
.ft-glow {
  position: absolute; top: -60px; right: -40px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(7,121,191,.22), transparent 65%);
  filter: blur(18px); pointer-events: none;
}

/* 主區 */
.ft-main {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  padding: 44px 24px 28px;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px;
  align-items: flex-start;
}

/* 品牌 */
.ft-brand { display: flex; flex-direction: column; gap: 14px; }
.ft-logo { display: flex; align-items: center; gap: 12px; }
.ft-logo img { height: 32px; width: auto; }
.ft-logo-txt { display: flex; flex-direction: column; line-height: 1.1; }
.ft-logo-txt strong { color:#fff; font-size: 17px; letter-spacing: 1px; }
.ft-logo-txt span { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.ft-intro { color: var(--muted); font-size: 13px; max-width: 520px; line-height: 1.7; margin: 0; }
.ft-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ft-tags a {
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.08);
  color: #cfd8e2; font-size: 12px;
  transition: .2s;
}
.ft-tags a:hover { color:#fff; border-color: rgba(7,121,191,.5); background: rgba(7,121,191,.1); }

/* 聯絡模塊 */
.ft-contact { display: flex; flex-direction: column; gap: 10px; }
.ft-head {
  color:#fff; font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.ft-head em {
  font-style: normal; color: var(--muted); font-weight: 400;
  font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; margin-left: 4px;
}
.ft-line {
  display: inline-flex; align-items: center; gap: 10px;
  color: #cfd8e2; font-size: 13.5px;
  transition: color .2s;
}
.ft-line svg {
  width: 16px; height: 16px; color: #35a3e6; flex: none;
}
.ft-line:hover { color: #35a3e6; }

/* 底部條：版權 + 聲明 */
.ft-bottom {
  max-width: var(--max); margin: 0 auto;
  padding: 16px 24px 22px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  font-size: 12.5px;
}
.ft-bottom .ft-copy { color: #cfd8e2; flex: none; }
.ft-bottom .ft-copy strong { color: #fff; font-weight: 700; }
.ft-bottom .ft-note {
  color: var(--muted); font-size: 12px; line-height: 1.65;
  text-align: right; max-width: 640px;
}
.ft-bottom .ft-note em {
  font-style: italic; display: block;
  color: rgba(139,155,171,.7); font-size: 11.5px; margin-top: 2px;
}

@media (max-width: 860px) {
  .ft-main { grid-template-columns: 1fr; gap: 32px; padding: 36px 20px 24px; }
  .ft-bottom { flex-direction: column; align-items: flex-start; padding: 16px 20px 24px; }
  .ft-bottom .ft-note { text-align: left; }
}

/* ---------- 通用標題 / 輔助 ---------- */
.section-eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(7,121,191,.12); color: #35a3e6;
  border: 1px solid rgba(7,121,191,.3);
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px;
}
.section-title { font-size: clamp(28px, 4vw, 44px); color:#fff; font-weight: 800; line-height: 1.25; letter-spacing: .5px; }
.section-title .accent { background: linear-gradient(90deg,#0779BF,#35a3e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-desc { color: var(--muted); max-width: 760px; margin-top: 14px; }
