/* ============================================================
   拾趣集 · 水墨国风共享主题  theme.css
   宣纸底 · 墨线 · 朱砂印 · 黛蓝点缀
   ============================================================ */

:root {
  /* 色彩 */
  --paper: #f6f1e6;          /* 宣纸米白 */
  --paper-deep: #ede4d0;     /* 旧纸 */
  --paper-hi: #fbf7ec;       /* 亮纸面 */
  --ink: #2b2a26;            /* 浓墨 */
  --ink-soft: #57524a;       /* 淡墨 */
  --ink-faint: #8a8377;      /* 远墨 */
  --cinnabar: #b03a2e;       /* 朱砂 */
  --cinnabar-deep: #8e2d23;  /* 深朱 */
  --cinnabar-soft: rgba(176, 58, 46, .12);
  --indigo: #3e4a63;         /* 黛蓝 */
  --gold: #a0883f;           /* 赭金 */
  --line: rgba(43, 42, 38, .16);
  --line-strong: rgba(43, 42, 38, .32);

  /* 字体 */
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Microsoft YaHei", serif;
  --font-kai: "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif SC", serif;

  /* 形制 */
  --radius: 4px;
  --shadow-soft: 0 4px 18px rgba(43, 42, 38, .08);
  --shadow-lift: 0 10px 28px rgba(43, 42, 38, .16);
}

/* ---------- 全局 ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

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

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  line-height: 1.7;
  /* 宣纸质感：柔光 + 细颗粒 */
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(255, 255, 255, .55), transparent 62%),
    radial-gradient(ellipse 90% 50% at 50% 110%, rgba(168, 148, 108, .10), transparent 65%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-attachment: scroll;
  min-height: 100vh;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, p { margin: 0; }

/* 容器 */
.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 18px;
}

/* 节标题（章句体） */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 34px 0 18px;
  font-family: var(--font-kai);
  font-size: 1.15rem;
  letter-spacing: .35em;
  color: var(--ink);
}
.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* ---------- 印章 ---------- */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--cinnabar);
  color: var(--cinnabar);
  font-family: var(--font-kai);
  font-size: 1.25rem;
  line-height: 1;
  background: var(--paper-hi);
  transform: rotate(-4deg);
  box-shadow: inset 0 0 0 1px rgba(176, 58, 46, .18);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  padding: .7em 1.5em;
  font-size: 1rem;
  letter-spacing: .18em;
  border-radius: var(--radius);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(.98); }

/* 墨线钮 */
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); box-shadow: var(--shadow-soft); }

/* 朱砂印钮 */
.btn-seal {
  background: var(--cinnabar);
  border: 1.5px solid var(--cinnabar-deep);
  color: #fdf9ee;
  box-shadow: 0 3px 10px rgba(176, 58, 46, .28);
}
.btn-seal:hover { background: var(--cinnabar-deep); }

/* ---------- 页脚 ---------- */
.site-foot {
  margin: 44px 0 0;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: .82rem;
  letter-spacing: .28em;
  color: var(--ink-faint);
}
.site-foot .foot-line { display: block; margin: 6px 0 0; opacity: .75; }

/* ---------- 无障碍/动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
