/* roulang page: index */
:root {
  --bg-base: #0B0F1A;
  --bg-elevated: #12182A;
  --bg-glass: rgba(255,255,255,0.06);
  --bg-glass-strong: rgba(255,255,255,0.10);
  --stroke: rgba(255,255,255,0.10);
  --stroke-strong: rgba(255,255,255,0.20);
  --primary: #38BDF8;
  --primary-deep: #0284C7;
  --secondary: #F59E0B;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-tertiary: #59657A;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
.container { max-width: 80rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-left: 2rem; padding-right: 2rem; } }
.glass-card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid var(--stroke);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}
.glass-card:hover {
  border-color: var(--stroke-strong);
  background: var(--bg-glass-strong);
  box-shadow: 0 12px 40px rgba(56,189,248,0.12);
  transform: translateY(-2px);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--primary);
  color: #0f172a;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 0 30px rgba(56,189,248,0.45); }
.btn-primary:active { transform: scale(0.95); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: #fff;
  padding: 0.75rem 1.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-outline:hover { border-color: rgba(56,189,248,0.6); color: var(--primary); }
.badge-default {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
}
.badge-amber {
  background: rgba(245,158,11,0.20);
  color: #F59E0B;
  border: 1px solid rgba(245,158,11,0.30);
}
.badge-cyan {
  background: rgba(56,189,248,0.15);
  color: #38BDF8;
  border: 1px solid rgba(56,189,248,0.25);
}
.nav-link {
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.nav-link:hover { color: rgba(255,255,255,0.85); }
.nav-link.active { color: #fff; }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(56,189,248,0.5);
}
.command-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 0 1rem;
  height: 2.25rem;
  transition: all 0.3s;
  width: 12rem;
}
@media (min-width: 1024px) { .command-search { width: 16rem; } }
.command-search:focus-within {
  border-color: rgba(56,189,248,0.5);
  background: rgba(255,255,255,0.10);
  box-shadow: 0 0 20px rgba(56,189,248,0.2);
}
@media (min-width: 1024px) { .command-search:focus-within { width: 20rem; } }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  border: 1px solid rgba(56,189,248,0.30);
  background: rgba(56,189,248,0.10);
  color: #38BDF8;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  box-shadow: 0 0 20px rgba(56,189,248,0.15);
}
.metric-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--secondary);
  font-weight: 600;
}
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-answer.open { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-plus { transition: transform 0.3s ease; }
.faq-plus.open { transform: rotate(45deg); }
.fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid rgba(255,255,255,0.10);
}
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.nav-icon { width: 1.25rem; height: 1.25rem; stroke: currentColor; stroke-width: 1.8; fill: none; }
.article-content p {
  text-indent: 2em;
  margin-bottom: 1.5rem;
  line-height: 1.9;
}
.article-content h2 {
  border-left: 2px solid var(--primary);
  padding-left: 0.75rem;
  font-size: 1.375rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: #fff;
}
.article-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: #fff;
}
.blockquote {
  border-left: 3px solid var(--secondary);
  padding: 0.75rem 1rem;
  background: rgba(245,158,11,0.08);
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
@media (max-width: 767px) {
  .mobile-drawer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11,15,26,0.98);
    backdrop-filter: blur(20px);
    z-index: 50;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .mobile-drawer.open { transform: translateX(0); }
}

/* roulang page: category1 */
:root {
    --bg-base: #0B0F1A;
    --bg-elevated: #12182A;
    --bg-glass: rgba(255,255,255,0.06);
    --bg-glass-strong: rgba(255,255,255,0.10);
    --stroke: rgba(255,255,255,0.10);
    --stroke-strong: rgba(255,255,255,0.20);
    --primary: #38BDF8;
    --primary-deep: #0284C7;
    --secondary: #F59E0B;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-tertiary: #59657A;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: ui-sans-serif, system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  .container { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
  @media (min-width: 640px) { .container { padding: 0 1.5rem; } }
  @media (min-width: 1024px) { .container { padding: 0 2rem; } }

  /* 导航 */
  .site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(11,15,26,0.82);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-link {
    position: relative;
    color: rgba(241,245,249,0.70);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 0.25rem;
    transition: color 0.2s ease;
    white-space: nowrap;
  }
  .nav-link:hover { color: rgba(241,245,249,0.92); }
  .nav-link.active { color: #ffffff; }
  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(56,189,248,0.5);
  }
  @media (max-width: 767px) {
    .nav-link.active::after { display: none; }
  }

  /* 搜索框 */
  .cmd-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    padding: 0 0.875rem;
    height: 2.375rem;
    transition: all 0.25s ease;
  }
  .cmd-search:focus-within {
    border-color: rgba(56,189,248,0.5);
    background: rgba(255,255,255,0.10);
    box-shadow: 0 0 20px rgba(56,189,248,0.2);
  }

  /* 按钮 */
  .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: var(--primary);
    color: #0F172A;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    transition: all 0.2s ease;
  }
  .btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 30px rgba(56,189,248,0.45);
  }
  .btn-primary:active { transform: scale(0.96); }
  .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.16);
    color: #F1F5F9;
    padding: 0.75rem 1.75rem;
    transition: all 0.2s ease;
    background: transparent;
  }
  .btn-outline:hover {
    border-color: rgba(56,189,248,0.6);
    color: var(--primary);
  }
  .btn-outline:active { transform: scale(0.96); }

  /* 玻璃卡片 */
  .glass-card {
    position: relative;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    transition: all 0.3s ease;
  }
  .glass-card:hover {
    border-color: rgba(255,255,255,0.20);
    background: rgba(255,255,255,0.10);
    box-shadow: 0 12px 40px rgba(56,189,248,0.12);
    transform: translateY(-3px);
  }

  /* 徽章 */
  .badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.875rem;
    font-size: 0.75rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: rgba(241,245,249,0.8);
  }
  .badge-gold {
    background: rgba(245,158,11,0.15);
    color: var(--secondary);
    border-color: rgba(245,158,11,0.30);
  }
  .badge-cyan {
    background: rgba(56,189,248,0.12);
    color: var(--primary);
    border-color: rgba(56,189,248,0.25);
  }

  /* FAQ 动画 */
  .faq-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .faq-item:last-child { border-bottom: none; }
  .faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
  }
  .faq-item.open .faq-answer { grid-template-rows: 1fr; }
  .faq-answer > div { overflow: hidden; }
  .faq-icon { transition: transform 0.3s ease; }
  .faq-item.open .faq-icon { transform: rotate(45deg); }

  /* 侧边目录 */
  .side-toc {
    position: sticky;
    top: 6rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
  }
  .side-toc a {
    display: block;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    color: rgba(148,163,184,1);
    font-size: 0.875rem;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
  }
  .side-toc a:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
  }
  .side-toc a.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: rgba(56,189,248,0.08);
  }

  /* 步骤编号 */
  .step-num {
    width: 2.5rem; height: 2.5rem;
    border-radius: 9999px;
    display: flex; align-items: center; justify-content: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 700;
    font-size: 1rem;
    background: rgba(56,189,248,0.15);
    color: var(--primary);
    border: 1px solid rgba(56,189,248,0.30);
    flex-shrink: 0;
  }

  /* 移动端抽屉 */
  .mobile-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(85vw, 320px);
    background: var(--bg-elevated);
    border-left: 1px solid rgba(255,255,255,0.08);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 60;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: -20px 0 60px rgba(0,0,0,0.4);
  }
  .mobile-drawer.open { transform: translateX(0); }

  /* 页脚 */
  .site-footer {
    background: var(--bg-base);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .footer-link {
    color: rgba(148,163,184,1);
    font-size: 0.875rem;
    transition: color 0.2s ease;
    display: block;
    padding: 0.25rem 0;
  }
  .footer-link:hover { color: var(--primary); }

  /* 图片遮罩 */
  .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
  }

  /* 输入框 */
  .input-field {
    height: 3rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    padding: 0 1.25rem;
    color: #F1F5F9;
    outline: none;
    transition: all 0.25s ease;
  }
  .input-field::placeholder { color: rgba(89,101,122,1); }
  .input-field:focus {
    border-color: rgba(56,189,248,0.5);
    box-shadow: 0 0 0 2px rgba(56,189,248,0.2);
  }

  @media (max-width: 1023px) {
    .side-toc { position: static; max-height: none; }
  }

/* roulang page: article */
:root {
  --bg-base: #0B0F1A;
  --bg-elevated: #12182A;
  --primary: #38BDF8;
  --primary-deep: #0284C7;
  --secondary: #F59E0B;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-tertiary: #59657A;
  --stroke: rgba(255,255,255,0.10);
  --stroke-strong: rgba(255,255,255,0.20);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

.site-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) {
  .site-container { padding: 0 1.75rem; }
}
@media (min-width: 1024px) {
  .site-container { padding: 0 2rem; }
}

/* Nav */
.nav-link {
  position: relative;
  color: rgba(241,245,249,0.65);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.4rem 0;
}
.nav-link:hover { color: rgba(255,255,255,0.9); }
.nav-link.active { color: #fff; }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(56,189,248,0.6);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: var(--primary);
  color: #0f172a;
  font-weight: 600;
  padding: 0.625rem 1.75rem;
  font-size: 0.9375rem;
  transition: all 0.25s;
  box-shadow: 0 0 24px rgba(56,189,248,0.3);
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 34px rgba(56,189,248,0.5);
}
.btn-primary:active { transform: scale(0.96); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--stroke-strong);
  color: #fff;
  font-weight: 500;
  padding: 0.625rem 1.75rem;
  font-size: 0.9375rem;
  transition: all 0.25s;
  background: transparent;
}
.btn-outline:hover {
  border-color: rgba(56,189,248,0.65);
  color: var(--primary);
}

/* Glass card */
.glass-card {
  border-radius: 1rem;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.glass-card:hover {
  border-color: var(--stroke-strong);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 12px 40px rgba(56,189,248,0.12);
  transform: translateY(-2px);
}

/* Search */
.command-search:focus-within {
  border-color: rgba(56,189,248,0.5);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 20px rgba(56,189,248,0.2);
}

/* Article body */
.article-body {
  font-size: 17px;
  line-height: 1.9;
  color: #cbd5e1;
}
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  border-left: 2px solid var(--primary);
  padding-left: 1rem;
  margin: 2.25rem 0 1.25rem;
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.75rem 0 1rem;
}
.article-body h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem;
}
.article-body p {
  margin-bottom: 1.5rem;
  text-indent: 2em;
}
.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body img {
  margin: 2rem auto;
  border-radius: 12px;
}
.article-body blockquote {
  border-left: 3px solid var(--secondary);
  background: rgba(245,158,11,0.06);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 12px 12px 0;
  color: var(--text-secondary);
}
.article-body blockquote p { text-indent: 0; margin-bottom: 0; }
.article-body ul,
.article-body ol {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
  color: #cbd5e1;
  line-height: 1.9;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.5rem; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.article-body th,
.article-body td {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem 1rem;
  text-align: left;
}
.article-body th {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
  font-weight: 600;
}
.article-body td { color: #cbd5e1; }
.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255,255,255,0.08);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: #7dd3fc;
}

/* FAQ accordion */
.faq-item .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}
.faq-answer > div {
  overflow: hidden;
}

/* Font misc */
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }
::-webkit-scrollbar-track { background: transparent; }

/* Selection */
::selection { background: rgba(56,189,248,0.3); color: #fff; }

/* roulang page: category2 */
:root {
  --bg-base: #0B0F1A;
  --bg-elevated: #12182A;
  --bg-glass: rgba(255,255,255,0.06);
  --bg-glass-strong: rgba(255,255,255,0.10);
  --stroke: rgba(255,255,255,0.10);
  --stroke-strong: rgba(255,255,255,0.20);
  --primary: #38BDF8;
  --primary-deep: #0284C7;
  --secondary: #F59E0B;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-tertiary: #59657A;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
/* ====== 导航 ====== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(11,15,26,0.86);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--stroke);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.05em;
}
.logo-sub { color: var(--text-secondary); font-weight: 400; }
.main-nav { display: flex; gap: 1.75rem; align-items: center; }
.main-nav a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding: 4px 2px;
}
.main-nav a:hover { color: rgba(255,255,255,0.9); }
.main-nav a.active { color: #fff; }
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.header-right { display: flex; align-items: center; gap: 0.75rem; }
.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0 1rem;
  height: 36px;
  width: 160px;
  transition: all 0.3s;
}
.search-box:focus-within {
  border-color: rgba(56,189,248,0.5);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 20px rgba(56,189,248,0.2);
  width: 220px;
}
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
  width: 100%;
}
.search-box input::placeholder { color: var(--text-tertiary); }
.header-icon {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.header-icon:hover { color: var(--primary); border-color: rgba(56,189,248,0.4); }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #0B0F1A;
  font-weight: 600;
  font-size: 14px;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 0 30px rgba(56,189,248,0.45); }
.btn-primary:active { transform: scale(0.95); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-outline:hover { border-color: rgba(56,189,248,0.6); color: var(--primary); }
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 6px;
}
/* 移动端抽屉 */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(11,15,26,0.98);
  backdrop-filter: blur(20px);
  padding: 80px 2rem 2rem;
  overflow-y: auto;
}
.mobile-drawer.open { display: block; }
.mobile-drawer .nav-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
  padding: 0.25rem 0;
}
.mobile-drawer .nav-link:hover { color: var(--primary); }
.mobile-drawer .nav-link.active { color: #fff; border-left: 2px solid var(--primary); padding-left: 12px; }
/* ====== Hero ====== */
.page-hero {
  position: relative;
  padding: 130px 0 70px;
  overflow: hidden;
  background-image: linear-gradient(135deg, rgba(11,15,26,0.94) 20%, rgba(18,24,42,0.82) 60%, rgba(11,15,26,0.9)),
    url('/assets/images/backpic/back-2.webp');
  background-size: cover;
  background-position: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: rgba(56,189,248,0.14);
  border-radius: 50%;
  filter: blur(120px);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  background: rgba(245,158,11,0.08);
  border-radius: 50%;
  filter: blur(100px);
}
.page-hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.25);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: #fff;
}
.hero-desc {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 760px;
  line-height: 1.9;
}
/* ====== 卡片 ====== */
.glass-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.5rem;
  transition: all 0.3s;
}
.glass-card:hover {
  border-color: var(--stroke-strong);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 12px 40px rgba(56,189,248,0.12);
  transform: translateY(-2px);
}
.glass-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.section-title { font-size: 32px; font-weight: 700; margin-bottom: 0.75rem; }
.section-subtitle { color: var(--text-secondary); font-size: 16px; margin-bottom: 2rem; }
/* 图标 */
.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.2);
  margin-bottom: 1rem;
}
.icon-wrap.gold {
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.2);
}
/* 统计数字 */
.stat-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--secondary);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}
/* 瀑布流 */
.masonry { column-count: 2; column-gap: 1.5rem; }
.masonry-item { break-inside: avoid; margin-bottom: 1.5rem; }
/* 对比表 */
.compare-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
  white-space: nowrap;
}
.compare-table th { color: var(--text-secondary); font-weight: 500; background: rgba(255,255,255,0.03); }
.compare-table td { color: var(--text-primary); }
.compare-table .highlight { color: var(--primary); font-weight: 500; }
.compare-table .gold-text { color: var(--secondary); font-family: ui-monospace, monospace; }
/* FAQ */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 100%;
  text-align: left;
  font-size: 16px;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--primary); }
.faq-icon { font-size: 22px; transition: transform 0.3s; color: var(--text-tertiary); flex-shrink: 0; margin-left: 12px; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.85;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 1.25rem; padding-right: 1.5rem; }
/* CTA 横条 */
.cta-bar {
  background: linear-gradient(135deg, rgba(56,189,248,0.1), rgba(245,158,11,0.06));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.cta-bar::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px; height: 300px;
  background: rgba(56,189,248,0.08);
  border-radius: 50%;
  filter: blur(80px);
}
/* ====== 页脚 ====== */
.site-footer {
  background: var(--bg-base);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 1rem; }
.footer-link {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 2.2;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
}
.footer-link:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 8px;
}
.social-icon {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.social-icon:hover { color: var(--primary); border-color: rgba(56,189,248,0.4); }
/* 标签 */
.chip {
  display: inline-flex;
  align-items: center;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.25);
  color: var(--secondary);
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
}
/* ====== 响应式 ====== */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .search-box { display: none; }
  .menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .masonry { column-count: 1; }
  .hero-title { font-size: 32px; }
  .section-title { font-size: 26px; }
  .page-hero { padding: 110px 0 50px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-bar { flex-direction: column; text-align: center; }
  .footer-bottom { flex-direction: column; justify-content: center; }
  .stat-num { font-size: 26px; }
}
@media (max-width: 520px) {
  .container { padding: 0 1rem; }
  .hero-title { font-size: 26px; }
  .btn-primary { padding: 0.4rem 1rem; font-size: 13px; }
  .header-right .btn-primary { display: none; }
  .cta-bar { padding: 1.5rem; }
}
