/* 夜颂家政 · 试玩版下载页（主策划 10-07 美化）：哥特深色底 + 金边，和游戏 UI 同一套颜色。
   字体（2026-10-17 用户）：与宣传片字幕（勤务须知滚动字幕）一致 = 站酷小薇，自托管不引外部 CDN（国内访问稳定优先）。 */
@font-face {
  font-family: "ZCOOL XiaoWei";
  src: url("fonts/ZCOOLXiaoWei-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #0d0a0c;
  --bg-2: #15100f;
  --panel: rgba(28, 20, 18, 0.86);
  --line: rgba(201, 164, 92, 0.28);
  --line-strong: rgba(201, 164, 92, 0.55);
  --gold: #c9a45c;
  --gold-hi: #ecd497;
  --wine: #6e1420;
  --wine-hi: #9a2232;
  --text: #ebdfc8;
  --muted: #a69684;
  --serif: "ZCOOL XiaoWei", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(110, 20, 32, 0.22), transparent 70%),
    radial-gradient(900px 500px at 50% 100%, rgba(201, 164, 92, 0.06), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* ---------- 首图 ---------- */
.hero { position: relative; max-width: 1600px; margin: 0 auto; }
.hero-img { display: block; width: 100%; height: auto; }
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: linear-gradient(to bottom, rgba(13, 10, 12, 0), var(--bg));
  pointer-events: none;
}

/* ---------- 正文 ---------- */
.page { max-width: 760px; margin: -72px auto 0; padding: 0 16px 24px; position: relative; }

.intro { text-align: center; }
/* 标题区 = 一张试玩委托单（用户 10-07 在四版里选了 A）：羊皮纸、公文体、红色火漆 */
.contract {
  position: relative; max-width: 560px; margin: 0 auto; padding: 26px 34px 22px; text-align: left;
  color: #3a2a1c; background: linear-gradient(180deg, #efe3c6, #e3d2ad);
  border: 1px solid #b89a5f; border-radius: 6px;
  box-shadow: 0 0 0 5px rgba(201, 164, 92, 0.18), 0 16px 34px rgba(0, 0, 0, 0.5);
}
.contract::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(120, 90, 40, 0.45); border-radius: 3px; pointer-events: none; }
.c-head { display: flex; justify-content: space-between; font-size: 13px; letter-spacing: 0.2em; color: #7a5a2c; border-bottom: 1px solid rgba(120, 90, 40, 0.4); padding-bottom: 6px; }
.contract h1 { margin: 12px 0 0; font-size: 40px; font-weight: 400; letter-spacing: 0.3em; text-indent: 0.3em; color: #2a1c10; text-align: center; }
.c-en { margin: 0; text-align: center; font-family: Georgia, "Times New Roman", serif; font-style: italic; color: #7a5a2c; letter-spacing: 0.15em; font-size: 14px; }
.c-body { margin: 14px 0 0; font-size: 15px; line-height: 1.9; text-indent: 2em; }
.c-sign { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 14px; color: #5a4128; }
.seal {
  /* 10-10 用户：印章用用户单独出的火漆贴图（源：artifacts/refs/art_1010/wax_seal_src.webp），不用程序画的红圆 */
  width: 76px; height: 76px; object-fit: contain; display: block; margin: -10px -6px -12px 0;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35)); transform: rotate(-10deg);
}

/* ---------- 下载区 ---------- */
.download {
  margin: 34px auto 30px; padding: 26px 22px 20px; text-align: center;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(110, 20, 32, 0.30), rgba(28, 20, 18, 0.92) 60%),
    var(--bg-2);
  box-shadow: 0 0 0 4px rgba(201, 164, 92, 0.06), 0 18px 40px rgba(0, 0, 0, 0.45);
}
.dl-meta { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 14px; }
.pill {
  color: var(--gold-hi); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 1px 12px; font-size: 14px; letter-spacing: 0.08em;
}
.dl-size { color: var(--muted); font-size: 14px; }
.btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 260px; padding: 14px 34px; border-radius: 10px; text-decoration: none;
  color: #2a1608;
  background: linear-gradient(180deg, #f1dca2, var(--gold) 55%, #a8843f);
  border: 1px solid #f5e4b4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 22px rgba(201, 164, 92, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 12px 28px rgba(201,164,92,0.32); }
.btn:active { transform: translateY(0); }
.btn-main { font-size: 20px; font-weight: 400; letter-spacing: 0.18em; }
.btn-sub { font-size: 12px; letter-spacing: 0.08em; opacity: 0.75; }
.dl-hint { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.dl-note { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

/* ---------- 面板 ---------- */
.panel {
  margin: 0 0 18px; padding: 18px 22px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
}
h2 { margin: 0 0 10px; font-size: 19px; color: var(--gold-hi); letter-spacing: 0.12em; font-weight: 400; }
.orn { color: var(--gold); margin-right: 8px; font-size: 14px; vertical-align: 2px; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 14px; padding: 8px 0; border-top: 1px dashed rgba(201, 164, 92, 0.16); }
.steps li:first-child { border-top: 0; }
.steps .num {
  flex: none; width: 28px; height: 28px; border-radius: 50%; text-align: center; line-height: 26px;
  border: 1px solid var(--line-strong); color: var(--gold-hi); font-size: 14px; margin-top: 2px;
}
.steps b { display: block; color: var(--text); letter-spacing: 0.1em; }
.steps div { color: var(--muted); min-width: 0; }

.notes { margin: 0; padding: 0; list-style: none; }
.notes li { padding: 6px 0; border-top: 1px dashed rgba(201, 164, 92, 0.16); color: var(--text); }
.notes li:first-child { border-top: 0; }
.notes .ver { color: var(--gold-hi); margin-right: 10px; letter-spacing: 0.06em; }

.faq details { border-top: 1px dashed rgba(201, 164, 92, 0.16); }
.faq details:first-of-type { border-top: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 10px 0; color: var(--text); letter-spacing: 0.06em;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--gold); font-size: 15px; transition: transform 0.2s ease; }
.faq details[open] summary::after { content: "－"; }
.faq details p { margin: 0 0 12px; color: var(--muted); }

code {
  font-family: Consolas, "Cascadia Mono", monospace; font-size: 0.86em;
  color: var(--gold-hi); background: rgba(201, 164, 92, 0.08); overflow-wrap: anywhere;
  border: 1px solid rgba(201, 164, 92, 0.18); border-radius: 4px; padding: 0 5px;
}
.dim { color: var(--muted); }

/* ---------- 页脚 ---------- */
.foot { text-align: center; padding: 26px 16px 46px; color: var(--text); }
.foot img { border-radius: 12px; opacity: 0.9; }
.foot p { margin: 6px 0 0; letter-spacing: 0.12em; font-size: 14px; }

@media (max-width: 560px) {
  .page { margin-top: -28px; }
  .contract { padding: 22px 20px 18px; }
  .contract h1 { font-size: 34px; }
  .c-head { letter-spacing: 0.1em; }
  .btn { min-width: 0; width: 100%; }
  .panel { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .faq summary::after { transition: none; }
}
