﻿/* ============================================================
   GZ 光追 — editorial olive / ivory theme
   Loaded after styles.css.
   ============================================================ */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
}

:root {
  --bg: #465249;
  --bg-deep: #e7e1d4;
  --paper: #f2eee4;
  --ink: #2b332c;
  --ink-soft: #333b33;
  --muted: #6d7166;
  --line: rgba(43, 51, 44, 0.18);
  --line-strong: rgba(43, 51, 44, 0.55);
  --accent: #ad7454;
  --accent-dark: #8f5a3f;
  --sage: #c5cec0;
  --acid: #c9d2c2;
  --white: #f6f2e8;
  --forest: #465249;
  --forest-deep: #37433a;
  --forest-ink: #2b342d;
  --serif: "Cormorant Garamond", "Times New Roman", "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
}

body {
  background: var(--forest);
  color: var(--ink);
}

::selection {
  background: #c8a284;
  color: var(--forest-deep);
}

/* ---------- typography ---------- */

.eyebrow {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.text-link {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.brand-word strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.11em;
}

.brand-word small {
  color: rgba(246, 242, 232, 0.5);
  font-family: var(--serif);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.section-heading h2 {
  font-weight: 400;
  letter-spacing: -0.055em;
}

.section-intro {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.75;
}

.section-intro span {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.section-index {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.12em;
}

/* ---------- header ---------- */

.site-header {
  color: var(--white);
  border-bottom-color: rgba(246, 242, 232, 0.17);
  background: rgba(70, 82, 73, 0.9);
}

.site-header.is-scrolled {
  background: rgba(54, 65, 56, 0.97);
  box-shadow: 0 1px 24px rgba(10, 14, 10, 0.2);
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.09em;
  box-shadow: none;
}

.brand-word strong {
  color: var(--white);
}

.main-nav a {
  color: rgba(246, 242, 232, 0.82);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.main-nav a span {
  color: rgba(246, 242, 232, 0.35);
  font-family: var(--serif);
  font-size: 8px;
}

.main-nav a::after {
  background: var(--sage);
}

.main-nav a:hover {
  color: var(--white);
}

.header-contact,
.login-button {
  color: var(--white);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.07em;
}

.header-contact:hover {
  color: var(--sage);
}

.login-button {
  min-height: 0;
  padding: 7px 0 4px;
  border: 0;
  border-bottom: 1px solid rgba(246, 242, 232, 0.42);
  background: transparent;
}

.login-button:hover {
  background: transparent;
  color: var(--sage);
  border-bottom-color: var(--sage);
}

.wechat-dot {
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(201, 210, 194, 0.15);
}

.user-trigger {
  gap: 6px;
  padding: 0 2px 0 0;
  border: 0;
  background: transparent;
  color: var(--white);
}

.user-trigger:hover {
  border: 0;
  opacity: 0.72;
}

.user-trigger .user-avatar {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(246, 242, 232, 0.5);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
}

.user-trigger .user-avatar svg {
  width: 14px;
  height: 14px;
}

.user-dropdown {
  color: var(--ink);
}

.menu-toggle {
  border-color: rgba(246, 242, 232, 0.32);
}

.menu-toggle > span:not(.visually-hidden) {
  background: var(--white);
}

/* ---------- hero ---------- */

.hero {
  color: var(--white);
  padding-top: clamp(28px, 4vw, 54px);
}

.hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: auto;
  height: auto;
  bottom: 0;
  color: transparent;
  background: radial-gradient(
    580px circle at var(--sx, 50%) var(--sy, 38%),
    rgba(246, 242, 232, 0.075),
    rgba(246, 242, 232, 0) 64%
  );
  font-size: 0;
  content: "";
  pointer-events: none;
  transition: opacity 0.5s ease;
  -webkit-text-stroke: 0;
}

.hero-meta {
  border-bottom-color: rgba(246, 242, 232, 0.24);
}

.hero .eyebrow {
  color: rgba(246, 242, 232, 0.55);
}

.hero-place {
  color: rgba(246, 242, 232, 0.7);
}

.hero-place span {
  color: rgba(246, 242, 232, 0.38);
}

.hero-title {
  color: var(--white);
  font-weight: 500;
  letter-spacing: -0.06em;
}

.hero-title-art {
  padding: clamp(28px, 4vw, 48px) 0 clamp(24px, 3.5vw, 42px);
  font-size: clamp(3.1rem, 5.2vw, 5rem);
  letter-spacing: -0.045em;
}

.hero-cn {
  letter-spacing: 0.035em;
}

.hero-art-line {
  display: flex;
  align-items: baseline;
  gap: 0.025em;
}

.hero-title-art .hero-art-line em {
  letter-spacing: 0.025em;
}

.hero-art-sub-line {
  margin-top: clamp(8px, 1vw, 14px);
  padding-left: clamp(10px, 3vw, 42px);
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
  line-height: 1.2;
}

.hero-art-sub-line > span {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 16px);
  color: rgba(246, 242, 232, 0.7);
  font-family: var(--serif);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0.32em;
  line-height: inherit;
}

.hero-art-sub-line > span::before {
  width: clamp(26px, 3.6vw, 62px);
  height: 1px;
  background: rgba(246, 242, 232, 0.45);
  content: "";
}

.hero-body {
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(30px, 4vw, 64px);
}

.hero-aside {
  justify-content: flex-start;
  gap: 30px;
  padding-top: 2px;
}

.hero-lead {
  max-width: 100%;
  font-size: clamp(12px, 1.02vw, 13.5px);
  line-height: 1.85;
  text-wrap: balance;
}

.hero-actions {
  gap: 20px;
}

.hero-actions .button {
  min-height: 42px;
  padding: 0 17px;
  font-size: 11.5px;
}

.hero-stats {
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
}

.hero-stats dd {
  font-size: 24px;
}

.hero-visual {
  min-height: 0;
  aspect-ratio: 16 / 10;
}

.hero-line em {
  color: #d2a17f;
}

.hero-line em::after {
  background: #d2a17f;
}

.hero-lead {
  color: rgba(246, 242, 232, 0.8);
  font-family: var(--serif);
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 400;
  line-height: 1.75;
}

.hero .button-dark {
  border-color: var(--white);
  background: var(--white);
  color: var(--forest);
}

.hero .button-dark:hover {
  border-color: #d2a17f;
  background: #d2a17f;
  color: var(--forest-deep);
}

.hero .text-link {
  color: rgba(246, 242, 232, 0.85);
  border-color: rgba(246, 242, 232, 0.45);
}

.hero .text-link:hover {
  background: transparent;
  color: var(--sage);
  border-color: var(--sage);
}

.hero-stats {
  border-top-color: rgba(246, 242, 232, 0.22);
}

.hero-stats dt {
  color: rgba(246, 242, 232, 0.45);
}

.hero-stats dd {
  color: var(--white);
  font-family: var(--serif);
  font-weight: 400;
}

.hero-visual {
  background: var(--forest-deep);
  box-shadow: 0 34px 80px rgba(15, 21, 16, 0.22);
}

.hero-visual img {
  filter: saturate(0.9) brightness(0.95);
  animation: hero-fade 1.4s var(--ease) both;
  transform: translate3d(calc(var(--hx, 0) * 9px), calc(var(--hy, 0) * 9px), 0) scale(1.035);
  transition:
    transform 0.7s var(--ease),
    filter 0.6s ease;
  will-change: transform;
}

@keyframes hero-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-visual::after {
  background: linear-gradient(180deg, rgba(22, 30, 23, 0.02) 48%, rgba(18, 25, 19, 0.56));
}

.hero-stamp {
  border-color: rgba(246, 242, 232, 0.34);
  background: rgba(48, 58, 50, 0.52);
  color: var(--white);
  transform: translate3d(calc(var(--hx, 0) * -5px), calc(var(--hy, 0) * -5px), 0);
  transition: transform 0.7s var(--ease);
}

.hero-visual figcaption {
  color: rgba(246, 242, 232, 0.72);
}

.chapter-nav {
  border-top-color: rgba(246, 242, 232, 0.42);
  border-bottom-color: rgba(246, 242, 232, 0.17);
}

.chapter-nav a {
  border-right-color: rgba(246, 242, 232, 0.17);
}

.chapter-nav a:hover {
  background: rgba(246, 242, 232, 0.055);
}

.chapter-no {
  color: rgba(246, 242, 232, 0.38);
}

.chapter-nav strong {
  color: var(--white);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.chapter-nav small {
  color: rgba(246, 242, 232, 0.43);
  font-family: var(--serif);
  font-size: 11px;
}

/* ---------- resources ---------- */

.section-resources {
  background: var(--paper);
}

.filter-button {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.filter-button.is-active {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

.resource-count,
.asset-meta,
.asset-foot-meta {
  font-family: var(--serif);
  letter-spacing: 0.08em;
}

.asset-title {
  font-weight: 500;
  letter-spacing: -0.015em;
}

.asset-media {
  background: var(--bg-deep);
}

.asset-card {
  transition: transform 0.55s var(--ease);
}

.asset-card:hover {
  transform: translateY(-5px);
}

.asset-hover {
  display: none;
}

.asset-badge {
  background: var(--sage);
  color: var(--forest-deep);
}

.asset-code {
  background: rgba(242, 238, 228, 0.94);
}

.asset-hover {
  background: rgba(48, 58, 50, 0.9);
}

.download-button {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* ---------- tutorials (dark olive) ---------- */

.section-tutorials {
  color: var(--white);
  border-top-color: rgba(246, 242, 232, 0.17);
  background: var(--forest);
}

.section-tutorials .section-index {
  color: rgba(246, 242, 232, 0.38);
}

.section-tutorials .eyebrow {
  color: rgba(246, 242, 232, 0.5);
}

.section-tutorials .section-heading h2 {
  color: var(--white);
}

.section-tutorials .section-intro {
  color: rgba(246, 242, 232, 0.68);
}

.section-tutorials .section-intro span {
  color: rgba(246, 242, 232, 0.4);
}

.tutorial-feature-slot {
  width: 100%;
}

.tutorial-feature {
  border-color: rgba(246, 242, 232, 0.32);
  background: var(--forest-deep);
}

.feature-media {
  border-right-color: rgba(246, 242, 232, 0.18);
}

.feature-play {
  border-color: rgba(246, 242, 232, 0.7);
  background: rgba(25, 33, 27, 0.28);
}

.feature-title {
  color: var(--white);
  font-weight: 500;
}

.feature-desc {
  color: rgba(246, 242, 232, 0.55);
  font-family: var(--serif);
  font-size: 13px;
}

.feature-meta {
  color: rgba(246, 242, 232, 0.4);
}

.workflow-strip {
  border-top-color: rgba(246, 242, 232, 0.36);
  border-bottom-color: rgba(246, 242, 232, 0.15);
}

.workflow-strip li {
  border-right-color: rgba(246, 242, 232, 0.15);
}

.workflow-strip span {
  color: #d2a17f;
}

.workflow-strip strong {
  color: var(--white);
  font-weight: 500;
}

.workflow-strip small {
  color: rgba(246, 242, 232, 0.42);
}

.tutorial-list {
  border-top-color: rgba(246, 242, 232, 0.45);
}

.tutorial-row {
  border-bottom-color: rgba(246, 242, 232, 0.15);
}

.tutorial-row:hover {
  background: rgba(246, 242, 232, 0.055);
}

.tutorial-row-index {
  color: rgba(246, 242, 232, 0.36);
}

.tutorial-row-type {
  color: #d8ac8d;
}

.tutorial-row-title {
  color: var(--white);
  font-weight: 500;
}

.tutorial-row:hover .tutorial-row-title {
  color: #d2a17f;
}

.tutorial-row-desc {
  color: rgba(246, 242, 232, 0.52);
  font-family: var(--serif);
  font-size: 13px;
}

.tutorial-row-meta {
  color: rgba(246, 242, 232, 0.36);
}

.tutorial-row-thumb {
  border: 1px solid rgba(246, 242, 232, 0.2);
  background: var(--forest-deep);
}

.tutorial-row-arrow {
  color: rgba(246, 242, 232, 0.6);
}

.tutorial-row:hover .tutorial-row-arrow {
  color: #d2a17f;
}

/* ---------- community ---------- */

.section-community {
  background: var(--paper);
}

.community-bar {
  border-top-color: var(--ink);
}

.community-text {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
}

.community-author {
  font-family: var(--serif);
  font-size: 13px;
}

.community-role,
.community-tag,
.community-time,
.like-button {
  font-family: var(--serif);
  letter-spacing: 0.06em;
}

.community-card {
  transition: transform 0.55s var(--ease);
}

.community-card:hover {
  transform: translateY(-4px);
}

/* ---------- services ---------- */

.section-services {
  border-top-color: rgba(246, 242, 232, 0.18);
  background: var(--forest-deep);
}

.services-top h2 {
  font-weight: 400;
  letter-spacing: -0.06em;
}

.services-lead {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(246, 242, 232, 0.62);
}

.service-copy strong,
.panel-head h3 {
  font-weight: 500;
}

.service-copy p,
.course-copy p {
  font-family: var(--serif);
  font-size: 12px;
}

.inline-cta strong {
  font-weight: 500;
}

.contact-card {
  background: var(--sage);
}

.contact-card .button {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
  color: var(--white);
}

.contact-card .button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ---------- footer ---------- */

.site-footer {
  border-top-color: rgba(246, 242, 232, 0.18);
  background: var(--forest-ink);
}

.footer-wordmark {
  color: var(--white);
  font-weight: 400;
  letter-spacing: -0.07em;
}

.footer-brand .eyebrow {
  color: rgba(246, 242, 232, 0.48);
}

.footer-links strong,
.footer-links button,
.footer-links a {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.footer-bottom {
  color: rgba(246, 242, 232, 0.32);
}

/* ---------- image motion ---------- */

.asset-media img,
.community-media img,
.tutorial-row-thumb img,
.services-visual img,
.feature-media img {
  transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(var(--img-scale, 1));
  transition:
    transform 0.85s var(--ease),
    filter 0.45s ease;
  will-change: transform;
}

.asset-card:hover .asset-media img {
  --img-scale: 1.045;
}

.community-card:hover .community-media img {
  --img-scale: 1.035;
}

.tutorial-row:hover .tutorial-row-thumb img {
  --img-scale: 1.04;
}

.tutorial-feature:hover .feature-media img {
  --img-scale: 1.025;
}

.services-visual:hover img {
  --img-scale: 1.035;
}

.cursor-cue {
  position: fixed;
  z-index: 1800;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(246, 242, 232, 0.65);
  border-radius: 50%;
  background: rgba(48, 58, 50, 0.24);
  color: var(--white);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.16em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.65);
  transition:
    opacity 0.2s ease,
    transform 0.32s var(--ease);
  backdrop-filter: blur(5px);
}

.cursor-cue.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ---------- responsive theme ---------- */

@media (max-width: 980px) {
  .main-nav {
    border-bottom-color: rgba(43, 51, 44, 0.6);
    background: var(--paper);
    color: var(--ink);
  }

  .main-nav a {
    color: var(--ink);
    font-size: 26px;
  }

  .main-nav a span {
    color: var(--muted);
  }

  .main-nav a:hover {
    color: var(--accent);
  }

  .hero-title {
    letter-spacing: -0.055em;
  }

  .hero-title-art {
    font-size: clamp(3.2rem, 7vw, 5rem);
  }

  .hero-body {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-visual {
    aspect-ratio: 16 / 10;
  }

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

  .section-intro {
    font-size: 13px;
  }
}

@media (max-width: 720px) {
  .brand-mark {
    font-size: 18px;
  }

  .brand-word strong {
    font-size: 19px;
  }

  .hero-title {
    font-size: clamp(3.6rem, 17vw, 6.6rem);
  }

  .hero-title-art {
    font-size: clamp(3.1rem, 15vw, 4.8rem);
    letter-spacing: -0.04em;
  }

  .hero-art-sub-line {
    margin-top: 10px;
    padding-left: 18px;
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .hero-art-sub-line > span {
    gap: 10px;
    font-size: inherit;
    letter-spacing: 0.28em;
  }

  .hero-visual {
    aspect-ratio: 4 / 5;
  }

  .hero-actions .button {
    min-height: 40px;
    padding: 0 15px;
    font-size: 11px;
  }

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

  .section-intro {
    font-family: var(--serif);
    font-size: 13px;
  }

  .chapter-nav strong {
    font-size: 18px;
  }

  .chapter-nav small {
    font-size: 10px;
  }

  .community-text {
    font-size: 14px;
  }

  .tutorial-row-desc {
    display: none;
  }

  .cursor-cue {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-cue {
    display: none;
  }

  .hero-visual img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual img,
  .asset-media img,
  .community-media img,
  .tutorial-row-thumb img,
  .services-visual img,
  .feature-media img {
    transform: none !important;
  }

  .cursor-cue {
    display: none;
  }
}

/* ---------- solo hero: one image + one line ---------- */

.hero-solo {
  max-width: none;
  padding: 22px clamp(14px, 2vw, 28px) 0;
}

.hero-stage {
  width: 100%;
  max-width: 1600px;
  height: clamp(440px, 66vh, 720px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--forest-deep);
}

.hero-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: brightness(0.84) saturate(0.82) contrast(1.04);
  animation: hero-fade 1.3s var(--ease) both;
  transform: translate3d(calc(var(--hx, 0) * 8px), calc(var(--hy, 0) * 8px), 0) scale(1.035);
  transition:
    transform 0.8s var(--ease),
    filter 0.6s ease;
  will-change: transform;
}

.hero-solo:hover .hero-stage img {
  filter: brightness(0.9) saturate(0.9) contrast(1.03);
}

.hero-caption {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(24px, 3.2vw, 40px) 0 clamp(26px, 3.6vw, 42px);
  text-align: center;
}

.hero-solo .hero-title-centered {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(12px, 1.8vw, 24px);
  padding: 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.1;
  white-space: nowrap;
}

.hero-en {
  letter-spacing: 0.055em;
}

.hero-aicg {
  color: rgba(246, 242, 232, 0.56);
  font-family: var(--serif);
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.32em;
  line-height: 1;
}

@media (max-width: 720px) {
  .hero-solo {
    padding: 12px 12px 0;
  }

  .hero-stage {
    height: clamp(360px, 62svh, 560px);
  }

  .hero-stage img {
    object-position: 10% 55%;
  }

  .hero-caption {
    padding: 22px 0 26px;
  }

  .hero-solo .hero-title-centered {
    gap: 8px;
    font-size: clamp(1.7rem, 7.6vw, 2.35rem);
    letter-spacing: 0.01em;
  }

  .hero-aicg {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
  }
}

/* ---------- 账号登录 / 注册 ---------- */

.modal-login .login-layout-single {
  grid-template-columns: 1fr;
  min-height: 0;
}

.modal-login {
  width: min(calc(100% - 36px), 660px);
}

.login-layout-single .login-copy {
  padding: 46px clamp(24px, 4vw, 52px) 40px;
  border: 0;
}

.account-tabs {
  display: flex;
  gap: 26px;
  margin: 26px 0 4px;
  border-bottom: 1px solid rgba(23, 22, 19, 0.14);
}

.account-tabs button {
  padding: 0 0 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.account-tabs button.is-active {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}

.account-form .field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
}

.account-form .field input:focus {
  box-shadow: inset 0 0 0 1px var(--accent);
}

.account-form .button {
  margin-top: 22px;
}

/* ---------- 首页视频 ---------- */

.hero-stage {
  position: relative;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: brightness(0.86) saturate(0.85) contrast(1.04);
}

/* ---------- 分段文案 ---------- */

.section-intro > .intro-text,
.section-tutorials .section-intro > .intro-text {
  display: block;
  font-family: var(--serif);
  font-size: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.section-intro > .intro-hint,
.section-tutorials .section-intro > .intro-hint {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.02em;
}

/* ---------- B 站嵌入式播放器 ---------- */

.bili-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.bili-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 下载配额 ---------- */

.download-quota {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.download-quota strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- dark resource section ---------- */

.resources-home {
  color: var(--white);
  border-top-color: rgba(246, 242, 232, 0.16);
  background: #141514;
}

.resources-home .section-index {
  color: rgba(246, 242, 232, 0.34);
}

.resources-home .eyebrow {
  color: rgba(246, 242, 232, 0.48);
}

.resources-home .section-heading h2 {
  color: var(--white);
}

.resources-home .section-intro {
  color: rgba(246, 242, 232, 0.62);
}

.resources-home .section-intro span {
  color: rgba(246, 242, 232, 0.36);
}

.resources-home .resource-toolbar {
  border-top-color: rgba(246, 242, 232, 0.38);
  border-bottom-color: rgba(246, 242, 232, 0.15);
}

.resources-home .filter-button {
  color: rgba(246, 242, 232, 0.55);
}

.resources-home .filter-button:hover {
  border-color: rgba(246, 242, 232, 0.3);
  color: var(--white);
}

.resources-home .filter-button.is-active {
  border-color: var(--white);
  background: var(--white);
  color: #141514;
}

.resources-home .resource-count {
  color: rgba(246, 242, 232, 0.42);
}

.resources-home .resource-count span {
  color: var(--white);
}

.resources-home .resource-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 30px clamp(10px, 1.3vw, 18px);
  padding-top: 26px;
}

.resources-home .asset-card,
.resources-home .asset-card:nth-child(2),
.resources-home .asset-card:nth-child(5) {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.resources-home .asset-card:hover {
  transform: translateY(-3px);
}

.resources-home .asset-media {
  aspect-ratio: 1 / 1;
  background: #222;
}

.resources-home .asset-media img {
  filter: brightness(0.9) saturate(0.82);
}

.resources-home .asset-card:hover .asset-media img {
  filter: brightness(1) saturate(0.95);
}

.resources-home .asset-code {
  top: 7px;
  left: 7px;
  padding: 3px 5px;
  background: rgba(20, 21, 20, 0.72);
  color: rgba(246, 242, 232, 0.8);
  font-size: 6.5px;
  backdrop-filter: blur(6px);
}

.resources-home .asset-badge {
  top: 7px;
  right: 7px;
  padding: 3px 5px;
  background: var(--sage);
  color: #141514;
  font-size: 6.5px;
}

.resources-home .asset-meta {
  margin-top: 9px;
  color: rgba(246, 242, 232, 0.38);
  font-size: 7.5px;
}

.resources-home .asset-title {
  margin-top: 5px;
  color: var(--white);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
}

.resources-home .asset-desc,
.resources-home .asset-tags {
  display: none;
}

.resources-home .asset-footer {
  margin-top: 9px;
  padding-top: 7px;
  border-top: 0;
}

.resources-home .asset-foot-meta {
  color: rgba(246, 242, 232, 0.38);
  font-size: 7px;
}

.resources-home .download-button {
  min-height: 28px;
  padding: 0 8px;
  border-color: rgba(246, 242, 232, 0.4);
  color: var(--white);
  font-size: 9px;
}

.resources-home .download-button:hover {
  background: var(--white);
  color: #141514;
}

.resources-home .section-foot {
  border-top-color: rgba(246, 242, 232, 0.15);
}

.resources-home .section-foot p {
  color: rgba(246, 242, 232, 0.36);
}

.resource-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(246, 242, 232, 0.45);
  color: var(--white);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.resource-more:hover {
  color: var(--sage);
  border-color: var(--sage);
}

.resource-more span {
  font-size: 12px;
}

@media (max-width: 1240px) {
  .resources-home .resource-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .resources-home .resource-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .resources-home .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 12px;
  }

  .resources-home .asset-title {
    font-size: 16px;
  }

  .resource-more {
    font-size: 14px;
  }
}

@media (max-width: 440px) {
  .resources-home .resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .resources-home .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resources-home .asset-title {
    font-size: 14px;
  }

  .resources-home .asset-meta {
    font-size: 6.5px;
  }

  .resources-home .asset-foot-meta {
    font-size: 6.5px;
  }

  .resources-home .download-button {
    padding: 0 6px;
    font-size: 8px;
  }
}

/* ---------- infinite progress: black-gray tutorial section ---------- */

.section-tutorials {
  color: var(--white);
  border-top-color: rgba(246, 242, 232, 0.14);
  background: #141514;
}

.section-tutorials .section-index {
  color: rgba(246, 242, 232, 0.32);
}

.section-tutorials .eyebrow {
  color: rgba(246, 242, 232, 0.46);
}

.section-tutorials .section-heading h2 {
  color: var(--white);
}

.section-tutorials .section-intro {
  color: rgba(246, 242, 232, 0.56);
  font-size: 14px;
}

.section-tutorials .section-intro span {
  color: rgba(246, 242, 232, 0.52);
}

.tutorial-feature {
  border-color: rgba(246, 242, 232, 0.24);
  background: #1a1b1a;
}

.feature-media {
  border-right-color: rgba(246, 242, 232, 0.16);
}

.feature-media img {
  filter: saturate(0.82) brightness(0.78);
}

.feature-title {
  color: var(--white);
}

.feature-desc {
  color: rgba(246, 242, 232, 0.52);
}

.workflow-strip {
  border-top-color: rgba(246, 242, 232, 0.28);
  border-bottom-color: rgba(246, 242, 232, 0.13);
}

.workflow-strip li {
  border-right-color: rgba(246, 242, 232, 0.13);
}

.workflow-strip strong {
  color: var(--white);
}

.workflow-strip small {
  color: rgba(246, 242, 232, 0.36);
}

.tutorial-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(34px, 4vw, 56px) clamp(16px, 2vw, 28px);
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 0;
}

.tutorial-card {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  padding: 12px 0 0;
  border-top: 1px solid rgba(246, 242, 232, 0.24);
  color: var(--white);
  text-align: left;
  transition: transform 0.4s var(--ease);
}

.tutorial-card:hover {
  transform: translateY(-4px);
}

.tutorial-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(246, 242, 232, 0.18);
  background: #202120;
}

.tutorial-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  filter: brightness(0.88) saturate(0.82);
  transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(var(--img-scale, 1));
  transition:
    transform 0.8s var(--ease),
    filter 0.45s ease;
  will-change: transform;
}

.tutorial-card:hover .tutorial-card-media img {
  --img-scale: 1.04;
  filter: brightness(1) saturate(0.95);
}

.tutorial-card-media .video-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(20, 21, 20, 0.34);
  color: var(--white);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(5px);
}

.tutorial-card-media .video-mark svg {
  width: 10px;
  margin-left: 2px;
}

.tutorial-card-index {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 3px 5px;
  background: rgba(20, 21, 20, 0.66);
  color: rgba(246, 242, 232, 0.8);
  font-family: var(--serif);
  font-size: 7px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(5px);
}

.tutorial-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 13px;
}

.tutorial-card .tutorial-row-type {
  color: #d8ac8d;
}

.tutorial-card-title {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.tutorial-card:hover .tutorial-card-title {
  color: #d2a17f;
}

.tutorial-card-desc {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: rgba(246, 242, 232, 0.46);
  font-family: var(--serif);
  font-size: 11.5px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tutorial-card .tutorial-row-meta {
  color: rgba(246, 242, 232, 0.3);
}

.tutorial-card-arrow {
  position: absolute;
  right: 0;
  bottom: 2px;
  color: rgba(246, 242, 232, 0.45);
  font-size: 14px;
  transition: color 0.2s ease;
}

.tutorial-card:hover .tutorial-card-arrow {
  color: #d2a17f;
}

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

@media (max-width: 980px) {
  .tutorial-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .tutorial-list {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .tutorial-card-title {
    font-size: 21px;
  }

  .tutorial-card-desc {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tutorial-card-media img {
    transform: none !important;
  }
}

/* ---------- tutorial horizontal carousel ---------- */

.tutorial-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(38px, 4.5vw, 58px);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(246, 242, 232, 0.18);
}

.tutorial-carousel-hint {
  color: rgba(246, 242, 232, 0.46);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.tutorial-carousel-hint span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.25s var(--ease);
}

.tutorial-carousel-hint:hover span {
  transform: translateX(4px);
}

.tutorial-carousel-controls {
  display: flex;
  gap: 7px;
}

.tutorial-carousel-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(246, 242, 232, 0.3);
  color: var(--white);
  font-size: 15px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.tutorial-carousel-button:hover:not(:disabled) {
  border-color: var(--white);
  background: var(--white);
  color: #141514;
}

.tutorial-carousel-button:disabled {
  opacity: 0.22;
  pointer-events: none;
}

.tutorial-carousel {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

.tutorial-carousel::-webkit-scrollbar {
  display: none;
}

.tutorial-carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.tutorial-carousel .tutorial-list {
  display: flex;
  width: max-content;
  grid-template-columns: none;
  gap: 24px;
  margin: 0;
  padding: 22px 0 8px;
  border: 0;
}

.tutorial-carousel .tutorial-card {
  flex: 0 0 clamp(300px, 30vw, 430px);
  scroll-snap-align: start;
}

.tutorial-carousel-progress {
  position: relative;
  width: 100%;
  height: 1px;
  margin-top: 14px;
  overflow: hidden;
  background: rgba(246, 242, 232, 0.15);
}

.tutorial-carousel-progress span {
  display: block;
  width: 10%;
  height: 100%;
  background: var(--sage);
  transition: width 0.18s linear;
}

@media (max-width: 720px) {
  .tutorial-carousel-head {
    margin-top: 30px;
  }

  .tutorial-carousel-controls {
    display: none;
  }

  .tutorial-carousel .tutorial-list {
    gap: 14px;
    padding-top: 16px;
  }

  .tutorial-carousel .tutorial-card {
    flex-basis: 84vw;
  }

  .tutorial-carousel-hint {
    font-size: 11px;
  }
}

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

  .tutorial-carousel-progress span {
    transition: none;
  }
}

/* featured tutorial: explicit two-line copy */
.feature-title {
  max-width: 430px;
  font-size: clamp(1.7rem, 2.25vw, 2.2rem);
  font-weight: 400;
  line-height: 1.32;
  white-space: pre-line;
}

/* ---------- student case carousel: 2 x 3 pages ---------- */

.community-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.community-carousel-hint {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.community-carousel-hint span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.25s var(--ease);
}

.community-carousel-hint:hover span {
  transform: translateX(4px);
}

.community-carousel-controls {
  display: flex;
  gap: 7px;
}

.community-carousel-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 15px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.community-carousel-button:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
}

.community-carousel-button:disabled {
  opacity: 0.25;
  pointer-events: none;
}

.community-carousel {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

.community-carousel::-webkit-scrollbar {
  display: none;
}

.community-carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.community-pages {
  display: flex;
  width: 100%;
  gap: 28px;
}

.community-page {
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 24px;
  align-content: start;
  padding-top: 28px;
  scroll-snap-align: start;
}

.community-page .community-card,
.community-page .community-card:nth-child(even) {
  margin-top: 0;
  transform: none;
}

.community-page .community-card:hover {
  transform: translateY(-4px);
}

.community-page .community-media {
  aspect-ratio: 16 / 10;
}

.community-page .community-media img {
  pointer-events: none;
  -webkit-user-drag: none;
}

.community-page .community-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.community-carousel-progress {
  width: 100%;
  height: 1px;
  margin-top: 12px;
  overflow: hidden;
  background: var(--line);
}

.community-carousel-progress span {
  display: block;
  width: 10%;
  height: 100%;
  background: var(--ink);
  transition: width 0.18s linear;
}

@media (max-width: 720px) {
  .community-carousel-controls {
    display: none;
  }

  .community-pages {
    gap: 14px;
  }

  .community-page {
    gap: 22px 12px;
    padding-top: 20px;
  }

  .community-page .community-media {
    aspect-ratio: 4 / 3;
  }

  .community-page .community-head {
    gap: 6px;
  }

  .community-page .community-role,
  .community-page .community-tag {
    display: none;
  }

  .community-page .community-avatar {
    width: 24px;
    height: 24px;
    font-size: 7px;
  }

  .community-page .community-author {
    font-size: 9px;
  }

  .community-page .community-text {
    margin-top: 8px;
    font-size: 10.5px;
    line-height: 1.6;
    -webkit-line-clamp: 4;
  }

  .community-page .community-footer {
    gap: 7px;
    margin-top: 10px;
    padding-top: 8px;
  }

  .community-page .community-time {
    font-size: 6.5px;
  }

  .community-page .like-button {
    font-size: 7px;
  }

  .community-carousel-hint {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .community-carousel-progress span {
    transition: none;
  }
}

.tutorial-carousel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
}

.tutorial-carousel-foot > span {
  color: rgba(246, 242, 232, 0.3);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.tutorial-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(246, 242, 232, 0.45);
  color: var(--white);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.05em;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.tutorial-more:hover {
  color: #d2a17f;
  border-color: #d2a17f;
}

.tutorial-more span {
  font-size: 12px;
}

@media (max-width: 720px) {
  .tutorial-carousel-foot {
    margin-top: 12px;
  }

  .tutorial-more {
    font-size: 13px;
  }
}

.tutorial-article-head h2 {
  white-space: pre-line;
}

/* ---------- dark student case community ---------- */

.section-community {
  color: var(--white);
  border-top-color: rgba(246, 242, 232, 0.14);
  background: #141514;
}

.section-community .section-index {
  color: rgba(246, 242, 232, 0.32);
}

.section-community .eyebrow {
  color: rgba(246, 242, 232, 0.46);
}

.section-community .section-heading h2 {
  color: var(--white);
}

.section-community .section-intro {
  color: rgba(246, 242, 232, 0.58);
}

.section-community .section-intro span {
  color: rgba(246, 242, 232, 0.58);
}

.section-community .community-bar {
  border-top-color: rgba(246, 242, 232, 0.32);
  border-bottom-color: rgba(246, 242, 232, 0.15);
}

.section-community .community-note p {
  color: rgba(246, 242, 232, 0.46);
}

.section-community .live-dot {
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(201, 210, 194, 0.12);
}

.section-community .community-actions .button-dark {
  border-color: var(--white);
  background: var(--white);
  color: #141514;
}

.section-community .community-actions .button-dark:hover {
  border-color: var(--sage);
  background: var(--sage);
}

.section-community .community-actions .button-outline {
  border-color: rgba(246, 242, 232, 0.45);
  color: var(--white);
}

.section-community .community-actions .button-outline:hover {
  background: var(--white);
  color: #141514;
}

.section-community .commission-strip {
  border-bottom-color: rgba(246, 242, 232, 0.15);
}

.section-community .commission-lead {
  color: rgba(246, 242, 232, 0.46);
}

.section-community .commission-lead b {
  color: var(--white);
}

.section-community .commission-facts li {
  border-left-color: rgba(246, 242, 232, 0.18);
}

.section-community .commission-facts strong {
  color: var(--white);
}

.section-community .commission-facts small {
  color: rgba(246, 242, 232, 0.34);
}

.section-community .community-carousel-head {
  border-bottom-color: rgba(246, 242, 232, 0.16);
}

.section-community .community-carousel-hint {
  color: rgba(246, 242, 232, 0.46);
}

.section-community .community-carousel-button {
  border-color: rgba(246, 242, 232, 0.3);
  color: var(--white);
}

.section-community .community-carousel-button:hover:not(:disabled) {
  background: var(--white);
  color: #141514;
}

.section-community .community-carousel-progress {
  background: rgba(246, 242, 232, 0.15);
}

.section-community .community-carousel-progress span {
  background: var(--sage);
}

.section-community .community-page .community-card {
  border-top-color: rgba(246, 242, 232, 0.24);
}

.section-community .community-media {
  background: #202120;
}

.section-community .community-media img {
  filter: brightness(0.88) saturate(0.82);
}

.section-community .community-page .community-card:hover .community-media img {
  filter: brightness(1) saturate(0.95);
}

.section-community .community-avatar {
  background: var(--white);
  color: #141514;
}

.section-community .community-author {
  color: var(--white);
}

.section-community .community-role,
.section-community .community-time {
  color: rgba(246, 242, 232, 0.36);
}

.section-community .community-tag {
  border-color: rgba(246, 242, 232, 0.18);
  color: rgba(246, 242, 232, 0.42);
}

.section-community .community-text {
  color: rgba(246, 242, 232, 0.8);
}

.section-community .community-footer {
  border-top-color: rgba(246, 242, 232, 0.14);
}

.section-community .like-button {
  color: rgba(246, 242, 232, 0.46);
}

.section-community .like-button:hover,
.section-community .like-button.is-liked {
  color: #d2a17f;
}

.section-community .community-mine {
  color: #d2a17f;
}

.section-community .community-empty {
  border-top-color: rgba(246, 242, 232, 0.15);
  color: rgba(246, 242, 232, 0.45);
}

.community-carousel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
}

.community-carousel-foot > span {
  color: rgba(246, 242, 232, 0.3);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.community-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(246, 242, 232, 0.45);
  color: var(--white);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.05em;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.community-more:hover {
  color: #d2a17f;
  border-color: #d2a17f;
}

.community-more span {
  font-size: 12px;
}

@media (max-width: 720px) {
  .community-carousel-foot {
    margin-top: 10px;
  }

  .community-more {
    font-size: 13px;
  }
}

/* clean tutorial carousel chrome */
.tutorial-carousel-head-clean {
  justify-content: flex-end;
  margin-top: clamp(30px, 4vw, 50px);
  padding-bottom: 0;
  border-bottom: 0;
}

.tutorial-carousel-foot {
  justify-content: flex-end;
  margin-top: 18px;
}

/* remove card separator lines in student case sections */
.section-community .community-page .community-card,
.section-community .community-page .community-card:nth-child(even) {
  border-top: 0;
  padding-top: 0;
}

.section-community .community-page .community-footer {
  border-top: 0;
}

.cases-page .case-card {
  border-top: 0;
  padding-top: 0;
}

/* compact services title */
.section-services .services-top h2 {
  font-size: clamp(3.5rem, 7.2vw, 7.2rem);
  letter-spacing: -0.075em;
}


/* services heading: quieter dark treatment */
.section-services .services-top h2 {
  font-size: clamp(2.8rem, 4.6vw, 4.4rem);
  letter-spacing: -0.05em;
  color: #66685e;
}



/* artistic display face for section headings */
@font-face {
  font-family: "ZCOOL XiaoWei";
  src: url("/assets/fonts/zcool-xiaowei-subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.section-heading h2,
.services-top h2,
.resources-title-row h1,
.tutorials-title-row h1,
.cases-title-row h1 {
  font-family: "ZCOOL XiaoWei", var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
}

/* ---------- membership + paid content ---------- */

.user-membership {
  margin: 2px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 9px;
}

.user-membership.is-active {
  color: var(--accent);
}

.modal-member {
  width: min(calc(100% - 32px), 780px);
}

.member-panel {
  padding: clamp(28px, 4vw, 48px);
}

.member-head h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.member-lead {
  max-width: 34em;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.8;
}

.member-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.member-plan {
  padding: 22px;
  border: 1px solid var(--line);
}

.member-plan.is-featured {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.member-plan .eyebrow {
  color: var(--muted);
  font-size: 8px;
}

.member-plan.is-featured .eyebrow {
  color: rgba(246, 242, 232, 0.5);
}

.member-plan h3 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
}

.plan-price {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 2.8rem;
  letter-spacing: -0.04em;
}

.plan-price span {
  font-size: 11px;
  letter-spacing: 0;
}

.plan-note {
  margin: 6px 0 20px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 10px;
}

.member-plan.is-featured .plan-note {
  color: rgba(246, 242, 232, 0.55);
}

.member-plan.is-featured .button-dark {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.member-redeem {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.redeem-form {
  display: flex;
  gap: 8px;
}

.redeem-form input {
  flex: 1;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.member-status {
  min-height: 16px;
  color: var(--accent);
  font-size: 10px;
}

.member-orders {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.member-orders ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.member-orders li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 60px;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 10px;
}

.member-orders li em {
  font-style: normal;
  text-align: right;
}

.order-paid { color: #5d7a55; }
.order-pending { color: var(--accent); }
.order-cancelled { color: var(--muted); }

.checkout-card {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
}

.checkout-card > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.checkout-card span {
  color: var(--muted);
  font-size: 10px;
}

.checkout-card strong {
  font-family: var(--serif);
  font-size: 12px;
}

.checkout-price {
  font-size: 2.2rem !important;
  letter-spacing: -0.04em;
}

.checkout-qrs {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}

.checkout-qrs figure {
  margin: 0;
  text-align: center;
}

.checkout-qrs img {
  width: 130px;
  height: 130px;
  border: 1px solid var(--line);
  object-fit: contain;
}

.checkout-qrs figcaption {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.checkout-note,
.member-fineprint {
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.7;
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tutorial-lock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 5px 9px;
  background: #d2a17f;
  color: #141514;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.tutorial-price-inline {
  color: #d2a17f;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.is-locked-media {
  position: relative;
}

.is-locked-media img {
  filter: brightness(0.45) saturate(0.7);
}

.media-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  color: var(--white);
  text-align: center;
}

.media-lock span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.media-lock strong {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
}

.tutorial-paywall {
  margin: 30px 0 0;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(43, 51, 44, 0.04);
}

.tutorial-paywall h3 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
}

.tutorial-paywall p {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.8;
}

.tutorial-download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.tutorial-download-row span {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 9px;
}

.asset-badge.is-paid {
  background: #d2a17f;
  color: #141514;
}

.download-button.is-locked {
  border-color: #d2a17f;
  color: #d2a17f;
}

@media (max-width: 640px) {
  .member-plans {
    grid-template-columns: 1fr;
  }

  .member-orders li {
    grid-template-columns: minmax(0, 1fr) 50px;
  }

  .member-orders li em {
    display: none;
  }
}

/* multi-image post composer */
.post-preview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.post-preview-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  margin: 0;
  background: var(--bg-deep);
}

.post-preview-item img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.post-preview-item button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  background: rgba(20, 21, 20, 0.82);
  color: var(--white);
  font-size: 14px;
  cursor: pointer;
}

.post-preview-item figcaption {
  position: absolute;
  bottom: 5px;
  left: 6px;
  color: var(--white);
  font-family: var(--mono);
  font-size: 7px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.community-card { cursor: pointer; }
a.community-author {
  color: var(--white);
  text-decoration: none;
}
a.community-author:hover { color: #d2a17f; }

/* ---------- courses / commission as two categories ---------- */

.offer-category {
  margin-top: clamp(46px, 6vw, 84px);
}

.offer-category-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 30px;
  align-items: end;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(246, 242, 232, 0.22);
}

.offer-category-head h3 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.offer-category-head > p {
  max-width: 370px;
  padding-bottom: 5px;
  color: rgba(246, 242, 232, 0.5);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.8;
}

.offer-showcase {
  margin-top: 28px;
}

.services-main .course-list {
  margin-top: 0;
  border-top: 1px solid rgba(251, 248, 242, 0.34);
}

.studio-grid-single {
  grid-template-columns: 1fr;
}

.studio-grid-single .process-panel {
  width: 100%;
}

@media (max-width: 900px) {
  .offer-category-head {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .offer-category-head > p {
    max-width: 540px;
  }
}

@media (max-width: 720px) {
  .offer-category {
    margin-top: 38px;
  }

  .offer-category-head h3 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }
}

/* editable process / price image */
.process-image {
  margin: 26px 0 0;
  overflow: hidden;
  background: #101110;
}

.process-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* course detail stack */
.offer-category-first {
  margin-top: 0;
}

.course-intro {
  max-width: 980px;
}

.course-gallery {
  display: grid;
  gap: clamp(18px, 2.5vw, 30px);
  margin-top: clamp(30px, 4vw, 52px);
}

.course-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(246, 242, 232, 0.12);
  background: #0f100f;
}

.course-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.course-gallery figure.is-portrait {
  width: min(100%, 820px);
  margin: 0 auto;
}

@media (max-width: 720px) {
  .course-gallery {
    gap: 14px;
    margin-top: 24px;
  }
}

.section-services {
  padding-top: clamp(48px, 6vw, 78px);
}

.process-image { background: transparent; }

/* larger contact block */
.contact-card > p:first-child {
  font-size: 22.5px;
}

.contact-wechat {
  gap: 3px;
  font-size: 24px;
}

.contact-wechat b {
  font-size: 36px;
}

.contact-hint {
  margin-top: 24px;
  padding-top: 18px;
  font-size: 24px;
}

.contact-card .button {
  min-height: 54px;
  padding: 0 20px;
  font-size: 27px;
}

@media (max-width: 720px) {
  .contact-card > p:first-child { font-size: 16px; }
  .contact-wechat { font-size: 16px; }
  .contact-wechat b { font-size: 24px; }
  .contact-hint { font-size: 16px; }
  .contact-card .button { min-height: 44px; font-size: 18px; }
}

/* course offers: text cards + click-to-zoom */
.course-offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  margin-top: clamp(28px, 4vw, 48px);
}

.course-offer {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(246, 242, 232, 0.2);
  background: rgba(12, 13, 12, 0.12);
  cursor: zoom-in;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.course-offer:hover,
.course-offer:focus-visible {
  border-color: rgba(246, 242, 232, 0.5);
  background: rgba(12, 13, 12, 0.2);
  outline: none;
}

.course-offer h4 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.course-offer h4 span {
  color: rgba(246, 242, 232, 0.55);
  font-size: 0.72em;
}

.course-price-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.course-price-chips span {
  padding: 5px 8px;
  border: 1px solid rgba(210, 161, 127, 0.45);
  color: rgba(246, 242, 232, 0.72);
  font-size: 9px;
  white-space: nowrap;
}

.course-price-chips b {
  color: #d2a17f;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.course-offer-points {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(246, 242, 232, 0.62);
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.75;
}

.course-offer-points li {
  position: relative;
  padding-left: 12px;
}

.course-offer-points li + li {
  margin-top: 5px;
}

.course-offer-points li::before {
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d2a17f;
  content: "";
}

.course-compare-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.course-compare {
  width: 100%;
  border-collapse: collapse;
  color: rgba(246, 242, 232, 0.68);
  font-family: var(--serif);
  font-size: 8.5px;
  line-height: 1.55;
}

.course-compare th,
.course-compare td {
  padding: 7px 6px;
  border-bottom: 1px solid rgba(246, 242, 232, 0.15);
  text-align: left;
  vertical-align: top;
}

.course-compare th {
  color: rgba(246, 242, 232, 0.82);
  font-weight: 400;
}

.course-compare th b {
  color: #d2a17f;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
}

.course-offer-foot {
  margin-top: 10px;
  color: rgba(246, 242, 232, 0.4);
  font-family: var(--serif);
  font-size: 8px;
  text-align: center;
}

.course-offer-zoom {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  color: rgba(246, 242, 232, 0.45);
  font-family: var(--serif);
  font-size: 9px;
}

.course-team-figure {
  width: min(100%, 820px);
  margin: clamp(26px, 3.5vw, 46px) auto 0;
  overflow: hidden;
  border: 1px solid rgba(246, 242, 232, 0.14);
  background: #0f100f;
}

.course-team-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.modal-course-zoom {
  width: min(calc(100% - 32px), 1250px);
  max-height: 92vh;
  padding: 0;
}

.course-zoom-body {
  max-height: 92vh;
  padding: clamp(20px, 3vw, 36px);
  overflow: auto;
}

.course-zoom-body .eyebrow {
  color: var(--muted);
}

.course-zoom-body img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .course-offers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .course-offer {
    padding: 16px;
  }

  .course-compare {
    font-size: 8px;
  }

  .course-compare th,
  .course-compare td {
    padding: 6px 4px;
  }
}

/* readable sizing for compact course cards */
.course-offer h4 {
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
}

.course-price-chips span {
  font-size: 10.5px;
}

.course-price-chips b {
  font-size: 18px;
}

.course-offer-points {
  font-size: 11.5px;
  line-height: 1.8;
}

.course-compare {
  font-size: 10.5px;
  line-height: 1.65;
}

.course-compare th b {
  font-size: 15px;
}

.course-compare th,
.course-compare td {
  padding: 8px 7px;
}

@media (max-width: 720px) {
  .course-offer-points { font-size: 10.5px; }
  .course-compare { font-size: 9.5px; }
}

.course-team-figure {
  width: min(100%, 560px);
  cursor: zoom-in;
}

.course-team-figure figcaption {
  padding: 9px 12px;
  border-top: 1px solid rgba(246, 242, 232, 0.12);
  color: rgba(246, 242, 232, 0.45);
  font-family: var(--serif);
  font-size: 9px;
  text-align: right;
}

/* prices use the same normal text style */
.course-price-chips span {
  font-family: var(--serif);
  font-size: 11px;
  color: rgba(246, 242, 232, 0.68);
}

.course-price-chips b {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
}

.course-compare th,
.course-compare th b {
  color: rgba(246, 242, 232, 0.75);
  font-family: var(--serif);
  font-size: 10.5px;
  font-weight: 400;
}

.course-price-chips span { font-size: 11.5px; }
.course-offer-points { font-size: 12px; }
.course-compare, .course-compare th, .course-compare th b { font-size: 11.5px; }

/* FangZheng numerals for the course area */
@font-face {
  font-family: "FZ FangSong Numbers";
  src: url("/assets/fonts/fz-fangsong-digits.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+30-39, U+2E, U+2C, U+3A, U+2F, U+2B, U+2D;
}

.course-price-chips,
.course-compare,
.course-offer-points,
.course-list,
.course-list .course-no,
.course-list .course-copy small,
.course-list .course-status {
  font-family: "FZ FangSong Numbers", var(--serif);
}

.course-compare th b,
.course-offer h4 span,
.course-offer-foot {
  font-family: inherit;
}

/* red-boxed prices: NSimSun, slightly larger */
.course-price-chips span,
.course-price-chips b,
.course-compare th b {
  font-family: "NSimSun", "SimSun", "Songti SC", serif;
  font-size: 13px;
  font-weight: 400;
}

/* content metrics on covers */
.cover-stats {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  align-items: center;
  padding: 16px 8px 7px;
  background: linear-gradient(to top, rgba(10, 11, 10, 0.78), rgba(10, 11, 10, 0));
  color: rgba(246, 242, 232, 0.68);
  font-family: var(--serif);
  font-size: 7px;
  line-height: 1.3;
  pointer-events: none;
}

.cover-heat {
  color: #d2a17f;
}

@media (max-width: 720px) {
  .cover-stats {
    gap: 4px 7px;
    padding: 12px 6px 5px;
    font-size: 6.5px;
  }
}

.content-engagement {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.engagement-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11px;
  cursor: pointer;
}

.engagement-button b {
  color: var(--ink);
  font-weight: 400;
}

.engagement-button:hover,
.engagement-button.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.engagement-button.is-active b {
  color: var(--accent);
}

.community-media,
.case-media {
  position: relative;
}

/* user center: favorites */
.modal-favorites {
  width: min(calc(100% - 32px), 820px);
  max-height: 88vh;
}

.favorites-panel {
  padding: clamp(26px, 4vw, 42px);
}

.favorites-panel h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.05em;
}

.favorites-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.favorites-tabs .filter-button {
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.favorites-tabs .filter-button.is-active {
  background: var(--ink);
  color: var(--paper);
}

.favorites-list {
  max-height: 52vh;
  margin-top: 8px;
  overflow-y: auto;
}

.favorite-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.favorite-item > img {
  width: 96px;
  height: 68px;
  object-fit: cover;
  background: var(--bg-deep);
}

.favorite-type {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.favorite-copy h3 {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
}

.favorite-copy p {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 8px;
}

.favorite-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.favorite-actions button {
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 8px;
  cursor: pointer;
}

.favorite-actions button.danger {
  color: var(--accent);
}

.favorites-empty {
  padding: 30px 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 640px) {
  .favorite-item {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .favorite-item > img {
    width: 68px;
    height: 54px;
  }

  .favorite-actions {
    flex-direction: row;
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

/* slightly larger cover metrics */
.cover-stats {
  gap: 4px 8px;
  padding: 18px 8px 8px;
  font-size: 9px;
}

.favorite-copy p {
  font-size: 9px;
}

@media (max-width: 720px) {
  .cover-stats {
    gap: 4px 6px;
    font-size: 7.5px;
  }
}

/* cover metrics: two-column layout for readability */
.cover-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 8px;
  padding: 20px 8px 7px;
  font-size: 9.5px;
}

.cover-heat {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .cover-stats {
    gap: 2px 6px;
    padding: 16px 6px 5px;
    font-size: 8px;
  }
}

.cover-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 10px;
  padding: 18px 8px 7px;
  background: linear-gradient(to top, rgba(10, 11, 10, 0.86), rgba(10, 11, 10, 0));
  color: rgba(246, 242, 232, 0.82);
  font-size: 10px;
}

.cover-heat {
  grid-column: auto;
}

@media (max-width: 720px) {
  .cover-stats {
    gap: 2px 6px;
    font-size: 8.5px;
  }
}

.checkout-qr-empty {
  margin-top: 18px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.7;
}

.checkout-qr-empty b {
  color: var(--ink);
  font-weight: 500;
}

/* course plan selection + delivery */
.modal-course-plan {
  width: min(calc(100% - 32px), 760px);
}

.course-plan-panel {
  padding: clamp(26px, 4vw, 44px);
}

.course-plan-head h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.course-plan-head > p:last-child {
  max-width: 38em;
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.8;
}

.course-plan-options {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.course-plan-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 14px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.course-plan-option:hover {
  background: var(--ink);
  color: var(--paper);
}

.course-plan-option > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.course-plan-option strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
}

.course-plan-option small {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 9px;
}

.course-plan-option:hover small {
  color: rgba(246, 242, 232, 0.55);
}

.course-plan-option > b {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
}

.course-plan-option:hover > b {
  color: #d2a17f;
}

.course-plan-arrow {
  font-size: 13px;
}

.modal-course-delivery {
  width: min(calc(100% - 32px), 680px);
}

.course-delivery-panel {
  padding: clamp(26px, 4vw, 44px);
}

.course-delivery-head h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.course-delivery-head > p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.8;
}

.delivery-card {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
}

.delivery-card > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.delivery-card > a {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.delivery-card > strong {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
}

.delivery-card p {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 10px;
}

.delivery-card b {
  color: var(--ink);
  font-weight: 500;
}

.delivery-teacher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
}

.delivery-teacher strong {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
}

.delivery-teacher p:last-child {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 9px;
}

@media (max-width: 640px) {
  .delivery-teacher {
    align-items: flex-start;
    flex-direction: column;
  }
}

.course-plan-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
}

/* course plan prices: NSimSun black */
.course-plan-option > b {
  color: var(--ink);
  font-family: "NSimSun", "SimSun", "Songti SC", serif;
  font-size: 26px;
  font-weight: 400;
}

.course-plan-option:hover > b {
  color: var(--paper);
}

/* course plan cycle labels: NSimSun black */
.course-plan-option strong {
  color: var(--ink);
  font-family: "NSimSun", "SimSun", "Songti SC", serif;
  font-size: 18px;
  font-weight: 400;
}

.course-plan-option:hover strong {
  color: var(--paper);
}

/* slightly larger course comparison cards */
.course-offer h4 {
  font-size: clamp(1.5rem, 1.9vw, 1.8rem);
}

.course-price-chips span,
.course-price-chips b {
  font-size: 13.5px;
}

.course-offer-points {
  font-size: 13px;
  line-height: 1.85;
}

.course-compare,
.course-compare th,
.course-compare th b {
  font-size: 12.5px;
}

.course-compare th b {
  font-size: 14px;
}

.course-offer-foot {
  font-size: 9px;
}

.course-offer-zoom {
  font-size: 10px;
}

/* course rows open video / teacher modals */
.course-row {
  cursor: pointer;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.course-row:hover {
  padding-left: 6px;
  background: rgba(246, 242, 232, 0.035);
}

.modal-course-video {
  width: min(calc(100% - 32px), 980px);
}

.course-video-panel,
.teacher-panel {
  padding: clamp(22px, 3.5vw, 40px);
}

.course-video-head h2,
.teacher-head h2 {
  margin-top: 9px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.course-video-head p:last-child,
.teacher-head p:last-child {
  max-width: 42em;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.8;
}

.course-video-frame {
  margin-top: 20px;
  background: #101110;
}

.course-video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #101110;
}

.course-video-empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 30px;
  color: rgba(246, 242, 232, 0.55);
  font-family: var(--serif);
  font-size: 13px;
  text-align: center;
}

.modal-teacher {
  width: min(calc(100% - 32px), 620px);
}

.teacher-wechat-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
}

.teacher-wechat-box > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.teacher-wechat-box strong {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 500;
}

.teacher-wechat-box .button {
  align-self: flex-start;
  margin-top: 4px;
}

/* course list rows: slightly larger */
.course-no {
  font-size: 8.5px;
}

.course-copy strong {
  font-size: 14px;
}

.course-copy small {
  font-size: 7.5px;
}

.course-copy p {
  max-width: 340px;
  font-size: 10.5px;
  line-height: 1.75;
}

.course-status {
  padding: 4px 7px;
  font-size: 7.5px;
}

.section-community .community-intro-note {
  display: inline-block;
  margin-top: 14px;
  color: rgba(246, 242, 232, 0.36);
}

.section-community .section-intro .community-intro-note {
  display: inline-block;
  margin-top: 14px;
  color: rgba(246, 242, 232, 0.36);
  font-size: 15px;
}

/* commission consultation — atmospheric image modal */
.modal-commission {
  width: min(calc(100% - 32px), 760px);
  min-height: 620px;
  background:
    linear-gradient(90deg, rgba(8, 10, 8, 0.9), rgba(8, 10, 8, 0.38)),
    url("/assets/commission-art.jpg") center / cover no-repeat;
  color: var(--white);
}

.modal-commission .modal-close {
  border-color: rgba(246, 242, 232, 0.4);
  color: var(--white);
  background: rgba(8, 10, 8, 0.24);
}

.commission-consult {
  display: flex;
  min-height: 620px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
}

.commission-consult h2 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.commission-instruction {
  max-width: 31em;
  margin-top: 18px;
  color: rgba(246, 242, 232, 0.7);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.85;
}

.commission-steps {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.commission-steps li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 1px 10px;
  padding-top: 11px;
  border-top: 1px solid rgba(246, 242, 232, 0.22);
}

.commission-steps span {
  grid-row: span 2;
  color: #d2a17f;
  font-family: var(--mono);
  font-size: 8px;
}

.commission-steps strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
}

.commission-steps small {
  color: rgba(246, 242, 232, 0.48);
  font-family: var(--serif);
  font-size: 10px;
}

.commission-contact-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 18px;
  align-items: center;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(246, 242, 232, 0.3);
}

.commission-contact-box > span {
  color: rgba(246, 242, 232, 0.45);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.commission-contact-box strong {
  grid-row: span 2;
  grid-column: 1;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
}

.commission-contact-box .button {
  grid-row: 1 / span 2;
  grid-column: 2;
  border-color: rgba(246, 242, 232, 0.55);
  color: var(--white);
}

.commission-contact-box .button:hover {
  background: var(--white);
  color: #141514;
}

.commission-cases-link {
  align-self: flex-start;
  margin-top: 18px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(246, 242, 232, 0.5);
  color: var(--white);
  font-family: var(--serif);
  font-size: 12px;
}

.commission-cases-link:hover {
  color: #d2a17f;
  border-color: #d2a17f;
}

@media (max-width: 600px) {
  .modal-commission,
  .commission-consult {
    min-height: 560px;
  }

  .commission-consult {
    padding: 24px;
  }

  .commission-contact-box {
    grid-template-columns: 1fr;
  }

  .commission-contact-box strong {
    grid-row: auto;
  }

  .commission-contact-box .button {
    grid-row: auto;
    grid-column: 1;
    justify-self: start;
    margin-top: 10px;
  }
}


/* course purchase limited offer */
.modal-course-offer {
  width: min(calc(100% - 32px), 760px);
  background:
    radial-gradient(circle at 86% 8%, rgba(210, 161, 127, 0.22), transparent 42%),
    #152019;
  color: var(--white);
}

.modal-course-offer .modal-close {
  border-color: rgba(246, 242, 232, 0.35);
  color: var(--white);
}

.course-offer-panel {
  padding: clamp(28px, 4.5vw, 52px);
}

.course-offer-head h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1;
}

.course-offer-head > p:last-child {
  max-width: 30em;
  margin-top: 14px;
  color: rgba(246, 242, 232, 0.58);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.8;
}

.course-offer-countdown {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding: 18px 0;
  border-top: 1px solid rgba(246, 242, 232, 0.22);
  border-bottom: 1px solid rgba(246, 242, 232, 0.22);
}

.course-offer-countdown > span {
  color: rgba(246, 242, 232, 0.48);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.course-offer-countdown strong {
  color: #d2a17f;
  font-family: var(--mono);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.course-offer-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  background: rgba(246, 242, 232, 0.18);
}

.offer-benefit {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  background: #152019;
}

.offer-benefit b {
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.offer-benefit span {
  margin-top: 3px;
  color: rgba(246, 242, 232, 0.55);
  font-family: var(--serif);
  font-size: 11px;
}

.course-offer-condition {
  margin-top: 18px;
  color: rgba(246, 242, 232, 0.62);
  font-family: var(--serif);
  font-size: 11px;
}

.course-offer-buy {
  margin-top: 22px;
  border-color: rgba(246, 242, 232, 0.6);
  background: var(--white);
  color: #152019;
}

.course-offer-buy:hover {
  background: #d2a17f;
  color: #152019;
}

.offer-ended-note {
  margin-top: 14px;
  color: rgba(246, 242, 232, 0.4);
  font-family: var(--serif);
  font-size: 11px;
}

.course-offer-panel-inner.is-expired .course-offer-countdown strong,
.course-offer-panel-inner.is-expired .offer-benefit b,
.course-offer-panel-inner.is-expired .offer-benefit span,
.course-offer-panel-inner.is-expired .course-offer-condition {
  color: rgba(246, 242, 232, 0.3);
}

.course-offer-panel-inner.is-expired .course-offer-buy {
  border-color: rgba(246, 242, 232, 0.16);
  background: transparent;
  color: rgba(246, 242, 232, 0.28);
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .course-offer-countdown {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .course-offer-benefits {
    grid-template-columns: 1fr;
  }
}

.modal-course-offer .modal-close {
  background: rgba(21, 32, 25, 0.72);
  color: var(--white);
  border-color: rgba(246, 242, 232, 0.45);
}

.modal-course-offer .modal-close:hover {
  background: var(--white);
  color: #152019;
}

/* offer benefits: NSimSun + realtime + expired screen */
.offer-benefit b,
.offer-benefit span {
  font-family: "NSimSun", "SimSun", "Songti SC", serif;
  font-weight: 400;
}

.course-offer-realtime {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0 0;
  color: rgba(246, 242, 232, 0.4);
}

.course-offer-realtime span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.course-offer-realtime strong {
  font-family: "NSimSun", "SimSun", "Songti SC", serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.course-offer-redeem-note {
  margin-top: 4px;
  color: rgba(246, 242, 232, 0.5);
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.8;
}

.modal-course-offer.is-expired {
  background: #1a1b19;
}

.course-offer-panel-inner.is-expired {
  filter: grayscale(1);
  opacity: 0.48;
}

.course-offer-panel-inner.is-expired .course-offer-countdown strong {
  color: rgba(246, 242, 232, 0.45);
  font-family: "NSimSun", "SimSun", "Songti SC", serif;
  font-size: 2.4rem;
  letter-spacing: 0;
}

.course-offer-panel-inner.is-expired .course-offer-realtime {
  color: rgba(246, 242, 232, 0.28);
}

/* process / contact: shrink the entire block */
.studio-grid-single {
  max-width: 1040px;
  margin-inline: auto;
}

.studio-grid-single .process-panel {
  max-width: 980px;
  margin-inline: auto;
}

.process-image {
  max-width: 880px;
  margin: 24px auto 0;
}

.studio-grid-single .contact-card {
  max-width: 880px;
  margin: 26px auto 0;
  padding: 26px;
}

.contact-card > p:first-child {
  font-size: 18px;
}

.contact-wechat {
  font-size: 14px;
}

.contact-wechat b {
  font-size: 28px;
}

.contact-hint {
  margin-top: 16px;
  padding-top: 14px;
  font-size: 13px;
}

.contact-card .button {
  min-height: 44px;
  padding: 0 16px;
  font-size: 16px;
}

@media (max-width: 720px) {
  .studio-grid-single .contact-card {
    padding: 20px;
  }

  .contact-card > p:first-child {
    font-size: 15px;
  }

  .contact-wechat {
    font-size: 12px;
  }

  .contact-wechat b {
    font-size: 22px;
  }

  .contact-hint {
    font-size: 11px;
  }

  .contact-card .button {
    min-height: 38px;
    font-size: 13px;
  }
}

/* five-section header navigation */
@media (min-width: 981px) {
  .main-nav {
    gap: clamp(14px, 1.7vw, 26px);
  }

  .main-nav a {
    font-size: clamp(13px, 1.1vw, 16px);
    letter-spacing: 0.03em;
  }
}

/* artistic brand lockup */
.brand {
  gap: 10px;
}

.brand-mark {
  position: relative;
  padding-bottom: 3px;
  color: var(--white);
  font-family: "Cormorant Garamond", var(--serif);
  font-size: 34px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.8;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(246, 242, 232, 0.1), rgba(246, 242, 232, 0.65));
}

.brand-word strong {
  font-family: "ZCOOL XiaoWei", var(--serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1.15;
}

.brand-word small {
  font-size: 7px;
  letter-spacing: 0.22em;
}

@media (max-width: 980px) {
  .brand-mark {
    font-size: 26px;
  }

  .brand-word strong {
    font-size: 12px;
  }

  .brand-word small {
    font-size: 6.5px;
  }
}

#cursorTrail {
  position: fixed;
  inset: 0;
  z-index: 9998;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* interactive hero starfield */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-video {
  z-index: 2;
}

/* Faroe Islands hero photo framing */
.hero-stage img {
  object-position: center 70%;
  filter: brightness(0.82) saturate(0.8) contrast(1.03);
}

/* home resource grid: five columns, two rows, larger type */
.resources-home .resource-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 34px 20px;
}

.resources-home .asset-card:nth-child(n + 11) {
  display: none;
}

.resources-home .asset-title {
  font-size: 18px;
}

.resources-home .asset-meta {
  font-size: 9px;
}

.resources-home .asset-foot-meta {
  font-size: 8px;
}

.resources-home .asset-code,
.resources-home .asset-badge {
  font-size: 8px;
}

.resources-home .download-button {
  min-height: 32px;
  font-size: 10.5px;
}

.resources-home .cover-stats {
  font-size: 10.5px;
}

@media (max-width: 980px) {
  .resources-home .resource-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .resources-home .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 440px) {
  .resources-home .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* home resources: two-row horizontal rail, drag to reveal */
.resources-home .resource-grid {
  display: grid;
  grid-template-columns: none;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 20px) / 5);
  gap: 34px 20px;
  padding-bottom: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.resources-home .resource-grid::-webkit-scrollbar {
  display: none;
}

.resources-home .resource-grid.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.resources-home .asset-card:nth-child(n + 11) {
  display: block;
}

.resources-home .asset-card {
  scroll-snap-align: start;
}

.resource-drag-hint {
  color: rgba(246, 242, 232, 0.32);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.resources-home .asset-title {
  font-size: 18px;
}

.resources-home .asset-meta {
  font-size: 9px;
}

.resources-home .asset-foot-meta {
  font-size: 8px;
}

.resources-home .asset-code,
.resources-home .asset-badge {
  font-size: 8px;
}

.resources-home .download-button {
  min-height: 32px;
  font-size: 10.5px;
}

.resources-home .cover-stats {
  font-size: 10.5px;
}

@media (max-width: 980px) {
  .resources-home .resource-grid {
    grid-auto-columns: calc((100% - 3 * 20px) / 4);
  }
}

@media (max-width: 720px) {
  .resources-home .resource-grid {
    grid-auto-columns: calc((100% - 16px) / 2);
    gap: 28px 16px;
  }
}

@media (max-width: 440px) {
  .resources-home .resource-grid {
    grid-auto-columns: calc((100% - 12px) / 2);
    gap: 24px 12px;
  }
}

/* resource rail pager */
.resource-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-left: auto;
  margin-right: auto;
}

.resource-pager[hidden] {
  display: none;
}

.resource-pager-button {
  display: inline-grid;
  width: 32px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(246, 242, 232, 0.38);
  background: transparent;
  color: var(--white);
  font-family: var(--serif);
  font-size: 14px;
  cursor: pointer;
}

.resource-pager-button:hover:not(:disabled) {
  border-color: var(--white);
  background: var(--white);
  color: #141514;
}

.resource-pager-button:disabled {
  opacity: 0.22;
  cursor: default;
}

.resource-pager-status {
  min-width: 50px;
  color: rgba(246, 242, 232, 0.55);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: center;
}

@media (max-width: 720px) {
  .resource-pager {
    gap: 6px;
  }

  .resource-pager-button {
    width: 28px;
    height: 27px;
    font-size: 12px;
  }

  .resource-pager-status {
    min-width: 42px;
    font-size: 8px;
  }
}

/* resource cards: favorites + downloads only */
.cover-stats-resource {
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  gap: 4px 12px;
}

.cover-stats-resource .cover-favorite {
  color: rgba(246, 242, 232, 0.86);
}

.cover-stats-resource .cover-download {
  color: #d2a17f;
}

/* resource detail: dark right panel */
.modal-resource {
  background: #1c1d1b;
  color: var(--white);
}

.modal-resource .resource-detail-copy {
  background: #1c1d1b;
  color: var(--white);
}

.modal-resource .resource-detail-copy h2 {
  color: var(--white);
}

.modal-resource .eyebrow {
  color: #d2a17f;
}

.modal-resource .resource-detail-subtitle,
.modal-resource .resource-detail-desc,
.modal-resource .resource-detail-note,
.modal-resource .spec-row dt {
  color: rgba(246, 242, 232, 0.52);
}

.modal-resource .spec-row dd {
  color: var(--white);
}

.modal-resource .spec-table {
  border-top-color: rgba(246, 242, 232, 0.28);
}

.modal-resource .spec-row {
  border-bottom-color: rgba(246, 242, 232, 0.14);
}

.modal-resource .resource-detail-tags span {
  border-color: rgba(246, 242, 232, 0.2);
  color: rgba(246, 242, 232, 0.6);
}

.modal-resource .modal-close {
  border-color: rgba(246, 242, 232, 0.4);
  color: var(--white);
  background: rgba(28, 29, 27, 0.7);
}

.modal-resource .modal-close:hover {
  background: var(--white);
  color: #141514;
}

.modal-resource .engagement-button {
  border-color: rgba(246, 242, 232, 0.28);
  color: rgba(246, 242, 232, 0.58);
}

.modal-resource .engagement-button b {
  color: var(--white);
}

.modal-resource .resource-detail-actions .button-dark {
  border-color: var(--white);
  background: var(--white);
  color: #141514;
}

.modal-resource .resource-detail-actions .button-outline {
  border-color: rgba(246, 242, 232, 0.5);
  color: var(--white);
}

.modal-resource .resource-detail-actions .button-outline:hover {
  background: var(--white);
  color: #141514;
}

/* resource detail image zoom */
.resource-detail-media {
  overflow: hidden;
  cursor: zoom-in;
}

.resource-detail-media.is-zoomed {
  cursor: zoom-out;
}

.resource-detail-media img {
  transform-origin: center center;
  transition: transform 0.18s ease-out;
  will-change: transform;
}

.resource-zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 5px 7px;
  background: rgba(10, 12, 10, 0.55);
  color: rgba(246, 242, 232, 0.7);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.resource-detail-media.is-zoomed {
  cursor: grab;
}

.resource-detail-media.is-panning {
  cursor: grabbing;
}

.resource-detail-media.is-panning img {
  transition: none;
  user-select: none;
}

.resource-detail-actions a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* asset download rules */
.rules-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(210, 161, 127, 0.5);
  background: transparent;
  color: var(--ink, #f6f2e8);
  font-family: var(--serif, Georgia, serif);
  font-size: 11px;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.rules-link em {
  color: var(--accent, #d2a17f);
  font-style: normal;
}

.rules-link:hover {
  border-color: var(--accent, #d2a17f);
  background: rgba(210, 161, 127, 0.08);
}

.rules-dialog {
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(calc(100vw - 24px), 680px);
  max-width: none;
  max-height: 92vh;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(246, 242, 232, 0.18);
  background: #151714;
  transform: translate(-50%, -50%);
  overflow: auto;
}

.rules-dialog::backdrop {
  background: rgba(6, 7, 6, 0.8);
  backdrop-filter: blur(5px);
}

.rules-dialog img {
  display: block;
  width: 100%;
  height: auto;
}

.rules-dialog-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(246, 242, 232, 0.5);
  background: rgba(21, 23, 20, 0.8);
  color: #f6f2e8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  place-items: center;
}

@media (max-width: 640px) {
  .rules-dialog {
    width: calc(100vw - 16px);
    max-height: 94vh;
  }
}


/* prominent horizontal rules link under the asset intro */
.resources-home .rules-link {
  grid-column: 3;
  grid-row: 2;
  justify-self: stretch;
  display: flex;
  width: 100%;
  min-height: 48px;
  margin-top: 0;
  padding: 13px 16px;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--accent, #d2a17f);
  background: var(--accent, #d2a17f);
  color: #171915;
  font-family: var(--serif, Georgia, serif);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.resources-home .rules-link em {
  color: #171915;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.resources-home .rules-link:hover {
  background: #e0b18d;
  border-color: #e0b18d;
}

@media (max-width: 980px) {
  .resources-home .rules-link {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
    margin-top: 4px;
  }
}

/* prominent asset intro line */
.resources-home .section-intro .intro-text {
  display: block;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(16px, 1.45vw, 21px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--ink, #f6f2e8);
}

/* final asset-head scale: bigger title/intro, smaller rules button */
.resources-home .section-heading h2 {
  font-size: clamp(4.2rem, 7.3vw, 7.6rem);
}

.resources-home .section-intro .intro-text {
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.6;
}

.resources-home .rules-link {
  justify-self: end;
  width: auto;
  min-width: 250px;
  min-height: 40px;
  padding: 9px 14px;
  font-size: 11px;
}

@media (max-width: 980px) {
  .resources-home .section-heading h2 {
    font-size: clamp(3.2rem, 10vw, 5rem);
  }
}

/* brighter, wider asset statement + weekly drop line */
.resources-home .section-intro .intro-text {
  color: #fffaf0;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-shadow: 0 0 18px rgba(246, 242, 232, 0.08);
}

.resources-home .intro-new {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  color: var(--accent, #d2a17f) !important;
  font-family: var(--serif, Georgia, serif) !important;
  font-size: 12px !important;
  letter-spacing: 0.12em;
}

.resources-home .intro-new::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

/* align the asset statement with the big title, lighter weight */
.resources-home .section-intro {
  padding-top: 26px;
}

.resources-home .section-intro .intro-text {
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: none;
}

/* slightly smaller asset statement */
.resources-home .section-intro .intro-text {
  font-size: clamp(16px, 1.35vw, 20px);
}

/* right-align the asset statement block */
.resources-home .section-intro {
  text-align: right;
}

/* cinematic hero */
.hero-stage {
  position: relative;
  isolation: isolate;
  background: #020509;
}

#heroCosmos {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-stage > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
}

.hero-stage > video {
  display: none !important;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 54% 48%, transparent 20%, rgba(2, 5, 9, 0.12) 52%, rgba(2, 5, 9, 0.58) 100%),
    linear-gradient(180deg, rgba(2, 5, 9, 0.35), transparent 30%, transparent 68%, rgba(2, 5, 9, 0.68));
}

.cosmos-hud {
  position: absolute;
  z-index: 3;
  right: clamp(14px, 2.4vw, 30px);
  bottom: clamp(12px, 2vw, 22px);
  left: clamp(14px, 2.4vw, 30px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
  color: rgba(230, 238, 235, 0.5);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.cosmos-hud span:last-child {
  color: rgba(210, 161, 127, 0.75);
}

@media (max-width: 640px) {
  .cosmos-hud {
    font-size: 6px;
  }

  .cosmos-hud span:last-child {
    display: none;
  }
}

/* keep the cinematic hero cohesive into the caption */
.hero-solo .hero-caption {
  position: relative;
  background: #04080b;
}

.hero-solo .hero-caption::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210, 161, 127, 0.35), transparent);
}

/* restore the Faroe Islands hero */
.hero-stage > img {
  position: static;
  inset: auto;
  z-index: auto;
  opacity: 1;
}

.hero-stage::after {
  display: none;
}

.hero-solo .hero-caption {
  background: transparent;
}

.hero-solo .hero-caption::before {
  display: none;
}
