/* 熊猫视频 — 杂志编辑风格 · 非对称图文 */
:root {
  --bg: #0f1210;
  --bg-soft: #171b18;
  --panel: #1d211d;
  --line: #313831;
  --text: #ecefe7;
  --muted: #a9b2a4;
  --accent: #d8f26a;
  --accent-deep: #9fbf2f;
  --warm: #e8b86d;
  --radius: 14px;
  --maxw: 1180px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(216, 242, 106, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(232, 184, 109, 0.06), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6rem; letter-spacing: .01em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 .8rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--accent); color: #10150d; padding: .6rem 1rem; border-radius: 0 0 10px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* 顶部导航 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 18, 16, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-wrap {
  max-width: var(--maxw); margin: 0 auto; padding: .7rem 1.2rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brand-block { display: flex; align-items: baseline; gap: .55rem; }
.brand-mark {
  font-size: .8rem; font-weight: 800; letter-spacing: .18em;
  color: #10150d; background: var(--accent); padding: .18rem .5rem; border-radius: 6px;
}
.brand-name { font-weight: 800; font-size: 1.1rem; letter-spacing: .04em; }
.menu-toggle {
  margin-left: auto; display: none; align-items: center; gap: .45rem;
  background: transparent; color: var(--text); border: 1px solid var(--line);
  padding: .45rem .8rem; border-radius: 10px; font: inherit; cursor: pointer;
}
.menu-toggle:hover { border-color: var(--accent); color: var(--accent); }
.menu-icon { width: 16px; height: 2px; background: currentColor; position: relative; display: inline-block; }
.menu-icon::before, .menu-icon::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor;
  transition: transform .25s ease, top .25s ease;
}
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }

.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .1rem .35rem;
}
.main-nav a {
  display: inline-block; padding: .4rem .55rem; border-radius: 8px;
  text-decoration: none; color: var(--muted); font-size: .86rem; font-weight: 500;
  transition: color .2s ease, background .2s ease;
}
.main-nav a:hover { color: var(--accent); background: rgba(216, 242, 106, 0.08); }

/* 首屏 */
.hero-section { max-width: var(--maxw); margin: 0 auto; padding: 3.2rem 1.2rem 2rem; }
.hero-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: 1.25fr .85fr;
  grid-template-areas:
    "copy fig"
    "copy fig2";
  align-items: start;
}
.hero-copy { grid-area: copy; }
.hero-kicker {
  display: inline-block; font-size: .78rem; letter-spacing: .22em; font-weight: 700;
  color: var(--accent); border-left: 3px solid var(--accent); padding-left: .6rem;
  margin-bottom: 1rem; text-transform: uppercase;
}
.hero-copy h1 a { color: var(--accent); text-decoration: none; border-bottom: 2px solid rgba(216,242,106,.35); }
.hero-copy h1 a:hover { border-bottom-color: var(--accent); }
.hero-lead { color: var(--muted); max-width: 46ch; font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.3rem 0 1.6rem; }
.btn-primary, .btn-ghost {
  display: inline-block; padding: .68rem 1.25rem; border-radius: 10px;
  font-weight: 700; text-decoration: none; font-size: .92rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-primary { background: var(--accent); color: #10150d; box-shadow: 0 8px 24px rgba(216, 242, 106, 0.16); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(216, 242, 106, 0.26); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0; padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.hero-stats div { min-width: 88px; }
.hero-stats dt { font-size: .74rem; color: var(--muted); letter-spacing: .12em; }
.hero-stats dd { margin: .1rem 0 0; font-weight: 800; font-size: 1.02rem; color: var(--accent); }

.hero-figure, .hero-figure-alt { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.hero-figure { grid-area: fig; }
.hero-figure-alt { grid-area: fig2; margin-left: 12%; }
.hero-figure img, .hero-figure-alt img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3;
  transition: transform .6s ease;
}
.hero-figure:hover img, .hero-figure-alt:hover img { transform: scale(1.04); }
.hero-figure figcaption, .hero-figure-alt figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .8rem .9rem; font-size: .8rem; color: #f2f5ea;
  background: linear-gradient(to top, rgba(8, 10, 8, 0.88), transparent);
}

/* 通用区块 */
section { padding: 2.6rem 1.2rem; max-width: var(--maxw); margin: 0 auto; }
.section-head { max-width: 62ch; margin-bottom: 1.5rem; }
.section-head h2 { position: relative; padding-left: .85rem; }
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 5px;
  background: linear-gradient(var(--accent), var(--warm)); border-radius: 4px;
}
.section-head p { color: var(--muted); margin: 0; font-size: .95rem; }

/* 编辑精选 */
.feature-layout { display: grid; grid-template-columns: 1.35fr .9fr; gap: 1.4rem; align-items: start; }
.feature-main {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .25s ease, transform .25s ease;
}
.feature-main:hover { border-color: rgba(216,242,106,.5); transform: translateY(-3px); }
.feature-main figure { margin: 0; overflow: hidden; }
.feature-main img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s ease; }
.feature-main:hover img { transform: scale(1.03); }
.feature-body { padding: 1.1rem 1.2rem 1.3rem; }
.meta-line { display: flex; gap: .8rem; font-size: .78rem; color: var(--muted); margin-bottom: .4rem; }
.meta-line span { color: var(--accent-deep); font-weight: 700; }
.feature-main h3 { font-size: 1.35rem; }
.feature-main a { color: var(--accent); font-weight: 700; font-size: .9rem; text-decoration: none; border-bottom: 1px solid rgba(216,242,106,.4); }
.feature-main a:hover { border-bottom-color: var(--accent); }
.feature-side { display: grid; gap: 1.1rem; }
.feature-item {
  display: grid; grid-template-columns: 96px 1fr; gap: .85rem; align-items: center;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .7rem; transition: border-color .25s ease, transform .25s ease;
}
.feature-item:hover { border-color: rgba(232,184,109,.55); transform: translateY(-2px); }
.feature-item figure { margin: 0; overflow: hidden; border-radius: 9px; }
.feature-item img { width: 96px; height: 96px; object-fit: cover; }
.feature-item h3 { font-size: .98rem; margin-bottom: .25rem; }
.feature-item p { font-size: .82rem; color: var(--muted); margin: 0; }

/* 影像观察 */
.trend-track {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory;
}
.trend-card {
  scroll-snap-align: start; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s ease, border-color .25s ease;
}
.trend-card:hover { transform: translateY(-4px); border-color: rgba(216,242,106,.45); }
.trend-card figure { margin: 0; overflow: hidden; }
.trend-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.trend-card:hover img { transform: scale(1.05); }
.trend-card h3 { padding: .85rem .95rem .2rem; font-size: 1rem; }
.trend-card p { padding: 0 .95rem 1rem; font-size: .84rem; color: var(--muted); margin: 0; }

/* 资料库 */
.library-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.lib-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.lib-card:hover { transform: translateY(-4px); border-color: rgba(216,242,106,.45); box-shadow: 0 14px 30px rgba(0,0,0,.28); }
.lib-card figure { margin: 0; overflow: hidden; }
.lib-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s ease; }
.lib-card:hover img { transform: scale(1.05); }
.lib-body { padding: .9rem 1rem 1.1rem; }
.lib-body h3 { font-size: 1.02rem; }
.lib-body p { font-size: .85rem; color: var(--muted); margin: 0; }

/* 推荐顺序 */
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; counter-reset: none; }
.rank-list li {
  display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; transition: border-color .25s ease, transform .25s ease;
}
.rank-list li:hover { border-color: rgba(232,184,109,.55); transform: translateX(4px); }
.rank-num { font-size: 1.6rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.rank-list h3 { font-size: 1rem; margin-bottom: .2rem; }
.rank-list p { margin: 0; font-size: .85rem; color: var(--muted); }

/* 观看体验 */
.experience-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.6rem; align-items: center; }
.exp-copy p { color: var(--muted); }
.exp-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.exp-list li {
  position: relative; padding-left: 1.5rem; font-size: .92rem; color: var(--text);
}
.exp-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}
.exp-figure { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.exp-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.exp-figure:hover img { transform: scale(1.04); }
.exp-figure figcaption { padding: .7rem .9rem; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); }

/* 观看指南 */
.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.guide-step {
  position: relative; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.1rem 1.1rem;
  transition: border-color .25s ease, transform .25s ease;
}
.guide-step:hover { border-color: rgba(216,242,106,.45); transform: translateY(-3px); }
.step-idx {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; font-weight: 800;
  background: rgba(216, 242, 106, 0.12); color: var(--accent); margin-bottom: .7rem;
}
.guide-step h3 { font-size: 1.02rem; }
.guide-step p { font-size: .86rem; color: var(--muted); margin: 0; }

/* 演示评价 */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.review-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; display: flex; flex-direction: column; gap: .5rem;
  transition: border-color .25s ease, transform .25s ease;
}
.review-card:hover { border-color: rgba(232,184,109,.5); transform: translateY(-3px); }
.review-tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  color: #10150d; background: var(--warm); padding: .15rem .5rem; border-radius: 6px; margin: 0;
}
.review-card blockquote { margin: 0; font-size: .95rem; line-height: 1.65; }
.review-meta { margin: 0; font-size: .78rem; color: var(--muted); }

/* FAQ */
.faq-list { display: grid; gap: .7rem; max-width: 820px; }
.faq-item {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
  padding: .2rem .2rem; overflow: hidden;
}
.faq-item[open] { border-color: rgba(216,242,106,.45); }
.faq-item summary {
  cursor: pointer; padding: .85rem 1rem; font-weight: 700; font-size: .95rem;
  list-style: none; position: relative; padding-right: 2.4rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.15rem; color: var(--accent); font-weight: 800; transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { margin: 0; padding: 0 1rem 1rem; color: var(--muted); font-size: .9rem; }

/* CTA */
.cta-inner {
  background:
    radial-gradient(600px 220px at 90% 0%, rgba(216,242,106,.14), transparent 70%),
    var(--panel);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 2.2rem 1.6rem; text-align: center;
}
.cta-inner h2 { margin-bottom: .6rem; }
.cta-inner p { color: var(--muted); max-width: 52ch; margin: 0 auto 1.2rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; }

/* 关于 */
.about-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 1.6rem; align-items: start; }
.about-grid p { color: var(--muted); }
.about-aside {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.about-aside h3 { font-size: 1rem; color: var(--accent); }
.about-aside ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; font-size: .88rem; color: var(--muted); }

/* 页脚 */
.site-footer { border-top: 1px solid var(--line); background: #0b0d0b; margin-top: 2rem; }
.footer-wrap {
  max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.2rem 2.4rem;
  display: grid; gap: 1.2rem;
}
.footer-name { font-weight: 800; font-size: 1.15rem; margin: 0 0 .2rem; color: var(--accent); }
.footer-brand p { margin: 0; color: var(--muted); font-size: .85rem; }
.footer-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .3rem .9rem;
}
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .85rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { margin: 0; font-size: .78rem; color: #78806f; }

/* 滚动显现 */
.reveal-init { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-in { opacity: 1; transform: none; }

/* 响应式 */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "fig" "fig2"; }
  .hero-figure-alt { margin-left: 0; }
  .feature-layout, .experience-grid, .about-grid { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: repeat(2, 1fr); }
  .trend-track { grid-template-columns: repeat(2, 1fr); }
  .review-grid, .guide-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none; width: 100%; margin-left: 0;
    border-top: 1px solid var(--line); padding-top: .6rem;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: .1rem; }
  .main-nav a { display: block; padding: .55rem .6rem; font-size: .92rem; }
  .hero-section { padding-top: 2.2rem; }
  section { padding: 2rem 1rem; }
  .library-grid, .trend-track, .review-grid, .guide-steps { grid-template-columns: 1fr; }
  .feature-item { grid-template-columns: 76px 1fr; }
  .feature-item img { width: 76px; height: 76px; }
  .rank-list li { grid-template-columns: 46px 1fr; padding: .85rem; }
  .rank-num { font-size: 1.25rem; }
}

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