/* 绘动 · Movoire — 品牌站样式
   设计依据：项目根目录 DESIGN.md（Personal Art Zine 方向）
   色值：paper #FBF8EF / surface #FFFDF8 / ink #174C3C / muted #5B625C
        coral #F27655 / yellow #F4C83F / line #DDD9CF / error #B93A32
   字体：标题 Noto Serif SC，正文 Noto Sans SC */

:root {
  --paper: #fbf8ef;
  --surface: #fffdf8;
  --ink: #174c3c;
  --ink-soft: #2f6352;
  --muted: #5b625c;
  --coral: #f27655;
  --yellow: #f4c83f;
  --line: #ddd9cf;
  --error: #b93a32;

  --serif: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, sans-serif;

  --maxw: 1080px;
  --readw: 704px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("/assets/paper.jpg");
  background-size: 700px;
  background-repeat: repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

/* ---------- 布局 ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--read {
  max-width: var(--readw);
}

section {
  padding: 76px 0;
}

section.tight {
  padding: 52px 0;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 248, 239, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 66px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.wordmark em {
  font-style: normal;
  color: var(--coral);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  border-bottom: 2px solid var(--coral);
  padding-bottom: 2px;
}

/* ---------- 首页 Hero ---------- */

.hero {
  padding: 88px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.24;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}

h1 .mark {
  color: var(--coral);
}

.lede {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 30px;
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background-color 0.15s ease;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--ink-soft);
  color: var(--paper);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.note {
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0 0;
}

.hero-art {
  position: relative;
}

.hero-art img {
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -22px rgba(23, 76, 60, 0.45);
}

.hero-art .tape {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-2.5deg);
  width: 96px;
  height: 26px;
  background: rgba(244, 200, 63, 0.55);
  border-left: 1px dashed rgba(23, 76, 60, 0.12);
  border-right: 1px dashed rgba(23, 76, 60, 0.12);
}

/* ---------- 作品展示 ---------- */

.gallery {
  display: grid;
  grid-template-columns: 0.82fr 1.36fr 1fr;
  gap: 20px;
  align-items: end;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  border-radius: var(--radius);
  box-shadow: 0 14px 32px -20px rgba(23, 76, 60, 0.4);
}

.gallery figcaption {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
}

/* ---------- 章节标题 ---------- */

h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.35;
  margin: 0 0 14px;
}

h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 8px;
}

.section-lede {
  color: var(--muted);
  margin: 0 0 44px;
  max-width: 40em;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.step .num {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 10px;
}

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

/* ---------- 卡片网格 ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}

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

/* ---------- 会员 ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}

.plan--pick {
  border-color: var(--coral);
  box-shadow: 0 16px 34px -24px rgba(242, 118, 85, 0.7);
}

.plan .name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 4px;
}

.plan .price {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  margin: 10px 0 2px;
}

.plan .price small {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.plan .quota {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
}

.plan ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14.5px;
}

.plan li {
  margin-bottom: 6px;
}

.tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(244, 200, 63, 0.4);
  border-radius: 999px;
  padding: 3px 11px;
  margin: 0;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 52px 0 40px;
  font-size: 14px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 34px;
}

.site-footer h4 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--coral);
  text-decoration: underline;
}

.entity {
  line-height: 1.7;
}

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

.colophon {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ---------- 法务页 ---------- */

.legal-hero {
  padding: 60px 0 30px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 12px;
}

.legal-hero .meta {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.legal {
  padding: 46px 0 76px;
}

.legal h2 {
  font-size: 21px;
  margin: 44px 0 12px;
  padding-top: 6px;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal h3 {
  font-size: 16.5px;
  margin: 26px 0 8px;
}

.legal p,
.legal li {
  color: #33443c;
  font-size: 15.5px;
}

.legal ul,
.legal ol {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14.5px;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--surface);
  font-weight: 600;
  color: var(--ink);
}

.legal td {
  color: #33443c;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--muted);
}

.callout strong {
  color: var(--ink);
}

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0 0 40px;
}

.toc p {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
  font-size: 14.5px;
}

.toc li {
  margin-bottom: 5px;
}

.toc a {
  text-decoration: none;
  color: var(--muted);
}

.toc a:hover {
  color: var(--coral);
  text-decoration: underline;
}

.faq {
  margin: 0 0 34px;
}

.faq dt {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
}

.faq dd {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15.5px;
}

.lang {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

.lang:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  background: rgba(23, 76, 60, 0.07);
  padding: 1px 6px;
  border-radius: 6px;
  word-break: break-all;
}

/* ---------- 表单（账号删除申请） ---------- */

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  margin: 24px 0;
}

.field {
  margin-bottom: 18px;
}

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

.field .hint {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 7px;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
  border-color: var(--coral);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--muted);
  margin: 20px 0;
}

.check input {
  margin-top: 5px;
  width: 17px;
  height: 17px;
  accent-color: var(--coral);
  flex: 0 0 auto;
}

button.btn {
  font-family: inherit;
  cursor: pointer;
}

button.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.copybox {
  margin-top: 20px;
}

.copybox[hidden] {
  display: none;
}

.copybox textarea {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  min-height: 190px;
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .hero-grid,
  .gallery,
  .steps,
  .cards,
  .plans,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .gallery {
    align-items: start;
  }
  .hero {
    padding: 56px 0 40px;
  }
  section {
    padding: 56px 0;
  }
  .toc ol {
    columns: 1;
  }
  .nav {
    gap: 16px;
    font-size: 13px;
  }
  .site-header .wrap {
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc {
    display: none;
  }
  body {
    background: #fff;
  }
}
