:root {
  --bg: #0b0d12;
  --bg-soft: #12151d;
  --bg-card: #171b25;
  --line: #262c3a;
  --text: #e8eaf0;
  --text-soft: #a6adbd;
  --accent: #ff5a3c;
  --accent-2: #ffb03a;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { line-height: 1.3; margin: 0 0 0.6em; }

p { margin: 0 0 1em; color: var(--text-soft); }

:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 18, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a0d06;
  font-weight: 800;
}

.nav-list { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-list a:hover { color: var(--text); background: var(--bg-card); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}
.menu-bar { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.section { padding: 72px 20px; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.hero-section {
  position: relative;
  padding: 80px 20px 64px;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(255, 90, 60, 0.18), transparent 60%),
    radial-gradient(700px 360px at 100% 20%, rgba(255, 176, 58, 0.12), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-kicker { color: var(--accent-2); font-size: 0.88rem; letter-spacing: 0.12em; margin-bottom: 14px; }
.hero-copy h1 { font-size: clamp(1.8rem, 4.2vw, 3rem); margin-bottom: 18px; }
.hero-copy h1 a { color: var(--accent); }
.hero-desc { max-width: 620px; font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }

.btn-primary, .btn-ghost {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1a0d06; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 90, 60, 0.3); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: var(--bg-card); }
.btn-ghost:hover { background: #1e2432; transform: translateY(-2px); }

.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; color: var(--accent-2); }
.hero-stats span { font-size: 0.85rem; color: var(--text-soft); }

.hero-visual { position: relative; }
.hero-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}
.hero-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.hero-card-caption {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}

.feature-grid, .exp-grid, .review-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.feature-card, .exp-card, .review-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover, .exp-card:hover, .review-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 90, 60, 0.14);
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 14px;
}
.feature-card h3, .exp-card h3 { font-size: 1.05rem; }
.feature-card p, .exp-card p { font-size: 0.9rem; margin: 0; }

.trending-carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; gap: 20px; transition: transform 0.4s ease; }
.trend-card {
  flex: 0 0 calc(25% - 15px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.trend-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.trend-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.trend-body { padding: 18px; }
.trend-tag { display: inline-block; font-size: 0.75rem; color: var(--accent-2); background: rgba(255, 176, 58, 0.1); padding: 2px 8px; border-radius: 999px; margin-bottom: 10px; }
.trend-body h3 { font-size: 1.02rem; }
.trend-body p { font-size: 0.86rem; }
.trend-body a { color: var(--accent); font-size: 0.86rem; font-weight: 600; }
.trend-body a:hover { text-decoration: underline; }
.carousel-controls { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.carousel-btn:hover { background: #1e2432; border-color: var(--accent); }

.library-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.library-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lib-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.lib-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.lib-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.lib-card h3 { padding: 16px 18px 0; font-size: 1rem; }
.lib-card p { padding: 0 18px; font-size: 0.86rem; }
.lib-card a { display: inline-block; padding: 0 18px 18px; color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.lib-card a:hover { text-decoration: underline; }

.library-aside {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.library-aside h3 { font-size: 1.05rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.tag-list a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-soft);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tag-list a:hover { color: var(--accent-2); border-color: var(--accent-2); }
.aside-note { font-size: 0.8rem; margin: 0; }

.ranking-list { display: grid; gap: 14px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.rank-item:hover { transform: translateX(4px); border-color: var(--accent); }
.rank-num { font-size: 1.4rem; font-weight: 800; color: var(--accent-2); min-width: 46px; }
.rank-body { flex: 1; }
.rank-body h3 { font-size: 1rem; margin-bottom: 4px; }
.rank-body p { font-size: 0.86rem; margin: 0; }
.rank-item > a { color: var(--accent); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.rank-item > a:hover { text-decoration: underline; }

.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.guide-step:hover { transform: translateY(-4px); border-color: var(--accent); }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a0d06;
  font-weight: 800;
  margin-bottom: 14px;
}
.guide-step h3 { font-size: 1.02rem; }
.guide-step p { font-size: 0.88rem; }
.guide-step a { color: var(--accent); font-size: 0.86rem; font-weight: 600; }
.guide-step a:hover { text-decoration: underline; }

.review-card { display: flex; flex-direction: column; justify-content: space-between; }
.review-quote { color: var(--text); font-size: 0.92rem; }
.review-meta { display: flex; flex-direction: column; gap: 2px; font-size: 0.78rem; color: var(--text-soft); border-top: 1px solid var(--line); padding-top: 12px; }

.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s ease;
}
.faq-q::after { content: "+"; color: var(--accent-2); font-size: 1.2rem; line-height: 1; }
.faq-q[aria-expanded="true"]::after { content: "−"; }
.faq-q:hover { color: var(--accent-2); }
.faq-a { padding: 0 22px 18px; }
.faq-a p { margin: 0; font-size: 0.9rem; }

.cta-section {
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(255, 90, 60, 0.16), transparent 60%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-inner { text-align: center; max-width: 720px; }
.cta-inner h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 20px; }

.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; }
.about-text p { font-size: 0.95rem; }
.about-meta { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.about-meta h3 { font-size: 1rem; }
.about-meta ul { display: grid; gap: 8px; }
.about-meta li { font-size: 0.88rem; color: var(--text-soft); }

.site-footer { background: #080a0e; border-top: 1px solid var(--line); padding: 52px 20px 32px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .brand-mark { margin-bottom: 4px; }
.footer-brand p { font-size: 0.85rem; margin: 0; }
.footer-nav h3, .footer-note h3 { font-size: 0.95rem; color: var(--text); }
.footer-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.footer-nav a { font-size: 0.85rem; color: var(--text-soft); transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--accent-2); }
.footer-note p { font-size: 0.82rem; }
.copyright { color: #6a7285; font-size: 0.78rem; margin-top: 12px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .trend-card { flex-basis: calc(50% - 10px); }
  .library-grid { grid-template-columns: repeat(2, 1fr); }
  .library-layout { grid-template-columns: 1fr; }
  .library-aside { position: static; }
  .guide-steps { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; }
  .menu-toggle { display: flex; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }
  .main-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list a { padding: 10px 12px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-section { padding-top: 52px; }
  .feature-grid, .exp-grid, .review-grid { grid-template-columns: 1fr; }
  .trend-card { flex-basis: 100%; }
  .library-grid { grid-template-columns: 1fr; }
  .rank-item { flex-wrap: wrap; gap: 12px; }
  .rank-body { flex-basis: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav ul { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .carousel-track { transition: none; }
}
