@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* ============================
   CSS 变量 & 基础重置
   ============================ */
:root {
  --green: #87ff71;
  --blue: #01cdfe;
  --dark: #192617;
  --dark2: #0f1a0d;
  --dark3: #1e3019;
  --pink: #ff71ce;
  --purple: #b967ff;
  --text: #d4f5cc;
  --text-muted: #7db870;
  --border: rgba(135,255,113,0.18);
  --glass-bg: rgba(25,38,23,0.72);
  --glass-border: rgba(135,255,113,0.22);
  --radius: 10px;
  --nav-w: 240px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--dark2);
  color: var(--text);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  background: var(--dark2);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue); }
ul { list-style: none; }
h1,h2,h3,h4 { font-weight: 800; line-height: 1.2; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================
   扫描线效果（VHS）
   ============================ */
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  mix-blend-mode: multiply;
}

/* ============================
   布局骨架：aside 在左，main-col 在右
   ============================ */
.page-wrap {
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
}

/* aside > nav > ul > li > a 结构 */
.site-aside {
  width: var(--nav-w);
  min-height: 100vh;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #0a1508 0%, #192617 60%, #0f2010 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  flex-shrink: 0;
  z-index: 100;
  overflow-y: auto;
  max-height: 100vh;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  min-height: 64px;
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 800;
}

.brand-icon:hover { color: var(--blue); }
.site-logo-img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; }
.logo-text {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--green);
  text-shadow: 0 0 12px rgba(135,255,113,0.6);
  letter-spacing: 0.03em;
  text-align: center;
  word-break: break-all;
}

.site-aside > nav { flex: 1; padding: 0.75rem 0; }

.site-aside nav ul { display: flex; flex-direction: column; gap: 0; }

.site-aside nav ul li a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  border-left: 3px solid transparent;
  transition: all var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.site-aside nav ul li a:hover,
.site-aside nav ul li a[aria-current="page"] {
  color: var(--green);
  border-left-color: var(--green);
  background: rgba(135,255,113,0.07);
  text-shadow: 0 0 8px rgba(135,255,113,0.4);
}

.nav-cta { margin-top: 0.5rem; padding: 0 0.75rem; }
.btn-cta {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.6rem 1rem !important;
  background: linear-gradient(135deg, var(--green), #4dce3a);
  color: var(--dark2) !important;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 0.8rem;
  border-left: none !important;
  text-shadow: none !important;
  min-height: 40px;
  letter-spacing: 0.04em;
}
.btn-cta:hover { background: linear-gradient(135deg, var(--blue), #00a8d4); color: var(--dark2) !important; }

.aside-related {
  padding: 1rem 1rem 1.5rem;
  border-top: 1px solid var(--border);
}
.aside-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}
.aside-related ul li a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  min-height: 40px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(135,255,113,0.06);
}
.aside-related ul li a:hover { color: var(--green); }

/* mini-card in aside */
.mini-card {
  display: block;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.mini-card strong { display: block; font-size: 0.78rem; color: var(--green); font-weight: 700; margin-bottom: 0.2rem; }
.mini-card span { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; }
.mini-card:hover { border-color: var(--blue); }

/* ============================
   主内容区
   ============================ */
.main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding: 2rem 2.5rem;
  max-width: 860px;
  width: 100%;
}

/* main > section > div 直接嵌套 */
section { width: 100%; }
section > div { margin-bottom: 3rem; }
section > div:last-child { margin-bottom: 0; }

/* ============================
   页面类型标签
   ============================ */
.page-type-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.75rem;
}

/* ============================
   h1 / h2 / subtitle
   ============================ */
h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--green);
  text-shadow: 0 0 20px rgba(135,255,113,0.5), 0 0 40px rgba(135,255,113,0.2);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 800;
  color: var(--blue);
  text-shadow: 0 0 12px rgba(1,205,254,0.4);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.4rem;
}

p.subtitle, p.subhead, p.desc, p.lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* ============================
   日期行
   ============================ */
.date-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.pub-date, .mod-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============================
   正文内容样式
   ============================ */
.page-body,
.ranking-body,
.review-body,
.compare-body,
.faq-body,
.about-body,
.privacy-body,
.home-content {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text);
}

.page-body h2, .ranking-body h2, .review-body h2,
.compare-body h2, .faq-body h2, .about-body h2,
.privacy-body h2, .home-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.page-body ul, .ranking-body ul, .review-body ul,
.compare-body ul, .faq-body ul, .about-body ul,
.privacy-body ul, .home-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.page-body ul li::before,
.ranking-body ul li::before,
.review-body ul li::before,
.compare-body ul li::before,
.faq-body ul li::before,
.about-body ul li::before,
.privacy-body ul li::before,
.home-content ul li::before {
  content: '▸ ';
  color: var(--green);
}

.page-body table, .ranking-body table, .review-body table,
.compare-body table, .faq-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.page-body th, .ranking-body th, .review-body th,
.compare-body th, .faq-body th {
  background: rgba(1,205,254,0.12);
  color: var(--blue);
  padding: 0.6rem 0.9rem;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.page-body td, .ranking-body td, .review-body td,
.compare-body td, .faq-body td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid rgba(135,255,113,0.07);
  color: var(--text);
}

/* ============================
   首页 Hero
   ============================ */
.home-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
  padding: 2.5rem 0 2rem;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(25,38,23,0.95) 100%),
    linear-gradient(rgba(1,205,254,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1,205,254,0.04) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  perspective: 300px;
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.5rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-left: auto;
  margin-bottom: 1.5rem;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ============================
   按钮
   ============================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.4rem;
  background: linear-gradient(135deg, var(--green), #5de847);
  color: var(--dark2);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: var(--radius);
  min-height: 44px;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  border: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue), #009ecf);
  color: var(--dark2);
  box-shadow: 0 0 20px rgba(1,205,254,0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.4rem;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--blue);
  min-height: 44px;
  transition: all var(--transition);
}
.btn-secondary:hover {
  background: rgba(1,205,254,0.1);
  color: var(--blue);
  box-shadow: 0 0 16px rgba(1,205,254,0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.2rem;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: 40px;
  transition: all var(--transition);
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ============================
   首页卡片网格（子页列表，a > strong 结构）
   ============================ */
.home-cards { margin-bottom: 3rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

/* 玻璃拟态卡片：a 直接子 strong（子页列表契约） */
.glass-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: all var(--transition);
  cursor: pointer;
}
.glass-card:hover {
  border-color: var(--green);
  box-shadow: 0 0 24px rgba(135,255,113,0.15), inset 0 0 12px rgba(135,255,113,0.04);
  transform: translateY(-2px);
}
.glass-card > strong.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.3;
}
.glass-card .card-media { order: -1; }
.glass-card .card-media img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.glass-card .card-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* ============================
   排行榜列表
   ============================ */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* a 直接子 strong（子页列表契约） */
.rank-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.rank-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(1,205,254,0.12);
}
.rank-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: rgba(135,255,113,0.3);
  min-width: 3rem;
  font-variant-numeric: tabular-nums;
}
.rank-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.2rem;
}
.rank-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

/* ============================
   评测 hero 媒体
   ============================ */
.review-hero-media {
  margin-top: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 320px;
}
.review-hero-img { width: 100%; height: 100%; object-fit: cover; }

/* ============================
   导航链接行（review/compare/faq/about/privacy）
   ============================ */
.review-nav-links,
.compare-links,
.faq-nav-links,
.about-nav-links,
.privacy-nav-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ============================
   页脚：footer 三列 dl
   ============================ */
footer {
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 100%);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2.5rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col { }
.footer-heading {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.footer-col dd, .footer-col dt {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  line-height: 1.5;
}
.footer-col dt a, .footer-col dd a {
  color: var(--text-muted);
  transition: color var(--transition);
  display: inline-block;
  min-height: 24px;
  line-height: 24px;
}
.footer-col dt a:hover, .footer-col dd a:hover { color: var(--green); }

.copyright {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(135,255,113,0.35);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(135,255,113,0.08);
  letter-spacing: 0.04em;
}

/* ============================
   Glitch 动效
   ============================ */
@keyframes glitch {
  0%   { clip-path: inset(0 0 95% 0); transform: translate(-2px, 0); }
  20%  { clip-path: inset(30% 0 50% 0); transform: translate(2px, 0); }
  40%  { clip-path: inset(70% 0 5% 0); transform: translate(-1px, 0); }
  60%  { clip-path: inset(10% 0 80% 0); transform: translate(3px, 0); }
  80%  { clip-path: inset(55% 0 20% 0); transform: translate(-2px, 0); }
  100% { clip-path: inset(90% 0 2% 0); transform: translate(0, 0); }
}

h1 { position: relative; }
h1::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  color: var(--blue);
  opacity: 0;
  width: 100%;
  animation: glitch 4s steps(1) infinite 2s;
  pointer-events: none;
}

/* stagger 动画：卡片入场 */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.glass-card {
  animation: fadeUp 0.4s ease both;
}
.card-grid .glass-card:nth-child(1) { animation-delay: 0.05s; }
.card-grid .glass-card:nth-child(2) { animation-delay: 0.1s; }
.card-grid .glass-card:nth-child(3) { animation-delay: 0.15s; }
.card-grid .glass-card:nth-child(4) { animation-delay: 0.2s; }
.card-grid .glass-card:nth-child(5) { animation-delay: 0.25s; }
.card-grid .glass-card:nth-child(6) { animation-delay: 0.3s; }

.rank-card {
  animation: fadeUp 0.35s ease both;
}
.rank-list .rank-card:nth-child(1) { animation-delay: 0.05s; }
.rank-list .rank-card:nth-child(2) { animation-delay: 0.1s; }
.rank-list .rank-card:nth-child(3) { animation-delay: 0.15s; }
.rank-list .rank-card:nth-child(4) { animation-delay: 0.2s; }
.rank-list .rank-card:nth-child(5) { animation-delay: 0.25s; }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scanlines { display: none; }
  h1::after { display: none; }
}

/* ============================
   渐变背景光晕
   ============================ */
.main-col::before {
  content: '';
  position: fixed;
  top: -20%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(135,255,113,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.main-col::after {
  content: '';
  position: fixed;
  bottom: 10%;
  right: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(1,205,254,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main, footer { position: relative; z-index: 1; }

/* ============================
   FAQ 内容样式
   ============================ */
.faq-content details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--glass-bg);
  backdrop-filter: blur(6px);
}
.faq-content summary {
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.faq-content summary::before {
  content: '▶';
  color: var(--green);
  font-size: 0.7rem;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-content details[open] summary::before { transform: rotate(90deg); }
.faq-content details > *:not(summary) {
  padding: 0 1.1rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================
   移动端响应式
   ============================ */
@media (max-width: 900px) {
  .page-wrap { flex-direction: column; }

  .site-aside {
    width: 100%;
    min-height: auto;
    position: sticky;
    top: 0;
    max-height: none;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow: visible;
    z-index: 200;
  }

  .brand-icon {
    padding: 0.5rem 1rem;
    border-bottom: none;
    border-right: 1px solid var(--border);
    min-height: 52px;
    flex-shrink: 0;
  }

  .site-aside > nav {
    flex: 1;
    overflow-x: auto;
    padding: 0;
  }

  .site-aside nav ul {
    flex-direction: row;
    gap: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .site-aside nav ul li a {
    padding: 0 0.9rem;
    border-left: none;
    border-bottom: 3px solid transparent;
    height: 52px;
    font-size: 0.78rem;
    min-height: 52px;
  }

  .site-aside nav ul li a:hover,
  .site-aside nav ul li a[aria-current="page"] {
    border-left-color: transparent;
    border-bottom-color: var(--green);
  }

  .nav-cta { margin-top: 0; padding: 0 0.75rem; display: flex; align-items: center; }
  .btn-cta { width: auto; white-space: nowrap; font-size: 0.75rem; padding: 0.45rem 0.9rem !important; }

  .aside-related { display: none; }

  .main-col { min-height: auto; }

  main { padding: 1.5rem 1.25rem; }
  footer { padding: 2rem 1.25rem 1.25rem; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  :root { --nav-w: 100%; }

  main { padding: 1.25rem 1rem; }

  h1 { font-size: clamp(1.35rem, 5vw, 1.8rem); }
  h2 { font-size: 1.15rem; }

  .home-hero { min-height: 38vh; text-align: left; align-items: flex-start; }
  .hero-text { max-width: 100%; }
  .hero-lead { margin-left: 0; }
  .hero-ctas { justify-content: flex-start; }

  .card-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.25rem; }

  .rank-card { flex-wrap: wrap; gap: 0.5rem; }
  .rank-num { min-width: auto; font-size: 1.1rem; }

  .review-nav-links,
  .compare-links,
  .faq-nav-links,
  .about-nav-links,
  .privacy-nav-links { flex-direction: column; }

  .btn-primary, .btn-secondary, .btn-outline {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  footer { padding: 1.5rem 1rem 1rem; }
}

/* ============================
   hue-rotate 周期动画（synthwave 脉动）
   ============================ */
@keyframes hueShift {
  0%   { filter: hue-rotate(0deg); }
  50%  { filter: hue-rotate(20deg); }
  100% { filter: hue-rotate(0deg); }
}

.site-aside {
  animation: hueShift 12s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .site-aside { animation: none; }
}
