/* ============================================================
   绿料社 GREEN SCOOP — 设计系统
   品牌绿 #12A860 · 点缀 珊瑚/暖黄/天蓝/葡萄
   ============================================================ */
:root {
  --green-600: #12A860;
  --green-700: #0E7A4C;
  --green-800: #0B3B2A;
  --green-50: #EDFAF3;
  --green-100: #D6F5E4;
  --coral: #FF7A59;
  --yellow: #FFC53D;
  --sky: #38BDF8;
  --grape: #8B5CF6;
  --ink-900: #0F2A1E;
  --ink-600: #3E5C4E;
  --ink-400: #6B8578;
  --paper: #FAFDFB;
  --card: #FFFFFF;
  --line: #E3F0E9;
  --shadow-s: 0 2px 10px rgba(15, 42, 30, .06);
  --shadow-m: 0 10px 30px rgba(15, 42, 30, .10);
  --shadow-l: 0 24px 60px rgba(11, 59, 42, .16);
  --r-s: 12px; --r-m: 18px; --r-l: 28px; --r-xl: 36px;
  --font: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* ---------- 文本 ---------- */
.h1, h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.18; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.25; }
h3 { font-size: 1.15rem; font-weight: 700; }
.lead { color: var(--ink-600); font-size: 1.06rem; max-width: 620px; }
.muted { color: var(--ink-400); font-size: .92rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.hl {
  position: relative; display: inline-block; padding-inline: .08em;
  color: var(--green-700); z-index: 0;
}
.hl::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: .04em;
  height: .42em; background: var(--yellow); opacity: .55; border-radius: 4px;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  color: var(--green-700); text-transform: uppercase;
}
.kicker::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--green-600); }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 10px 24px rgba(18, 168, 96, .35); }
.btn-primary:hover { background: var(--green-700); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 10px 24px rgba(255, 122, 89, .35); }
.btn-ghost { background: #fff; color: var(--ink-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green-600); color: var(--green-700); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- 徽章 / 贴纸 ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100);
}
.chip-coral { background: #FFF1EC; color: #C2410C; border-color: #FFDACC; }
.chip-sky { background: #E8F7FE; color: #0369A1; border-color: #C4ECFC; }
.chip-grape { background: #F3EEFF; color: #6D28D9; border-color: #E0D4FC; }
.chip-yellow { background: #FFF7E0; color: #92600A; border-color: #FBE7B0; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 253, 251, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.14rem; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 13px; flex: none;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  display: grid; place-items: center; color: #fff; font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(18, 168, 96, .35);
}
.logo small { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .18em; color: var(--ink-400); line-height: 1.1; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 15px; border-radius: 999px; font-weight: 600; font-size: .96rem;
  color: var(--ink-600); transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--green-700); background: var(--green-50); }
.nav-links a[aria-current="page"] { color: var(--green-700); background: var(--green-100); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; border-radius: 2px; background: var(--ink-900); transition: transform .2s, opacity .2s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(560px 420px at 8% -10%, var(--green-100), transparent 65%),
    radial-gradient(640px 460px at 96% 8%, #FFF3E0, transparent 60%),
    radial-gradient(520px 420px at 55% 118%, #E8F7FE, transparent 62%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .h1 { margin: 18px 0 20px; }
.hero-copy .lead { margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-facts { display: flex; gap: clamp(24px, 4vw, 52px); flex-wrap: wrap; }
.hero-facts strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--green-700); }
.hero-facts span { font-size: .86rem; color: var(--ink-400); }
.hero-art { position: relative; }
.hero-art > img { border-radius: var(--r-xl); box-shadow: var(--shadow-l); }
.sticker {
  position: absolute; display: grid; place-items: center; text-align: center;
  font-weight: 800; font-size: .82rem; line-height: 1.3; color: #fff;
  border-radius: 50%; box-shadow: var(--shadow-m); animation: floaty 5s ease-in-out infinite;
}
.sticker-1 { width: 108px; height: 108px; background: var(--coral); top: -22px; right: -14px; }
.sticker-2 { width: 96px; height: 96px; background: var(--grape); bottom: 26px; left: -26px; animation-delay: -2.2s; }
.sticker-3 { width: 88px; height: 88px; background: var(--sky); bottom: -18px; right: 30px; animation-delay: -3.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 28px; box-shadow: var(--shadow-s);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-600); font-size: .95rem; }
.icon-dot {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 18px; color: #fff;
  box-shadow: 0 8px 18px rgba(15, 42, 30, .12);
}
.bg-green { background: linear-gradient(135deg, var(--green-600), #1BD07F); }
.bg-coral { background: linear-gradient(135deg, #FF9A6C, var(--coral)); }
.bg-sky { background: linear-gradient(135deg, #7DD3FC, var(--sky)); }
.bg-grape { background: linear-gradient(135deg, #A78BFA, var(--grape)); }
.bg-yellow { background: linear-gradient(135deg, #FFDD7A, var(--yellow)); }
.bg-deep { background: linear-gradient(135deg, var(--green-700), var(--green-800)); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- 视频卡 ---------- */
.video-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.video-card .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.video-card:hover .thumb img { transform: scale(1.05); }
.play-badge {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(11, 59, 42, .18);
}
.play-badge span {
  width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .94);
  display: grid; place-items: center; color: var(--green-700); box-shadow: var(--shadow-m);
  transition: transform .2s;
}
.video-card:hover .play-badge span { transform: scale(1.1); }
.video-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.video-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .78rem; color: var(--ink-400); }
.video-card h3 { font-size: 1.05rem; }

/* ---------- 弹层 ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px;
  background: rgba(11, 42, 30, .62); backdrop-filter: blur(4px);
}
.modal-box {
  width: min(680px, 100%); background: #fff; border-radius: var(--r-l);
  padding: 30px; position: relative; box-shadow: var(--shadow-l);
  animation: pop .22s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.1rem;
}
.modal-box .fake-player {
  aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; margin: 16px 0;
  display: grid; place-items: center; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
}

/* ---------- 筛选栏 ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-btn {
  padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font-weight: 600; font-size: .92rem; color: var(--ink-600);
  transition: all .15s;
}
.filter-btn:hover { border-color: var(--green-600); color: var(--green-700); }
.filter-btn.active { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.filterable[hidden] { display: none; }

/* ---------- 列表行 ---------- */
.rank-item, .post-row {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 4px;
  border-bottom: 1px dashed var(--line);
}
.rank-item:last-child, .post-row:last-child { border-bottom: 0; }
.rank-no {
  flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; font-size: .85rem; background: var(--green-50); color: var(--green-700);
}
.rank-item:nth-child(1) .rank-no { background: var(--coral); color: #fff; }
.rank-item:nth-child(2) .rank-no { background: var(--yellow); color: #6b4a00; }
.rank-item:nth-child(3) .rank-no { background: var(--sky); color: #fff; }
.rank-item .t { font-weight: 600; font-size: .95rem; }
.rank-item small { color: var(--ink-400); font-size: .78rem; }

/* ---------- 话题榜封面 ---------- */
.topic-cover { border-radius: var(--r-l); overflow: hidden; position: relative; box-shadow: var(--shadow-s); }
.topic-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.topic-cover .cover-label {
  position: absolute; left: 16px; bottom: 14px; color: #fff; font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--green-800), var(--green-600) 78%);
  color: #fff; padding: clamp(44px, 6vw, 76px); margin-block: 8px;
}
.cta-band::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255, 197, 61, .16); top: -160px; right: -100px;
}
.cta-band::after {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: rgba(56, 189, 248, .14); bottom: -140px; left: -60px;
}
.cta-band .container { position: relative; z-index: 1; padding-inline: 0; }
.cta-band h2, .cta-band .h2 { color: #fff; }
.cta-band p { color: #CDE9DB; max-width: 560px; margin-inline: auto; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; background: rgba(255, 255, 255, .08); }
.cta-band .chip { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .22); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--green-50); font-weight: 700; color: var(--green-800); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; margin-bottom: 14px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; background: none; border: 0; text-align: left;
  font-weight: 700; font-size: 1rem; color: var(--ink-900);
}
.faq-q .arr { transition: transform .2s; color: var(--green-600); }
.faq-item.open .faq-q .arr { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--ink-600); font-size: .95rem; }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- 表单 ---------- */
.subscribe { display: flex; gap: 12px; max-width: 520px; margin-inline: auto; }
.subscribe input {
  flex: 1; min-width: 0; padding: 14px 20px; border-radius: 999px;
  border: 1.5px solid var(--line); font-size: 1rem; font-family: inherit; background: #fff;
}
.subscribe input:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(18, 168, 96, .14); }
.form-msg { min-height: 1.4em; font-size: .88rem; margin-top: 10px; color: var(--green-700); font-weight: 600; }
.form-msg.err { color: #C2410C; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--green-800); color: #BFD9CC; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 64px 0 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { font-size: .9rem; line-height: 2.1; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-brand p { font-size: .9rem; max-width: 300px; margin-top: 12px; }
.footer-note {
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0 30px;
  font-size: .8rem; color: #8FB3A2; line-height: 1.8;
}

/* ---------- 面包屑 ---------- */
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--ink-400); padding: 22px 0 0; flex-wrap: wrap; }
.crumbs a:hover { color: var(--green-700); }
.page-hero { padding: 40px 0 10px; }
.page-hero .h1 { margin: 14px 0 14px; }

/* ---------- 文章 ---------- */
.prose { max-width: 760px; margin-inline: auto; }
.guide-cover {
  display: block; width: 100%; max-width: 820px; height: auto;
  margin: 0 auto 44px; border-radius: 28px; box-shadow: var(--shadow-m);
}
.prose h2 { margin: 40px 0 14px; font-size: 1.45rem; }
.prose h3 { margin: 26px 0 10px; }
.prose p { color: var(--ink-600); margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; list-style: disc; color: var(--ink-600); }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  border-left: 4px solid var(--green-600); background: var(--green-50);
  padding: 14px 20px; border-radius: 0 12px 12px 0; margin: 18px 0; color: var(--green-800);
}
.step-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 12px;
  background: var(--green-600); color: #fff; font-weight: 800; margin-right: 10px;
}

/* ---------- 下载卡 ---------- */
.dl-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; }
.dl-pane { padding: 40px; text-align: center; }
.dl-pane img { margin: 18px auto 20px; width: min(220px, 70%); filter: drop-shadow(0 16px 30px rgba(11, 59, 42, .18)); }
.dl-pane + .dl-pane { border-left: 1px solid var(--line); }
.dl-pane.coral-bg { background: #FFF6F1; }
.dl-pane.mint-bg { background: var(--green-50); }

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

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--green-600); color: #fff; font-size: 1.15rem; box-shadow: var(--shadow-m);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin-inline: auto; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .dl-card { grid-template-columns: 1fr; }
  .dl-pane + .dl-pane { border-left: 0; border-top: 1px solid var(--line); }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .nav-links {
    display: flex; position: fixed; inset: 72px 0 0 0; z-index: 55;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--paper); padding: 24px; border-top: 1px solid var(--line);
    overflow-y: auto;
  }
  body.nav-open .nav-links a { padding: 16px 18px; border-radius: 14px; font-size: 1.05rem; }
  body.nav-open .nav-cta { display: none; }
}
@media (max-width: 680px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-block: 44px 30px; }
  .hero-actions .btn { width: 100%; }
  .subscribe { flex-direction: column; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .sticker-1 { top: -14px; right: 4px; }
  .sticker-2 { left: 4px; }
  .modal-box { padding: 24px 20px; }
}
@media (max-width: 420px) {
  .container { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
