/* ==========================================================================
   DaisyDisk 繁體中文官網 —— 公共樣式 common.css
   主題色：#2C71F6 ｜ 深色主題
   僅使用系統字型，不引入 Google 字型
   ========================================================================== */

:root {
  --brand: #2C71F6;
  --brand-light: #5C93FF;
  --brand-dark: #1B4FBF;
  --brand-rgb: 44, 113, 246;

  --bg: #070A16;
  --bg-elev: #0E1424;
  --bg-card: #121A2E;
  --bg-card-2: #16203a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #EAF0FF;
  --text-soft: #A9B4CC;
  --text-dim: #6B7796;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-brand: 0 14px 40px rgba(var(--brand-rgb), 0.35);

  --maxw: 1200px;
  --nav-h: 74px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin: 0 0 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 auto;
}

.text-center { text-align: center; }
.text-brand { color: var(--brand-light); }

/* ---------- 通用按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease,
    border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary {
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 46px rgba(var(--brand-rgb), .5); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }
.btn--lg { padding: 16px 34px; font-size: 16px; }

/* ==========================================================================
   導航欄 header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(7, 10, 22, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.nav {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav__logo { width: 42px; height: 42px; border-radius: 11px; flex: none; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.nav__brand-name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.nav__brand-by { font-size: 11px; color: var(--text-dim); font-weight: 500; }

.nav__menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
  transition: color .2s ease, background .2s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

/* 語言切換 */
.lang-switch { position: relative; }
.lang-switch__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-strong);
  color: var(--text-soft); font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.lang-switch__btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.09); }
.lang-switch__btn svg { width: 17px; height: 17px; flex: none; }
.lang-switch__btn svg:last-child { width: 14px; height: 14px; opacity: .6; transition: transform .25s ease; }
.lang-switch.is-open .lang-switch__btn svg:last-child { transform: rotate(180deg); }
.lang-switch__menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 150px;
  display: flex; flex-direction: column; gap: 2px; padding: 6px;
  border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease; z-index: 60;
}
.lang-switch.is-open .lang-switch__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switch__item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 9px;
  font-size: 14px; color: var(--text-soft); transition: color .2s ease, background .2s ease;
}
.lang-switch__item:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.lang-switch__item.is-active { color: var(--brand-light); background: rgba(var(--brand-rgb), .14); font-weight: 600; }
.lang-switch__check { display: inline-flex; width: 16px; height: 16px; flex: none; color: var(--brand-light); }
.lang-switch__check svg { width: 16px; height: 16px; }

/* 移動端語言切換 */
.mobile-lang { display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-lang__item {
  padding: 9px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  font-size: 14px; color: var(--text-soft); transition: color .2s ease, background .2s ease;
}
.mobile-lang__item.is-active { color: var(--brand-light); background: rgba(var(--brand-rgb), .16); border-color: rgba(var(--brand-rgb), .35); font-weight: 600; }

/* 漢堡按鈕 */
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .3s ease, opacity .2s ease;
}
.nav__burger span:nth-child(1) { transform: translate(-50%, -7px); }
.nav__burger span:nth-child(3) { transform: translate(-50%, 5px); }
body.menu-open .nav__burger span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* 移動端彈出選單 */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu__overlay {
  position: absolute; inset: 0;
  background: rgba(3, 5, 12, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .35s ease;
}
.mobile-menu__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(86vw, 360px);
  height: 100%;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg));
  border-left: 1px solid var(--border);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
  padding: calc(var(--nav-h) + 20px) 26px 32px;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
body.menu-open .mobile-menu { visibility: visible; pointer-events: auto; }
body.menu-open .mobile-menu__overlay { opacity: 1; }
body.menu-open .mobile-menu__panel { transform: translateX(0); }

.mobile-menu__label {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); margin: 6px 4px 4px;
}
.mobile-menu__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px;
  border-radius: 14px;
  font-size: 17px; font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: background .2s ease, transform .2s ease;
}
.mobile-menu__link:hover { background: rgba(var(--brand-rgb), .16); }
.mobile-menu__link svg { width: 18px; height: 18px; opacity: .5; }
.mobile-menu__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.mobile-menu__actions .btn { width: 100%; }

/* ==========================================================================
   頁尾 footer
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 72px 0 36px;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -120px; left: 50%;
  width: 620px; height: 300px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(var(--brand-rgb), .22), transparent 70%);
  pointer-events: none;
}
.footer-inner { position: relative; z-index: 1; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { max-width: 420px; }
.footer-brand__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand__logo { width: 44px; height: 44px; border-radius: 12px; }
.footer-brand__name { font-size: 19px; font-weight: 800; }
.footer-brand__by { font-size: 12px; color: var(--text-dim); }
.footer-brand__desc { color: var(--text-soft); font-size: 14px; margin: 0; }

.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact__item {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--text-soft);
}
.footer-contact__icon {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: rgba(var(--brand-rgb), .14);
  border: 1px solid rgba(var(--brand-rgb), .3);
  color: var(--brand-light);
}
.footer-contact__icon svg { width: 18px; height: 18px; }
.footer-contact__item b { color: var(--text); font-weight: 700; }

.footer-reseller {
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: rgba(var(--brand-rgb), .08);
  border: 1px solid rgba(var(--brand-rgb), .22);
  font-size: 13.5px;
  color: var(--text-soft);
}
.footer-reseller p { margin: 0 0 6px; }
.footer-reseller p:last-child { margin-bottom: 0; }
.footer-reseller .en { color: var(--text-dim); font-size: 12.5px; }

.footer-bottom {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* ==========================================================================
   響應式
   ========================================================================== */
@media (max-width: 900px) {
  .nav__menu { display: none; }
  .nav__actions .btn, .nav__actions .lang-switch { display: none; }
  .nav__burger { display: block; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .container { padding: 0 18px; }
  .nav__brand-by { display: none; }
}
