/* ==========================================================================
   爱城旅行 · 设计基座
   黔地民艺 · 宣纸编辑风：蜡染靛蓝 + 朱砂 + 宣纸米白
   ========================================================================== */

:root {
  /* —— 主色：蜡染靛蓝 —— */
  --ink: #1d4e5c;
  --ink-deep: #143840;
  --ink-mid: #2c6b7a;
  --ink-soft: #e4edee;
  --ink-tint: #f2f7f7;

  /* —— 强调：朱砂 —— */
  --dan: #b4432f;
  --dan-deep: #8f3323;
  --dan-soft: #f7e8e4;

  /* —— 点缀：赤金 —— */
  --gold: #a88448;
  --gold-soft: #f6efe1;

  /* —— 纸底 —— */
  --paper: #efeae0;
  --paper-warm: #f7f4ec;
  --surface: #ffffff;
  --surface-2: #fbf9f5;

  /* —— 墨色文字 —— */
  --text: #23201c;
  --text-2: #5c574f;
  --text-3: #8c867c;
  --text-4: #b0aaa0;
  --text-inv: #f7f4ec;

  /* —— 线 —— */
  --line: #e4ded2;
  --line-2: #efeadf;
  --line-strong: #cfc7b8;

  /* —— 语义 —— */
  --ok: #3f7a55;
  --ok-soft: #eaf3ed;
  --warn: #c0862a;
  --warn-soft: #faf1e0;
  --danger: #b4432f;
  --danger-soft: #f9eae7;
  --info: #2c6b7a;
  --info-soft: #eaf2f4;

  /* —— 圆角（克制） —— */
  --r-xs: 3px;
  --r-s: 5px;
  --r-m: 8px;
  --r-l: 12px;
  --r-pill: 999px;

  /* —— 影（极轻，纸感） —— */
  --sh-1: 0 1px 2px rgba(35, 32, 28, .05);
  --sh-2: 0 2px 8px rgba(35, 32, 28, .07);
  --sh-3: 0 8px 28px rgba(35, 32, 28, .10);

  /* —— 字体 —— */
  --f-serif: "Songti SC", "STSong", "SimSun", "Source Han Serif SC", "Noto Serif SC", serif;
  --f-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;

  /* —— 尺寸 —— */
  --wrap: 1220px;
  --wrap-narrow: 880px;
  --header-h: 68px;
  --side-w: 210px;

  --t-fast: .14s cubic-bezier(.4, 0, .2, 1);
  --t: .22s cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 宣纸肌理：极淡的经纬网格 */
body.paper-grain {
  background-image:
    linear-gradient(rgba(29, 78, 92, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 92, .022) 1px, transparent 1px);
  background-size: 26px 26px;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .01em;
}

h1 { font-size: 30px; }
h2 { font-size: 23px; }
h3 { font-size: 18px; }
h4 { font-size: 15px; }

p { margin: 0 0 .8em; }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--dan); }

img { max-width: 100%; display: block; border-style: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button { cursor: pointer; border: none; background: none; padding: 0; }

table { border-collapse: collapse; width: 100%; }

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}

code, .mono { font-family: var(--f-mono); font-size: .92em; }

::selection { background: var(--ink); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-4); background-clip: content-box; }

/* ---------- 布局工具 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); }

.row { display: flex; }
.col { display: flex; flex-direction: column; }
.ac { align-items: center; }
.as { align-items: flex-start; }
.ae { align-items: flex-end; }
.jb { justify-content: space-between; }
.jc { justify-content: center; }
.je { justify-content: flex-end; }
.wrapf { flex-wrap: wrap; }
.f1 { flex: 1; min-width: 0; }

.g4 { gap: 4px; } .g6 { gap: 6px; } .g8 { gap: 8px; } .g10 { gap: 10px; }
.g12 { gap: 12px; } .g16 { gap: 16px; } .g20 { gap: 20px; } .g24 { gap: 24px; }
.g32 { gap: 32px; }

.grid { display: grid; gap: 20px; }
.gc2 { grid-template-columns: repeat(2, 1fr); }
.gc3 { grid-template-columns: repeat(3, 1fr); }
.gc4 { grid-template-columns: repeat(4, 1fr); }
.gc5 { grid-template-columns: repeat(5, 1fr); }

.mt0 { margin-top: 0; } .mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; }
.mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; } .mt40 { margin-top: 40px; }
.mb0 { margin-bottom: 0; } .mb4 { margin-bottom: 4px; } .mb8 { margin-bottom: 8px; }
.mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; } .mb20 { margin-bottom: 20px; }
.mb24 { margin-bottom: 24px; } .mb32 { margin-bottom: 32px; }

/* ---------- 文本 ---------- */
.serif { font-family: var(--f-serif); }
.t-xs { font-size: 11px; }
.t-s { font-size: 12px; }
.t-m { font-size: 13px; }
.t-l { font-size: 16px; }
.t-xl { font-size: 20px; }
.c-1 { color: var(--text); }
.c-2 { color: var(--text-2); }
.c-3 { color: var(--text-3); }
.c-4 { color: var(--text-4); }
.c-ink { color: var(--ink); }
.c-dan { color: var(--dan); }
.c-ok { color: var(--ok); }
.c-warn { color: var(--warn); }
.c-gold { color: var(--gold); }
.b5 { font-weight: 500; }
.b6 { font-weight: 600; }
.tc { text-align: center; }
.tr { text-align: right; }
.nowrap { white-space: nowrap; }

.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ell2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ell3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.hide { display: none !important; }

/* ---------- 线性图标基类 ---------- */
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -3px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.icon-14 { width: 14px; height: 14px; vertical-align: -2px; }
.icon-16 { width: 16px; height: 16px; vertical-align: -3px; }
.icon-20 { width: 20px; height: 20px; vertical-align: -4px; }
.icon-24 { width: 24px; height: 24px; vertical-align: -5px; }
.icon-28 { width: 28px; height: 28px; }
.icon-32 { width: 32px; height: 32px; }
.icon-40 { width: 40px; height: 40px; }

/* ---------- 印章 / 徽记 ---------- */
.seal-t {
  font-family: var(--f-serif);
  font-weight: 500;
}

.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.4px solid var(--dan);
  color: var(--dan);
  font-family: var(--f-serif);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0;
  border-radius: var(--r-xs);
  flex: none;
}

/* ---------- 章节标题 ---------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.sec-head .st { display: flex; align-items: baseline; gap: 10px; }
.sec-head h2, .sec-head h3 { margin: 0; }
.sec-head .sub { font-size: 12px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }
.sec-head .more { font-size: 13px; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; }
.sec-head .more:hover { color: var(--dan); }

.title-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-serif);
  font-size: 20px;
}
.title-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

@media (max-width: 1080px) {
  .gc5 { grid-template-columns: repeat(3, 1fr); }
  .gc4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .gc5, .gc4, .gc3 { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
}
@media (max-width: 520px) {
  .gc5, .gc4, .gc3, .gc2 { grid-template-columns: 1fr; }
}
