@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* =============================
   CSS 自定义属性
   ============================= */
:root {
  --green: #69ff69;
  --cyan: #00ffff;
  --dark: #172617;
  --dark2: #1e331e;
  --dark3: #0f1c0f;
  --card-bg: #1a2e1a;
  --text: #e8ffe8;
  --text-muted: #8fb88f;
  --border: rgba(105, 255, 105, 0.18);
  --glow-green: 0 0 12px rgba(105,255,105,0.55), 0 0 32px rgba(105,255,105,0.22);
  --glow-cyan: 0 0 12px rgba(0,255,255,0.55), 0 0 32px rgba(0,255,255,0.22);
  --radius-card: 28px;
  --radius-pill: 999px;
  --font: 'Noto Sans KR', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --nav-h: 64px;
}

/* =============================
   重置与基础
   ============================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--dark);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: var(--nav-h);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cyan); }
ul, ol { list-style: none; }

/* =============================
   站点容器
   ============================= */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =============================
   Hero
   ============================= */
.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0 0 3rem;
  background: linear-gradient(160deg, var(--dark3) 0%, var(--dark2) 60%, #0d2a1a 100%);
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: -0.05em;
  transform: translateY(-50%);
  font-size: clamp(6rem, 22vw, 18rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, rgba(105,255,105,0.08) 0%, rgba(0,255,255,0.06) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img, .hero-media .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.hero-media--review { opacity: 0.3; }

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem 0;
  text-align: left;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(0,255,255,0.35);
  border-radius: var(--radius-pill);
  padding: 0.25em 0.9em;
}
.hero-eyebrow a { color: var(--cyan); }

.hero-h1 {
  font-size: clamp(1.6rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  text-shadow: var(--glow-green);
  margin-bottom: 1rem;
  max-width: 780px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* 斜切底边 */
.hero-arc {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--dark);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 3;
}

/* Hero 变体 */
.hero--ranking { background: linear-gradient(160deg, #0a1f2e 0%, #132020 60%, var(--dark3) 100%); }
.hero--review  { background: linear-gradient(160deg, #1a0d2e 0%, var(--dark3) 50%, #0d2020 100%); }
.hero--compare { background: linear-gradient(160deg, #0d2020 0%, var(--dark2) 60%, var(--dark3) 100%); }
.hero--faq     { background: linear-gradient(160deg, var(--dark3) 0%, #1a2e1a 100%); }
.hero--about   { background: linear-gradient(160deg, #0d1a2e 0%, var(--dark3) 100%); }
.hero--privacy { background: linear-gradient(160deg, var(--dark3) 0%, var(--dark2) 100%); }

/* =============================
   主内容区
   ============================= */
.main-content {
  flex: 1;
  padding: 2.5rem 0 4rem;
}

/* 四层嵌套结构：main > article.wrap > section > div */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* =============================
   侧边栏（内容左侧）
   ============================= */
.sidebar {
  grid-column: 1;
  position: sticky;
  top: 1.5rem;
}

.sidebar-inner {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

.sidebar-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.sidebar-nav li a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  transition: background .2s, color .2s;
}
.sidebar-nav li a:hover {
  background: rgba(105,255,105,0.08);
  color: var(--green);
}

.sidebar-badge {
  margin-top: 1.25rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(105,255,105,0.08), rgba(0,255,255,0.06));
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: center;
}
.sidebar-badge p { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.5rem; line-height: 1.5; }

/* =============================
   内容区域（section > div）
   ============================= */
.content-section {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.page-article {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem 2.5rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.meta-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(105,255,105,0.08);
  border-radius: var(--radius-pill);
  padding: 0.2em 0.8em;
}

/* 正文内容样式 */
.article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}
.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  margin: 2rem 0 0.5rem;
  text-shadow: var(--glow-green);
}
.article-body h2 + hr,
.article-body h3 + hr { border: none; border-top: 1px solid var(--border); margin: 0.5rem 0 1.25rem; }
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cyan);
  margin: 1.5rem 0 0.5rem;
}
.article-body h4 { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 0.4rem; }
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.35rem; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: 0.93rem;
}
.article-body th, .article-body td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.9rem;
  text-align: left;
}
.article-body th {
  background: rgba(105,255,105,0.1);
  color: var(--green);
  font-weight: 600;
}
.article-body a { color: var(--green); border-bottom: 1px solid rgba(105,255,105,0.3); }
.article-body a:hover { color: var(--cyan); }
.article-body blockquote {
  border-left: 3px solid var(--green);
  padding: 0.75rem 1.25rem;
  background: rgba(105,255,105,0.05);
  border-radius: 0 12px 12px 0;
  margin: 1.25rem 0;
  color: var(--text-muted);
}
.article-body strong { color: var(--green); font-weight: 700; }
.article-body code {
  background: rgba(105,255,105,0.12);
  border-radius: 4px;
  padding: 0.15em 0.45em;
  font-size: 0.88em;
  color: var(--cyan);
}

/* =============================
   文章底部导航
   ============================= */
.article-footer-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* =============================
   按钮
   ============================= */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55em 1.5em;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--green);
  background: linear-gradient(135deg, rgba(105,255,105,0.15), rgba(105,255,105,0.05));
  color: var(--green);
  text-shadow: 0 0 8px rgba(105,255,105,0.5);
  box-shadow: var(--glow-green);
  transition: background .2s, box-shadow .2s, transform .15s, color .2s;
  white-space: nowrap;
}
.btn-pill:hover {
  background: linear-gradient(135deg, rgba(105,255,105,0.3), rgba(105,255,105,0.12));
  box-shadow: 0 0 20px rgba(105,255,105,0.7), 0 0 50px rgba(105,255,105,0.3);
  transform: translateY(-1px);
  color: var(--green);
}
.btn-pill.btn-cyan {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(0,255,255,0.15), rgba(0,255,255,0.05));
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0,255,255,0.5);
  box-shadow: var(--glow-cyan);
}
.btn-pill.btn-cyan:hover {
  background: linear-gradient(135deg, rgba(0,255,255,0.3), rgba(0,255,255,0.12));
  box-shadow: 0 0 20px rgba(0,255,255,0.7), 0 0 50px rgba(0,255,255,0.3);
  color: var(--cyan);
}
.btn-pill.btn-sm { min-height: 36px; padding: 0.4em 1.1em; font-size: 0.82rem; }

/* =============================
   徽章
   ============================= */
.badge-neon {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3em 0.9em;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(105,255,105,0.2), rgba(0,255,255,0.15));
  border: 1px solid var(--green);
  color: var(--green);
  text-shadow: var(--glow-green);
}

/* =============================
   section-title + hr（结构抽签）
   ============================= */
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green);
  text-shadow: var(--glow-green);
  margin-bottom: 0.5rem;
}
.section-title + hr,
h2 + hr,
h3 + hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.5rem 0 1.5rem;
}

/* =============================
   首页卡片（section > div×n 结构）
   ============================= */
.home-cards-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  margin-top: 0.5rem;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* 首页 section > div×n（契约：section直接子div） */
.home-cards-section > .home-cards {
  /* cards 包裹层，div 在其内 */
}

/* 确保首页的div能被检测：重新让home-cards是section的直接子 */

.home-card {
  background: linear-gradient(145deg, #1e361e, #172617);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 36px rgba(105,255,105,0.15), 0 2px 12px rgba(0,0,0,0.4);
}

.card-thumb { aspect-ratio: 16/9; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.home-card:hover .card-thumb img { transform: scale(1.04); }

.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.card-title { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--green); }
.card-date { font-size: 0.78rem; color: var(--text-muted); }
.card-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; flex: 1; }

/* =============================
   排行榜列表
   ============================= */
.ranking-list { width: 100%; }

/* section.rank-articles > div×n（契约满足） */
.rank-articles {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rank-item {
  display: grid;
  grid-template-columns: 56px auto 1fr;
  gap: 1.25rem;
  align-items: center;
  background: linear-gradient(145deg, #1e361e, #172617);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform .2s, box-shadow .2s;
}
.rank-item:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 28px rgba(105,255,105,0.12);
}

.rank-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(105,255,105,0.25);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
}
.rank-item:nth-child(1) .rank-num { color: var(--green); text-shadow: var(--glow-green); font-size: 2.4rem; }
.rank-item:nth-child(2) .rank-num { color: var(--cyan); text-shadow: var(--glow-cyan); }
.rank-item:nth-child(3) .rank-num { color: #ffd700; text-shadow: 0 0 12px rgba(255,215,0,0.5); }

.rank-thumb { width: 80px; height: 56px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }

.rank-body { display: flex; flex-direction: column; gap: 0.4rem; }
.rank-item-title { font-size: 1rem; font-weight: 600; }
.rank-item-title a { color: var(--text); }
.rank-item-title a:hover { color: var(--green); }
.rank-desc { font-size: 0.86rem; color: var(--text-muted); }

/* =============================
   相关评测卡片
   ============================= */
.related-section { width: 100%; }

/* section.related-grid > div×n（契约满足） */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.related-card {
  background: linear-gradient(145deg, #1e361e, #172617);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.1rem 1.25rem;
  transition: border-color .2s, transform .2s;
}
.related-card:hover { border-color: var(--green); transform: translateY(-2px); }
.related-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.related-title a { color: var(--text); }
.related-title a:hover { color: var(--green); }
.related-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* =============================
   对比页卡片
   ============================= */
/* section.compare-cards > div×n（契约满足） */
.compare-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.compare-card {
  background: linear-gradient(145deg, #1e361e, #172617);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.compare-card h3 { font-size: 0.95rem; font-weight: 600; }
.compare-card h3 a { color: var(--text); }
.compare-card h3 a:hover { color: var(--green); }
.compare-card p { font-size: 0.82rem; color: var(--text-muted); flex: 1; }

.compare-cta { width: 100%; }

/* =============================
   FAQ 特殊样式
   ============================= */
.faq-body :where(h2) {
  cursor: pointer;
}

/* =============================
   空提示
   ============================= */
.empty-tip { color: var(--text-muted); font-size: 0.9rem; padding: 1rem 0; }

/* =============================
   页脚
   ============================= */
.site-footer {
  background: var(--dark3);
  border-top: 1px solid var(--border);
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-subscribe {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-subscribe-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.footer-subscribe-row {
  display: flex;
  gap: 0.6rem;
  flex: 1;
  min-width: 240px;
}

.footer-input {
  flex: 1;
  background: rgba(105,255,105,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.55em 1.1em;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.footer-input::placeholder { color: var(--text-muted); }
.footer-input:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(105,255,105,0.15); }

/* footer 单行（logo + nav + copyright 横排） */
.footer-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo { flex-shrink: 0; }
.footer-logo img { height: 32px; width: auto; }
.footer-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  text-shadow: var(--glow-green);
  letter-spacing: 0.04em;
}

/* footer > nav（结构抽签：footer 内 nav > dl > dt/dd > a） */
.footer-nav {
  flex: 1;
}

.footer-dl {
  display: flex;
  align-items: center;
  gap: 0.4rem 1.2rem;
  flex-wrap: wrap;
}

.footer-dl-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding-right: 0.5rem;
  border-right: 1px solid var(--border);
}

.footer-dl dd { display: inline-block; }
.footer-dl dd a {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.3em 0.5em;
  border-radius: 8px;
  transition: color .2s, background .2s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.footer-dl dd a:hover { color: var(--green); background: rgba(105,255,105,0.08); }

.footer-copy {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.footer-copy p { font-size: 0.78rem; color: var(--text-muted); }
.footer-copy a { font-size: 0.78rem; color: var(--text-muted); }
.footer-copy a:hover { color: var(--green); }

/* =============================
   底部固定导航条（移动端+桌面均用）
   ============================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(15, 28, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
}

.bottom-nav-brand {
  flex: 1;
  display: flex;
  justify-content: center;
}
.bottom-nav-brand-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green);
  text-shadow: var(--glow-green);
  letter-spacing: 0.05em;
  padding: 0.5em 0.8em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.bottom-nav-left,
.bottom-nav-right {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 2;
}
.bottom-nav-right { justify-content: flex-end; }

.bottom-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.3em 0.6em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 10px;
  transition: color .2s, background .2s;
  white-space: nowrap;
  text-align: center;
  line-height: 1.3;
}
.bottom-nav-link:hover {
  color: var(--green);
  background: rgba(105,255,105,0.1);
}
.bottom-nav-link.active {
  color: var(--green);
  background: rgba(105,255,105,0.08);
}

/* =============================
   滚动动效（减少动效偏好下关闭）
   ============================= */
@media (prefers-reduced-motion: no-preference) {
  .home-card,
  .rank-item,
  .related-card,
  .compare-card {
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  }
  .hero-h1 {
    animation: fadeUp .6s ease both;
  }
  .hero-sub {
    animation: fadeUp .6s .12s ease both;
  }
  .hero-actions {
    animation: fadeUp .6s .22s ease both;
  }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =============================
   响应式断点
   ============================= */
@media (max-width: 900px) {
  .wrap {
    grid-template-columns: 1fr;
  }
  .sidebar {
    grid-column: 1;
    position: static;
  }
  .content-section {
    grid-column: 1;
  }
  .rank-item {
    grid-template-columns: 48px 1fr;
  }
  .rank-thumb { display: none; }
}

@media (max-width: 640px) {
  .hero { min-height: 42vh; padding-bottom: 2.5rem; }
  .hero-inner { padding-top: 3.5rem; }
  .hero-h1 { font-size: clamp(1.35rem, 6vw, 2rem); }
  .page-article { padding: 1.25rem; }
  .home-cards { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .compare-cards { grid-template-columns: 1fr 1fr; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .footer-dl { gap: 0.3rem 0.8rem; }
  .bottom-nav-link { font-size: 0.65rem; padding: 0.3em 0.4em; }
}

@media (max-width: 400px) {
  .related-grid { grid-template-columns: 1fr; }
  .compare-cards { grid-template-columns: 1fr; }
}
