/* ==========================================================================
   pk拾概率技巧与规律 — 概率手册风
   米色纸面 + 砖红；单栏书页、章号、页边注
   ========================================================================== */

body.page-gailv {
  --ink: #2a2118;
  --ink-2: #4f4233;
  --muted: #7b6450;
  --line: rgba(42, 33, 24, .14);
  --paper: #f4ece0;
  --shell: #eee3d3;
  --night: #2a1c14;
  --accent: #a63a2b;
  --accent-2: #7b6450;
  --accent-soft: rgba(166, 58, 43, .07);
  --focus: #a63a2b;
  --header-bg: rgba(244, 236, 224, .95);
  font-family: "Noto Serif SC", "Songti SC", serif;
}

.page-gailv .brand-mark { background: #a63a2b; color: #f7f0e4; }
.page-gailv .site-nav a,
.page-gailv .btn,
.page-gailv .btn-login,
.page-gailv .acc-trigger,
.page-gailv .tg-link { font-family: var(--font); }
.page-gailv .btn-primary { background: #a63a2b; color: #fbf5ea; }
.page-gailv .btn-primary:hover { background: #8f3023; }
.page-gailv .btn-room { color: #2a2118; }
.page-gailv .btn-room b { color: #a63a2b; }
.page-gailv .btn-login { background: #a63a2b; color: #fbf5ea; }

/* ---------- 封面 ---------- */
.gl-hero {
  padding: 50px 0 0;
  background:
    linear-gradient(180deg, #faf4e9, #f4ece0);
  border-bottom: 1px solid var(--line);
}
.gl-crumb { margin-bottom: 28px; }
.gl-crumb a:hover { color: #a63a2b; }
.gl-cover {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 52px;
  align-items: center;
}
.gl-edition {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 3px;
  color: #9a7b54;
}
.gl-hero h1 {
  margin-top: 16px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 2px;
  color: #2a2118;
}
.gl-lead {
  margin-top: 20px;
  max-width: 540px;
  font-size: 15px;
  line-height: 2;
  color: #4f4233;
}
.gl-lead strong { color: #a63a2b; }
.gl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.gl-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: #7b6450;
}
.gl-toc b {
  font-family: var(--mono);
  font-size: 10.5px;
  color: #a63a2b;
  margin-right: 6px;
}
.gl-figure {
  border: 1px solid rgba(42, 33, 24, .16);
  border-radius: 3px;
  overflow: hidden;
  background: #fdf8ee;
  box-shadow: 0 26px 60px rgba(80, 55, 30, .16);
  margin-bottom: 46px;
}

/* ---------- 书页 ---------- */
.gl-chapter {
  padding: 64px 0;
  border-bottom: 1px solid rgba(42, 33, 24, .08);
}
.gl-alt { background: #efe4d4; }
.gl-book {
  max-width: 880px;
}
.gl-chapter-head {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 30px;
}
.gl-no {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1px;
  color: #a63a2b;
  padding-top: 8px;
  border-top: 2px solid #a63a2b;
}
.gl-chapter-head h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.35;
  font-weight: 700;
  color: #2a2118;
}
.gl-chapter-head p {
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.9;
  color: #7b6450;
}
.gl-note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.9;
  color: #8a7058;
}

/* ---------- 三张卡片 ---------- */
.gl-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gl-card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-top: 3px solid #a63a2b;
  background: #fbf6ec;
}
.gl-card b {
  font-family: var(--mono);
  font-size: 26px;
  color: #a63a2b;
  letter-spacing: 1px;
}
.gl-card h3 { margin: 10px 0 8px; font-size: 15.5px; font-weight: 600; color: #2a2118; }
.gl-card p { font-size: 13px; line-height: 1.85; color: #7b6450; }

/* ---------- 页边注 ---------- */
.gl-margin {
  margin-top: 22px;
  margin-left: 98px;
  padding: 18px 22px;
  border-left: 2px solid #c9a27a;
  background: rgba(255, 255, 255, .35);
}
.gl-margin b {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.6px;
  color: #a63a2b;
  margin-bottom: 5px;
}
.gl-margin p { font-size: 13px; line-height: 1.85; color: #7b6450; }

/* ---------- 表格 ---------- */
.gl-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fbf6ec; }
.gl-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 13px;
}
.gl-table th,
.gl-table td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(42, 33, 24, .1);
  border-right: 1px solid rgba(42, 33, 24, .07);
}
.gl-table th:last-child,
.gl-table td:last-child { border-right: 0; }
.gl-table thead th {
  background: #f3e6d3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #8a7058;
  font-weight: 600;
}
.gl-table td { color: #4f4233; }
.gl-table td:nth-child(odd) { font-family: var(--mono); font-weight: 600; color: #2a2118; }
.gl-table tr.is-peak td { background: rgba(166, 58, 43, .07); color: #a63a2b; }
.gl-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- 公式 ---------- */
.gl-formula {
  padding: 28px 30px;
  border: 1px solid var(--line);
  background: #fbf6ec;
}
.gl-formula > span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: #9a7b54;
}
.gl-formula b {
  display: block;
  margin: 10px 0 12px;
  font-family: var(--mono);
  font-size: clamp(20px, 2.6vw, 30px);
  color: #a63a2b;
  letter-spacing: 1px;
}
.gl-formula p { font-size: 13.5px; line-height: 1.9; color: #7b6450; }

.gl-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 26px;
}
.gl-two h3 { font-size: 16.5px; font-weight: 600; color: #2a2118; margin-bottom: 7px; }
.gl-two p { font-size: 13.5px; line-height: 1.9; color: #7b6450; }

/* ---------- 辟谣 ---------- */
.gl-myths { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.gl-myths > div {
  padding: 22px 24px 22px 0;
  border-bottom: 1px solid var(--line);
}
.gl-myths > div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.gl-myths b {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  color: #a63a2b;
}
.gl-myths h3 { margin: 8px 0 8px; font-size: 17px; font-weight: 600; color: #2a2118; }
.gl-myths p { font-size: 13px; line-height: 1.85; color: #7b6450; margin-bottom: 5px; }
.gl-myths strong { font-weight: 600; color: #4f4233; }
.gl-myths > div:last-child { grid-column: span 2; border-left: 0; padding-left: 0; }

/* ---------- 技巧 ---------- */
.gl-skills { counter-reset: sk; display: grid; gap: 0; border-top: 1px solid var(--line); }
.gl-skills li {
  display: grid;
  grid-template-columns: 54px 120px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.gl-skills li::before {
  counter-increment: sk;
  content: counter(sk, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  color: #a63a2b;
}
.gl-skills b { font-size: 15.5px; font-weight: 600; color: #2a2118; }
.gl-skills span { font-size: 13.5px; line-height: 1.85; color: #7b6450; }

/* ---------- 预算 ---------- */
.gl-budget { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gl-budget > div {
  padding: 24px 22px;
  border: 1px solid var(--line);
  background: #fbf6ec;
}
.gl-budget b {
  display: block;
  font-family: var(--mono);
  font-size: 34px;
  line-height: 1;
  color: #a63a2b;
}
.gl-budget span { display: block; margin: 8px 0 7px; font-size: 13px; font-weight: 600; color: #2a2118; }
.gl-budget p { font-size: 12.5px; line-height: 1.8; color: #7b6450; }

.gl-warn {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  padding: 22px 24px;
  border: 1px solid rgba(166, 58, 43, .28);
  background: rgba(166, 58, 43, .05);
}
.gl-warn > b {
  flex: none;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.6px;
  color: #a63a2b;
  padding-top: 3px;
}
.gl-warn p { font-size: 13.5px; line-height: 1.9; color: #4f4233; }
.gl-warn a { color: #a63a2b; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 记录 ---------- */
.gl-record { border: 1px solid var(--line); background: #fbf6ec; overflow-x: auto; }
.gl-record-row {
  display: grid;
  grid-template-columns: .7fr 1fr 1.1fr 1fr 1.4fr;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(42, 33, 24, .1);
  font-size: 12.5px;
  color: #4f4233;
  min-width: 640px;
}
.gl-record-row:last-child { border-bottom: 0; }
.gl-record-head {
  background: #f3e6d3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.1px;
  color: #8a7058;
}
.gl-record-row span:first-child { font-family: var(--mono); color: #a63a2b; }
.gl-record-head span:first-child { color: #8a7058; }

/* ---------- 误区 ---------- */
.gl-mis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gl-mis h3 {
  font-size: 17px;
  font-weight: 600;
  color: #2a2118;
  padding-top: 12px;
  border-top: 1px solid #c9a27a;
  margin-bottom: 8px;
}
.gl-mis p { font-size: 13px; line-height: 1.9; color: #7b6450; }

/* ---------- 路径 ---------- */
.gl-path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gl-path > div {
  padding: 22px 20px;
  border: 1px solid var(--line);
  background: #fbf6ec;
}
.gl-path b {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  color: #a63a2b;
}
.gl-path h3 { margin: 8px 0 7px; font-size: 15px; font-weight: 600; color: #2a2118; }
.gl-path p { font-size: 12.5px; line-height: 1.8; color: #7b6450; }

/* ---------- 术语 ---------- */
.gl-gloss {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.gl-gloss > div { padding: 18px 22px; background: #fbf6ec; }
.gl-gloss dt { font-size: 14.5px; font-weight: 600; color: #a63a2b; margin-bottom: 4px; }
.gl-gloss dd { font-size: 13px; line-height: 1.8; color: #7b6450; }

/* ---------- FAQ ---------- */
.gl-faq { border-top: 1px solid var(--line); }
.gl-faq .acc-trigger { font-family: var(--font); color: #2a2118; }
.gl-faq .acc-trigger:hover { color: #a63a2b; }
.gl-faq .acc-panel { font-family: var(--font); color: #4f4233; }

/* ---------- 相关 ---------- */
.gl-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gl-related a {
  padding: 22px 22px;
  border: 1px solid var(--line);
  background: #fbf6ec;
  transition: border-color .2s, transform .2s;
}
.gl-related a:hover { border-color: #a63a2b; transform: translateY(-3px); }
.gl-related em { font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.5px; color: #9a7b54; }
.gl-related b { display: block; margin: 8px 0 4px; font-size: 15px; color: #2a2118; }
.gl-related span { font-size: 12.5px; color: #7b6450; }

/* ---------- 联系 ---------- */
.gl-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 32px 34px;
  border: 1px solid var(--line);
  border-top: 3px solid #a63a2b;
  background: #fbf6ec;
}
.gl-contact h2 { font-size: 24px; font-weight: 700; color: #2a2118; }
.gl-contact p { margin-top: 6px; font-size: 13.5px; color: #7b6450; }
.gl-contact .tg-link { font-family: var(--font); border-color: rgba(42, 33, 24, .25); color: #2a2118; }
.gl-contact .tg-link:hover { border-color: #229ed9; background: rgba(34, 158, 217, .06); }

/* ---------- 地图 ---------- */
.gl-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gl-map a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  background: #fbf6ec;
  font-size: 13.5px;
  color: #4f4233;
  transition: border-color .2s, color .2s;
}
.gl-map a:hover { border-color: #a63a2b; color: #a63a2b; }
.gl-map em { font-style: normal; font-family: var(--mono); font-size: 10px; color: #9a7b54; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .gl-cover { grid-template-columns: 1fr; gap: 34px; }
  .gl-figure { max-width: 680px; margin-bottom: 0; }
  .gl-hero { padding-bottom: 0; }
  .gl-cards { grid-template-columns: 1fr; }
  .gl-margin { margin-left: 0; }
  .gl-path { grid-template-columns: 1fr 1fr; }
  .gl-mis { grid-template-columns: 1fr; gap: 14px; }
  .gl-related { grid-template-columns: 1fr; }
  .gl-map { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .gl-hero h1 { font-size: 40px; letter-spacing: 1px; }
  .gl-actions .btn { width: 100%; }
  .gl-chapter { padding: 46px 0; }
  .gl-chapter-head { grid-template-columns: 44px 1fr; gap: 14px; }
  .gl-two { grid-template-columns: 1fr; }
  .gl-myths { grid-template-columns: 1fr; }
  .gl-myths > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .gl-myths > div:last-child { grid-column: auto; }
  .gl-skills li { grid-template-columns: 38px 1fr; }
  .gl-skills span { grid-column: 2; }
  .gl-budget { grid-template-columns: 1fr; }
  .gl-path { grid-template-columns: 1fr; }
  .gl-gloss { grid-template-columns: 1fr; }
  .gl-contact { padding: 26px 22px; }
  .gl-contact h2 { font-size: 21px; }
  .gl-map { grid-template-columns: 1fr; }
}
