﻿:root {
  --paper: #f5f0e6;
  --paper-2: #ede5d5;
  --paper-3: #fbf8f1;
  --ink: #17130f;
  --ink-soft: #5c5548;
  --rule: #d6cab5;
  --accent: #dd4327;
  --accent-dark: #b1311a;
  --display: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block; height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

.wrap {
  width: min(1160px, calc(100% - 56px));
  margin: 0 auto;
}

section[id] {
  scroll-margin-top: 92px;
}

/* 顶部 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 240, 230, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 24px rgba(23, 19, 15, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 3px 10px rgba(41, 153, 235, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 16px;
  letter-spacing: 0.02em;
}

.brand-text small {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.site-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.header-dl {
  flex: 0 0 auto;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-dl:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* 首屏 */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
  padding: 78px 0 72px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.kicker span {
  width: 26px;
  height: 3px;
  background: var(--accent);
}

h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.16;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.lede {
  margin-top: 26px;
  max-width: 33em;
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 34px;
}

.btn-primary {
  padding: 13px 26px;
  background: var(--accent);
  color: #fff7ef;
  border-radius: 3px;
  font-size: 15px;
  letter-spacing: 0.03em;
  box-shadow: 5px 5px 0 rgba(23, 19, 15, 0.85);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 rgba(23, 19, 15, 0.85);
}

.btn-ghost {
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero-note {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.hero-cover {
  justify-self: end;
  width: min(340px, 100%);
  transform: rotate(-1.4deg);
}

.hero-cover img {
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
  box-shadow: 16px 16px 0 var(--paper-2), 16px 16px 0 1px rgba(23, 19, 15, 0.14);
  background: #fff;
}

.hero-cover figcaption {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 栏目索引 */

.index-bar {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.index-grid a {
  padding: 22px 22px 20px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background 0.2s ease;
}

.index-grid a:first-child {
  border-left: 1px solid var(--rule);
}

.index-grid a:hover {
  background: var(--paper-3);
}

.index-no {
  font-family: var(--display);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.index-name {
  font-size: 15px;
  font-weight: 600;
}

.index-note {
  font-size: 12px;
  color: var(--ink-soft);
}

/* 通用栏目 */

.section {
  padding: 78px 0 10px;
}

.section-head {
  max-width: 780px;
  margin-bottom: 44px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 14px;
}

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.section-lede {
  margin-top: 18px;
  color: var(--ink-soft);
  max-width: 44em;
}

/* 栏目列表 */

.column-list {
  border-top: 1px solid var(--ink);
}

.column-item {
  display: grid;
  grid-template-columns: 64px 1.15fr 0.85fr;
  gap: 34px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
}

.column-no {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1.2;
}

.column-main h3,
.board-card h3,
.wallpaper-row h3,
.read-steps h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.column-main p {
  color: var(--ink-soft);
}

.column-aside {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  border-left: 1px solid var(--rule);
  padding-left: 24px;
  align-self: start;
}

/* 截图 */

.shot-strip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 4px 22px;
  scroll-snap-type: x proximity;
}

.shot {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: start;
}

.shot img {
  width: 200px;
  height: auto;
  border: 1px solid var(--ink);
  background: #fff;
  box-shadow: 6px 6px 0 var(--paper-2), 6px 6px 0 1px rgba(23, 19, 15, 0.14);
  transition: transform 0.25s ease;
}

.shot:hover img {
  transform: translateY(-6px);
}

/* 简介与收藏 */

.section-read {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  padding-top: 82px;
  border-top: 1px solid var(--rule);
  margin-top: 68px;
}

.read-copy p {
  margin-top: 18px;
  color: var(--ink-soft);
}

.read-copy h2 {
  margin-top: 4px;
}

.read-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.read-steps li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.step-no {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--accent);
  line-height: 1.5;
}

.read-steps p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* 画板 */

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.board-card {
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  padding: 28px 26px 30px;
}

.board-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* 壁纸 */

.wallpaper-rows {
  border-top: 1px solid var(--ink);
}

.wallpaper-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.wallpaper-row h3 {
  margin: 0;
}

.wallpaper-row p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* 问答 */

.faq {
  border-top: 1px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 34px 20px 0;
  position: relative;
  font-weight: 600;
  font-size: 15.5px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "＋";
  position: absolute;
  right: 2px;
  top: 17px;
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 0 22px;
  max-width: 52em;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* 下载 */

.download {
  margin-top: 86px;
  padding: 82px 0 86px;
  background: var(--ink);
  color: var(--paper);
}

.download .eyebrow {
  color: #ff8f74;
}

.download-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.download-head h2 {
  color: #f8f3e8;
}

.download-head p {
  margin-top: 16px;
  color: #b7ac99;
  font-size: 14.5px;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.dl-card {
  padding: 26px 24px 28px;
  background: #221c15;
  border: 1px solid #3d3429;
  border-radius: 4px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.dl-card:hover {
  border-color: #ff8f74;
  background: #2a221a;
  transform: translateY(-3px);
}

.dl-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #a89a84;
  text-transform: uppercase;
}

.dl-card strong {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  color: #f8f3e8;
  margin: 10px 0 8px;
}

.dl-note {
  display: block;
  font-size: 13px;
  line-height: 1.8;
  color: #b7ac99;
}

/* 404 */

.error-page {
  padding: 110px 0 120px;
  min-height: 52vh;
}

.error-code {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 7.5rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.error-page h1 {
  margin-top: 18px;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

.error-text {
  margin-top: 18px;
  max-width: 34em;
  color: var(--ink-soft);
}

.error-page .btn-primary {
  display: inline-block;
  margin-top: 32px;
}

/* 页脚 */

.site-footer {
  border-top: 1px solid #2c251d;
  background: var(--ink);
  color: #b7ac99;
  padding: 30px 0 34px;
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  border-radius: 8px;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.footer-brand strong {
  color: #f8f3e8;
  font-size: 14px;
}

.footer-brand small {
  font-size: 11px;
  letter-spacing: 0.04em;
}

.footer-nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
}

.footer-nav a:hover {
  color: #ff8f74;
}

.footer-copy {
  margin-left: auto;
  font-size: 12px;
}

/* 响应式 */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr 300px;
    gap: 36px;
    padding-top: 60px;
  }

  .hero-cover {
    justify-self: end;
    width: min(300px, 100%);
    margin-left: 0;
  }

  .section-read {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .column-item {
    grid-template-columns: 52px 1fr;
    gap: 10px 22px;
  }

  .column-aside {
    grid-column: 2;
    border-left: 0;
    border-top: 1px dashed var(--rule);
    padding: 12px 0 0;
  }
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .hero-cover {
    justify-self: center;
    width: min(360px, 100%);
  }
}

@media (max-width: 820px) {
  .site-nav {
    display: none;
  }

  .header-dl {
    margin-left: auto;
  }

  .index-grid {
    grid-template-columns: 1fr 1fr;
  }

  .index-grid a {
    border-bottom: 1px solid var(--rule);
  }

  .index-grid a:nth-child(3) {
    border-left: 1px solid var(--rule);
  }

  .index-grid a:nth-child(3),
  .index-grid a:nth-child(4) {
    border-bottom: 0;
  }

  .wallpaper-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-copy {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .header-inner {
    min-height: 64px;
    gap: 14px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .brand-text small {
    font-size: 10px;
  }

  .header-dl {
    padding: 8px 14px;
    font-size: 12px;
  }

  .hero {
    padding-top: 46px;
    padding-bottom: 56px;
  }

  h1 {
    font-size: clamp(1.9rem, 8.4vw, 2.5rem);
  }

  .lede {
    margin-top: 20px;
    font-size: 15px;
  }

  .hero-cover {
    width: min(300px, 100%);
  }

  .hero-cover img {
    box-shadow: 10px 10px 0 var(--paper-2), 10px 10px 0 1px rgba(23, 19, 15, 0.14);
  }

  .section {
    padding-top: 58px;
  }

  .section-read {
    padding-top: 58px;
    margin-top: 50px;
  }

  .shot {
    width: 168px;
  }

  .shot img {
    width: 168px;
  }

  .column-item {
    grid-template-columns: 40px 1fr;
  }

  .column-no {
    font-size: 1.25rem;
  }

  .download {
    margin-top: 62px;
    padding: 62px 0 66px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}
