/*
 * 官网 ccactor.com 的样式（V0.7.0 设计 §2）：A 放映厅，颜色照应用的深色主题（app/ui/src/styles/theme.css）。
 * 只用系统字体、不连外部资源；CSP 是 style-src 'self'，所以页面里没有行内 style，按数据换样子的都写成属性选择器（data-ratio、data-aspect）。
 * 样式表原样拷进 dist/site/（带指纹的名字），里面引不了 media/ 下带指纹的图：图都放在 HTML 里，这里只用渐变。
 * 宽屏（≥ 900px）首屏两栏，窄屏一栏；最窄按 360px 排，不出横向滚动条。下载区按 <html> 上的 device-* 显示（main.js 给，设计 §2.9）
 */
:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --bg-raised: #121216;
  --accent: #ff9f0a;
  --accent2: #ffb340;
  --on-accent: #fff;
  --text: rgba(255, 255, 255, 0.93);
  --muted: rgba(235, 235, 245, 0.62);
  --faint: rgba(235, 235, 245, 0.42);
  --line: rgba(255, 255, 255, 0.07);
  --chip: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(40, 40, 46, 0.55);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 40px rgba(0, 0, 0, 0.32);
  --poster-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.09);
  --focus-ring: 0 0 0 3px rgba(255, 159, 10, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  /* 正文的宽度和两边的留白；样片横排两头对齐正文 */
  --wrap: 1120px;
  --gutter: 20px;
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  --bar-h: 60px;
  /* 样片卡片的高度：卡片等高，宽度按封面的比例 */
  --card-h: 260px;
}

@media (min-width: 600px) {
  :root {
    --gutter: 32px;
    --card-h: 300px;
  }
}

@media (min-width: 900px) {
  :root {
    --card-h: 340px;
  }
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* 顶栏是贴在上面的：跳到锚点时让出它的高度 */
  scroll-padding-top: calc(var(--bar-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 弹层开着时后面的页面不跟着滚 */
body:has(dialog[open]) {
  overflow: hidden;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent2);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 6px;
}

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

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 13, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--bar-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

.brand img {
  display: block;
  width: 30px;
  height: 30px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.topnav-link {
  padding: 6px 10px;
  color: rgba(235, 235, 245, 0.72);
  text-decoration: none;
}

.topnav-link:hover {
  color: #fff;
}

.topnav-download {
  margin-left: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.topnav-download:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* 窄屏放不下三个锚点：只留图标、名字和"下载" */
@media (max-width: 559px) {
  .topnav-link {
    display: none;
  }
}

/* ---------- 按钮、复制网址 ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(255, 159, 10, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition:
    background 0.15s,
    transform 0.15s;
}

.button:hover {
  background: var(--accent2);
  color: var(--on-accent);
}

.button:active {
  transform: translateY(1px);
}

.copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 12px;
}

.copy-url {
  padding: 8px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 14px;
  -webkit-user-select: all;
  user-select: all;
}

.copy-button {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.copy-button:hover {
  background: var(--accent2);
}

.copy-tip {
  flex-basis: 100%;
  color: var(--accent2);
  font-size: 13px;
}

.copy-tip:empty {
  display: none;
}

/* ---------- 下载区按设备换（设计 §2.9） ---------- */

.get-other,
.inapp {
  display: none;
}

.device-mac-inapp .inapp {
  display: block;
}

.device-other .get-mac {
  display: none;
}

.device-other .get-other {
  display: block;
}

.inapp {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.get-other p {
  max-width: 30em;
  color: var(--text);
  font-size: 16px;
}

.get-anyway {
  display: inline-block;
  margin-top: 14px;
  color: var(--faint);
  font-size: 13px;
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  /* 斜着的手机、光晕都不能撑出横向滚动条 */
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 65% at 78% 42%, rgba(255, 159, 10, 0.16), transparent 70%),
    radial-gradient(38% 48% at 62% 82%, rgba(60, 200, 255, 0.1), transparent 70%),
    radial-gradient(60% 50% at 10% 0%, rgba(255, 159, 10, 0.05), transparent 70%);
}

.hero-inner {
  display: grid;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 56px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

h1 {
  margin: 14px 0 18px;
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

/* 逗号前后各是一行：窄屏放不下一整行时在逗号后折，宽屏一律在逗号后换行（设计 §2.2） */
.h1-line {
  display: inline-block;
}

.hero-lead {
  max-width: 27em;
  color: rgba(235, 235, 245, 0.68);
  font-size: 17px;
  line-height: 1.8;
}

.hero .get {
  margin-top: 30px;
}

.hero-meta {
  margin-top: 14px;
  color: var(--faint);
  font-size: 13px;
}

.hero-meta a {
  color: inherit;
}

.hero-meta a:hover {
  color: var(--text);
}

/* 三台竖屏手机：中间的大，两边的小一点、往外斜（设计 §2.2）。尺寸按舞台的宽度算，窄屏一起缩 */
.hero-stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1 / 0.84;
  margin: 0 auto;
}

.phone {
  position: absolute;
  display: block;
  padding: 5px;
  border-radius: 30px;
  background: linear-gradient(160deg, #2c2c33, #111115 60%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 28px 60px rgba(0, 0, 0, 0.6);
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.phone-clip {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 25px;
  background: #000;
  object-fit: cover;
}

.phone-center {
  left: 28%;
  top: 0;
  z-index: 2;
  width: 44%;
}

.phone-left,
.phone-right {
  top: 12%;
  width: 34%;
  filter: brightness(0.82);
}

.phone-left {
  left: 0;
  transform: rotate(-7deg);
}

.phone-right {
  right: 0;
  transform: rotate(7deg);
}

/* 指上去、用键盘选中时手机中间出一个播放按钮：::before 是圆、::after 是三角 */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.2s;
}

.phone::before {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.phone::after {
  margin: -9px 0 0 -5px;
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent #fff;
}

.phone:hover::before,
.phone:hover::after,
.phone:focus-visible::before,
.phone:focus-visible::after {
  opacity: 1;
}

.phone:hover {
  filter: brightness(1);
}

.phone-center:hover {
  transform: translateY(-4px);
}

.phone-left:hover {
  transform: rotate(-5deg) translateY(-4px);
}

.phone-right:hover {
  transform: rotate(5deg) translateY(-4px);
}

.phone:focus-visible {
  box-shadow:
    var(--focus-ring),
    0 28px 60px rgba(0, 0, 0, 0.6);
  border-radius: 30px;
}

/* 清单里没有首屏片段时放图标（设计 §3.1） */
.hero-icon {
  display: block;
  width: 62%;
  margin: 8% auto 0;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
    align-items: center;
    min-height: min(700px, calc(100svh - var(--bar-h)));
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .h1-line {
    display: block;
  }

  .hero-stage {
    width: 100%;
  }
}

/* ---------- 段落的公用样子 ---------- */

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .section {
    padding: 96px 0;
  }
}

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.lead {
  max-width: 46em;
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.chip {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--chip);
  color: rgba(235, 235, 245, 0.75);
  font-size: 12px;
  line-height: 1.8;
  white-space: nowrap;
}

/* ---------- 样片：一行横排，左右滑（设计 §2.3） ---------- */

.reel {
  position: relative;
  margin-top: 32px;
}

.samples {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 6px var(--edge) 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
  list-style: none;
  /* 两头渐隐：正文以外露出来的卡片暗下去，看得出还能往那边滑；箭头就压在这一段上 */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--edge), #000 calc(100% - var(--edge)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--edge), #000 calc(100% - var(--edge)), transparent);
}

.samples::-webkit-scrollbar {
  display: none;
}

/* 卡片的比例由构建写在 data-ratio 上（封面的画幅：竖屏、3:4 用 3:4，横屏 16:9，4:3 照旧） */
.sample {
  --ratio: 3 / 4;
  flex: none;
  width: calc(var(--card-h) * var(--ratio));
  scroll-snap-align: start;
}

.sample[data-ratio="4:3"] {
  --ratio: 4 / 3;
}

.sample[data-ratio="16:9"] {
  --ratio: 16 / 9;
}

.sample-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-raised);
  box-shadow: var(--poster-shadow);
}

.sample-link:focus-visible {
  box-shadow:
    var(--focus-ring),
    var(--poster-shadow);
  border-radius: 14px;
}

.sample-poster {
  display: block;
  width: 100%;
  height: var(--card-h);
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sample-link:hover .sample-poster {
  transform: scale(1.03);
}

.sample-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4),
    0 6px 20px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}

.sample-play::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 19px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}

.sample-link:hover .sample-play {
  background: var(--accent);
}

.sample-title {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.sample-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

/* 两头的箭头：只在有鼠标、触控板、屏幕够宽时显示（手机上用手指滑）；滑到头的那一边隐去 */
.reel-arrow {
  position: absolute;
  top: calc(6px + var(--card-h) / 2 - 24px);
  z-index: 2;
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: rgba(30, 30, 36, 0.8);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #fff;
  cursor: pointer;
  transition:
    opacity 0.2s,
    background 0.2s;
}

.reel-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.reel-prev {
  left: max(12px, calc(var(--edge) - 120px));
}

.reel-prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.reel-next {
  right: max(12px, calc(var(--edge) - 120px));
}

.reel-next::before {
  transform: translate(-70%, -50%) rotate(45deg);
}

.reel-arrow:hover {
  background: rgba(60, 60, 68, 0.9);
}

.reel-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.reel-fits .reel-arrow {
  visibility: hidden;
}

@media (hover: hover) and (pointer: fine) and (min-width: 600px) {
  .reel-arrow {
    display: block;
  }
}

/* ---------- 三步出一条片子（设计 §2.4） ---------- */

.how {
  display: grid;
  gap: 40px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: var(--bg-raised);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 18px 40px rgba(0, 0, 0, 0.45);
}

.how h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.how-no {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 159, 10, 0.15);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.how p {
  color: var(--muted);
  font-size: 15px;
}

@media (min-width: 900px) {
  .how {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

/* ---------- 自带五种做法，也能装别的（设计 §2.5） ---------- */

.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.skill {
  padding: 14px 14px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
}

.skill h3 {
  font-size: 16px;
  font-weight: 700;
}

.skill p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.extras {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.extra h3 {
  font-size: 16px;
  font-weight: 700;
}

.extra p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

@media (min-width: 600px) {
  .skill {
    padding: 18px 18px 20px;
  }
}

@media (min-width: 760px) {
  .skills {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .skills {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .extras {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

/* ---------- 下载和安装（设计 §2.6） ---------- */

.install {
  display: grid;
  gap: 40px;
  margin-top: 36px;
}

.download-meta {
  margin-top: 14px;
  color: var(--faint);
  font-size: 13px;
}

.notes {
  margin-top: 20px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
}

.notes summary {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
}

.notes-body {
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.notes-body p,
.notes-body ul {
  margin: 0 0 10px;
}

.notes-body ul {
  padding-left: 1.2em;
}

.notes-body li + li {
  margin-top: 4px;
}

.notes-body strong {
  color: var(--text);
}

.notes-body code {
  font-size: 0.92em;
}

.install-steps {
  display: grid;
  gap: 22px;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.install-steps > li {
  position: relative;
  padding-left: 46px;
  counter-increment: step;
  font-size: 16px;
}

.install-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 159, 10, 0.15);
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

@media (min-width: 900px) {
  .install {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
}

/* "仍要打开"的示意图：用网页画系统设置里"安全性"那一块，不用系统截图（设计 §2.6） */
.gatekeeper {
  max-width: 520px;
  margin-top: 16px;
}

.gk-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #1e1e21;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}

.gk-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #262629;
}

.gk-light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.gk-light + .gk-light {
  background: #febc2e;
}

.gk-light + .gk-light + .gk-light {
  background: #28c840;
}

.gk-bar-title {
  margin-left: 12px;
  font-size: 13px;
  font-weight: 600;
}

.gk-body {
  padding: 16px 18px 20px;
}

.gk-heading {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.gk-group {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
}

.gk-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 14px;
  font-size: 13px;
}

.gk-button {
  position: relative;
  padding: 3px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 2px var(--accent),
    0 0 18px rgba(255, 159, 10, 0.45);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .gk-button {
    animation: gk-pulse 2.4s ease-in-out infinite;
  }
}

@keyframes gk-pulse {
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 0 0 2px var(--accent),
      0 0 4px rgba(255, 159, 10, 0.15);
  }
}

.gatekeeper figcaption {
  margin-top: 8px;
  color: var(--faint);
  font-size: 13px;
}

/* ---------- 常见问题（设计 §2.7）：<details>，不靠 JS ---------- */

.faq {
  max-width: 820px;
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq summary,
.notes summary,
.privacy summary {
  position: relative;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker,
.notes summary::-webkit-details-marker,
.privacy summary::-webkit-details-marker {
  display: none;
}

.faq summary {
  padding: 18px 40px 18px 0;
  font-size: 17px;
  font-weight: 600;
}

/* 右边的 ＋，展开以后转成 × */
.faq summary::after,
.notes summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  color: var(--faint);
  transition: transform 0.2s;
}

.notes summary::after {
  right: 18px;
}

.faq details[open] > summary::after,
.notes[open] > summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 42em;
  padding: 0 0 20px;
  color: var(--muted);
}

/* ---------- 页脚（设计 §2.8） ---------- */

.footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: grid;
  gap: 32px;
}

.contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact strong {
  color: var(--text);
}

/* 手机、平板上扫不了自己屏幕上的码：多一行怎么扫（设计 §2.9 的 device-other） */
.qr-tip {
  display: none;
  margin-top: 8px;
  color: var(--faint);
  font-size: 13px;
}

.device-other .qr-tip {
  display: block;
}

.qr {
  flex: none;
  width: 116px;
  height: 116px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
}

.privacy summary {
  display: inline-block;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 4px;
}

.privacy ul {
  margin: 10px 0 4px;
  padding-left: 1.2em;
}

.privacy li + li {
  margin-top: 6px;
}

.legal {
  margin-top: 14px;
  color: var(--faint);
  font-size: 13px;
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
}

/* ---------- 样片的弹层（设计 §2.3）：按片子自己的画幅尽量大 ---------- */

.player {
  --w: 16;
  --h: 9;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.player[open] {
  display: grid;
  place-items: center;
}

.player::backdrop {
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.player[data-aspect="9:16"] {
  --w: 9;
  --h: 16;
}

.player[data-aspect="3:4"] {
  --w: 3;
  --h: 4;
}

.player[data-aspect="4:3"] {
  --w: 4;
  --h: 3;
}

.player[data-aspect="1:1"] {
  --w: 1;
  --h: 1;
}

.player-box {
  width: min(92vw, calc((100vh - 112px) * var(--w) / var(--h)));
  width: min(92vw, calc((100dvh - 112px) * var(--w) / var(--h)));
}

.player-video {
  display: block;
  width: 100%;
  aspect-ratio: var(--w) / var(--h);
  border-radius: 12px;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.player-title {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.player-close {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 1;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: rgba(40, 40, 46, 0.8);
  color: #fff;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.player-close:hover {
  background: rgba(70, 70, 78, 0.9);
}

/* ---------- 404（site/src/404.html） ---------- */

.not-found main {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 40px var(--gutter);
  text-align: center;
  background: radial-gradient(50% 45% at 50% 40%, rgba(255, 159, 10, 0.12), transparent 70%);
}

.not-found img {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
}

.not-found h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 36px);
}

.not-found p {
  color: var(--muted);
}

.not-found .button {
  margin-top: 24px;
}
