:root {
  --ink: #151619;
  --muted: #65676d;
  --paper: #fff8f6;
  --surface: #ffffff;
  --line: #ead9d2;
  --teal: #126b42;
  --teal-dark: #0a482c;
  --coral: #e7354d;
  --amber: #ffd166;
  --rose: #fff0f2;
  --shadow: 0 18px 48px rgba(61, 22, 29, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 107, 66, 0.08), transparent 28%, rgba(231, 53, 77, 0.09) 100%),
    repeating-linear-gradient(0deg, rgba(21, 22, 25, 0.025) 0, rgba(21, 22, 25, 0.025) 1px, transparent 1px, transparent 20px);
}

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

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

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(231, 224, 212, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--teal);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a {
  padding: 8px 10px;
  color: #33363b;
  border-radius: 6px;
  font-size: 0.92rem;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: #fff;
  outline: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(34px, 7vw, 92px) clamp(18px, 5vw, 72px) 34px;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(2.45rem, 7vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h1 span:not(:first-child) {
  margin-top: 0.18em;
  font-size: clamp(1.35rem, 3.7vw, 3.15rem);
  line-height: 1.08;
}

.hero-lead {
  margin: 22px 0 0;
  font-size: clamp(1rem, 2.1vw, 1.22rem);
  color: #34363b;
  max-width: 620px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.hero-metrics li {
  padding: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-metrics strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-media {
  position: relative;
  margin: 0;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #111;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.48));
}

.hero-media figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  color: #fff;
}

.hero-media figcaption span {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 5px 8px;
  color: var(--ink);
  background: var(--amber);
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-media figcaption strong {
  display: block;
  font-size: clamp(1rem, 2vw, 1.45rem);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 clamp(18px, 5vw, 72px) 46px;
}

.quick-grid a {
  display: block;
  min-height: 118px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-grid span {
  display: block;
  color: var(--coral);
  font-size: 0.85rem;
  font-weight: 800;
}

.quick-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 1.08rem;
  line-height: 1.38;
}

.section-band {
  padding: clamp(42px, 7vw, 76px) clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.free-band,
.template-band,
.faq-band {
  background: rgba(255, 255, 255, 0.55);
}

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-head.compact {
  max-width: 680px;
}

.section-head h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(1.85rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.section-head p:not(.eyebrow) {
  margin: 12px 0 0;
  color: #3e4146;
  font-size: 1rem;
}

.intent-grid,
.detail-map,
.compliance-list,
.faq-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.intent-grid article,
.detail-map article,
.compliance-list article,
.faq-list article {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.intent-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 30px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--teal);
  border-radius: 5px;
  font-weight: 900;
  font-size: 0.82rem;
}

.intent-grid h3,
.detail-map h3,
.compliance-list h3,
.faq-list h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.35;
}

.intent-grid p,
.detail-map p,
.compliance-list p,
.faq-list p {
  margin: 10px 0 0;
  color: #52555c;
  font-size: 0.95rem;
}

.finder-panel {
  margin-bottom: 24px;
  padding: 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}

.finder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.finder-head span {
  color: rgba(255, 255, 255, 0.74);
}

.search-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
  align-items: center;
}

.search-row input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.search-row input:focus {
  border-color: var(--amber);
}

.search-row input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.filter-chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover,
.filter-chip:focus-visible {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}

.empty-state {
  margin: 14px 0 0;
  color: #ffd7cf;
}

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

.poster-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.poster-shell {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111;
}

.poster-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.poster-card:hover .poster-shell img {
  transform: scale(1.035);
}

.poster-body {
  padding: 14px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: var(--teal-dark);
  background: rgba(12, 116, 107, 0.12);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.favorite-button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 0.78rem;
}

.favorite-button[aria-pressed="true"] {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
}

.poster-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.32;
}

.poster-body p {
  margin: 8px 0 0;
  color: #575a60;
  font-size: 0.92rem;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
  align-items: stretch;
}

.wide-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.92fr) 1fr;
  gap: 18px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wide-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 6px;
}

.wide-card h3 {
  margin: 18px 0 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.2;
}

.wide-card p {
  color: #4b4e54;
}

.topic-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.topic-list li {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.topic-list strong,
.topic-list span {
  display: block;
}

.topic-list span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.favorites-band {
  background: var(--teal-dark);
  color: #fff;
}

.favorites-band .eyebrow {
  color: var(--amber);
}

.favorites-band .section-head p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.favorite-box {
  min-height: 120px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.favorite-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.favorite-box ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.favorite-box li {
  padding: 9px 12px;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  font-weight: 800;
}

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

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 26px clamp(18px, 5vw, 72px) 92px;
  color: #fff;
  background: var(--ink);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

.mobile-nav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 60;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  background: rgba(21, 22, 25, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  color: #fff;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 800;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1180px) {
  .poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .top-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 26px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-media {
    min-height: 260px;
  }

  .hero-media img {
    min-height: 260px;
  }

  .quick-grid,
  .rank-layout,
  .wide-card,
  .detail-map,
  .compliance-list,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .mobile-nav {
    display: grid;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .quick-grid,
  .section-band {
    padding-left: 16px;
    padding-right: 16px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .intent-grid,
  .poster-grid {
    grid-template-columns: 1fr;
  }

  .finder-head,
  .card-top,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .wide-card img {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
