@charset "utf-8";

:root {
  --paper: #F7F5F0;
  --white: #FFFFFF;
  --ink: #1F2429;
  --ink-2: #5A6168;
  --red: #94070A;
  --brass: #A98A5C;
  --line: #E4E0D8;
  --wash: #F7EEEC;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --num: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* 字号标准（四级阶梯）：H1 clamp(32-50) ＞ H2 clamp(24-30) ＞ H3 18-19px ＞ 正文 16px ＞ 次级正文 15px ＞ 小字/标签 13px（最低，不再低于 13） ＞ 装饰微标 12-13px */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }
b { font-weight: 500; }
::selection { background: var(--wash); color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 40px);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  z-index: 60;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, .97);
  border-bottom: 1px solid var(--line);
  transition: padding .2s ease;
  padding-block: 14px;
}
.site-head.is-compact { padding-block: 8px; }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-group { display: flex; align-items: center; }
.brand { font-family: var(--serif); font-size: 16px; color: var(--ink); }
.brand-sep { color: var(--brass); padding-inline: 4px; }
.head-nav { display: flex; gap: clamp(12px, 2vw, 26px); font-size: 13px; color: var(--ink-2); }
.head-nav a { padding-bottom: 2px; border-bottom: 1px solid transparent; }
.head-nav a:hover, .head-nav a.is-active { color: var(--red); border-bottom-color: var(--red); }

.eyebrow { font-size: 13px; letter-spacing: .12em; color: var(--red); margin: 0 0 10px; }
.hero-cred { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin: 0 0 18px; padding-left: 12px; border-left: 2px solid var(--brass); }
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; }
.hero-tags li { font-size: 13px; color: var(--ink-2); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; }
.btn {
  display: inline-block;
  font-size: 13px;
  padding: 9px 20px;
  border-radius: 2px;
  margin-right: 10px;
  border: 1px solid transparent;
  line-height: 1.5;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-ghost { color: var(--red); border-color: var(--red); background: transparent; }
.btn:hover { opacity: .86; }

.hero {
  display: grid;
  grid-template-columns: 52% 48%;
  min-height: 600px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  padding-inline: 0;
}
.hero-copy { padding: clamp(32px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 50px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .02em;
  margin: 0 0 18px;
}
.hero-lede { font-size: 16px; color: var(--ink-2); line-height: 1.85; margin: 0 0 26px; max-width: 34ch; }
.hero-actions { margin: 0 0 22px; }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.hero-metrics b { display: block; font-family: var(--num); font-size: 26px; font-weight: 400; line-height: 1.2; }
.hero-metrics span { font-size: 13px; color: var(--ink-2); }
.hero-media { position: relative; min-height: 100%; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  filter: saturate(.82) contrast(1.02);
}
.down-hint { display: flex; align-items: center; gap: 12px; padding-block: 20px 0; font-size: 13px; color: var(--ink-2); }
.down-line { display: block; width: 48px; height: 1px; background: var(--brass); }

.section { padding-block: clamp(64px, 8vw, 110px); }
.sec-head { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; margin-bottom: 34px; align-items: start; }
.sec-no { font-family: var(--num); font-size: 34px; line-height: 1.2; color: var(--red); }
.sec-head h2 { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; margin: 0 0 8px; }
.sec-lede { color: var(--ink-2); font-size: 15px; margin: 0; max-width: 62ch; }

.three-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plain-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--brass);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(31, 36, 41, .05);
}
.card-k { font-size: 13px; letter-spacing: .08em; color: var(--brass); }
.plain-card h3 { font-family: var(--serif); font-size: 18px; font-weight: 500; margin: 10px 0 10px; }
.plain-card p { font-size: 15px; color: var(--ink-2); line-height: 1.8; margin: 0; }

.chapter-banner { position: relative; height: 180px; margin: 0 0 20px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.chapter-banner img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 28%; display: block;
  filter: saturate(.80) contrast(1.02);
}
.fig-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-inline: auto; }
@media (min-width: 768px) { .fig-grid { grid-template-columns: repeat(3, 1fr); max-width: 100%; align-items: start; } }
.fig-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin: 0;
  box-shadow: 0 1px 3px rgba(31, 36, 41, .05);
}
.fig-title { font-family: var(--serif); font-size: 16px; font-weight: 500; color: var(--ink); margin: 0 0 16px; }
.barchart { display: flex; flex-direction: column; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 10px; }
.bar-label { font-size: 14px; color: var(--ink); line-height: 1.5; }
.bar-val { font-family: var(--num); font-size: 15px; color: var(--red); white-space: nowrap; }
.bar-track { grid-column: 1 / -1; position: relative; height: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--red); border-radius: 7px 0 0 7px; }
.bar-fill.w10 { width: 10%; }
.bar-fill.w20 { width: 20%; }
.bar-fill.w30 { width: 30%; }
.bar-fill.w50 { width: 50%; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  padding: 7px 15px;
  border-radius: 2px;
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.is-active { background: var(--red); color: var(--white); border-color: var(--red); }
.filter-note { font-size: 13px; color: var(--ink-2); margin: 12px 0 24px; }

.project-list { list-style: none; margin: 0 0 0 28px; padding: 0; position: relative; }
.project-list::before { content: ""; position: absolute; left: -16px; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.project-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 2px solid var(--red);
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(31, 36, 41, .05);
}
.project-card::before {
  content: ""; position: absolute; left: -22px; top: 30px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); border: 2px solid var(--paper);
}
.project-card.is-hidden { display: none; }
.card-top { display: flex; align-items: center; gap: 18px; }
.card-no { font-family: var(--num); font-size: clamp(42px, 5.2vw, 56px); line-height: .9; font-weight: 600; color: var(--red); flex: 0 0 auto; letter-spacing: -.01em; }
.card-top h3 { font-family: var(--serif); font-size: 19px; font-weight: 500; margin: 0; line-height: 1.5; }
.card-top h3 a { color: inherit; text-decoration: none; }
.card-top h3 a:hover { color: var(--red); }
.card-major { font-size: 13px; color: var(--ink-2); margin: 4px 0 0; }
.card-why { font-size: 15px; line-height: 1.85; max-width: 62ch; margin: 16px 0 20px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 26px; margin: 0 0 18px; }
.facts > div { border-top: 1px solid var(--line); padding-top: 10px; }
.facts dt { font-size: 13px; color: var(--ink-2); }
.facts dd { font-size: 15px; line-height: 1.7; margin: 5px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 13px; color: var(--red); background: var(--wash); border-radius: 2px; padding: 3px 9px; }
.more { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.more summary { list-style: none; cursor: pointer; font-size: 13px; color: var(--red); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "＋"; padding-left: 8px; }
.more[open] summary::after { content: "－"; }
.more-body { padding-top: 10px; }
.more-body p { font-size: 14px; line-height: 1.85; color: var(--ink-2); margin: 0 0 8px; }
.more-body b { color: var(--ink); }

.table-box { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(31, 36, 41, .05); }
.overview { width: 100%; border-collapse: collapse; }
.overview th, .overview td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.overview th { font-weight: 500; color: var(--ink-2); background: var(--paper); white-space: nowrap; }
.overview th:first-child { width: 34%; }
.overview tbody tr:last-child td { border-bottom: 0; }
.overview tbody tr:hover { background: var(--paper); }

.faq-list { max-width: 880px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(31, 36, 41, .05); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 20px; font-size: 15px; font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; float: right; color: var(--red); font-weight: 400; }
.faq-item[open] summary::after { content: "－"; }
.faq-a { padding: 0 20px 16px; }
.faq-a p { font-size: 15px; line-height: 1.85; color: var(--ink-2); margin: 0; max-width: 62ch; }

.next-actions { margin: 28px 0 0; }

.consult-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 2px solid var(--red);
  border-radius: 14px;
  padding: 32px 36px;
  box-shadow: 0 1px 3px rgba(31, 36, 41, .05);
}
.consult-text h3 { font-family: var(--serif); font-size: 19px; font-weight: 500; margin: 0 0 14px; }
.consult-list { list-style: none; margin: 0 0 16px; padding: 0; }
.consult-list li { position: relative; padding-left: 20px; font-size: 15px; color: var(--ink-2); line-height: 1.85; margin-bottom: 8px; }
.consult-list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.consult-note { font-size: 13px; color: var(--ink-2); line-height: 1.7; margin: 0 0 18px; padding: 12px 14px; background: var(--wash); border-left: 3px solid var(--red); border-radius: 0 8px 8px 0; }
.consult-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: stretch; }
.consult-qr { margin: 0; background: var(--white); border: 1px solid var(--line); border-left: 2px solid var(--red); border-radius: 14px; padding: 28px; box-shadow: 0 1px 3px rgba(31, 36, 41, .05); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.consult-qr img { width: 168px; height: 168px; display: block; border: 1px solid var(--line); border-radius: 8px; }
.qr-cap { display: block; font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.consult-faq { margin-top: 24px; }
.consult-faq__title { font-size: 13px; letter-spacing: .04em; color: var(--brass); margin: 0 0 12px; }
.consult-faq .consult-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 26px; }
@media (max-width: 820px) { .consult-faq .consult-list { grid-template-columns: 1fr; } }
.lead-form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.lead-form label { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.lead-form input, .lead-form textarea {
  display: block; width: 100%; margin-top: 6px;
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  padding: 11px 13px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 8px;
  box-sizing: border-box;
}
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(148, 7, 10, .12); }
.lead-form textarea { resize: vertical; }
.lead-consent { display: flex !important; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.lead-consent input { width: 16px; height: 16px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--red); }
.lead-submit { margin-top: 4px; align-self: flex-start; }
.lead-result { font-size: 13px; color: var(--red); min-height: 18px; margin: 4px 0 0; }

.site-foot { border-top: 1px solid var(--line); background: var(--white); padding-block: 40px 56px; margin-top: 30px; }
.foot-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.foot-brand { font-family: var(--serif); font-size: 16px; margin: 0 0 12px; }
.foot-note { font-size: 13px; color: var(--ink-2); line-height: 1.85; max-width: 62ch; margin: 0 0 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; }
.foot-links a { color: var(--red); border-bottom: 1px solid var(--red); }
.credit-title { font-size: 13px; font-weight: 500; margin: 0 0 8px; }
.foot-credit p { font-size: 13px; color: var(--ink-2); line-height: 1.8; margin: 0 0 6px; }
.foot-credit a { color: var(--red); border-bottom: 1px solid var(--line); }

@media (min-width: 1600px) { .wrap { max-width: 1320px; } }
@media (max-width: 1200px) { .wrap { max-width: 100%; } }

@media (max-width: 1024px) {
  .hero { grid-template-columns: 54% 46%; min-height: 540px; }
  .hero h1 { font-size: clamp(30px, 4vw, 42px); }
  .project-list { margin-left: 0; }
  .project-list::before, .project-card::before { display: none; }
  .three-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { gap: 12px 18px; }
  .head-nav { gap: 12px; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; height: 220px; }
  .hero-copy { padding: 28px 24px 32px; }
  .hero-lede { max-width: 100%; }
  .sec-head { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
  .sec-no { font-size: 26px; }
  .table-box { background: transparent; border: 0; border-radius: 0; overflow: visible; box-shadow: none; }
  .overview, .overview tbody, .overview tr, .overview td { display: block; width: 100%; }
  .overview thead { display: none; }
  .overview tbody tr {
    background: var(--white); border: 1px solid var(--line); border-radius: 12px;
    margin-bottom: 12px; padding: 8px 16px;
    box-shadow: 0 1px 3px rgba(31, 36, 41, .05);
  }
  .overview td { border: 0; padding: 6px 0; display: flex; gap: 12px; font-size: 14px; }
  .overview td::before { content: attr(data-l); flex: 0 0 76px; color: var(--ink-2); font-size: 13px; }
  .foot-inner { grid-template-columns: 1fr; gap: 24px; }
  .head-nav { display: none; }
  .consult-card { grid-template-columns: 1fr; gap: 22px; padding: 24px 20px; }
  .consult-grid { grid-template-columns: 1fr; gap: 18px; }
  .consult-qr { margin: 0; }
}

@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .hero.wrap { padding-inline: 0; }
  .hero-metrics { gap: 10px; }
  .hero-metrics b { font-size: 20px; }
  .facts { grid-template-columns: 1fr; }
  .three-cards { grid-template-columns: 1fr; }
  .filters { gap: 6px; }
  .filter-btn { padding: 6px 10px; font-size: 13px; }
  .project-card { padding: 20px 18px; }
  .card-top { gap: 12px; }
  .card-no { font-size: 34px; }
  .card-top h3 { font-size: 16px; }
  .plain-card { padding: 20px; }
}

@media (max-width: 380px) {
  .hero-metrics { grid-template-columns: 1fr; gap: 10px; }
  .hero-metrics div { display: flex; align-items: baseline; gap: 10px; }
  .hero-actions .btn { display: block; width: 100%; margin: 0 0 8px; text-align: center; }
  .brand { font-size: 14px; }
}

@media (hover: none) {
  .overview tbody tr:hover { background: transparent; }
  .btn:hover { opacity: 1; }
}

/* 排名节：权威底图 band（Suzzallo 阅览室，CC BY 4.0） */
.rank-feature { position: relative; background-color: var(--ink); color: #fff; overflow: hidden; }
.rank-feature::before { content: ""; position: absolute; inset: 0; background: url(/topic/2025-sino-doctor-ranking/releases/1/images/rank-authority.jpg) center 32% / cover no-repeat; opacity: .30; }
.rank-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(31, 36, 41, .92), rgba(148, 7, 10, .80)); }
.rank-feature > .wrap { position: relative; z-index: 1; }
.rank-feature .sec-no { color: var(--brass); }
.rank-feature .sec-head h2 { color: #fff; }
.rank-feature .sec-lede { color: rgba(255, 255, 255, .88); }
.rank-statement { margin: 0 0 32px; font-size: 13px; letter-spacing: .04em; color: rgba(255, 255, 255, .82); padding-left: 14px; border-left: 2px solid var(--brass); }
.rank-dims { list-style: none; margin: 14px 0 0; padding: 0; }
.rank-dims li { position: relative; padding-left: 18px; font-size: 14px; color: var(--ink-2); line-height: 1.7; margin-bottom: 6px; }
.rank-dims li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.rank-sub { margin: 14px 0 0; font-size: 14px; line-height: 1.8; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 12px; }
.rank-basis { margin-top: 28px; background: var(--white); border: 1px solid var(--line); border-left: 2px solid var(--red); border-radius: 14px; padding: 26px 28px; box-shadow: 0 1px 3px rgba(31, 36, 41, .05); }
.rank-basis h3 { font-family: var(--serif); font-size: 18px; font-weight: 500; margin: 0 0 14px; color: var(--ink); }
.rank-basis dl { display: grid; grid-template-columns: 92px 1fr; gap: 10px 18px; margin: 0; }
.rank-basis dt { font-size: 13px; color: var(--brass); font-weight: 500; padding-top: 2px; }
.rank-basis dd { font-size: 14px; line-height: 1.7; margin: 0; color: var(--ink-2); }

@media (max-width: 560px) {
  .rank-basis { padding: 20px 18px; }
  .rank-basis dl { grid-template-columns: 1fr; gap: 4px 0; }
  .rank-basis dt { padding-top: 10px; }
  .rank-basis dd { padding-bottom: 4px; }
}
