@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Cabin:wght@400;500;600;700&display=swap');

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

:root {
  --green: #00ff80;
  --blue: #0000ff;
  --black: #000000;
  --white: #ffffff;
  --border: 3px solid var(--green);
  --border-blue: 3px solid var(--blue);
  --font-title: 'Amatic SC', cursive;
  --font-body: 'Cabin', system-ui, sans-serif;
  --radius-card: 28px;
  --bottom-bar-h: 56px;
}

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

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

/* ── 点阵底纹 ── */
.dot-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(0,255,128,0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── 基础排版 ── */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); color: var(--green); }
h2 { font-size: clamp(1.8rem, 5vw, 3rem); color: var(--green); }
h3 { font-size: clamp(1.3rem, 3.5vw, 2rem); color: var(--white); }

p { margin-bottom: 1rem; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--white); text-decoration: underline; }
ul, ol { padding-left: 1.4rem; }
img { max-width: 100%; height: auto; display: block; }

/* ── 眉题标签 ── */
.eyebrow-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--green);
  padding: 2px 10px;
  margin-bottom: 6px;
}

/* ── 底部导航条（固定） ── */
.bottom-nav-spacer {
  height: var(--bottom-bar-h);
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-bar-h);
  background: var(--black);
  border-top: 3px solid var(--green);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  z-index: 900;
}

.bottom-bar-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--green);
  color: var(--green);
  text-decoration: none;
}

.brand-icon {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
}

.bottom-bar-search {
  flex: 1;
}

.bottom-bar-search input {
  width: 100%;
  height: 40px;
  background: var(--black);
  border: 2px solid var(--green);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0 12px;
  outline: none;
}

.bottom-bar-search input::placeholder {
  color: rgba(0,255,128,0.5);
}

.bottom-bar-search input:focus {
  border-color: var(--white);
}

/* ── 汉堡按钮 ── */
.hamburger {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--green);
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--black);
}

.hamburger[aria-expanded="true"] {
  background: var(--blue);
}

.hamburger[aria-expanded="true"] span {
  background: var(--white);
}

/* ── 全屏菜单 ── */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 32px 80px;
  border: 4px solid var(--green);
  visibility: hidden;
  opacity: 0;
  transition: none;
}

.fullscreen-menu.is-open {
  visibility: visible;
  opacity: 1;
}

.menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: var(--green);
  border: none;
  color: var(--black);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fs-menu-list {
  list-style: none;
  padding: 0;
  width: 100%;
}

.fs-menu-list li {
  border-bottom: 2px solid rgba(0,255,128,0.2);
}

.fs-menu-list a {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  padding: 14px 0;
  text-decoration: none;
  transition: none;
}

.fs-menu-list a:hover {
  color: var(--green);
  padding-left: 16px;
}

/* ── main + 结构容器 ── */
main {
  position: relative;
  z-index: 1;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Hero（首页） ── */
.hero-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 48px 0 32px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  min-height: 60vh;
  align-items: center;
}

.hero-text {
  grid-column: 1;
  z-index: 2;
  padding: 24px 32px 24px 0;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--blue);
  padding: 3px 10px;
  margin-bottom: 12px;
}

.hero-text h1 {
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  max-width: 420px;
}

.hero-media {
  grid-column: 2;
  position: relative;
  height: 60vh;
  min-height: 300px;
}

.hero-img {
  position: absolute;
  object-fit: cover;
  border: 3px solid var(--green);
}

.hero-img-1 {
  width: 65%;
  height: 65%;
  top: 0;
  right: 0;
  z-index: 2;
}

.hero-img-2 {
  width: 60%;
  height: 60%;
  bottom: 0;
  left: 0;
  z-index: 3;
  border-color: var(--blue);
}

/* ── 按钮 ── */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 28px;
  border: 3px solid var(--green);
  text-decoration: none;
  letter-spacing: 0.05em;
  cursor: pointer;
  min-height: 48px;
  line-height: 1.2;
}

.btn-primary:hover {
  background: var(--black);
  color: var(--green);
  text-decoration: none;
}

/* ── 卡片网格 ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.cards-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.card {
  border: 3px solid var(--green);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  background: var(--black);
  position: relative;
  transition: none;
}

.card:hover {
  background: rgba(0,255,128,0.06);
}

.card-rank {
  border-color: var(--blue);
}

.card-cmp {
  border-color: var(--white);
}

.card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--green);
  padding: 2px 8px;
  margin-bottom: 8px;
}

.card-rank .card-tag {
  background: var(--blue);
  color: var(--white);
}

.card-cmp .card-tag {
  background: var(--white);
  color: var(--black);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.card h3 a {
  color: var(--white);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--green);
}

.card-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.card-date {
  font-size: 0.75rem;
  color: rgba(0,255,128,0.6);
}

/* ── section 间距 ── */
.home-reviews,
.home-rankings,
.home-compares,
.home-content {
  padding: 48px 0;
  border-top: 2px solid rgba(0,255,128,0.2);
}

/* ── 正文容器 ── */
.content-body {
  max-width: 780px;
  font-size: 1rem;
  line-height: 1.75;
}

.content-body h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.content-body h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
}

.content-body p {
  margin-bottom: 1.1rem;
}

.content-body ul,
.content-body ol {
  margin-bottom: 1rem;
}

.content-body li {
  margin-bottom: 0.3rem;
}

.content-body a {
  border-bottom: 1px solid var(--green);
}

.content-body strong {
  color: var(--green);
}

/* ── 页头 ── */
.page-header {
  padding: 40px 0 28px;
  border-bottom: 3px solid var(--green);
  margin-bottom: 32px;
}

.article-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.article-date {
  font-size: 0.8rem;
  color: rgba(0,255,128,0.7);
  font-weight: 600;
}

/* ── review 页 ── */
.review-section,
.review-article {
  padding-top: 24px;
}

.review-hero-wrap {
  margin: 24px 0;
  border: 3px solid var(--green);
}

.review-hero-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

/* ── ranking 页 ── */
.ranking-section {
  padding-top: 24px;
}

.ranking-table-wrap {
  margin-top: 40px;
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.ranking-table th {
  background: var(--green);
  color: var(--black);
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ranking-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,255,128,0.15);
  vertical-align: top;
}

.ranking-table tr:hover td {
  background: rgba(0,255,128,0.05);
}

.rank-num {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--green);
  font-weight: 700;
  width: 50px;
}

.rank-title a {
  color: var(--white);
  font-weight: 600;
}

.rank-title a:hover {
  color: var(--green);
}

.rank-desc {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
}

.rank-date {
  color: rgba(0,255,128,0.6);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* ── compare 页 ── */
.compare-section {
  padding-top: 24px;
}

.compare-bands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 32px;
  border: 3px solid var(--green);
}

.compare-band {
  padding: 20px 24px;
  display: flex;
  align-items: center;
}

.compare-band-free {
  background: rgba(0,255,128,0.1);
  border-right: 3px solid var(--green);
}

.compare-band-paid {
  background: rgba(0,0,255,0.15);
}

.band-label {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
}

.compare-band-paid .band-label {
  color: var(--blue);
  color: #4d4dff;
}

/* ── FAQ ── */
.faq-body :is(h2, h3) {
  border-left: 4px solid var(--green);
  padding-left: 12px;
  margin-top: 2.2rem;
}

.faq-review-links {
  margin-top: 12px;
}

/* ── about ── */
.about-identity {
  margin-bottom: 28px;
}

.about-badge {
  display: inline-block;
  border: 2px solid var(--green);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  text-transform: uppercase;
}

.about-nav-list {
  list-style: none;
  padding: 0;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-nav-list li a {
  display: block;
  padding: 10px 14px;
  border: 2px solid rgba(0,255,128,0.3);
  color: var(--white);
  font-weight: 600;
}

.about-nav-list li a:hover {
  border-color: var(--green);
  color: var(--green);
  text-decoration: none;
}

/* ── related list ── */
.related-section {
  padding: 40px 0;
  border-top: 2px solid rgba(0,255,128,0.2);
}

.related-list {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.related-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 2px solid rgba(0,255,128,0.35);
  border-radius: var(--radius-card);
  color: var(--white);
  text-decoration: none;
}

.related-item a:hover {
  border-color: var(--green);
}

.related-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--black);
  background: var(--green);
  padding: 1px 7px;
  display: inline-block;
  width: fit-content;
}

.related-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* ── aside 浮动右侧 ── */
.aside-floating {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 200px;
  background: var(--black);
  border: 3px solid var(--green);
  border-right: none;
  padding: 16px 14px;
  z-index: 50;
  display: none;
}

.aside-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 10px;
  border-bottom: 2px solid var(--green);
  padding-bottom: 6px;
}

.aside-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-links li a {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  padding: 5px 6px;
  border-left: 2px solid transparent;
  text-decoration: none;
  line-height: 1.4;
}

.aside-links li a:hover {
  color: var(--green);
  border-left-color: var(--green);
  text-decoration: none;
}

@media (min-width: 1360px) {
  .aside-floating {
    display: block;
  }
  .wrap {
    padding-right: 220px;
  }
}

/* ── 页脚 ── */
footer {
  position: relative;
  z-index: 2;
  margin-bottom: var(--bottom-bar-h);
}

.footer-cta {
  background: var(--blue);
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-cta-text {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.footer-nav {
  background: var(--black);
  border-top: 3px solid var(--green);
  padding: 24px 16px 16px;
}

.footer-nav nav dl {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  margin-bottom: 16px;
}

.footer-brand {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green);
  width: 100%;
  margin-bottom: 4px;
}

.footer-nav nav dl dd {
  margin: 0;
}

.footer-nav nav dl dd a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.footer-nav nav dl dd a:hover {
  color: var(--green);
}

.footer-copy {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 12px;
}

/* ── privacy / about 页正文区段 ── */
.privacy-section,
.about-section,
.faq-section,
.about-links-section,
.privacy-links-section,
.faq-links-section {
  padding: 24px 0 40px;
}

.about-links-section,
.privacy-links-section,
.faq-links-section {
  border-top: 2px solid rgba(0,255,128,0.2);
  padding-top: 32px;
}

/* ── 响应式 ── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    grid-column: 1;
    height: 220px;
    min-height: 0;
    margin-top: 24px;
    order: -1;
  }

  .hero-img-1 {
    width: 58%;
    height: 80%;
  }

  .hero-img-2 {
    width: 54%;
    height: 75%;
  }

  .hero-text {
    padding: 0;
  }

  .compare-bands {
    grid-template-columns: 1fr;
  }

  .compare-band-free {
    border-right: none;
    border-bottom: 3px solid var(--green);
  }
}

@media (max-width: 600px) {
  .cards-grid,
  .cards-grid-2 {
    grid-template-columns: 1fr;
  }

  .related-list {
    grid-template-columns: 1fr;
  }

  .ranking-table th:nth-child(3),
  .ranking-table td:nth-child(3) {
    display: none;
  }

  .footer-nav nav dl {
    flex-direction: column;
    gap: 2px;
  }

  .hero-section {
    min-height: auto;
    padding: 24px 0 20px;
  }
}

/* ── prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .aside-floating,
  .fullscreen-menu,
  .fs-menu-list a,
  .card,
  .btn-primary,
  .related-item a,
  .about-nav-list li a {
    transition: none;
  }
}

/* ── 微交互（正常情况） ── */
.card {
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-3px);
}

.btn-primary {
  transition: background 0s, color 0s;
}

@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
}
