﻿/* ==========================================================================
   漫蛙漫画官网 · 全站样式
   视觉：青蛙绿 + 奶油底色 + 大圆角卡片；单个页面承载全部分区
   ========================================================================== */

:root {
  --cream: #f6f9f3;
  --cream-2: #edf3e7;
  --white: #ffffff;
  --ink: #0f241b;
  --ink-2: #33473c;
  --muted: #61786b;
  --line: #dfe8dd;

  --green-950: #07281d;
  --green-900: #0d3a2a;
  --green-800: #14503a;
  --green-700: #1a6448;
  --green-600: #1f7a56;
  --green-500: #27986c;
  --green-400: #43b184;
  --green-300: #7fd0a9;
  --green-100: #dcf1e4;
  --green-50: #eff9f3;

  --lime: #c9f26d;
  --lime-deep: #b4ea4d;
  --gold: #f5b942;

  --max: 1180px;
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius: 18px;
  --shadow: 0 30px 60px -34px rgba(7, 40, 29, 0.45);
  --shadow-sm: 0 16px 32px -22px rgba(7, 40, 29, 0.4);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui,
    -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

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

::selection {
  background: var(--lime);
  color: var(--green-950);
}

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
  border-radius: 8px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--green-900);
  color: var(--white);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--lime);
  color: var(--green-950);
  box-shadow: 0 12px 24px -16px rgba(7, 40, 29, 0.7);
}

.btn--primary:hover {
  background: var(--lime-deep);
}

.btn--dark {
  background: var(--green-900);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--green-800);
}

.btn--ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--green-400);
  color: var(--green-700);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--lg {
  padding: 16px 28px;
  font-size: 16px;
}

.btn--sm {
  padding: 10px 17px;
  font-size: 13.5px;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------- 页头 ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(246, 249, 243, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(223, 232, 221, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 6px 14px -8px rgba(7, 40, 29, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--ink-2);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--green-700);
  background: var(--green-50);
}

.nav-link.is-active {
  color: var(--green-800);
  background: var(--green-50);
}

.nav-cta {
  margin-left: 10px;
}

.header-dl {
  display: none;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------- Hero ---------------- */

.hero {
  padding-top: clamp(18px, 2.6vw, 30px);
  padding-bottom: clamp(16px, 2vw, 24px);
}

.hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(30px, 4.6vw, 62px);
  border-radius: var(--radius-xl);
  background: linear-gradient(132deg, #0a3123 0%, #114732 52%, #0a2d20 100%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58% 62% at 88% 8%, rgba(201, 242, 109, 0.16), transparent 62%),
    radial-gradient(52% 56% at 4% 96%, rgba(67, 177, 132, 0.24), transparent 64%);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.55;
  mask-image: linear-gradient(160deg, #000 8%, transparent 62%);
  -webkit-mask-image: linear-gradient(160deg, #000 8%, transparent 62%);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.86);
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(201, 242, 109, 0.7);
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 242, 109, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(201, 242, 109, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 242, 109, 0);
  }
}

.hero-title {
  margin-top: 20px;
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.hero-title em {
  position: relative;
  font-style: normal;
  color: var(--lime);
  white-space: nowrap;
}

.hero-lead {
  margin-top: 18px;
  max-width: 33em;
  font-size: clamp(14.5px, 1.5vw, 16.5px);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.74);
  text-wrap: pretty;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chip {
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
}

.hero-meta strong {
  color: var(--white);
  font-size: 14px;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
}

.stars {
  color: var(--gold);
  letter-spacing: 1.5px;
  font-size: 12px;
  line-height: 1;
}

.hero-dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.hero-meta time {
  color: rgba(255, 255, 255, 0.82);
  font-variant-numeric: tabular-nums;
}

/* Hero 视觉 */

.hero-art {
  position: relative;
  height: clamp(320px, 34vw, 420px);
}

.art-cover {
  position: absolute;
  width: clamp(112px, 12vw, 148px);
  border-radius: 16px;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.92);
  background: var(--green-800);
  box-shadow: 0 24px 44px -22px rgba(0, 0, 0, 0.75);
  transition: transform 0.5s var(--ease);
}

.art-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.art-cover--1 {
  top: 4%;
  left: 2%;
  transform: rotate(-9deg);
  z-index: 1;
}

.art-cover--2 {
  top: 0;
  right: 4%;
  transform: rotate(7deg);
  z-index: 2;
}

.art-cover--3 {
  bottom: 0;
  left: 27%;
  transform: rotate(2deg);
  z-index: 3;
}

.hero-art:hover .art-cover--1 {
  transform: rotate(-11deg) translateY(-6px);
}

.hero-art:hover .art-cover--2 {
  transform: rotate(9deg) translateY(-6px);
}

.hero-art:hover .art-cover--3 {
  transform: rotate(3deg) translateY(-6px);
}

.art-logo {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: 5;
  width: clamp(96px, 10vw, 124px);
  height: clamp(96px, 10vw, 124px);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 22px 40px -20px rgba(0, 0, 0, 0.8);
}

.art-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.art-pill {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-900);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 14px 26px -16px rgba(0, 0, 0, 0.7);
}

.art-pill svg {
  width: 15px;
  height: 15px;
  color: var(--green-600);
}

.art-pill--top {
  top: 12%;
  left: 24%;
}

.art-pill--bottom {
  right: 6%;
  bottom: 11%;
}

/* ---------------- 数据条 ---------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
  padding: 22px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.stat {
  padding: 2px 12px;
  text-align: center;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat__value {
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--green-800);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------------- 区块 ---------------- */

.section {
  position: relative;
  padding-block: clamp(52px, 7vw, 92px);
}

.section--tint {
  background: var(--cream-2);
}

.section--cta {
  background: linear-gradient(140deg, #0a3325 0%, #124a35 60%, #0a2f22 100%);
  color: var(--white);
  text-align: center;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(26px, 3.4vw, 40px);
}

.section-head__main {
  max-width: 60ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--green-700);
}

.eyebrow--light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
}

.section-title {
  margin-top: 14px;
  font-size: clamp(25px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-title em {
  font-style: normal;
  color: var(--green-600);
  padding-inline: 0.04em;
  background-image: linear-gradient(to top, rgba(201, 242, 109, 0.62) 0.3em, transparent 0.3em);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.section-lead {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
  text-wrap: pretty;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green-700);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.section-link svg {
  width: 15px;
  height: 15px;
}

.section-link:hover {
  border-color: var(--green-300);
  transform: translateX(2px);
}

/* ---------------- 分类 ---------------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.cat-card:hover {
  transform: translateY(-5px);
  border-color: var(--green-300);
  box-shadow: var(--shadow-sm);
}

.cat-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--green-50);
  color: var(--green-600);
  margin-bottom: 16px;
}

.cat-card__icon svg {
  width: 26px;
  height: 26px;
}

.cat-card__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cat-card__desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.cat-card__meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-600);
  letter-spacing: 0.02em;
}

/* ---------------- 榜单 ---------------- */

.rank-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.rank-tab {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.rank-tab:hover {
  color: var(--green-700);
}

.rank-tab.is-active {
  background: var(--green-900);
  color: var(--white);
}

.rank-panel {
  margin-top: 26px;
}

.rank-panel[hidden] {
  display: none;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.rank-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.rank-card:hover {
  transform: translateY(-5px);
  border-color: var(--green-300);
  box-shadow: var(--shadow-sm);
}

.rank-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--green-100);
}

.rank-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.rank-card:hover .rank-card__media img {
  transform: scale(1.04);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(7, 40, 29, 0.82);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

.rank-score {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 700;
  color: var(--green-800);
  font-variant-numeric: tabular-nums;
}

.rank-score svg {
  width: 12px;
  height: 12px;
  color: var(--gold);
}

.rank-card__body {
  padding: 14px 16px 16px;
}

.rank-card__title {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rank-card__meta {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.rank-foot {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------------- 下载区 ---------------- */

.dl-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4.2vw, 54px);
  border-radius: var(--radius-xl);
  background: linear-gradient(126deg, #0d3a2a 0%, #17573f 58%, #0b3123 100%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.dl-band__title {
  margin-top: 14px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.dl-band__lead {
  margin-top: 12px;
  max-width: 34em;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.72);
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.dl-note {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  max-width: 32em;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.56);
}

.dl-note svg {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--lime);
}

.dl-steps {
  display: grid;
  gap: 0;
}

.dl-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.dl-step:first-child {
  border-top: 0;
  padding-top: 0;
}

.dl-step__num {
  flex: none;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--lime);
  padding-top: 3px;
}

.dl-step strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.dl-step small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------------- 快讯 ---------------- */

.news-list {
  border-top: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
}

.news-tag {
  justify-self: start;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  font-size: 12px;
  font-weight: 600;
  color: var(--green-700);
  white-space: nowrap;
}

.news-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.news-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.news-foot {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
}

.news-foot time {
  color: var(--green-700);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------------- 新手指引 + FAQ ---------------- */

.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 4.4vw, 56px);
  align-items: start;
}

.guide-points {
  margin-top: 8px;
}

.guide-points li {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.guide-points li:first-child {
  border-top: 0;
}

.guide-points strong {
  color: var(--ink);
}

.guide-tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
}

.guide-tick svg {
  width: 14px;
  height: 14px;
}

.guide-copy .btn-row {
  margin-top: 24px;
}

.faq-list {
  padding: 6px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-50);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--green-700);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item[open] .faq-icon {
  background: var(--green-100);
}

.faq-a {
  padding: 0 0 18px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------------- 留言 ---------------- */

.talk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.talk-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.talk-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.talk-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.talk-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 15px;
  font-weight: 700;
}

.talk-name {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
}

.talk-time {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.talk-text {
  margin-top: 13px;
  flex: 1;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}

.talk-foot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--green-600);
}

.talk-foot svg {
  width: 14px;
  height: 14px;
}

/* ---------------- 底部 CTA ---------------- */

.cta {
  max-width: 760px;
}

.cta__title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.cta__title em {
  font-style: normal;
  color: var(--lime);
}

.cta__lead {
  margin-top: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.68);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.cta__meta {
  margin-top: 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

.cta__meta time {
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
}

/* ---------------- 页脚 ---------------- */

.site-footer {
  padding-top: 54px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 40px;
}

.footer-desc {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

.footer-version {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.footer-col h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.footer-links {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--green-700);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.footer-updated time {
  color: var(--green-700);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.footer-icp a {
  color: var(--muted);
  text-decoration: underline;
}

.footer-note {
  padding: 16px 0 42px;
  max-width: 92ch;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------------- 移动端吸底下载条 ---------------- */

.download-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(130%);
  transition: transform 0.35s var(--ease);
}

.download-bar.is-visible {
  transform: translateY(0);
}

.download-bar .btn {
  flex: 1;
  padding: 13px 10px;
  font-size: 14.5px;
}

/* ---------------- iOS + 百度 APP 弹层 ---------------- */

.dl-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 18px;
}

.dl-modal[hidden] {
  display: none;
}

.dl-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(4, 20, 14, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fadeIn 0.2s var(--ease);
}

.dl-modal__card {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 28px 26px 24px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  animation: popIn 0.28s var(--ease);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.dl-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--muted);
}

.dl-modal__close svg {
  width: 16px;
  height: 16px;
}

.dl-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green-700);
}

.dl-modal__badge svg {
  width: 14px;
  height: 14px;
}

.dl-modal__title {
  margin-top: 14px;
  padding-right: 26px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.dl-modal__desc {
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.dl-modal__link {
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px dashed var(--green-300);
  border-radius: 14px;
  background: var(--green-50);
}

.dl-modal__url {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--green-800);
  word-break: break-all;
}

.dl-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.dl-modal__actions .btn {
  flex: 1;
  padding: 13px 14px;
  font-size: 14px;
}

.dl-modal__steps {
  margin-top: 18px;
  padding-left: 18px;
  list-style: decimal;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
}

/* body 锁定滚动 */
body.modal-open {
  overflow: hidden;
}

/* ---------------- 404 ---------------- */

.error-page {
  padding-block: clamp(60px, 10vw, 120px);
}

.error-inner {
  max-width: 620px;
  text-align: center;
}

.error-code {
  font-family: var(--mono);
  font-size: clamp(72px, 12vw, 128px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--green-100);
}

.error-page h1 {
  margin-top: 8px;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.error-page p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

.error-page .btn-row {
  justify-content: center;
  margin-top: 26px;
}

/* ---------------- 进场动画 ---------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-dot {
    animation: none;
  }

  .btn:hover,
  .cat-card:hover,
  .rank-card:hover,
  .talk-card:hover,
  .rank-card:hover .rank-card__media img,
  .hero-art:hover .art-cover {
    transform: none;
  }
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 1024px) {
  .hero-art {
    height: clamp(300px, 34vw, 360px);
  }

  .rank-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .talk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-inner {
    height: 66px;
  }

  .site-nav {
    position: fixed;
    top: 78px;
    left: 14px;
    right: 14px;
    z-index: 95;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.4;
  }

  .nav-cta {
    margin: 6px 0 4px;
    justify-content: center;
  }

  .header-dl {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-art {
    height: clamp(300px, 62vw, 380px);
    max-width: 460px;
    margin-inline: auto;
    width: 100%;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 0;
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dl-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-bar {
    display: flex;
  }

  .site-footer {
    padding-bottom: 68px;
  }
}

@media (max-width: 640px) {
  .brand-sub {
    display: none;
  }

  .hero-card {
    border-radius: 26px;
    padding: 26px 20px 30px;
  }

  .hero-title {
    margin-top: 16px;
    font-size: clamp(27px, 8.4vw, 34px);
    line-height: 1.28;
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    padding: 14px 18px;
    font-size: 15px;
  }

  .hero-meta {
    gap: 8px;
    font-size: 11.5px;
  }

  .hero-dot-sep {
    display: none;
  }

  .hero-art {
    height: 300px;
  }

  .art-cover {
    width: 104px;
    border-width: 4px;
  }

  .art-pill--top {
    left: 6%;
    top: 6%;
  }

  .art-pill--bottom {
    right: 2%;
    bottom: 6%;
  }

  .art-logo {
    width: 92px;
    height: 92px;
  }

  .stats {
    padding: 18px 4px;
  }

  .stat__value {
    font-size: 18px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .section-title {
    font-size: clamp(23px, 6.6vw, 28px);
  }

  .cat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .rank-card__body {
    padding: 11px 12px 13px;
  }

  .rank-card__title {
    font-size: 14px;
  }

  .rank-card__meta {
    font-size: 11.5px;
  }

  .rank-tab {
    padding: 8px 13px;
    font-size: 13px;
  }

  .news-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 20px 2px;
  }

  .news-title {
    font-size: 15.5px;
  }

  .talk-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-list {
    padding: 4px 18px;
  }

  .dl-band {
    padding: 26px 20px 30px;
    border-radius: 26px;
  }

  .dl-actions .btn {
    flex: 1 1 auto;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-bottom {
    font-size: 12px;
  }

  .dl-modal__card {
    padding: 24px 20px 20px;
    border-radius: 22px;
  }

  .dl-modal__actions {
    flex-direction: column;
  }
}
