/* ============================================================
   PficReport.com — Global Stylesheet (Single File)
   Light theme · Professional financial design
   Domain: pficreport.com
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  --navy: #0F2044;
  --navy-mid: #1A3160;
  --navy-light: #2B4A8A;
  --gold: #C8973A;
  --gold-light: #E8B85A;
  --gold-pale: #FFF8E8;

  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --border-light: #EEF2F7;

  --text-primary: #0F1F33;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --text-inverse: #FFFFFF;

  --success: #0D7C4C;
  --warning: #B7791F;
  --info: #2B6CB0;
  --danger: #C53030;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-mono: 'Courier New', Courier, monospace;

  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 24px;
  --r-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.10), 0 4px 8px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.13);

  --ease-fast: 150ms ease;
  --ease-base: 250ms ease;
  --ease-slow: 400ms ease;

  --container-max: 1200px;
  --container-article: 820px;
  --nav-h: 64px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  /* 使用 clip 可同时防止水平溢出并允许 sticky 生效 */
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  /* 使用 clip 可同时防止水平溢出并允许 sticky 生效 */
  max-width: 100%;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: all var(--ease-fast);
  cursor: pointer;
}

a:hover {
  color: var(--gold);
}

.text-link {
  color: var(--info) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--gold) !important;
}

/* CTA 条内链接强制金色（深色背景可读性） */
.cta-strip a {
  color: var(--gold);
}

.cta-strip a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* 页脚链接继承父元素文字色，由 .footer__link / .footer__bottom-link 各自控制具体颜色 */
footer a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

p {
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: var(--fw-semibold);
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--border-light);
  padding: 0.125em 0.4em;
  border-radius: var(--r-sm);
  color: var(--navy);
}

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.container--narrow {
  max-width: var(--container-article);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

/* ============================================================
   5. NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  gap: var(--sp-4);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  text-decoration: none;
}

.nav__logo-mark {
  width: 34px;
  height: 34px;
  background: var(--navy);
  color: var(--gold);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-extrabold);
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.nav__logo-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__logo-main {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--navy);
}

.nav__logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
  justify-content: center;
}

.nav__link {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  transition: color var(--ease-fast);
  white-space: nowrap;
}

.nav__link:hover {
  background: var(--border-light);
  color: var(--navy);
}

.nav__link.is-active {
  background: rgba(15, 32, 68, 0.08);
  color: var(--navy);
  font-weight: var(--fw-semibold);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}



.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  cursor: pointer;
  padding: var(--sp-2);
  transition: background var(--ease-fast);
}

.nav__hamburger:hover {
  background: var(--border-light);
}

.nav__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--ease-fast);
  transform-origin: center;
}

.nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  z-index: 199;
  padding: var(--sp-4);
  flex-direction: column;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.nav__drawer.is-open {
  display: flex;
}

.nav__drawer-link {
  display: flex;
  align-items: center;
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  transition: all var(--ease-fast);
  border-bottom: 1px solid var(--border-light);
}

.nav__drawer-link:hover {
  background: var(--border-light);
  color: var(--navy);
}

.nav__drawer-link.is-active {
  color: var(--navy);
  font-weight: var(--fw-semibold);
}

.nav__drawer-cta {
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  background: var(--navy);
  color: var(--text-inverse);
  border-radius: var(--r-lg);
  text-align: center;
  font-weight: var(--fw-semibold);
  font-size: var(--text-base);
}

.nav__drawer-cta:hover {
  background: var(--gold);
  color: var(--navy);
}

/* Reading progress bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 205;
  background: rgba(0, 0, 0, 0.06);
}

#reading-progress {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 100ms linear;
  border-radius: 0 2px 2px 0;
}

/* ============================================================
   6. BUTTONS
   ============================================================ */
.btn-primary,
.btn-inverse,
a.btn-primary,
a.btn-inverse,
button.btn-primary,
button.btn-inverse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--ease-fast);
  line-height: 1;
  border: 2px solid transparent;
}

/* 1. 浅色背景用 (深蓝按钮) */
.btn-primary,
a.btn-primary,
button.btn-primary {
  background: var(--navy);
  color: var(--text-inverse);
}

.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  color: var(--text-inverse);
}

/* 2. 深色背景用 (金色按钮) */
.btn-inverse,
a.btn-inverse,
button.btn-inverse {
  background: var(--gold);
  color: var(--navy);
}

.btn-inverse:hover,
a.btn-inverse:hover,
button.btn-inverse:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  color: var(--navy);
}

/* ============================================================
   7. HOMEPAGE HERO
   ============================================================ */
.hero {
  padding: var(--sp-10) 0 var(--sp-16);
  background: linear-gradient(150deg, #EEF4FF 0%, var(--bg) 55%, #FFF8F0 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(200, 151, 58, 0.08) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: var(--sp-12);
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(15, 32, 68, 0.07);
  color: var(--navy);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
  border: 1px solid rgba(15, 32, 68, 0.1);
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.125rem);
  font-weight: var(--fw-extrabold);
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: var(--sp-5);
  letter-spacing: -0.03em;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--sp-8);
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: var(--sp-8);
  padding-top: var(--sp-8);
  margin-top: var(--sp-8);
  border-top: 1px solid var(--border);
}

.hero__stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--navy);
  display: block;
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--sp-1);
}

/* Hero Visual */
.hero__visual {
  position: relative;
  z-index: 1;
}

.hero__card {
  background: var(--surface);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  overflow: hidden;
}

.hero__card-head {
  background: var(--navy);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero__card-ttl {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__card-status {
  font-size: var(--text-2xs);
  font-weight: var(--fw-semibold);
  padding: 3px 8px;
  background: rgba(13, 124, 76, 0.25);
  color: #5acea5;
  border-radius: var(--r-full);
}

.hero__card-body {
  padding: var(--sp-5);
}



.hero__card-foot {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--border-light);
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero__card-foot-txt {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ============================================================
   8. SECTIONS
   ============================================================ */
.section {
  padding: var(--sp-16) 0;
}

.section--alt {
  background: linear-gradient(180deg, var(--border-light) 0%, var(--bg) 100%);
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: var(--fw-extrabold);
  color: var(--navy);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.75;
}

.section-header {
  margin-bottom: var(--sp-10);
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-desc {
  margin: 0 auto;
}

/* ============================================================
   9. PILLAR CARDS
   ============================================================ */
.pillar-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
  transition: all var(--ease-base);
  text-decoration: none;
  display: block;
  color: inherit;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease-base);
}

.pillar-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--sp-6);
  flex-shrink: 0;
}

.pillar-card__icon--blue {
  background: rgba(43, 108, 176, 0.1);
}

.pillar-card__icon--gold {
  background: rgba(200, 151, 58, 0.1);
}

.pillar-card__icon--green {
  background: rgba(13, 124, 76, 0.1);
}

.pillar-card__title {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--navy);
  margin-bottom: var(--sp-3);
}

.pillar-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
}

.pillar-card__topics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.pillar-card__topic {
  font-size: var(--text-xs);
  padding: var(--sp-1) var(--sp-3);
  background: var(--border-light);
  color: var(--text-secondary);
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  transition: all var(--ease-fast);
}

/* Default hover for all topics (e.g. spans) */
.pillar-card__topic:hover {
  background: var(--surface);
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Specific styling for linked topics */
a.pillar-card__topic {
  color: #2B6CB0;
  text-decoration: underline;
  text-decoration-color: #2B6CB0;
  text-underline-offset: 3px;
}

a.pillar-card__topic:hover {
  background: var(--surface);
  border-color: #2B6CB0;
  color: #2B6CB0;
  text-decoration-color: #2B6CB0;
  box-shadow: 0 2px 6px rgba(43, 108, 176, 0.15);
}

.pillar-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--navy);
  transition: gap var(--ease-fast);
}

.pillar-card:hover .pillar-card__link {
  gap: var(--sp-2);
  color: var(--gold);
}

/* ============================================================
   10. ARTICLE CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--ease-base);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card__thumb {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* 修复：保证里面无论是图标还是“HK”这些文字都是白色高亮 */
  color: rgba(255, 255, 255, 0.7);
  font-size: 3.5rem;
  font-weight: var(--fw-extrabold);
}

.card__thumb-icon {
  font-size: 3.5rem;
  opacity: 0.5;
  color: #FFF;
}

.card__body {
  padding: var(--sp-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__tag {
  display: inline-block;
  font-size: var(--text-2xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}

.card__title {
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  line-height: 1.4;
  flex: 1;
}

.card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--sp-4);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--navy);
  margin-top: var(--sp-3);
  transition: gap var(--ease-fast);
}

.card:hover .card__link {
  gap: var(--sp-2);
  color: var(--gold);
}

/* ============================================================
   11. COUNTRY CARDS
   ============================================================ */
.country-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all var(--ease-base);
  color: inherit;
  min-width: 0;
  overflow: hidden;
  /* 防止内容撑开 */
}

.country-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--navy);
}

.country-card__flag {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.country-card__info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding-right: var(--sp-12);
}

.country-card__name {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-card__sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-badge {
  font-size: var(--text-2xs);
  font-weight: var(--fw-semibold);
  padding: 3px 8px;
  border-radius: var(--r-full);
  white-space: nowrap;
  flex-shrink: 0;
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-5);
}

.risk-badge--high {
  background: rgba(197, 48, 48, 0.1);
  color: var(--danger);
}

.risk-badge--medium {
  background: rgba(183, 121, 31, 0.1);
  color: var(--warning);
}

.risk-badge--low {
  background: rgba(13, 124, 76, 0.1);
  color: var(--success);
}

/* ============================================================
   12. PAGE HERO (Section landing)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: var(--sp-16) 0 var(--sp-12);
  position: relative;
  overflow: hidden;
  color: var(--text-inverse);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 151, 58, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--sp-5);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb__sep {
  color: rgba(255, 255, 255, 0.3);
}

.page-hero__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}

.page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: var(--fw-extrabold);
  color: var(--text-inverse);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
  max-width: 1200px;
}

.page-hero__desc {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.72);
  max-width: 1200px;
  line-height: 1.75;
}

/* Page Hero 内的正文链接显色处理 */
.page-hero a:not([class*="btn"]):not(.breadcrumb a) {
  color: var(--gold) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.page-hero a:not([class*="btn"]):not(.breadcrumb a):hover {
  color: var(--gold-light) !important;
}

.page-hero__meta {
  display: flex;
  gap: var(--sp-8);
  margin-top: var(--sp-8);
  flex-wrap: wrap;
}

.page-hero__meta-value {
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--gold);
  display: block;
}

.page-hero__meta-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   13. ARTICLE LAYOUT
   ============================================================ */
.article-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-6);
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--sp-10);
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

/* 核心修复：防止 grid item 因内部表格过宽而撑破整个布局 */
.article-wrap>article,
.article-wrap>aside {
  min-width: 0;
}

.article-header {
  padding-bottom: var(--sp-8);
  margin-bottom: var(--sp-8);
  border-bottom: 1px solid var(--border);
}

.article-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}

.article-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: var(--fw-extrabold);
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
}

/* 作者信息块 - SEO 极致优化 */
.article-author-block {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--border-light);
  border-radius: var(--r-lg);
  border-left: 3px solid var(--gold);
  margin: var(--sp-5) 0;
}

.article-author-block__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-extrabold);
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.article-author-block__info {
  flex: 1;
}

.article-author-block__name {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  display: block;
}

.article-author-block__cred {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.article-author-block__dates {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* 特色宽卡片 (计算栏目首页) */
.card.card--featured {
  flex-direction: row;
  max-width: 100%;
}

.card--featured .card__thumb {
  width: 300px;
  flex-shrink: 0;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  height: auto;
  min-height: 200px;
}

.article-lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.85;
  padding: var(--sp-5) var(--sp-6);
  background: rgba(15, 32, 68, 0.04);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  margin-top: var(--sp-5);
}

.article-content {
  color: var(--text-secondary);
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
  max-width: 100%;
}

.article-content h2 {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--navy);
  margin: var(--sp-10) 0 var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--border-light);
  overflow-wrap: break-word;
}

.article-content h3 {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin: var(--sp-8) 0 var(--sp-3);
  overflow-wrap: break-word;
}

.article-content h4 {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin: var(--sp-5) 0 var(--sp-2);
}

.article-content p {
  font-size: var(--text-base);
  line-height: 1.85;
  margin-bottom: var(--sp-5);
  overflow-wrap: break-word;
  word-break: break-word;
}

.article-content ul,
.article-content ol {
  margin: var(--sp-4) 0 var(--sp-5) var(--sp-6);
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  line-height: 1.75;
  margin-bottom: var(--sp-2);
  font-size: var(--text-base);
}

.article-content a:not([class*="btn"]) {
  color: var(--info);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: break-word;
}

.article-content a:not([class*="btn"]):hover {
  color: var(--gold);
}

.article-content strong {
  color: var(--text-primary);
}

/* ============================================================
   13. FIGURES & IMAGES
   ============================================================ */
.article-figure {
  margin: var(--sp-10) 0;
  text-align: left;
}

.article-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  display: block;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.article-figure figcaption {
  margin-top: var(--sp-5);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  border-left: 3px solid var(--gold);
  padding-left: var(--sp-5);
}

.article-figure figcaption strong {
  color: var(--navy);
  font-weight: var(--fw-semibold);
}

/* ============================================================
   14. CALLOUTS
   ============================================================ */
.callout {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid;
  margin: var(--sp-6) 0;
}

.callout__icon {
  font-size: 0.85rem;
  font-weight: var(--fw-extrabold);
  color: var(--navy);
  white-space: nowrap;
  font-family: var(--font-sans);
  flex-shrink: 0;
  margin-top: 2px;
}

.callout__title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-1);
}

.callout__body {
  font-size: var(--text-sm);
  line-height: 1.65;
}

.callout--info {
  background: rgba(43, 108, 176, 0.06);
  border-color: rgba(43, 108, 176, 0.2);
}

.callout--info .callout__title {
  color: var(--info);
}

.callout--info .callout__body {
  color: #2c5282;
}

.callout--warning {
  background: rgba(183, 121, 31, 0.06);
  border-color: rgba(183, 121, 31, 0.25);
}

.callout--warning .callout__title {
  color: var(--warning);
}

.callout--warning .callout__body {
  color: #744210;
}

.callout--success {
  background: rgba(13, 124, 76, 0.06);
  border-color: rgba(13, 124, 76, 0.2);
}

.callout--success .callout__title {
  color: var(--success);
}

.callout--success .callout__body {
  color: #1a4731;
}

.callout--danger {
  background: rgba(197, 48, 48, 0.06);
  border-color: rgba(197, 48, 48, 0.2);
}

.callout--danger .callout__title {
  color: var(--danger);
}

.callout--danger .callout__body {
  color: #742a2a;
}

/* ============================================================
   15. TABLES
   ============================================================ */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: var(--sp-6) 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
  /* 使 iOS 设备上滚动流畅 */
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

thead {
  background: var(--navy);
  color: var(--text-inverse);
}

thead th {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--ease-fast);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--border-light);
}

tbody td {
  padding: var(--sp-3) var(--sp-4);
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.5;
}

.td-bold {
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.td-accent {
  color: var(--gold);
  font-weight: var(--fw-semibold);
  font-family: var(--font-mono);
}

.td-success {
  color: var(--success);
  font-weight: var(--fw-semibold);
}

.td-danger {
  color: var(--danger);
  font-weight: var(--fw-semibold);
}

.td-mono {
  font-family: var(--font-mono);
}

.table-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--sp-2);
  font-style: italic;
}

/* Table Utilities */
.table--fixed {
  table-layout: fixed;
}

/* 灵活列宽控制：通过 CSS 变量 --min, --max, --w 控制 */
.col-control {
  width: var(--w, auto);
  min-width: var(--min, auto);
  max-width: var(--max, none);
  white-space: nowrap;
  /* 默认不换行 */
}

/* 自动化逻辑：只要定义了最大宽度，就必须允许换行，否则 max-width 无效 */
.col-control[style*="--max"] {
  white-space: normal;
}


/* ============================================================
   16. SIDEBAR
   ============================================================ */
.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-5));
  max-height: calc(100vh - var(--nav-h) - var(--sp-10));
  overflow-y: auto;
  padding-right: 4px;
  /* Space for scrollbar */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.sidebar-widget {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}

.sidebar-widget__title {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-light);
}

.toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc__item a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  border-left: 2px solid var(--border);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  transition: all var(--ease-fast);
  line-height: 1.4;
}

.toc__item a:hover,
.toc__item a.is-active {
  color: var(--navy);
  border-left-color: var(--gold);
  background: var(--border-light);
}

.toc__item--h3 a {
  padding-left: var(--sp-5);
  font-size: 0.7rem;
}

.sidebar-cta {
  background: linear-gradient(160deg, var(--navy-mid), var(--navy));
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  text-align: center;
  margin-bottom: var(--sp-4);
  border-top: 3px solid var(--gold);
  /* 区分：cta-strip 是全宽横幅，此处加金色顶线作为紧凑侧栏 widget */
}

.sidebar-cta__title {
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--gold);
  margin-bottom: var(--sp-2);
}

.sidebar-cta__desc {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}

/* 变量注入：侧栏内的所有按钮自动适配深色背景 */
.sidebar-cta .btn {
  --btn-hover-bg: var(--text-inverse);
  --btn-hover-color: var(--navy);
  --btn-hover-border: var(--text-inverse);
}

/* ============================================================
   17. CTA STRIPS
   ============================================================ */
.cta-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--r-2xl);
  padding: var(--sp-12) var(--sp-10);
  text-align: center;
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200, 151, 58, 0.15) 0%, transparent 65%);
  border-radius: 50%;
}

.cta-strip__tag {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}

/* 修复：覆盖了全局的 h2 深色设定，防止深底深字不可读 */
.cta-strip__title {
  font-size: var(--text-3xl);
  font-weight: var(--fw-extrabold);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
  color: var(--text-inverse);
}

.cta-strip__desc {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: var(--sp-8);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.cta-strip__actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}


/* Inline calc banner */
.calc-banner {
  background: var(--gold-pale);
  border: 1px solid rgba(200, 151, 58, 0.25);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-8);
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  margin: var(--sp-8) 0;
}

.calc-banner__icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.calc-banner__content {
  flex: 1;
}

.calc-banner__title {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--navy);
  margin-bottom: var(--sp-1);
}

.calc-banner__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============================================================
   18. FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}

.filter-btn {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--ease-fast);
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--navy);
  color: var(--text-inverse);
  border-color: var(--navy);
}

/* ============================================================
   19. DISCLAIMER
   ============================================================ */
.disclaimer {
  background: var(--border-light);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.7;
  margin: var(--sp-8) 0;
}

.disclaimer strong {
  color: var(--text-secondary);
  font-weight: var(--fw-semibold);
}

/* ============================================================
   22. TECHNICAL DISPLAYS
   ============================================================ */
.dev-perspective-box {
  background: var(--border-light);
  color: var(--text-primary);
  padding: var(--sp-8);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin: var(--sp-6) 0;
  font-size: var(--text-sm);
}

.dev-perspective-box p {
  font-size: inherit;
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}

.dev-perspective-box p:last-child {
  margin-bottom: 0;
}

.dev-perspective-box pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.dev-perspective-box code {
  background: transparent;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   20. FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  padding: var(--sp-16) 0 var(--sp-8);
  margin-top: var(--sp-16);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--sp-16);
  margin-bottom: var(--sp-12);
}

.footer__brand-name {
  font-size: var(--text-xl);
  font-weight: var(--fw-extrabold);
  color: var(--text-inverse);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.02em;
}

.footer__brand-desc {
  font-size: var(--text-sm);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
}

.footer__disclaimer {
  font-size: 0.7rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.35);
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--sp-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--ease-fast);
}

.footer__link:hover {
  color: var(--gold);
  text-decoration: none;
  /* 底部列表链接不强制下划线 */
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer__bottom-links {
  display: flex;
  gap: var(--sp-5);
}

.footer__bottom-link {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

.footer__bottom-link:hover {
  color: var(--gold);
}

/* ============================================================
   21. UTILITIES
   ============================================================ */
.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
}

.pill--navy {
  background: var(--navy);
  color: var(--text-inverse);
}

.pill--gold {
  background: var(--gold-pale);
  color: var(--warning);
  border: 1px solid rgba(200, 151, 58, 0.3);
}

.pill--green {
  background: rgba(13, 124, 76, 0.1);
  color: var(--success);
}

.pill--gray {
  background: var(--border-light);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.text-gold {
  color: var(--gold);
}

.text-navy {
  color: var(--navy);
}

.text-muted {
  color: var(--text-muted);
}

.font-bold {
  font-weight: var(--fw-bold);
}

.font-mono {
  font-family: var(--font-mono);
}

.mt-4 {
  margin-top: var(--sp-4);
}

.mt-6 {
  margin-top: var(--sp-6);
}

.mt-8 {
  margin-top: var(--sp-8);
}

.mb-4 {
  margin-bottom: var(--sp-4);
}

.mb-6 {
  margin-bottom: var(--sp-6);
}

/* ============================================================
   21.5. REFERENCE CLOUD (文章底部权威法条与词云区)
   ============================================================ */
.reference-cloud {
  margin-top: var(--sp-12);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border);
}

.reference-cloud__title {
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-4);
}

.reference-cloud__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.ref-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--text-xs);
  border-radius: var(--r-full);
  text-decoration: none;
  background: #f3f4f6;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all var(--ease-fast);
}

/* 带有 <a> 链接的标签变蓝（合并去重后的唯一规则）*/
a.ref-tag {
  text-decoration: none;
  background: rgba(43, 108, 176, 0.06);
  color: #2B6CB0;
  border-color: rgba(43, 108, 176, 0.25);
}

a.ref-tag:hover {
  background: #2B6CB0;
  color: #FFF;
  border-color: #2B6CB0;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   21.6. RESOURCE LISTS (Authority Links)
   ============================================================ */
.resource-list {
  list-style: none;
  padding: 0;
  margin: var(--sp-6) 0;
}

.resource-list li {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-secondary);
  display: block;
  margin-bottom: var(--sp-4);
}

.resource-list li strong {
  color: var(--text-primary);
}

.resource-list a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  word-break: break-all;
}

.resource-list a:hover {
  color: var(--gold);
}

/* ============================================================
   22. RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }
}

/* 平板：文章侧边栏也折叠 */
@media (max-width: 1024px) {
  .article-wrap {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .card.card--featured {
    flex-direction: column;
  }

  .card.card--featured .card__thumb {
    width: 100%;
    height: 200px;
    min-height: unset;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 58px;
  }

  .nav__links {
    display: none;
  }

  .nav__actions {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  .section {
    padding: var(--sp-10) 0;
  }

  .hero {
    padding: var(--sp-12) 0 var(--sp-10);
  }

  .page-hero {
    padding: var(--sp-10) 0 var(--sp-8);
  }

  .hero__stats {
    flex-wrap: wrap;
    gap: var(--sp-5);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    justify-content: center;
  }

  .cta-strip {
    padding: var(--sp-8) var(--sp-5);
  }

  .cta-strip__title {
    font-size: var(--text-2xl);
  }

  .cta-strip__actions {
    flex-direction: column;
    align-items: center;
  }

  .calc-banner {
    flex-direction: column;
    text-align: center;
  }

  .calc-banner__icon {
    margin: 0 auto;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__bottom-links {
    justify-content: center;
  }

  .article-wrap {
    padding: var(--sp-8) var(--sp-4);
    gap: var(--sp-6);
  }

  .article-title {
    font-size: var(--text-2xl);
  }

  .article-author-block {
    flex-wrap: wrap;
  }

  /* 防止任何内嵌元素产生横向溢出 */
  .container,
  .article-wrap,
  .hero__grid {
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
  }
}

/* 手机小屏：网格强制 1 列 */
@media (max-width: 580px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .pillar-card {
    padding: var(--sp-5);
  }

  .page-hero__meta {
    gap: var(--sp-5);
  }

  .filter-bar {
    gap: var(--sp-1);
  }

  .filter-btn {
    font-size: var(--text-xs);
    padding: var(--sp-1) var(--sp-3);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--sp-4);
  }

  thead th {
    font-size: 0.65rem;
    padding: var(--sp-2) var(--sp-3);
  }

  tbody td {
    padding: var(--sp-2) var(--sp-3);
    font-size: var(--text-xs);
  }
}


/* ============================================================
   十四、技术参考组件 (Technical Reference Card)
   ============================================================ */
/* ============================================================
   十四、PFIC 技术参考组件体系
   ============================================================ */

/* 1. 规则说明框 (Rule Box) */
.fx-rule-box {
  border: 1px solid var(--border-light);
  border-left: 3px solid #2563eb;
  border-radius: 0 8px 8px 0;
  background: #f8fafc;
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #1e293b;
}

.fx-rule-box__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #2563eb;
  margin-bottom: 6px;
}

.fx-rule-box--danger {
  border-left-color: #dc2626;
}

.fx-rule-box--danger .fx-rule-box__label {
  color: #dc2626;
}

.fx-rule-box--green {
  border-left-color: #16a34a;
}

.fx-rule-box--green .fx-rule-box__label {
  color: #16a34a;
}

/* 2. 费率参考卡片 (Rate Card) */
.rate-card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.rate-card__head {
  padding: 8px 12px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--navy);
  display: flex;
  align-items: center;
  min-height: 32px;
}

.rate-card__body {
  padding: 10px 12px;
  background: #fff;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #334155;
  flex: 1;
}

.rate-card__body strong {
  color: #0f172a;
  display: block;
  margin-bottom: 3px;
}

.rate-card--red .rate-card__head {
  background: #991b1b;
}

.rate-card--green .rate-card__head {
  background: #065f46;
}

.rate-card--orange .rate-card__head {
  background: #9a3412;
}

.rate-card--blue .rate-card__head {
  background: #1e40af;
}

.rate-card--brown .rate-card__head {
  background: #78350f;
}

.rate-card--purple .rate-card__head {
  background: #5b21b6;
}


/* 3. 权威引证链接 (Auth Link) */
.auth-link {
  display: inline-block;
  font-size: 0.67rem;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  padding: 1px 6px;
  border-radius: 3px;
  text-decoration: none;
  margin-top: 4px;
}

.auth-link:hover {
  background: #dbeafe;
}

.auth-link-container {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}