:root {
  color-scheme: light;
  --canvas: #53c197;
  --forest-950: #09291c;
  --forest-900: #103d2b;
  --forest-800: #174f39;
  --forest-700: #1b6347;
  --forest-600: #277a59;
  --leaf: #53c197;
  --lemon: #dfff3f;
  --lemon-strong: #c9f12d;
  --coral: #ff7a45;
  --paper: #f5f6e9;
  --paper-muted: #d7e6d9;
  --ink: #102018;
  --white: #f9fbf5;
  --muted: rgba(16, 32, 24, 0.68);
  --line: rgba(9, 41, 28, 0.18);
  --line-strong: rgba(9, 41, 28, 0.34);
  --glass: rgba(255, 255, 255, 0.26);
  --glass-soft: rgba(255, 255, 255, 0.18);
  --shadow: 0 20px 48px rgba(20, 82, 59, 0.18);
  --radius-card: 24px;
  --radius-media: 20px;
  --header-height: 72px;
  --max-width: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

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

::selection {
  background: var(--forest-900);
  color: var(--white);
}

* {
  scrollbar-color: var(--forest-700) rgba(255, 255, 255, 0.18);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--forest-950);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--lemon);
  color: var(--ink);
  font-weight: 800;
}

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

.app-shell {
  min-height: 100dvh;
}

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.header-inner {
  width: min(var(--max-width), calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  object-fit: cover;
  background: var(--forest-950);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover img {
  transform: rotate(-7deg) scale(1.04);
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  line-height: 1.15;
}

.brand-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  line-height: 1;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px) translateZ(0);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-primary {
  background: var(--lemon);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(31, 92, 66, 0.14);
}

.button-primary:hover {
  background: var(--lemon-strong);
}

.button-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.3);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--forest-950);
  cursor: pointer;
  font-weight: 850;
}

.text-button .arrow {
  transition: transform 180ms ease;
}

.text-button:hover .arrow {
  transform: translateX(4px);
}

.page-main {
  min-height: calc(100dvh - var(--header-height));
}

.hero {
  position: relative;
  min-height: calc(100dvh - 132px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: none;
}

.hero-inner {
  position: relative;
  width: min(var(--max-width), calc(100% - 48px));
  min-height: calc(100dvh - 132px);
  margin: 0 auto;
  padding: 52px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  align-items: center;
  gap: 64px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 620px;
}

.hero-kicker {
  margin: 0 0 18px;
  color: var(--forest-900);
  font-size: 14px;
  font-weight: 850;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: 72px;
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 950;
}

.hero h1 span {
  color: var(--forest-900);
}

.hero-lead {
  max-width: 32rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-visual {
  position: relative;
  min-height: 600px;
  display: grid;
  place-items: center;
}

.hero-poster {
  position: relative;
  z-index: 2;
  width: min(390px, 68%);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.hero-float {
  position: absolute;
  z-index: 3;
  width: 176px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-media);
  box-shadow: 0 18px 38px rgba(20, 82, 59, 0.2);
}

.hero-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-float-left {
  left: 2%;
  bottom: 9%;
  transform: rotate(-8deg);
}

.hero-float-right {
  right: 0;
  top: 8%;
  transform: rotate(8deg);
}

.hero-note {
  position: absolute;
  z-index: 5;
  right: 2%;
  bottom: 8%;
  width: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--glass);
  box-shadow: var(--shadow);
}

.hero-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--forest-900);
  font-size: 28px;
  line-height: 1;
}

.hero-note span {
  color: var(--muted);
  font-size: 13px;
}

.content-section {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-head h2,
.all-videos-head h1,
.about-copy h2,
.watch-copy h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1.06;
  letter-spacing: 0;
  font-weight: 950;
}

.section-head p,
.all-videos-head p,
.about-copy p,
.watch-copy p {
  max-width: 42rem;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-actions {
  margin-top: 22px;
}

.category-bar {
  position: relative;
  z-index: 20;
  margin: 0 0 38px;
  padding: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-button {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 780;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.category-button:hover {
  color: var(--ink);
}

.category-button:active {
  transform: scale(0.98);
}

.category-button[aria-selected="true"] {
  background: var(--lemon);
  color: var(--ink);
}

.sticky-tabs {
  position: sticky;
  z-index: 60;
  top: calc(var(--header-height) + 12px);
}

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

.video-card {
  min-width: 0;
}

.video-card-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.video-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  background: var(--forest-900);
  box-shadow: 0 14px 32px rgba(20, 82, 59, 0.15);
  /* 提升为独立合成层，避免子元素缩放动画期间圆角被光栅化成直角（hover 闪烁） */
  transform: translateZ(0);
  isolation: isolate;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), filter 220ms ease;
}

.video-card-button:hover .video-cover img {
  transform: scale(1.035) translateZ(0);
  filter: saturate(1.05);
}

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(4, 23, 9, 0.08);
  transition: background 180ms ease;
}

.play-mark::before {
  content: "▶";
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding-left: 3px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: rgba(7, 29, 13, 0.72);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(3, 20, 7, 0.24);
  backface-visibility: hidden;
  will-change: transform;
  font-size: 16px;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms ease;
}

.video-card-button:hover .play-mark {
  background: rgba(4, 23, 9, 0.18);
}

.video-card-button:hover .play-mark::before {
  transform: scale(1.08) translateZ(0);
  background: var(--lemon);
  color: var(--ink);
}

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(7, 29, 13, 0.78);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.video-meta {
  padding: 15px 3px 0;
}

.video-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.video-meta h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 850;
}

.access-label {
  flex: 0 0 auto;
  color: var(--forest-900);
  font-size: 11px;
  font-weight: 850;
}

.video-meta p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.empty-state,
.error-state {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 40px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-card);
  color: var(--muted);
  text-align: center;
}

.skeleton-card {
  min-width: 0;
}

.skeleton-cover,
.skeleton-line {
  overflow: hidden;
  background: rgba(9, 41, 28, 0.1);
}

.skeleton-cover {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-media);
}

.skeleton-line {
  width: 72%;
  height: 14px;
  margin-top: 14px;
  border-radius: 6px;
}

.skeleton-line.short {
  width: 44%;
  height: 10px;
  margin-top: 9px;
}

.about-section {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto 96px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
}

.about-media {
  min-height: 520px;
  overflow: hidden;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
}

.about-copy {
  padding: 64px;
  align-self: center;
}

.about-copy .quote {
  margin: 32px 0 0;
  color: var(--forest-900);
  font-size: 26px;
  line-height: 1.35;
  font-weight: 900;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* ICP 备案号：工信部要求页脚公示并链接到 beian.miit.gov.cn。
   独占第二行靠右，不挤占上面三个信息块。 */
.footer-icp {
  flex: 0 0 100%;
  margin-top: -6px;
  text-align: right;
  font-size: 12px;
}

.footer-icp a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.footer-icp a:hover {
  border-bottom-color: currentColor;
}

.all-videos-page,
.watch-page {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 96px;
}

.all-videos-head {
  margin-bottom: 34px;
}

.load-more-wrap {
  margin-top: 52px;
  display: flex;
  justify-content: center;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 76px;
}

.player-shell {
  width: min(100%, 520px);
  max-height: 76vh;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-card);
  background: var(--forest-950);
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--forest-950);
}

/* 视频加载失败时的提示（素材未就绪 / CDN 不可用）
   覆盖在播放器上，居中显示，避免用户对着黑屏发呆 */
.player-error {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: var(--forest-950);
  color: #f4f6f0;
}

.player-error[hidden] {
  display: none;
}

.player-error strong {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.player-error small {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(244, 246, 240, 0.68);
}

.player-shell[data-player-shell] {
  position: relative;
  display: block;
  container-type: inline-size;
}

.player-controls {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 42px 18px 12px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.player-seek {
  display: block;
  width: 100%;
  height: 4px;
  margin: 0 0 10px;
  accent-color: #fff;
  cursor: pointer;
}

.player-control-row,
.player-transport,
.player-utilities {
  display: flex;
  align-items: center;
}

.player-control-row {
  gap: 12px;
}

.player-transport,
.player-utilities {
  gap: 8px;
  flex: 0 0 auto;
}

.player-utilities {
  margin-left: auto;
}

.player-time {
  flex: 0 0 auto;
}

/* 播放器较窄时先让位给全屏按钮：隐藏音量滑块，只保留静音开关 */
@container (max-width: 470px) {
  .player-volume {
    display: none;
  }
}

.player-icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.player-icon-button:hover:not(:disabled),
.player-icon-button:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.player-icon-button svg {
  width: 19px;
  height: 19px;
  display: block;
  pointer-events: none;
}

.player-icon-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.player-fullscreen {
  background: rgba(0, 0, 0, 0.42);
}

.player-skip {
  font-size: 34px;
}

.player-play {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  background: rgba(0, 0, 0, 0.5);
  font-size: 16px;
}

.player-time {
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.player-settings-wrap {
  position: relative;
}

.player-more {
  font-size: 28px;
}

.player-volume-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.player-volume-toggle {
  width: 42px;
  flex-basis: 42px;
  font-size: 15px;
}

.player-volume {
  width: 72px;
  height: 4px;
  accent-color: #fff;
  cursor: pointer;
}

.player-settings {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: 148px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(18, 24, 18, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.player-settings[hidden] {
  display: none;
}

.player-settings button {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.player-settings button:hover,
.player-settings button[aria-checked="true"] {
  background: rgba(255, 255, 255, 0.14);
}

/*
 * 全屏：视频是 3:4 竖版，全屏时画面按原比例居中，四周留黑边，
 * 不铺满整个屏幕（铺满会把画面拉变形，也没法正常看）。
 * 做法：外壳仍是整屏纯黑（浏览器全屏样式强制如此），
 * 只让 video 保持比例居中，控制条跟着画面走。
 */
.player-shell:fullscreen,
.player-shell.is-pseudo-fullscreen {
  --stage-w: min(100vw, calc(100vh * var(--player-ratio, 0.75)));
  --stage-h: min(100vh, calc(100vw * var(--player-ratio-inv, 1.3333)));
}

.player-shell:fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: #000;
  box-shadow: none;
}

/* Safari 旧版只认带前缀的伪类，单独写一条，避免整条选择器列表被丢弃 */
.player-shell:-webkit-full-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: #000;
  box-shadow: none;
}

.player-shell:fullscreen::backdrop {
  background: #000;
}

/* 画面本体：按 3:4（或视频真实比例）居中，绝不拉伸 */
.player-shell:fullscreen video,
.player-shell:-webkit-full-screen video,
.player-shell.is-pseudo-fullscreen video {
  flex: none;
  width: var(--stage-w, min(100vw, calc(100vh * 0.75)));
  height: var(--stage-h, min(100vh, calc(100vw * 1.3333)));
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #000;
}

/* 控制条贴着画面底部，宽度跟画面一致 */
.player-shell:fullscreen .player-controls,
.player-shell:-webkit-full-screen .player-controls,
.player-shell.is-pseudo-fullscreen .player-controls {
  left: 0;
  right: 0;
  bottom: calc((100vh - var(--stage-h, min(100vh, calc(100vw * 1.3333)))) / 2);
  width: var(--stage-w, min(100vw, calc(100vh * 0.75)));
  margin: 0 auto;
  padding: 56px 18px 16px;
}

/* 原生全屏被拒绝时的降级：整屏黑底 + 画面保持比例居中 */
.player-shell.is-pseudo-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: #000;
  box-shadow: none;
}

body.pseudo-fullscreen-open {
  overflow: hidden;
}

.pdf-block {
  margin-top: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  box-shadow: 0 14px 32px rgba(20, 82, 59, 0.15);
}

.pdf-block-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
}

/* 下载入口就是一条文字链，点一下直接跳转/下载，不做成按钮 */
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--forest-900);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  cursor: pointer;
}

.pdf-link::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.pdf-link:hover,
.pdf-link:focus-visible {
  color: var(--forest-700);
}

.pdf-action-locked {
  padding: 0;
  border: 0;
  background: none;
  color: var(--forest-900);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.pdf-action-locked:hover {
  color: var(--forest-700);
}

.player-locked {
  position: relative;
}

.player-locked img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42) saturate(0.72);
}

.locked-message {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.locked-message strong {
  margin-bottom: 10px;
  font-size: 24px;
}

.locked-message p {
  max-width: 22rem;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.78);
}

.watch-copy h1 {
  font-size: 56px;
}

.watch-subtitle {
  display: block;
  margin-top: 14px;
  color: var(--forest-900);
  font-size: 18px;
  font-weight: 850;
}

.watch-facts {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.watch-actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sequence-nav {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.sequence-link {
  min-height: 110px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.16);
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 180ms ease, background 180ms ease;
}

.sequence-link:hover {
  transform: translateY(-2px) translateZ(0);
  background: rgba(255, 255, 255, 0.3);
}

.sequence-link:last-child {
  text-align: right;
}

.sequence-link.is-disabled {
  border-color: rgba(16, 32, 24, 0.14);
  background: #dcded8;
  box-shadow: var(--shadow);
  color: rgba(16, 32, 24, 0.42);
  cursor: default;
  pointer-events: none;
}

.sequence-link.is-disabled:hover {
  transform: none;
  background: #dcded8;
}

.sequence-link.is-disabled strong {
  color: rgba(16, 32, 24, 0.42);
  font-weight: 500;
}

.sequence-link span {
  color: var(--muted);
  font-size: 12px;
}

.sequence-link strong {
  margin-top: 7px;
  font-size: 16px;
}

.related-section {
  margin-top: 88px;
}

.related-section h2 {
  margin: 0 0 28px;
  font-size: 30px;
}

.back-link {
  margin-bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.back-link:hover {
  color: var(--ink);
}

.modal-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(9, 41, 28, 0.58);
  backdrop-filter: blur(14px);
}

.modal {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  box-shadow: 0 36px 90px rgba(17, 75, 53, 0.32);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(83, 193, 151, 0.18);
  cursor: pointer;
  font-size: 24px;
}

.modal h2 {
  max-width: 390px;
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.modal-lead {
  margin: 12px 0 28px;
  color: var(--muted);
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
}

.form-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.form-field input::placeholder {
  color: rgba(16, 32, 24, 0.58);
}

.field-error {
  margin: 7px 0 0;
  color: #8f2e22;
  font-size: 13px;
}

.modal .button-primary {
  width: 100%;
  margin-top: 6px;
}

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

.member-benefits li {
  display: flex;
  gap: 10px;
  color: var(--muted);
}

.member-benefits li::before {
  content: "✓";
  color: var(--forest-700);
  font-weight: 900;
}

.plan-box {
  margin: 0 0 22px;
  padding: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(9, 41, 28, 0.22);
  border-radius: var(--radius-card);
  background: rgba(223, 255, 63, 0.34);
}

.plan-box strong {
  display: block;
  font-size: 18px;
}

.plan-price {
  color: var(--forest-900);
  font-size: 32px;
  font-weight: 950;
  line-height: 1;
}

.plan-price small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.demo-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.user-menu {
  position: fixed;
  z-index: 90;
  top: calc(var(--header-height) - 4px);
  right: max(24px, calc((100vw - var(--max-width)) / 2));
  width: 180px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.user-menu button {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.user-menu button:hover {
  background: rgba(83, 193, 151, 0.18);
}

.toast {
  position: fixed;
  z-index: 300;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: #173f1e;
  box-shadow: var(--shadow);
  color: var(--white);
  font-weight: 760;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms cubic-bezier(0.16, 1, 0.3, 1), transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .category-bar,
  .hero-note,
  .modal-backdrop {
    backdrop-filter: none;
  }

  .site-header,
  .category-bar {
    background: var(--canvas);
  }

  .hero-note {
    background: var(--paper);
  }
}

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 34px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .hero-float {
    width: 142px;
  }

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

  .about-copy {
    padding: 44px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 66px;
    --radius-card: 20px;
    --radius-media: 16px;
  }

  .header-inner,
  .hero-inner,
  .content-section,
  .about-section,
  .all-videos-page,
  .watch-page,
  .site-footer {
    width: min(100% - 28px, var(--max-width));
  }

  .brand {
    font-size: 15px;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-sub {
    font-size: 10px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .button {
    min-height: 38px;
    padding: 0 13px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding: 44px 0 72px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: 48px;
  }

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .hero-visual {
    min-height: 500px;
  }

  .hero-poster {
    width: 66%;
  }

  .hero-float {
    width: 118px;
  }

  .hero-float-left {
    left: 0;
  }

  .hero-note {
    right: 0;
    width: 180px;
    padding: 14px;
  }

  .hero-note strong {
    font-size: 23px;
  }

  .content-section,
  .all-videos-page,
  .watch-page {
    padding: 68px 0;
  }

  .section-head h2,
  .all-videos-head h1,
  .about-copy h2,
  .watch-copy h1 {
    font-size: 36px;
  }

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

  .video-title-line {
    display: block;
  }

  .access-label {
    display: inline-block;
    margin-top: 7px;
  }

  .about-section {
    margin-bottom: 68px;
    grid-template-columns: 1fr;
  }

  .about-media {
    min-height: 320px;
  }

  .about-copy {
    padding: 34px 24px;
  }

  .about-copy .quote {
    font-size: 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  /* 竖排布局下 flex-basis 作用在高度方向，必须复位，否则备案号会撑出空白 */
  .footer-icp {
    flex: initial;
    margin-top: 0;
    text-align: left;
  }

  .sticky-tabs {
    top: calc(var(--header-height) + 8px);
  }

  .watch-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .player-shell {
    margin: 0 auto;
    max-height: none;
  }

  .sequence-nav {
    grid-template-columns: 1fr;
  }

  .sequence-link:last-child {
    text-align: left;
  }

  .modal {
    padding: 30px 22px 24px;
  }

  .modal h2 {
    padding-right: 38px;
    font-size: 29px;
  }

  .plan-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .header-actions .button-ghost {
    display: none;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-visual {
    min-height: 450px;
  }

  .hero-poster {
    width: 72%;
  }

  .hero-float {
    width: 104px;
  }

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

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: heroEnter 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-poster {
    animation: posterEnter 820ms 100ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-float-left {
    animation: floatLeft 6s ease-in-out infinite;
  }

  .hero-float-right {
    animation: floatRight 6.8s ease-in-out infinite;
  }

  .hero-note {
    animation: noteFloat 5.6s ease-in-out infinite;
  }

  .skeleton-cover,
  .skeleton-line {
    background: linear-gradient(100deg, rgba(9, 41, 28, 0.08) 20%, rgba(255, 255, 255, 0.24) 36%, rgba(9, 41, 28, 0.08) 52%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
  }

  .modal-backdrop {
    animation: fadeIn 180ms ease both;
  }

  .modal {
    animation: modalIn 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .toast {
    animation: toastIn 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroEnter {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes posterEnter {
  from { opacity: 0; transform: rotate(2deg) translateY(34px) scale(0.96); }
  to { opacity: 1; transform: rotate(2deg) translateY(0) scale(1); }
}

@keyframes floatLeft {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-11px); }
}

@keyframes floatRight {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(12px); }
}

@keyframes noteFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  to { background-position-x: -200%; }
}

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

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- 收款码与凭证上传（后端接入后新增） --- */
.payment-qr {
  width: 220px;
  height: 220px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(87, 144, 82, 0.54);
  padding: 10px;
}

.proof-upload {
  border-top: 1px solid rgba(87, 144, 82, 0.3);
  padding-top: 18px;
}

.my-orders { display: grid; gap: 8px; }

.order-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.order-row em { grid-column: 1 / -1; }

/* --- 支付舞台（二维码 / 跳转 / 收款码） --- */
.payment-stage {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(87, 144, 82, 0.54);
  padding: 10px;
  overflow: hidden;
}

.payment-stage svg {
  width: 100%;
  height: 100%;
  display: block;
}
