/* 爱剪（AICut）官网样式 */

:root {
  --paper: #FBF9F4;
  --paper-deep: #F2EFE7;
  --ink: #1E1C1A;
  --ink-muted: #6F6A62;
  --rule: #DDD8CC;
  --red: #C4342B;
  --highlighter: #FFE86B;
  --film: #0F0E0D;

  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: -apple-system, "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
p { margin: 0; }
img { max-width: 100%; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--red); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.measure { max-width: 40em; }
.measure-serif { max-width: 34em; }

.muted { color: var(--ink-muted); }
.small { font-size: 14px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 22%; display: block; }

.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { font-size: 15px; text-decoration: none; color: var(--ink-muted); }
.site-nav a:hover { color: var(--red); }

/* ---------- 通用版块 ---------- */

.section { padding-top: 96px; padding-bottom: 96px; border-top: 1px solid var(--rule); scroll-margin-top: 72px; }
.section > .container > h2 { font-size: 28px; line-height: 1.3; margin-bottom: 16px; }
.section-lead { margin-bottom: 40px; }

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

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.2;
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid var(--ink);
  text-decoration: none;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; color: var(--paper); }
.btn-secondary:hover { border-color: var(--red); color: var(--red); }
.btn[aria-disabled="true"] { color: var(--ink-muted); border-color: var(--rule); cursor: default; }
.btn[aria-disabled="true"]:hover { color: var(--ink-muted); border-color: var(--rule); background: var(--paper); }

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

.hero { padding-top: 72px; padding-bottom: 0; }
.hero-text { max-width: 760px; margin: 0 auto; text-align: center; }
.hero-text .measure { margin-left: auto; margin-right: auto; }
.hero h1 { font-size: 56px; line-height: 1.2; margin-bottom: 24px; letter-spacing: -0.01em; }
.hero-text p { margin-bottom: 20px; font-size: 18px; }
.hero-status { font-size: 14px; color: var(--ink-muted); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-kv { margin: 56px 0 0; }
.hero-kv img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 30px 80px -30px rgba(30, 28, 26, 0.35); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #A82A22; color: #fff; }
.why-visual { margin: 40px 0 8px; }
.why-visual img { display: block; width: 100%; height: auto; border-radius: 16px; }
.why-visual figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-muted); text-align: center; }
.section.dark { background: var(--film); color: var(--paper); }
.section.dark h2, .section.dark .section-lead { color: var(--paper); }
.section.dark .cmp th, .section.dark .cmp td { border-bottom-color: rgba(251, 249, 244, 0.15); color: var(--paper); }
.section.dark .cmp thead th { border-bottom-color: rgba(251, 249, 244, 0.6); }
.section.dark .cmp tbody th { color: rgba(251, 249, 244, 0.6); }
.section.dark .cmp td.yes { color: var(--highlighter); background: rgba(255, 232, 107, 0.08); }
.section.dark .cmp-note { color: rgba(251, 249, 244, 0.5); }
#screens { background: var(--paper-deep); }
.hero-demo { max-width: 780px; margin: 32px auto 0; }

/* ---------- 文稿 ---------- */

.manuscript {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--red);
  padding: 28px 28px 20px;
}

.ms-note {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--red);
  text-align: right;
  margin-bottom: 4px;
}

.ms-line {
  position: relative;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.75;
  padding: 2px 0;
  margin: 0;
}

.ms-line .txt {
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* 红笔划掉：每一行独立画一道，换行也不断 */
.ms-line.cut { color: var(--ink-muted); }
.ms-line.cut .txt {
  background-image: linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 54%;
}
.ms-line.cut.draw .txt {
  animation: strike 1.2s ease-out both;
  animation-delay: var(--d, 0ms);
}
@keyframes strike {
  from { background-size: 0 2px; }
  to { background-size: 100% 2px; }
}

/* 正在播的句子 */
.ms-line.playing .txt {
  background: linear-gradient(var(--highlighter), var(--highlighter));
  box-shadow: 0 0 0 2px var(--highlighter);
}

.ms-marker {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--red);
  white-space: nowrap;
  margin-left: 6px;
}

.ms-folded {
  font-size: 14px;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 16px;
}

/* 输入条 */
.demo-input {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper-deep);
  border-radius: 6px;
  padding: 12px 12px 12px 16px;
  margin-top: 20px;
}
.demo-input .demo-input-text { flex: 1; font-size: 16px; color: var(--ink-muted); }
.demo-send {
  font-family: var(--sans);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip {
  font-family: var(--sans);
  font-size: 14px;
  padding: 7px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--red); color: var(--red); }

.caption-preview {
  margin-top: 16px;
  background: var(--film);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  text-align: center;
  padding: 10px 12px;
  border-radius: 4px;
}
.caption-preview[hidden] { display: none; }

/* ---------- 三步 ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step-num { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--red); line-height: 1; margin-bottom: 10px; }
.step h3 { font-size: 20px; margin-bottom: 10px; }

/* ---------- 对话 ---------- */

.chat { max-width: 40em; display: flex; flex-direction: column; gap: 16px; }
.chat-row { display: flex; }
.chat-row.from-user { justify-content: flex-end; }
.bubble { background: var(--paper-deep); border-radius: 6px; padding: 12px 16px; max-width: 26em; }
.reply { display: flex; gap: 14px; align-items: baseline; }
.reply-label { font-family: var(--sans); font-size: 13px; color: var(--red); white-space: nowrap; padding-top: 2px; }
.reply-text { max-width: 26em; }
.chat-note { margin-top: 28px; color: var(--ink-muted); }

/* ---------- 切片选题 ---------- */

.topics { list-style: none; margin: 32px 0 0; padding: 0; max-width: 34em; }
.topics li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--serif);
  font-size: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.topics li:first-child { border-top: 1px solid var(--rule); }
.tick {
  flex: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  position: relative;
  transform: translateY(2px);
}
.tick::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid var(--red);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.topic-dur { margin-left: auto; font-family: var(--sans); font-size: 14px; color: var(--ink-muted); }

/* ---------- 插图 ---------- */

.section-img { display: block; width: 100%; max-width: 100%; height: auto; margin: 32px 0; }
.section-img + .topics, .section-img + .tiles { margin-top: 0; }

/* ---------- 隐私三段 ---------- */

.privacy-layout { display: grid; gap: 40px; }
.privacy-figure { margin: 0; }
.privacy-figure img { display: block; width: 100%; max-width: 360px; height: auto; }
.privacy-points { display: grid; grid-template-columns: 1fr; gap: 28px; }
.privacy-points h3 { font-size: 20px; margin-bottom: 10px; }

@media (min-width: 821px) {
  .privacy-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 56px;
    align-items: start;
  }
  .privacy-figure { grid-column: 2; grid-row: 1; }
  .privacy-points { grid-column: 1; grid-row: 1; }
}

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

.leads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; margin-top: 40px; }
.lead-num { font-family: var(--serif); color: var(--red); font-size: 14px; letter-spacing: 0.1em; margin: 0 0 6px; }
.lead h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 10px; }
.lead p { margin: 0; line-height: 1.8; }
.cmp-wrap { overflow-x: auto; margin-top: 48px; }
.cmp { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.cmp thead th { font-weight: 600; font-family: var(--serif); font-size: 15px; border-bottom: 2px solid var(--ink); }
.cmp tbody th { font-weight: 500; color: var(--ink-muted); width: 20%; }
.cmp td.yes { color: var(--red); font-weight: 600; background: rgba(196, 52, 43, 0.05); }
.cmp-note { margin-top: 10px; font-size: 12px; color: var(--ink-muted); }
h3.sub { font-family: var(--serif); font-size: 22px; margin: 48px 0 0; }
.guides { margin-top: 20px; }
.guides .tile ul { padding-left: 1.2em; }
.guides a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; margin-top: 40px; }
.why-item h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 10px; }
.why-item p { margin: 0; color: var(--ink); line-height: 1.8; }
.why-item p strong, .section-lead strong { color: var(--red); font-weight: 600; }
.step a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.caps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.caps li { padding-left: 18px; position: relative; line-height: 1.7; }
.caps li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 2px; background: var(--red); }
.caps li strong { font-weight: 600; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; align-items: start; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); background: var(--paper-deep); }
.shots figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-muted); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.tile { border: 1px solid var(--rule); border-radius: 0; padding: 24px; }
.tile:hover { border-color: var(--ink); }
.tile-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tile h3 { font-size: 22px; }
.badge {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.4;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink-muted);
}
.tile ul { margin: 0 0 16px; padding-left: 1.2em; font-size: 15px; }
.tile li { margin-bottom: 6px; }
.tile-os { font-size: 14px; color: var(--ink-muted); margin-bottom: 16px; }
.tile-get { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tile-note { font-size: 14px; color: var(--ink-muted); }

/* ---------- 常见问题 ---------- */

.faq { max-width: 40em; }
.faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { font-family: var(--serif); font-size: 19px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary::before { content: "＋"; color: var(--red); margin-right: 10px; font-family: var(--sans); }
.faq details[open] summary::before { content: "－"; }
.faq details p { margin-top: 10px; }

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

.site-footer { border-top: 1px solid var(--rule); padding-top: 32px; padding-bottom: 48px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ink-muted); }
.footer-inner a { color: var(--ink-muted); }
.footer-links { display: flex; gap: 20px; }

/* ---------- 隐私政策页 ---------- */

.doc { padding-top: 64px; padding-bottom: 96px; max-width: 40em; }
.doc h1 { font-size: 36px; line-height: 1.25; margin-bottom: 12px; }
.doc h2 { font-size: 24px; margin-top: 40px; margin-bottom: 12px; }
.doc p { margin-bottom: 16px; }
.doc ul { padding-left: 1.2em; margin: 0 0 16px; }
.doc li { margin-bottom: 10px; }
.doc .doc-date { color: var(--ink-muted); font-size: 14px; margin-bottom: 32px; }

/* ---------- 窄屏 ---------- */

/* 主题曲 */
.song-card { max-width: 40em; border: 1px solid var(--rule); background: var(--paper-deep); padding: 24px; }
.song-card audio { display: block; width: 100%; }
.song-lyrics { margin-top: 20px; }
.song-lyrics summary { cursor: pointer; font-family: var(--serif); font-size: 17px; }
.song-lyrics-grid { display: grid; grid-template-columns: 1fr; gap: 0 32px; margin-top: 12px; }
.song-lyrics-grid p { margin: 0 0 16px; line-height: 1.8; }
.song-tag { font-size: 13px; color: var(--ink-muted); margin-bottom: 4px !important; }
@media (min-width: 600px) { .song-lyrics-grid { grid-template-columns: 1fr 1fr; } }

@media (max-width: 820px) {
  .hero h1 { font-size: 32px; }
  .hero h1 br { display: none; }
  .hero-text p { font-size: 16px; }
  .hero-kv { margin-top: 32px; }
  .hero-kv img, .why-visual img { border-radius: 10px; }
  .hero { padding-top: 48px; padding-bottom: 56px; }
  .section { padding-top: 56px; padding-bottom: 56px; scroll-margin-top: 112px; }
  .steps, .tiles, .shots, .why-grid, .caps, .leads { grid-template-columns: 1fr; gap: 32px; }
  .caps { gap: 10px; }
  .section-img { margin: 24px 0; }
  .manuscript { padding: 20px 18px 16px; }
  .ms-line { font-size: 18px; }
  .site-nav { gap: 14px; }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 10px; }
  .doc h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .ms-line.cut.draw .txt { animation: none; background-size: 100% 2px; }
}

.nobreak { white-space: nowrap; }
.ms-note { margin-top: 10px; }
