/* ============================================
   Motrix下载站 · 纸面编辑部风格
   配色：暖纸底 / 墨色 / 朱砂红点缀
   ============================================ */

:root {
  --paper: #f6f2ea;
  --paper-deep: #efe9dc;
  --ink: #1e1a16;
  --ink-soft: #6b6257;
  --ink-faint: #a39a8c;
  --vermilion: #c8401f;
  --gold: #d9a441;
  --green: #4e7a5a;
  --rule: #d8cfbe;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.85;
  font-size: 16px;
  /* 细密的纸纹 */
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 3px, rgba(30, 26, 22, 0.012) 3px, rgba(30, 26, 22, 0.012) 4px
  );
}

::selection { background: var(--vermilion); color: var(--paper); }

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

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

h1, h2, h3, .section-no, .foot-brand { font-family: var(--serif); }

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

.site-head {
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px 28px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
}

.brand { display: inline-flex; }
.brand img { width: 168px; height: 40px; }

.site-nav a {
  margin-left: 34px;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.12em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--vermilion); color: var(--ink); }

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

.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 28px 88px;
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 10fr);
  gap: 56px;
  align-items: center;
  position: relative;
}

/* 侧边竖排小字，报纸边栏的感觉 */
.hero-side {
  position: absolute;
  left: -8px;
  top: 96px;
  writing-mode: vertical-rl;
  letter-spacing: 0.5em;
  font-size: 13px;
  color: var(--ink-faint);
  border-left: 1px solid var(--rule);
  padding-left: 10px;
}

.kicker {
  font-size: 14px;
  letter-spacing: 0.28em;
  color: var(--vermilion);
  margin-bottom: 18px;
}
.kicker::before { content: "— "; }

h1 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 22px;
}

.lead { color: var(--ink-soft); margin-bottom: 34px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 34px;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-solid { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--vermilion); }
.btn-solid:hover { color: var(--paper); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--vermilion); }
.btn-ghost { border: 2px solid var(--ink); }
.btn-ghost:hover { color: var(--ink); background: var(--paper-deep); }

.hero-note { margin-top: 26px; font-size: 13px; color: var(--ink-faint); }

.hero-figure { position: relative; }
.hero-figure img {
  transform: rotate(-1.2deg);
}
.hero-figure figcaption,
.wide-figure figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
}
.hero-figure figcaption::before,
.wide-figure figcaption::before { content: "▪ "; color: var(--vermilion); }

/* ---------- 章节通用 ---------- */

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 76px 28px;
  border-top: 1px solid var(--rule);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin-bottom: 18px;
}

/* 章节编号：大号宋体汉字，淡淡地压在标题旁 */
.section-no {
  font-size: 58px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--vermilion);
  user-select: none;
}

h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
}

.section-intro {
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 44px;
}

h3 { font-size: 19px; margin-bottom: 10px; }
h4 { font-size: 15.5px; margin: 14px 0 4px; color: var(--vermilion); }

/* ---------- 特性 ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1.5px solid var(--ink);
  margin-bottom: 56px;
}

.feature-grid article {
  padding: 30px 28px 34px;
  border-right: 1.5px solid var(--ink);
}
.feature-grid article:last-child { border-right: none; }
.feature-grid article:nth-child(2) { background: var(--paper-deep); }

.feature-grid h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  background: var(--vermilion);
  margin-bottom: 14px;
}
.feature-grid p { font-size: 15px; color: var(--ink-soft); }

.wide-figure {
  max-width: 760px;
  margin: 0 auto;
}

/* ---------- 下载区（深色反白） ---------- */

.section-dark {
  max-width: none;
  background: var(--ink);
  color: var(--paper);
  border-top: none;
}
.section-dark > * { max-width: 1104px; margin-left: auto; margin-right: auto; }
.section-dark .section-head { margin-bottom: 18px; }
.section-dark .section-intro { color: #b8ae9f; margin-bottom: 44px; }
.section-dark .section-no { -webkit-text-stroke-color: var(--gold); }
.section-dark a { color: var(--paper); text-decoration-color: var(--gold); }
.section-dark a:hover { color: var(--gold); }

.dl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-bottom: 52px;
}
.dl-table th {
  font-family: var(--serif);
  text-align: left;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--paper);
}
.dl-table td {
  padding: 18px 14px;
  border-bottom: 1px solid #4a443c;
  vertical-align: top;
}
.dl-table tbody tr:hover { background: #2a251f; }
.dl-table td:first-child { font-family: var(--serif); font-size: 17px; }

.pick-help h3 { margin-bottom: 20px; }
.pick-help h3::after { content: ""; display: block; width: 44px; height: 2px; background: var(--gold); margin-top: 10px; }

.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.pick-grid h4 { color: var(--gold); margin-top: 0; }
.pick-grid p { font-size: 14.5px; color: #b8ae9f; }

/* ---------- 教程 ---------- */

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

.step h3 { display: flex; align-items: baseline; gap: 12px; }
.step h3 i {
  font-style: normal;
  font-family: Georgia, serif;
  font-size: 30px;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-faint);
}
.step p { font-size: 15px; color: var(--ink-soft); }

/* ---------- 答疑 ---------- */

.faq-list { max-width: 820px; }

.faq-item {
  padding: 26px 0 28px;
  border-bottom: 1px dashed var(--rule);
}
.faq-item:first-child { padding-top: 6px; }

.faq-item dt h3 { font-size: 18px; }
.faq-item dt h3::before { content: "问　"; color: var(--vermilion); font-size: 15px; }
.faq-item dd { color: var(--ink-soft); font-size: 15px; padding-left: 2.4em; position: relative; }
.faq-item dd::before { content: "答　"; position: absolute; left: 0; color: var(--ink-faint); font-family: var(--serif); }

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

.site-foot {
  border-top: 2px solid var(--ink);
  background: var(--paper-deep);
}
.foot-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 44px 28px 50px;
}
.foot-brand { font-size: 22px; margin-bottom: 8px; }
.foot-brand::after { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--vermilion); margin-left: 10px; }
.foot-inner p { color: var(--ink-soft); font-size: 14.5px; }
.foot-meta { margin-top: 16px; color: var(--ink-faint) !important; font-size: 13px !important; }

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

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 40px; }
  .hero-side { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { border-right: none; border-bottom: 1.5px solid var(--ink); }
  .feature-grid article:last-child { border-bottom: none; }
  .steps, .pick-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .site-head { flex-direction: column; gap: 16px; }
  .site-nav a { margin: 0 12px; }
  .section { padding: 56px 20px; }
  .section-no { font-size: 42px; }

  /* 表格改卡片式堆叠 */
  .dl-table thead { display: none; }
  .dl-table, .dl-table tbody, .dl-table tr, .dl-table td { display: block; }
  .dl-table tr { border-bottom: 1px solid #4a443c; padding: 14px 0; }
  .dl-table td { border: none; padding: 4px 0; }
  .dl-table td::before {
    content: attr(data-th) "　";
    color: var(--gold);
    font-size: 13px;
  }
  .dl-table td:first-child::before { content: none; }
}
