/* ============================================================
   xmjweb.com · 砚台书卷风（墨绿 #1c3a2e + 砂金 #c9a227 + 月白 #f4efe3）
   全新原创主题：以砚池墨色压底、砂金描边、月白宣纸铺面。
   与 168xmj / xmj168 / xmj98 / xmj365 四站主题互斥。
   ============================================================ */
:root {
  --ink: #1c3a2e;          /* 墨绿 */
  --ink-deep: #12271e;     /* 砚底 */
  --ink-soft: #2c5040;     /* 松烟 */
  --gold: #c9a227;         /* 砂金 */
  --gold-soft: #e2c87c;    /* 磨金 */
  --gold-dim: #8f7420;     /* 沉金 */
  --paper: #f4efe3;        /* 月白宣纸 */
  --paper-2: #ece5d3;      /* 二手宣 */
  --line: #d8cfb8;         /* 界栏线 */
  --text: #24352c;         /* 墨字 */
  --text-soft: #55685c;    /* 淡墨 */
  --white: #fbf9f2;
  --shadow: 0 14px 34px rgba(18, 39, 30, 0.14);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Serif CJK SC", "Songti SC", "SimSun", Georgia, serif;
  background: var(--paper);
  color: var(--text);
  line-height: 1.78;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold-dim); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* ---------- 顶条 ---------- */
.topline { background: var(--ink-deep); color: var(--paper-2); font-size: 13px; }
.topline .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 7px 0; flex-wrap: wrap; }
.topline a { color: var(--gold-soft); border-bottom: 1px dashed var(--gold-dim); white-space: nowrap; }

/* ---------- 页头与导航（下拉锚点在 .nav，不给 sticky 的 header 加 relative） ---------- */
.site-head { position: sticky; top: 0; z-index: 60; background: rgba(28, 58, 46, 0.97); border-bottom: 2px solid var(--gold); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; position: relative; width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); font-weight: 700; font-size: 21px; letter-spacing: 1px; }
.brand:hover { color: var(--gold-soft); }
.seal { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--gold); color: var(--ink-deep); border-radius: 8px; font-size: 15px; font-weight: 900; box-shadow: inset 0 0 0 2px var(--ink-deep); }
.nav-list { display: flex; list-style: none; gap: 4px; flex-wrap: wrap; }
.nav-list a { display: block; padding: 8px 13px; border-radius: 8px; color: var(--paper-2); font-size: 15px; }
.nav-list a:hover { background: var(--ink-soft); color: var(--gold-soft); }
.nav-list .active { color: var(--gold-soft); background: var(--ink-soft); box-shadow: inset 0 -2px 0 var(--gold); }
.nav-toggle { display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px; width: 46px; height: 42px; background: var(--ink-soft); border: 1px solid var(--gold-dim); border-radius: 9px; cursor: pointer; }
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: var(--gold-soft); border-radius: 2px; transition: transform 0.28s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 面包屑 ---------- */
.crumbs { padding: 14px 0 0; font-size: 14px; color: var(--text-soft); }
.crumbs a { color: var(--ink-soft); }
.crumbs .sep { margin: 0 8px; color: var(--gold-dim); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(158deg, var(--ink-deep) 0%, var(--ink) 52%, var(--ink-soft) 100%); color: var(--paper); padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -80px -140px auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 162, 39, 0.16), transparent 65%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 46px; align-items: center; }
.kicker { display: inline-block; font-size: 13px; letter-spacing: 3px; color: var(--gold-soft); border: 1px solid var(--gold-dim); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.32; margin-bottom: 18px; color: var(--white); font-weight: 900; }
.hero .sub { font-size: 17px; color: var(--paper-2); margin-bottom: 28px; max-width: 560px; }
.btn { display: inline-block; background: var(--gold); color: var(--ink-deep); font-weight: 800; padding: 13px 30px; border-radius: 10px; letter-spacing: 1px; box-shadow: 0 8px 20px rgba(201, 162, 39, 0.28); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.btn:hover { transform: translateY(-2px); color: var(--ink-deep); box-shadow: 0 12px 26px rgba(201, 162, 39, 0.38); }
.btn-moon { background: var(--paper); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.btn-moon:hover { color: var(--ink-deep); }
.hero-note { margin-top: 18px; font-size: 13.5px; color: rgba(236, 229, 211, 0.72); }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: var(--radius); border: 1px solid rgba(201, 162, 39, 0.55); box-shadow: var(--shadow); }
.corner-tag { position: absolute; top: 14px; right: -8px; background: var(--gold); color: var(--ink-deep); font-size: 13px; font-weight: 800; padding: 5px 14px; border-radius: 6px 0 0 6px; box-shadow: var(--shadow); }

/* ---------- 通用 section ---------- */
.section { padding: 66px 0; }
.section.tone-ink { background: var(--ink); color: var(--paper); }
.section.tone-ink .kicker { color: var(--gold-soft); }
.section.tone-ink h2 { color: var(--white); }
.section.tone-ink .panel, .section.tone-ink .card { background: var(--ink-soft); border-color: rgba(201, 162, 39, 0.4); color: var(--paper-2); }
.section.tone-ink h3 { color: var(--gold-soft); }
.section.tone-ink a { color: var(--gold-soft); }
.section.tone-paper { background: var(--paper-2); }
.section.tone-white { background: var(--white); }
.section-head { margin-bottom: 34px; max-width: 780px; }
.section-head h2 { font-size: clamp(22px, 3vw, 31px); color: var(--ink); line-height: 1.4; }
.section-head .bar { width: 64px; height: 4px; background: linear-gradient(90deg, var(--gold), transparent); border-radius: 2px; margin: 12px 0; }
.section-head p { color: var(--text-soft); }

/* ---------- 面板/卡片 ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.panel p + p { margin-top: 14px; }
.card-grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); position: relative; transition: transform 0.2s ease; }
.card:hover { transform: translateY(-3px); }
.card .icon { width: 46px; height: 46px; display: grid; place-items: center; background: var(--ink); color: var(--gold-soft); border-radius: 10px; font-size: 22px; margin-bottom: 14px; font-weight: 900; }
.card h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--text-soft); }
.card .tag { position: absolute; top: 16px; right: 16px; font-size: 12px; color: var(--gold-dim); border: 1px solid var(--gold-soft); border-radius: 999px; padding: 1px 9px; }

/* ---------- 数据条 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--white); border: 1px dashed var(--gold-dim); border-radius: var(--radius); text-align: center; padding: 26px 12px; }
.stat b { display: block; font-size: 30px; color: var(--ink); letter-spacing: 1px; }
.stat span { font-size: 14px; color: var(--text-soft); }
.section.tone-ink .stat { background: rgba(244, 239, 227, 0.07); }
.section.tone-ink .stat b { color: var(--gold-soft); }
.section.tone-ink .stat span { color: var(--paper-2); }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: st; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; position: relative; }
.step::before { counter-increment: st; content: counter(st, decimal-leading-zero); position: absolute; top: -14px; left: 16px; background: var(--gold); color: var(--ink-deep); font-weight: 900; border-radius: 8px; padding: 2px 10px; font-size: 14px; }
.step h3 { margin: 10px 0 8px; font-size: 17px; color: var(--ink); }
.step p { font-size: 14.5px; color: var(--text-soft); }

/* ---------- 时间线 ---------- */
.timeline { border-left: 3px solid var(--gold); margin-left: 10px; padding-left: 30px; display: grid; gap: 24px; }
.tl-item { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.tl-item::before { content: ""; position: absolute; left: -40px; top: 26px; width: 14px; height: 14px; background: var(--gold); border: 3px solid var(--paper); border-radius: 50%; }
.tl-item h3 { color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.tl-item p { color: var(--text-soft); font-size: 15px; }
.section.tone-ink .tl-item { background: var(--ink-soft); border-color: rgba(201, 162, 39, 0.35); color: var(--paper-2); }
.section.tone-ink .tl-item h3 { color: var(--gold-soft); }
.section.tone-ink .tl-item p { color: var(--paper-2); }

/* ---------- 双栏 ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 26px; align-items: start; }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px; font-size: 15px; }
.check-list .dot { color: var(--gold-dim); font-weight: 900; }
.section.tone-ink .check-list li { background: rgba(244, 239, 227, 0.08); border-color: rgba(201, 162, 39, 0.35); color: var(--paper-2); }
.section.tone-ink .check-list .dot { color: var(--gold-soft); }

/* ---------- 表格 ---------- */
.table-card { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }
.table-card table { width: 100%; border-collapse: collapse; min-width: 620px; }
.table-card th { background: var(--ink); color: var(--gold-soft); text-align: left; padding: 13px 16px; font-size: 15px; }
.table-card td { padding: 13px 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text); }
.table-card tr:nth-child(even) td { background: var(--paper-2); }

/* ---------- FAQ ---------- */
.faq-item { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 18px 22px; margin-bottom: 14px; }
.faq-q { font-weight: 800; color: var(--ink); font-size: 16.5px; margin-bottom: 6px; }
.faq-a { color: var(--text-soft); font-size: 15px; }
.section.tone-ink .faq-item { background: var(--ink-soft); border-color: rgba(201, 162, 39, 0.35); }
.section.tone-ink .faq-q { color: var(--gold-soft); }
.section.tone-ink .faq-a { color: var(--paper-2); }

/* ---------- 引言 ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 18px; position: relative; box-shadow: var(--shadow); }
.quote::before { content: "「"; position: absolute; top: 6px; left: 14px; font-size: 34px; color: var(--gold); }
.quote p { font-size: 15px; color: var(--text); margin-bottom: 12px; }
.quote .who { font-size: 13px; color: var(--gold-dim); font-weight: 700; }
.section.tone-ink .quote { background: rgba(244, 239, 227, 0.07); border-color: rgba(201, 162, 39, 0.35); }
.section.tone-ink .quote p { color: var(--paper-2); }
.section.tone-ink .quote .who { color: var(--gold-soft); }

/* ---------- 编号大列表 ---------- */
.big-list { list-style: none; display: grid; gap: 16px; }
.big-list li { display: flex; gap: 18px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.big-list .no { font-size: 24px; font-weight: 900; color: var(--gold-dim); min-width: 42px; font-family: Georgia, serif; }
.big-list b { color: var(--ink); font-size: 17px; display: block; margin-bottom: 4px; }
.big-list p { color: var(--text-soft); font-size: 15px; }
.section.tone-ink .big-list li { background: var(--ink-soft); border-color: rgba(201, 162, 39, 0.35); }
.section.tone-ink .big-list b { color: var(--gold-soft); }
.section.tone-ink .big-list p { color: var(--paper-2); }
.section.tone-ink .big-list .no { color: var(--gold); }

/* ---------- 联系卡 ---------- */
.entry-card { background: linear-gradient(140deg, var(--ink-deep), var(--ink-soft)); color: var(--paper); border: 1px solid var(--gold-dim); border-radius: 18px; padding: 38px 34px; text-align: center; box-shadow: var(--shadow); }
.entry-card h2 { color: var(--white); margin: 6px 0 10px; font-size: clamp(20px, 2.6vw, 27px); }
.entry-card .contact-line { color: var(--gold-soft); font-size: 15px; letter-spacing: 1px; margin-bottom: 12px; }
.entry-card p { max-width: 720px; margin-inline: auto; }
.entry-card .hint { margin-top: 14px; font-size: 13px; color: rgba(236, 229, 211, 0.7); }

/* ---------- 横幅 ---------- */
.banner { display: flex; align-items: center; justify-content: space-between; gap: 26px; background: var(--ink); color: var(--paper); border: 1px solid var(--gold-dim); border-radius: 18px; padding: 32px 34px; box-shadow: var(--shadow); }
.banner h3 { color: var(--white); font-size: 22px; margin: 6px 0 8px; }
.banner p { color: var(--paper-2); font-size: 15px; max-width: 700px; }
.banner .kicker { margin-bottom: 8px; }

/* ---------- 词链 chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips a { border: 1px solid var(--gold-dim); background: var(--white); color: var(--ink); padding: 8px 18px; border-radius: 999px; font-size: 14.5px; transition: background 0.2s ease, color 0.2s ease; }
.chips a:hover { background: var(--ink); color: var(--gold-soft); }
.chips .hot { background: var(--gold); border-color: var(--gold); color: var(--ink-deep); font-weight: 800; }
.section.tone-ink .chips a { background: rgba(244, 239, 227, 0.08); color: var(--paper-2); border-color: rgba(201, 162, 39, 0.45); }
.section.tone-ink .chips .hot { background: var(--gold); color: var(--ink-deep); }

/* ---------- 页脚 ---------- */
.site-foot { background: var(--ink-deep); color: var(--paper-2); padding: 54px 0 26px; border-top: 3px solid var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; margin-bottom: 30px; }
.foot-brand { color: var(--gold-soft); font-size: 19px; font-weight: 800; margin-bottom: 12px; }
.site-foot h4 { color: var(--paper); margin-bottom: 12px; font-size: 16px; letter-spacing: 1px; }
.foot-links { list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.foot-links a { color: var(--paper-2); }
.foot-links a:hover { color: var(--gold-soft); }
.site-foot p { font-size: 14px; color: rgba(236, 229, 211, 0.78); }
.foot-bottom { border-top: 1px solid rgba(201, 162, 39, 0.35); padding-top: 18px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: rgba(236, 229, 211, 0.66); }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: rgba(18, 39, 30, 0.98); border: 1px solid var(--gold-dim); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list a { padding: 12px 14px; font-size: 16px; }
  .hero { padding: 44px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-media { order: -1; }
  .split { grid-template-columns: 1fr; }
  .banner { flex-direction: column; align-items: flex-start; }
  .cols-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .topline .wrap { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  .cols-3, .cols-4, .stat-grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .corner-tag { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 页脚更新日期(新鲜度信号) ---------- */
.site-updated{font-size:13px;line-height:1.7;opacity:.72;margin-top:10px}

/* ---------- 语义主区 ---------- */
.site-main{display:block}

/* ---------- 正文配图 ---------- */
.fig{margin:22px 0;padding:0}
.fig img{width:100%;height:auto;border-radius:12px;display:block;box-shadow:0 6px 18px rgba(0,0,0,.18)}
.fig figcaption{margin-top:8px;font-size:14.5px;line-height:1.7;opacity:.78;text-align:center}
