/* ===== 新金融琅琊榜 · 文章档案站 =====
   风格：杂志编辑风（暖纸底 / 墨黑字 / 印刷红 / Noto Serif SC 衬线）
   无抽象图、无英文标签。 */

:root {
  --paper: #FBFAF7;
  --paper-2: #F4F1EA;
  --ink: #1A1A1A;
  --ink-soft: #5b574e;
  --ink-faint: #8a857a;
  --red: #B23A2E;
  --red-deep: #8F2D23;
  --line: #E2DCD0;
  --line-strong: #cfc7b6;
  --card: #FFFFFF;
  --shadow: 0 1px 2px rgba(26,22,16,.05), 0 8px 24px rgba(26,22,16,.05);
  --serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100% !important;
  -moz-text-size-adjust: 100% !important;
  -ms-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
  overflow-x: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ---------- 报头 ---------- */
.masthead {
  text-align: center;
  padding: 28px 0 14px;
  border-bottom: 3px double var(--line-strong);
  margin-bottom: 6px;
  position: relative;
}
.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: .28em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.masthead-top .m-l,
.masthead-top .m-r {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: none;
  color: var(--ink);
  transition: color .15s;
}
.masthead-top a:hover { color: var(--red); }
.masthead .brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: .12em;
  margin: 0;
  color: var(--ink);
}
.masthead .brand .accent { color: inherit; }
.masthead .sub {
  margin: 9px auto 0;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--ink-soft);
  max-width: 720px;
  line-height: 1.45;
}

/* ---------- 关于页 ---------- */
.about {
  max-width: 760px;
  margin: 16px auto 48px;
}
.about-block {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.about-block:last-child { border-bottom: none; }
.about-h {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .08em;
  color: var(--ink);
  margin: 0 0 14px;
  position: relative;
  padding-left: 15px;
}
.about-h::before {
  content: "";
  position: absolute;
  left: 0; top: 5px; bottom: 5px;
  width: 4px;
  background: var(--red);
}
.about-p {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--ink-soft);
  margin: 0;
  letter-spacing: .01em;
}

/* ---------- Hero 大图封面 ---------- */
.hero {
  position: relative;
  width: 100%;
  margin: 8px 0 0;
  background: #0a1726;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  aspect-ratio: 16 / 3;
  min-height: 110px;
  max-height: 300px;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  /* 微微压暗，保证白字可读 */
  filter: brightness(0.78) saturate(0.95);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 1120px;
  padding: 22px 28px 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #f5f1e8;
  pointer-events: none;
}
.hero-stats {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--serif);
  color: #f5f1e8;
}
.hero-stats b {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero-stats span {
  font-size: 11px;
  letter-spacing: .22em;
  opacity: .82;
  margin-top: 6px;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .hero-img { aspect-ratio: 16 / 5; min-height: 120px; max-height: 200px; }
  .hero-overlay { padding: 18px 22px 0; }
  .hero-stats { gap: 18px; }
  .hero-stats b { font-size: 19px; }
  .hero-stats span { font-size: 10px; letter-spacing: .16em; }
}
@media (max-width: 480px) {
  .hero-stats { gap: 14px; }
  .hero-stats b { font-size: 17px; }
  .hero-stats span { font-size: 9.5px; letter-spacing: .12em; }
  .wrap { padding: 0 16px; }
  .article { padding: 24px 16px 60px; }
  .a-title { font-size: 22px !important; line-height: 1.4 !important; }
  .a-body { font-size: 15.5px; line-height: 1.8; }
  .a-meta { font-size: 12px; line-height: 1.7; display: flex; flex-wrap: wrap; gap: 4px 0; }
  .a-meta b { margin-right: 12px; }
  .a-kws { font-size: 11.5px; padding: 10px 12px; gap: 6px; }
  .masthead { padding: 18px 0 10px; }
  .brand { font-size: 26px; }
  .sub { font-size: 12px; margin: 6px 0 0; letter-spacing: .04em; }
  .masthead-top { padding: 8px 16px 4px; font-size: 10.5px; letter-spacing: .18em; }
  .masthead-top .m-l, .masthead-top .m-r { font-size: 11.5px; letter-spacing: .08em; }
  .hero-img { aspect-ratio: 16 / 6; min-height: 80px; max-height: 130px; }
  .hero-overlay { padding: 10px 14px 0; }
}

/* ---------- 控制条 ---------- */
.controls {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 16px 0 14px;
}
.controls-inner { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.search {
  flex: 1 1 260px;
  min-width: 220px;
  position: relative;
}
.search input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--line-strong);
  background: transparent;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  padding: 8px 30px 8px 4px;
  outline: none;
  transition: border-color .2s;
}
.search input:focus { border-color: var(--red); }
.search .ico {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--ink-faint); font-family: var(--sans); font-size: 14px; pointer-events: none;
}
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sort, .toggle {
  font-family: var(--sans); font-size: 13.5px; color: var(--ink-soft);
  border: 1px solid var(--line-strong); background: var(--card);
  padding: 7px 12px; border-radius: 2px; cursor: pointer; transition: all .15s;
}
.sort:hover, .toggle:hover { border-color: var(--red); color: var(--red); }
.toggle.active { background: var(--red); color: #fff; border-color: var(--red); }
select.sort { -webkit-appearance: none; appearance: none; padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a857a' fill='none' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }

/* ---------- 主题筛选 ---------- */
.topics {
  display: flex; flex-wrap: wrap; gap: 9px; padding: 18px 0 4px;
}
.chip {
  font-family: var(--sans); font-size: 13.5px; color: var(--ink-soft);
  border: 1px solid var(--line-strong); padding: 6px 14px; border-radius: 999px;
  cursor: pointer; transition: all .15s; user-select: none; background: transparent;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .n { opacity: .55; margin-left: 6px; font-size: 12px; }
.chip.active .n { opacity: .7; }

/* ---------- 结果计数 ---------- */
.count {
  font-family: var(--sans); font-size: 13px; color: var(--ink-faint);
  padding: 16px 0 4px; letter-spacing: .02em;
}
.count b { color: var(--ink); font-weight: 600; }

/* ---------- 卡片网格 ---------- */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 26px;
  padding: 18px 0 50px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 3px;
  padding: 22px 22px 20px; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  min-height: 168px;
}
.card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong);
}
.card .tag {
  font-family: var(--sans); font-size: 12px; letter-spacing: .14em;
  color: var(--red); margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.card .tag .star { color: var(--red); }
.card .tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; align-items: center;
  min-height: 22px;
}
.card .tags .kw {
  font-family: var(--sans); font-size: 11px; letter-spacing: .04em;
  color: var(--ink-soft); padding: 2px 9px; border: 1px solid var(--line);
  border-radius: 99px; background: transparent; white-space: nowrap;
}
.card .tags .kw.star {
  color: var(--red); border-color: var(--red); font-family: var(--serif);
  font-weight: 700; letter-spacing: .14em;
}
.card .title {
  font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.45;
  color: var(--ink); margin: 0; flex: 1 0 auto;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .title { color: var(--red-deep); }
.card .more {
  font-family: var(--sans); font-size: 12.5px; color: var(--ink-faint);
  margin-top: 16px; letter-spacing: .04em;
}
.card .more .arrow { color: var(--red); }

/* ---------- 分页 ---------- */
.pager {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  padding: 8px 0 70px; flex-wrap: wrap;
}
.pager button {
  font-family: var(--sans); font-size: 14px; min-width: 38px; height: 38px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink-soft);
  cursor: pointer; border-radius: 2px; transition: all .15s; padding: 0 12px;
}
.pager button:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.pager button.cur { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager button:disabled { opacity: .35; cursor: default; }
.pager .ell { color: var(--ink-faint); padding: 0 4px; font-family: var(--sans); }

/* ---------- 文章页 ---------- */
.article { max-width: 740px; margin: 0 auto; padding: 40px 28px 80px; }
.article .crumb {
  font-family: var(--sans); font-size: 13px; color: var(--ink-faint); margin-bottom: 26px;
}
.article .crumb a:hover { color: var(--red); }
.article .crumb .sep { margin: 0 9px; color: var(--line-strong); }
.a-kws {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline;
  margin-bottom: 22px;
}
.a-kws .k {
  font-family: var(--sans); font-size: 11px; letter-spacing: .26em;
  color: var(--ink-faint); text-transform: uppercase; margin-right: 6px;
}
.a-kws .kw {
  font-family: var(--sans); font-size: 12px; letter-spacing: .04em;
  color: var(--ink-soft); padding: 3px 10px; border: 1px solid var(--line);
  border-radius: 99px; background: transparent;
}
.a-kws .kw.empty { color: var(--ink-faint); border-style: dashed; }
.a-tag {
  font-family: var(--sans); font-size: 12.5px; letter-spacing: .16em; color: var(--red);
  display: inline-flex; gap: 9px; align-items: center; margin-bottom: 16px;
}
.a-tag .star { color: var(--red); }
.a-title {
  font-family: var(--serif); font-weight: 700; font-size: 38px; line-height: 1.35;
  margin: 0 0 18px; color: var(--ink);
}
.a-meta {
  font-family: var(--sans); font-size: 13.5px; color: var(--ink-faint);
  padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--line);
}
.a-meta b { color: var(--ink-soft); font-weight: 600; }
.a-body { font-size: 18px; line-height: 1.9; color: #2b2620; }
.a-body p { margin: 0 0 1.3em; line-height: 1.9; text-align: justify; text-justify: inter-ideograph; overflow-wrap: break-word; }
.a-body p.a-lead {
  font-family: var(--sans);
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 1.5em;
  padding-left: 1em;
  border-left: 3px solid var(--line-strong);
}
.a-body img { display: block; width: 100%; max-width: 100%; height: auto; margin: 1.2em 0; border-radius: 2px; }
.a-body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.a-body h1, .a-body h2, .a-body h3 { font-family: var(--serif); font-weight: 700; line-height: 1.5; margin: 1.6em 0 .7em; }
.a-body h1 { font-size: 1.4em; } .a-body h2 { font-size: 1.25em; } .a-body h3 { font-size: 1.1em; }
.a-body blockquote { border-left: 3px solid var(--line-strong); margin: 1.4em 0; padding: .2em 0 .2em 1em; color: var(--ink-soft); }
.a-body ul, .a-body ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.a-body li { margin: .4em 0; }
.a-body table { width: 100%; max-width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; }
.a-body th, .a-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.a-body hr { border: none; border-top: 1px solid var(--line); margin: 1.6em 0; }
.a-fallback { background: #f4f1ea; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 3px; padding: 20px 22px; color: var(--ink-soft); font-size: 16px; line-height: 1.9; }
.a-fallback p { margin: 0 0 .6em; }
.a-fallback p:last-child { margin-bottom: 0; }
.a-note {
  margin: 34px 0; padding: 22px 24px; background: var(--paper-2);
  border-left: 3px solid var(--red); border-radius: 2px;
}
.a-note .k { font-family: var(--sans); font-size: 12.5px; letter-spacing: .12em; color: var(--red); margin-bottom: 8px; }
.a-note .v { font-size: 15.5px; color: var(--ink-soft); line-height: 1.8; }
.a-note .btn {
  display: inline-block; margin-top: 14px; font-family: var(--sans); font-size: 14px;
  background: var(--red); color: #fff; padding: 10px 20px; border-radius: 2px; transition: background .15s;
}
.a-note .btn:hover { background: var(--red-deep); }
.a-note .btn .arrow { margin-left: 6px; }

.related { margin-top: 56px; border-top: 3px double var(--line-strong); padding-top: 26px; }
.related h3 {
  font-family: var(--serif); font-weight: 700; font-size: 19px; margin: 0 0 18px;
  color: var(--ink); letter-spacing: .04em;
}
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { border-bottom: 1px solid var(--line); }
.related li a {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 13px 2px; transition: color .15s, padding .15s;
}
.related li a:hover { color: var(--red); padding-left: 8px; }
.related .r-t { font-family: var(--serif); font-size: 16.5px; line-height: 1.5; }
.related .r-c { font-family: var(--sans); font-size: 12.5px; color: var(--ink-faint); white-space: nowrap; }

/* ---------- 页脚 ---------- */
.foot {
  border-top: 3px double var(--line-strong); margin-top: 20px;
  padding: 30px 0 50px; text-align: center;
  font-family: var(--sans); font-size: 12.5px; color: var(--ink-faint); line-height: 1.9;
}
.foot a { color: var(--red); }

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .masthead .brand { font-size: 38px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .masthead { padding: 40px 0 24px; }
  .masthead .brand { font-size: 30px; letter-spacing: .08em; }
  .a-title { font-size: 28px; }
  .controls-inner { gap: 12px; }
}
