/* 176精品传奇站 — 站点样式 */
:root {
  --bg: #131110;
  --bg2: #191613;
  --panel: #1f1b17;
  --panel2: #26211b;
  --line: #35302a;
  --line-soft: #2a2521;
  --gold: #c9a063;
  --gold-soft: #e2c391;
  --red: #b1462f;
  --text: #eae2d4;
  --muted: #a3967f;
  --muted2: #857a69;
  --max: 1180px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 15% -10%, rgba(201, 160, 99, .09), transparent 60%),
    radial-gradient(900px 500px at 95% 0%, rgba(177, 70, 47, .07), transparent 55%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: #fff0d1; }
img { border: 0; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(19, 17, 16, .985);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(201, 160, 99, .12);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand .mark {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%;
  color: var(--gold-soft); font-family: var(--serif); font-size: 15px; letter-spacing: .02em;
  background: radial-gradient(circle at 30% 20%, rgba(201, 160, 99, .22), transparent 70%);
}
.brand-name { display: block; font-family: var(--serif); font-size: 19px; color: var(--text); line-height: 1.2; }
.brand-sub { display: block; font-size: 10px; color: var(--muted2); letter-spacing: .22em; margin-top: 3px; }
.nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 2px;
  overflow-x: auto; scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: block; padding: 8px 12px; font-size: 14px; color: var(--muted);
  border-radius: 3px; white-space: nowrap; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--gold-soft); background: var(--panel); }
.nav a.on { color: var(--gold-soft); background: var(--panel); box-shadow: inset 0 -2px 0 var(--gold); }

/* ---------- hero ---------- */
.hero { padding: 46px 0 34px; border-bottom: 1px solid var(--line-soft); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 40px; align-items: start; }
.eyebrow { font-size: 12px; letter-spacing: .3em; color: var(--gold); margin-bottom: 12px; text-transform: uppercase; }
.hero h1 {
  font-size: clamp(28px, 4vw, 44px); line-height: 1.25; margin: 0 0 14px; color: #f3ece0;
}
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero-sub { font-size: 16px; color: var(--muted); max-width: 620px; margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 3px; font-size: 14px;
  border: 1px solid var(--gold); color: var(--gold-soft); background: transparent;
}
.btn:hover { background: rgba(201, 160, 99, .12); color: #fff1d3; }
.btn.solid { background: var(--gold); border-color: var(--gold); color: #211a10; font-weight: 600; }
.btn.solid:hover { background: var(--gold-soft); color: #211a10; }

.stat-card {
  border: 1px solid var(--line); background: var(--panel);
  padding: 18px; position: relative;
}
.stat-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: linear-gradient(var(--gold), rgba(201, 160, 99, .1));
}
.stat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
.stat-list dt { font-size: 12px; color: var(--muted2); letter-spacing: .08em; }
.stat-list dd { margin: 2px 0 0; font-family: var(--serif); font-size: 21px; color: var(--gold-soft); }
.stat-note { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted2); line-height: 1.7; }

/* ---------- section ---------- */
section { padding: 40px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line-soft); padding-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 22px; }
.section-head .more { font-size: 13px; color: var(--muted); white-space: nowrap; }
.section-head .more:hover { color: var(--gold-soft); }

/* ---------- column cards ---------- */
.columns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.col-card {
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel2), var(--panel));
  padding: 20px 18px; position: relative; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.col-card:hover { border-color: rgba(201, 160, 99, .5); transform: translateY(-2px); }
.col-card .num {
  font-family: var(--serif); font-size: 13px; color: var(--gold);
  letter-spacing: .18em; margin-bottom: 6px; display: block;
}
.col-card h3 { margin: 0 0 8px; font-size: 19px; }
.col-card h3 a { color: var(--text); }
.col-card h3 a:hover { color: var(--gold-soft); }
.col-card p { font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.7; }
.col-card .mini { list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--line); padding-top: 10px; }
.col-card .mini li { font-size: 13px; padding: 3px 0; color: var(--muted); }
.col-card .mini li::before { content: "›"; color: var(--gold); margin-right: 6px; }
.col-card .mini a { color: var(--muted); }
.col-card .mini a:hover { color: var(--gold-soft); }

/* ---------- home table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--panel); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.data th, table.data td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
table.data th { background: var(--panel2); color: var(--gold-soft); font-weight: 600; font-size: 13px; letter-spacing: .04em; white-space: nowrap; }
table.data td:first-child { color: var(--text); }
table.data tr:last-child td { border-bottom: 0; }
table.data td a { color: var(--muted); }
table.data td a:hover { color: var(--gold-soft); }
.table-note { font-size: 12px; color: var(--muted2); margin-top: 10px; }

/* ---------- article list ---------- */
.list-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; }
.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li {
  padding: 18px 0; border-bottom: 1px dashed var(--line);
}
.article-list li:first-child { padding-top: 4px; }
.article-list .row-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.article-list h3 { margin: 0; font-size: 18px; line-height: 1.5; font-family: var(--sans); font-weight: 600; }
.article-list h3 a { color: var(--text); }
.article-list h3 a:hover { color: var(--gold-soft); }
.article-list .date { font-size: 12px; color: var(--muted2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.article-list .summary { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.article-list .meta { margin-top: 8px; font-size: 12px; color: var(--muted2); display: flex; gap: 12px; flex-wrap: wrap; }
.article-list.all-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; }
.article-list.all-list li a { font-size: 15px; color: #ded6c6; }
.article-list.all-list li a:hover { color: var(--gold-soft); }
.article-list.all-list li:first-child { padding-top: 10px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mini-card { border: 1px solid var(--line); background: var(--panel); padding: 16px; }
.mini-card .tag { font-size: 11px; color: var(--gold); letter-spacing: .12em; }
.mini-card h3 { margin: 6px 0 6px; font-size: 16px; font-family: var(--sans); font-weight: 600; line-height: 1.55; }
.mini-card h3 a { color: var(--text); }
.mini-card h3 a:hover { color: var(--gold-soft); }
.mini-card p { font-size: 12.5px; color: var(--muted2); margin: 0; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- sidebar ---------- */
.sidebar > .box { border: 1px solid var(--line); background: var(--panel); padding: 16px 16px 6px; margin-bottom: 18px; }
.sidebar .box h3 { font-size: 15px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); color: var(--gold-soft); }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: flex; gap: 8px; padding: 7px 0; font-size: 13.5px; line-height: 1.55; }
.rank .n { flex: 0 0 18px; color: var(--muted2); font-family: var(--serif); font-size: 13px; }
.rank a { color: var(--muted); }
.rank a:hover { color: var(--gold-soft); }
.cat-nav { list-style: none; margin: 0; padding: 0; }
.cat-nav li { border-bottom: 1px dashed var(--line-soft); }
.cat-nav li:last-child { border-bottom: 0; }
.cat-nav a { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13.5px; color: var(--muted); }
.cat-nav a:hover { color: var(--gold-soft); }
.cat-nav span { color: var(--muted2); font-size: 12px; }

/* ---------- breadcrumb ---------- */
.crumbs { font-size: 12px; color: var(--muted2); padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold-soft); }
.crumbs i { font-style: normal; color: var(--line); }

/* ---------- article ---------- */
.page-head { padding: 18px 0 22px; border-bottom: 1px solid var(--line-soft); }
.page-head .kicker { font-size: 12px; letter-spacing: .2em; color: var(--gold); margin-bottom: 10px; }
.page-head h1 { margin: 0 0 12px; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.4; color: #f4ecdf; }
.page-head .byline { font-size: 12.5px; color: var(--muted2); display: flex; flex-wrap: wrap; gap: 14px; }
.page-head .byline span { display: inline-flex; align-items: center; gap: 5px; }
.page-head .lead { margin-top: 14px; font-size: 15.5px; color: var(--muted); line-height: 1.85; }

.facts {
  margin: 22px 0 6px; border: 1px solid var(--line); background: var(--panel);
  padding: 14px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px;
}
.facts div { font-size: 13px; color: var(--muted); }
.facts b { display: block; font-size: 11px; color: var(--muted2); font-weight: 400; letter-spacing: .1em; margin-bottom: 2px; }
.facts span { color: var(--text); }

.prose { font-size: 16.5px; line-height: 1.95; color: #ded6c6; }
.prose h2 {
  font-size: 20px; margin: 34px 0 12px; padding-left: 12px; border-left: 3px solid var(--gold);
  color: #f0e7d7; line-height: 1.5;
}
.prose h2 .no { color: var(--gold); font-size: 13px; letter-spacing: .1em; margin-right: 8px; font-family: var(--sans); }
.prose p { margin: 0 0 1.05em; }
.prose .note {
  border-left: 2px solid var(--line); background: rgba(255, 255, 255, .025);
  padding: 10px 14px; font-size: 14px; color: var(--muted); margin: 18px 0 4px;
}
.home-faq { margin-top: 4px; border: 1px solid var(--line); background: var(--panel); padding: 6px 18px 14px; }
.home-faq .q { margin: 14px 0 4px; font-size: 15px; color: var(--gold-soft); font-weight: 600; }
.home-faq .a { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.8; }
.prose .faq { border-left: 2px solid rgba(201, 160, 99, .45); padding: 4px 0 4px 14px; margin: 14px 0; }
.prose .faq .q { margin: 0 0 4px; font-size: 15.5px; color: var(--gold-soft); font-weight: 600; }
.prose .faq .a { margin: 0; font-size: 15px; color: #cbc2b1; }
.prose .extra-head { margin-top: 34px; }
.prose strong { color: var(--gold-soft); font-weight: 600; }
.prose a { border-bottom: 1px solid rgba(201, 160, 99, .35); }
.prose a:hover { border-bottom-color: var(--gold-soft); }

/* ---------- related ---------- */
.related { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.related h2 { font-size: 18px; margin: 0 0 14px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.related-item { border: 1px solid var(--line); padding: 12px; background: var(--panel); }
.related-item .tag { font-size: 11px; color: var(--gold); letter-spacing: .1em; }
.related-item h3 { margin: 5px 0 0; font-size: 14px; font-weight: 500; font-family: var(--sans); line-height: 1.6; }
.related-item h3 a { color: var(--text); }
.related-item h3 a:hover { color: var(--gold-soft); }

.prevnext { display: flex; gap: 12px; margin-top: 18px; }
.prevnext a {
  flex: 1 1 0; min-width: 0; border: 1px solid var(--line); padding: 10px 12px; font-size: 13px; color: var(--muted);
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prevnext a:hover { border-color: rgba(201, 160, 99, .5); color: var(--gold-soft); }
.prevnext a b { display: block; font-size: 11px; color: var(--muted2); font-weight: 400; letter-spacing: .1em; margin-bottom: 2px; }

/* ---------- cta / about ---------- */
.notice {
  border: 1px solid var(--line); background: var(--panel); padding: 16px 18px; font-size: 13.5px;
  color: var(--muted); line-height: 1.85; margin: 26px 0 0;
}
.notice b { color: var(--gold-soft); }
.doc-section { padding: 8px 0 34px; }
.doc-section h2 { font-size: 20px; margin: 28px 0 10px; }
.doc-section h3 { font-size: 16px; margin: 20px 0 8px; color: var(--gold-soft); }
.doc-section p, .doc-section li { color: #d7cfc0; font-size: 15.5px; line-height: 1.9; }
.doc-section ul { padding-left: 1.2em; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg2); margin-top: 40px; padding: 30px 0 36px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr); gap: 30px; }
.footer-brand .brand-name { font-size: 17px; }
.footer-brand p { font-size: 12.5px; color: var(--muted2); margin-top: 8px; line-height: 1.8; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.footer-links a { font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--gold-soft); }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted2); display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .columns { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .list-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: start; }
  .sidebar > .box { margin-bottom: 0; }
}
@media (max-width: 720px) {
  .site-header { background: #131110; }
  .header-inner { height: auto; flex-wrap: wrap; padding: 12px 0 0; gap: 8px; }
  .nav { margin-left: 0; width: 100%; padding-bottom: 8px; flex-wrap: wrap; overflow: visible; gap: 0; }
  .brand .mark { width: 32px; height: 32px; font-size: 13px; }
  .brand-name { font-size: 17px; }
  .brand-sub { display: none; }
  .hero { padding: 30px 0 26px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-list h3 { font-size: 16.5px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 18px; margin-top: 28px; }
  .prevnext { flex-direction: column; }
  .word-count { display: none; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 14px; }
  .hero h1 { font-size: 25px; }
  .columns { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .section-head { flex-wrap: wrap; }
}
