:root {
  color-scheme: light;
  --navy: #002060;
  --navy-deep: #001848;
  --navy-soft: #1a3a7a;
  --accent: #0a4da8;
  --line: #d0dceb;
  --line-strong: #b8c9de;
  --muted: #3d5f8a;
  --muted-soft: #6b86a8;
  --bg: #eef3f9;
  --bg-elevated: #ffffff;
  --soft: #f4f7fb;
  --soft-2: #e8eef7;
  --danger: #9d1c2b;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0, 32, 96, 0.04);
  --shadow: 0 8px 28px rgba(0, 32, 96, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 32, 96, 0.14);
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  /*
   * 字体阶梯（全站统一）
   * xs  12  角标 / 备注 / 时间 / 版权
   * sm  13  辅助说明 / 按钮 / chip / 导航 / 页脚正文
   * base 15 正文
   * lg  17  二级标题（列表项、区块小标题）
   * xl  20  一级内容标题（卡片/弹窗）
   * 2xl 24  报告页大标题
   * 字体：UI/正文/按钮 → sans；内容标题 → serif
   */
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 17px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --leading-tight: 1.45;
  --leading-ui: 1.4;
  --leading-body: 1.85;
  --leading-note: 1.65;
  --tracking-ui: 0.02em;
  --tracking-title: 0.02em;
  --tracking-label: 0.12em;
  --ease: 180ms ease;
  /* 与 .site-header 实际高度对齐（约 8+40+8+边框），避免锚点/目录高亮差一行 */
  --header-h: 57px;
  /* 顶栏 logo 与页脚 logo 共用左侧边距，保证上下对齐 */
  --page-gutter: 28px;
  --page-max: 1120px;
  /* 主内容栏：与交易案例介绍/logo 同宽（page-max 的 80%） */
  --content-max: calc(var(--page-max) * 0.8);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 锚点跳转预留粘性顶栏高度，避免标题被挡住 */
  scroll-padding-top: calc(var(--header-h) + 8px);
}

html {
  height: 100%;
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-body);
  letter-spacing: 0.01em;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

a {
  color: var(--navy);
  transition: color var(--ease);
}

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

button, .button {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--leading-ui);
  letter-spacing: var(--tracking-ui);
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition:
    background var(--ease),
    border-color var(--ease),
    color var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
}

button:hover, .button:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  box-shadow: var(--shadow);
  color: #fff;
}

button:active, .button:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

button:focus-visible, .button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button.ghost {
  color: var(--navy);
  background: var(--bg-elevated);
  border-color: var(--line-strong);
  box-shadow: none;
}

button.ghost:hover {
  background: var(--soft);
  border-color: var(--navy);
  color: var(--navy);
  box-shadow: none;
}

button:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 950;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding:
    calc(8px + env(safe-area-inset-top))
    var(--page-gutter)
    8px;
  text-align: left;
  color: var(--navy);
  box-sizing: border-box;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: opacity var(--ease);
}

.logo-link:hover {
  opacity: 0.85;
  color: inherit;
}

.header-logo {
  flex: 0 0 auto;
  height: 40px;
  padding: 0;
  margin: 0;
}

.header-logo img {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  background: transparent;
}

.logo-link img {
  display: block;
}

.tabs {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 40px;
}

.tabs a {
  flex: 0 0 auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  box-sizing: border-box;
  color: var(--navy);
  text-decoration: none;
  padding: 0 14px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-ui);
  transition:
    color var(--ease),
    border-color var(--ease),
    background var(--ease);
}

.tabs a:hover {
  color: var(--navy-deep);
  background: var(--soft);
}

.tabs a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--navy);
  font-weight: 600;
}

/* LP门户：圆角胶囊（白底海军描边，对齐目标站 LP Portal） */
.tabs a.tab-framed {
  height: 32px;
  margin: 0 0 0 6px;
  padding: 0 14px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: var(--tracking-ui);
  line-height: 1;
  background: transparent;
}

.tabs a.tab-framed:hover {
  color: var(--navy);
  border-color: var(--navy);
  background: var(--soft);
}

.tabs a.tab-framed[aria-current="page"] {
  color: var(--navy);
  border-color: var(--navy);
  border-bottom-color: var(--navy);
  background: var(--soft);
}

main {
  flex: 1 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 48px 24px 80px;
}

.panel {
  margin: 0 auto;
  animation: panel-in 220ms ease both;
}

.panel[hidden] {
  display: none !important;
  animation: none;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.narrow { max-width: var(--content-max); }
/* 关于我们 / 交易案例 / S基金百科 / LP门户 共用同一内容最大宽度 */
.wide {
  width: 100%;
  max-width: var(--content-max);
  box-sizing: border-box;
}
.learn-panel { max-width: none; }

body.tab-learn main { padding: 0; }

.learn-frame {
  display: block;
  width: 100%;
  height: calc(100dvh - 148px);
  min-height: 640px;
  border: 0;
  background: #fff;
}

.panel h1 {
  margin: 0 0 20px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: var(--tracking-title);
  line-height: var(--leading-tight);
}

.panel p { margin: 0 0 16px; }

#panel-buyer p,
.lead,
.scroll-hint,
.qr,
figcaption {
  text-align: center;
}

#panel-home .home-copy,
#panel-home .home-copy p {
  text-align: left;
}

.surface-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 28px 24px;
}

.me-phone {
  font-family: var(--font-serif);
  font-size: var(--text-lg); /* 与「最近浏览」同级标题字号 */
  font-weight: 600;
  letter-spacing: var(--tracking-title);
  line-height: var(--leading-tight);
}

.home-hero {
  margin: 0 0 20px;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  border-radius: 0;
}

.home-hero img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1024 / 597;
}

.home-copy {
  /* 随 .wide 内容栏（--content-max）满宽左对齐 */
  max-width: none;
  width: 100%;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  text-align: left;
  box-sizing: border-box;
}

.home-copy p {
  margin: 0 0 14px; /* 与交易案例 logo 网格行距 gap 一致 */
  font-size: var(--text-base);
  line-height: var(--leading-body);
  text-align: left;
  color: var(--navy);
}

.home-copy p:last-child {
  margin-bottom: 0;
}

.certs {
  max-width: var(--content-max);
  margin: 8px auto 0;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.cert-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), border-color var(--ease);
}

.cert-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.cert-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 72px;
  margin-bottom: 14px;
}

.cert-brand img {
  width: auto;
  height: 64px;
  max-width: 88px;
  object-fit: contain;
}

.cert-brand p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--leading-tight);
}

.cert-doc {
  display: block;
  width: 100%;
  height: auto;
}

.wall-scroll {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.wall-scroll img {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  margin: 0;
  padding: 10px 12px 12px;
  font-size: var(--text-xs);
  line-height: var(--leading-note);
  color: var(--muted-soft);
}

.qr img {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-sm);
}

.login-qr {
  width: 168px;
  height: 168px;
  margin: 0 auto 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-soft);
  font-size: var(--text-sm);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.login-qr img {
  width: 168px;
  height: 168px;
  display: block;
}

.login-qr img[hidden] {
  display: none;
}

.auth-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  padding: 32px 28px 28px;
  text-align: center;
}

.auth-card-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: var(--tracking-title);
  line-height: var(--leading-tight);
  color: var(--navy);
}

.auth-card #buyer-hint {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.buyer-account {
  margin: 0 auto 20px;
  max-width: none; /* 随 #panel-buyer.wide / --content-max */
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 8px 0 4px;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-modal[hidden] {
  display: none !important;
}

.login-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 24, 72, 0.48);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.login-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: panel-in 200ms ease both;
}

.login-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  line-height: 1;
  font-size: var(--text-xl);
  color: var(--muted);
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 999px;
}

.login-modal-close:hover {
  background: var(--soft);
  color: var(--navy);
  box-shadow: none;
}

.login-modal-dialog h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: var(--tracking-title);
  line-height: var(--leading-tight);
}

#login-modal-hint,
#profile-modal-hint {
  margin: 0 0 18px;
  font-size: var(--text-sm);
  color: var(--muted);
  text-align: center;
}

.profile-modal-dialog {
  text-align: left;
}

.profile-form {
  display: grid;
  gap: 14px;
}

.profile-field {
  display: grid;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--navy);
  font-weight: 600;
}

.profile-field input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 400;
}

.profile-field input:focus {
  outline: 2px solid rgba(10, 77, 168, 0.28);
  outline-offset: 1px;
  border-color: var(--accent);
}

.profile-error {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--danger);
  text-align: left;
}

.profile-modal-dialog .buyer-actions {
  margin: 4px 0 0;
  justify-content: stretch;
}

.profile-modal-dialog .buyer-actions button {
  width: 100%;
}

.clients-stage {
  position: relative;
  min-height: 240px;
}

.clients-intro {
  max-width: none;
  width: 100%; /* 与 .wide / --content-max 同宽 */
  margin: 0 0 28px;
  text-align: left;
  box-sizing: border-box;
}

.clients-intro p {
  margin: 0 0 12px;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--navy);
}

.clients-intro p:last-child {
  margin-bottom: 0;
}

.clients-mask {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.clients-mask[hidden] {
  display: none !important;
}

.clients-mask-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(238, 243, 249, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.clients-mask-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 280px;
  max-width: 360px;
  padding: 32px 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--navy);
  text-align: center;
  animation: panel-in 200ms ease both;
}

.clients-mask-dialog p {
  margin: 0;
  font-size: var(--text-base);
}

.learn-stage {
  position: relative;
  width: 100%;
}

.learn-ask-gate {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.88) 35%, rgba(255, 255, 255, 0.96) 100%);
  cursor: pointer;
}

.learn-ask-gate[hidden] {
  display: none !important;
}

.buyer-actions {
  text-align: center;
  margin: 0;
}

.buyer-actions .ghost {
  min-height: 40px;
  padding: 8px 18px;
}

.buyer-recent {
  margin: 0 auto;
  max-width: none; /* 随 #panel-buyer.wide / --content-max */
  width: 100%;
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  padding: 28px 28px 16px;
}

.buyer-recent-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: var(--tracking-title);
  line-height: var(--leading-tight);
  text-align: center;
}

.buyer-recent-hint {
  margin: 0 0 8px;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--muted);
}

.buyer-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.buyer-recent-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  transition: background var(--ease);
}

.buyer-recent-list li:hover {
  background: var(--soft);
}

.buyer-recent-index {
  flex: 0 0 auto;
  min-width: 1.6em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.buyer-recent-list a {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--navy);
  text-decoration: none;
  word-break: break-word;
}

.buyer-recent-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.buyer-recent-time {
  flex: 0 0 auto;
  font-size: var(--text-xs);
  color: var(--muted-soft);
  white-space: nowrap;
}

.buyer-recent-note {
  margin: 0 0 18px;
  font-size: var(--text-xs);
  line-height: var(--leading-note);
  color: var(--muted-soft);
  text-align: center;
}

.buyer-recent-note a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.buyer-recent-note a:hover {
  color: var(--accent);
}

.client-note {
  margin: 20px 0 0;
  text-align: left;
  font-size: var(--text-xs);
  line-height: var(--leading-note);
  color: var(--muted-soft);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
}

.chip {
  color: var(--navy);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 36px;
  padding: 6px 16px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--leading-ui);
  letter-spacing: var(--tracking-ui);
  box-shadow: none;
  transition:
    background var(--ease),
    border-color var(--ease),
    color var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
}

.chip:hover {
  border-color: var(--navy-soft);
  background: var(--soft);
  color: var(--navy);
  box-shadow: none;
}

.chip[aria-pressed="true"] {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.chip[aria-pressed="true"]:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #fff;
}

.client-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px; /* 同行间距保持不变 */
  width: 100%; /* 与 .wide / --content-max 同宽 */
  margin: 18px 0 0;
  padding: 0;
  box-sizing: border-box;
}

.client-card {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: 0;
  padding: 18px 12px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    border-color var(--ease);
}

.client-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.client-logo,
.client-fallback {
  height: 56px;
  margin: 0 auto;
}

.client-logo {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.client-fallback {
  display: flex;
  width: 56px;
  align-items: center;
  justify-content: center;
  background: var(--soft-2);
  border-radius: 0;
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--navy);
}

.scroll-hint {
  display: none;
  margin: 0 0 8px;
  font-size: var(--text-xs);
  line-height: var(--leading-note);
  color: var(--muted-soft);
}

.intro-subtabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 24px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.intro-subtab {
  margin: 0;
  padding: 10px 18px;
  min-height: 40px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--leading-ui);
  letter-spacing: var(--tracking-ui);
  cursor: pointer;
  box-shadow: none;
  transition:
    background var(--ease),
    color var(--ease),
    box-shadow var(--ease);
}

.intro-subtab:hover {
  color: var(--navy);
  background: var(--soft);
  box-shadow: none;
}

.intro-subtab[aria-selected="true"] {
  color: #fff;
  background: var(--navy);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.intro-subtab[aria-selected="true"]:hover {
  background: var(--navy-deep);
  color: #fff;
}

.intro-pane[hidden] {
  display: none;
}

.intro-copy {
  margin: 0 0 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.intro-copy p {
  margin: 0 0 12px;
  line-height: var(--leading-body);
  color: var(--navy);
  font-size: var(--text-base);
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.s-market-chart {
  margin: 0 0 28px;
  padding: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.s-market-chart canvas {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.intro-learn {
  margin: 0 0 12px;
}

.intro-learn .intro-copy {
  margin-bottom: 20px;
}

.intro-learn .login-qr {
  width: 168px;
  height: 168px;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.intro-learn .login-qr img {
  width: 168px;
  height: 168px;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

/* 仅保留近似正方形码区，不拉成横向空白条 */
.intro-learn-qr-wrap {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.report-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.report-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  transition: background var(--ease);
}

.report-list li:last-child {
  border-bottom: 0;
}

.report-list li:hover {
  background: var(--soft);
}

.report-list h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-title);
}

.file-state {
  margin: 6px 0 0;
  min-height: 1.2em;
  font-size: var(--text-sm);
  color: var(--muted);
  text-align: left;
  line-height: var(--leading-note);
}

.file-state a { font-size: var(--text-sm); }

.site-footer {
  flex: 0 0 auto;
  margin-top: auto;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding:
    56px
    var(--page-gutter)
    calc(28px + env(safe-area-inset-bottom));
  text-align: left;
  font-size: var(--text-sm);
  line-height: var(--leading-note);
  color: rgba(255, 255, 255, 0.68);
  box-sizing: border-box;
}

.footer-inner {
  /* 全宽铺开（仅受 site-footer 的 page-gutter 约束），与目标站一致：后两列贴右侧并随屏宽移动 */
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px 64px;
  padding-bottom: 44px;
}

.footer-heading {
  margin: 0 0 18px;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.footer-brand .footer-logo {
  display: inline-block;
  margin: 0 0 16px;
  background: #fff; /* 四角铺白，贴合深蓝页脚 */
  line-height: 0;
}

.footer-brand .footer-logo img {
  /* 约顶栏 logo 的 60%，对齐目标站头/底尺寸比 */
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 0;
  border: 0;
  outline: none;
  object-fit: cover;
  background: #fff;
  box-shadow: none;
}

.footer-brand .footer-logo:hover {
  opacity: 0.85;
}

.footer-tagline {
  margin: 0;
  max-width: 280px;
  font-size: var(--text-sm);
  line-height: var(--leading-note);
  color: rgba(255, 255, 255, 0.58);
}

.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li,
.footer-contact li {
  margin: 0 0 12px;
}

.footer-links a,
.footer-contact a,
.footer-beian,
.footer-legal a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color var(--ease);
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-beian:hover,
.footer-legal a:hover {
  color: #fff;
}

.footer-qr {
  margin: 0 0 14px;
}

.footer-qr img {
  width: 96px;
  height: 96px;
  display: block;
  background: #fff;
  border-radius: 4px;
}

.footer-contact li {
  font-size: var(--text-sm);
  line-height: var(--leading-note);
  color: rgba(255, 255, 255, 0.58);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--text-xs);
}

.footer-legal {
  margin: 0;
}

.footer-legal a {
  margin-left: 28px;
}

.footer-legal a:first-child {
  margin-left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 860px);
  gap: 28px 36px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  box-sizing: border-box;
}

.report-toc {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  max-height: calc(100dvh - var(--header-h) - 28px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  padding: 16px 0 12px;
  box-sizing: border-box;
}

.report-toc-title {
  margin: 0 16px 10px;
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: var(--tracking-title);
}

.report-toc-nav {
  overflow: auto;
  padding: 0 8px 4px 0;
  -webkit-overflow-scrolling: touch;
}

.report-toc-list,
.report-toc-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.report-toc-item {
  margin: 0;
}

.report-toc a {
  display: block;
  padding: 6px 12px 6px 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-sm);
  line-height: 1.45;
  border-left: 2px solid transparent;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
}

.report-toc-sub a {
  padding-left: 28px;
  font-size: var(--text-xs);
}

.report-toc a:hover {
  color: var(--navy);
  background: var(--soft);
}

.report-toc a.is-active {
  color: var(--navy);
  font-weight: 600;
  border-left-color: var(--navy);
  background: var(--soft);
}

.report-body {
  max-width: 860px;
  width: 100%;
  margin: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  padding: 32px 40px 40px;
  box-sizing: border-box;
}

/* 未使用左侧目录布局时，正文仍居中 */
main > .report-body {
  margin: 0 auto;
  border-radius: var(--radius-lg);
}

.report-back {
  margin: 0 0 12px;
  font-size: var(--text-sm);
}

.report-back a {
  text-decoration: none;
  color: var(--muted);
}

.report-back a:hover {
  color: var(--navy);
}

.report-title {
  margin: 0 0 24px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-title);
}

.report-body .TOC-Heading {
  margin: 8px 0 18px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
}

.report-body .TOC-Heading + p,
.report-body .TOC-Heading ~ p {
  margin: 0 0 8px;
}

.report-body .TOC-Heading ~ p > a,
.report-body .TOC-Heading ~ blockquote a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.report-body .TOC-Heading ~ p > a:hover,
.report-body .TOC-Heading ~ blockquote a:hover {
  color: var(--accent);
}

.report-body h1 {
  margin: 36px 0 14px;
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-title);
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.report-body h2 {
  margin: 28px 0 12px;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-title);
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.report-body p,
.report-body li {
  margin: 0 0 12px;
}

.report-signoff {
  margin: 8px 0 20px;
  text-align: right;
}

.report-signoff p {
  margin: 0;
  line-height: 1.7;
}

.report-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px auto 20px;
}

/* 联合出品方 / 合作支持：品牌 logo 按原文比例缩小居中，避免方形大图撑满栏宽 */
.report-body .report-brand-logo {
  margin: 8px auto 18px;
  text-align: center;
}

.report-body .report-brand-logo img {
  width: auto;
  max-width: 200px;
  max-height: 120px;
  margin: 0 auto;
  object-fit: contain;
}

.report-body .report-brand-logo-wide img {
  max-width: 360px;
  max-height: 96px;
}

.report-body .report-partner-gallery {
  margin: 12px auto 24px;
  text-align: center;
}

.report-body .report-partner-gallery img {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  object-fit: contain;
}

.report-body blockquote {
  margin: 0 0 8px 1.2em;
  padding: 0;
}

.report-body .table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
  border-radius: var(--radius-sm);
}

.report-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.report-body th,
.report-body td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  vertical-align: top;
  text-align: left;
}

.report-body th {
  background: var(--soft);
  font-weight: 600;
}

/* 报告交叉表：贴近原文蓝底标题 + 对角表头 */
.report-figure {
  margin: 16px 0 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}

.report-figure-head {
  margin: 0;
  padding: 10px 14px;
  background: var(--navy);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-align: center;
}

.report-figure-year {
  margin: 10px 14px 0;
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 600;
}

.report-figure .table-wrap {
  margin: 0;
  border-radius: 0;
  overflow-x: auto;
}

.report-figure .report-matrix {
  margin: 0;
  border: 0;
  font-variant-numeric: tabular-nums;
}

.report-matrix th,
.report-matrix td {
  border-color: #c5d0e0;
  vertical-align: middle;
  text-align: center;
  padding: 10px 8px;
}

.report-matrix thead th {
  background: #fff;
  border-bottom: 2px solid #1a1a1a;
  font-weight: 600;
  color: var(--navy);
}

.report-matrix tbody th[scope="row"] {
  background: #fff;
  text-align: left;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.report-matrix-wide tbody th[scope="row"] {
  white-space: normal;
  min-width: 9.5em;
}

.report-matrix-wide tbody tr:nth-child(even) td,
.report-matrix-wide tbody tr:nth-child(even) th[scope="row"] {
  background: #eef4fb;
}

.report-matrix .matrix-total-col {
  border-left: 2px solid #1a1a1a;
  font-weight: 600;
}

.report-matrix .matrix-total-row th,
.report-matrix .matrix-total-row td {
  background: #e8eef7 !important;
  border-top: 2px solid #1a1a1a;
  font-weight: 700;
}

.report-matrix .matrix-grand {
  background: #cfe2f5 !important;
  color: var(--navy-deep);
  font-weight: 700;
}

.report-matrix .matrix-corner {
  position: relative;
  min-width: 7.5em;
  height: 4.6em;
  padding: 0;
  background:
    linear-gradient(
      to top right,
      transparent calc(50% - 0.6px),
      #334155 calc(50% - 0.6px),
      #334155 calc(50% + 0.6px),
      transparent calc(50% + 0.6px)
    );
  overflow: hidden;
}

.report-matrix .matrix-corner-tall {
  height: 4.2em;
  min-width: 6.5em;
}

.report-matrix .matrix-corner-col,
.report-matrix .matrix-corner-row {
  position: absolute;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

.report-matrix .matrix-corner-col {
  top: 0.45em;
  right: 0.45em;
  text-align: right;
  max-width: 55%;
}

.report-matrix .matrix-corner-row {
  left: 0.45em;
  bottom: 0.4em;
  text-align: left;
  max-width: 55%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .panel,
  .login-modal-dialog,
  .clients-mask-dialog {
    animation: none;
  }

  .client-card:hover,
  button:active,
  .button:active {
    transform: none;
  }
}

@media (max-width: 1080px) {
  .report-layout {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 20px 24px;
  }
}

@media (max-width: 800px) {
  .report-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .report-toc {
    position: relative;
    top: auto;
    max-height: 220px;
  }

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

  .site-header {
    --page-gutter: 14px;
    padding: calc(8px + env(safe-area-inset-top)) var(--page-gutter) 8px;
    gap: 10px;
  }

  .header-logo img {
    width: 32px;
    height: 32px;
  }

  .tabs {
    flex-wrap: nowrap;
    justify-content: flex-end;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tabs a {
    padding: 10px 12px 12px;
  }

  main {
    padding: 32px 16px calc(64px + env(safe-area-inset-bottom));
  }

  .clients-intro {
    margin-bottom: 22px;
  }

  .auth-card,
  .buyer-recent,
  .report-body {
    padding: 22px 18px;
  }

  .home-copy p,
  .intro-copy p,
  .clients-intro p {
    /* 沿用桌面阶梯，不另开字号 */
    line-height: var(--leading-body);
  }

  .learn-frame {
    height: calc(100dvh - 104px - env(safe-area-inset-top, 0px));
    min-height: 320px;
  }

  .learn-ask-gate {
    height: 120px;
    padding: 0 16px calc(12px + env(safe-area-inset-bottom));
  }

  .learn-ask-gate .button {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .clients-mask {
    top: calc(96px + env(safe-area-inset-top, 0px));
    padding: 16px;
  }

  .clients-mask-dialog {
    min-width: 0;
    width: 100%;
    max-width: 320px;
    padding: 24px 20px;
  }

  .login-modal {
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    align-items: flex-end;
  }

  .login-modal-dialog {
    max-width: none;
    width: 100%;
    padding: 24px 20px 20px;
    border-radius: 14px 14px 0 0;
  }

  .client-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .filter-row {
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    margin-left: -4px;
    margin-right: -4px;
    padding: 0 4px 4px;
    scrollbar-width: none;
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 6px 12px;
  }

  .intro-subtabs {
    width: 100%;
    display: flex;
  }

  .intro-subtab {
    flex: 1 1 0;
    text-align: center;
    padding: 10px 10px;
  }

  .site-footer {
    --page-gutter: 14px;
    padding: 40px var(--page-gutter) calc(24px + env(safe-area-inset-bottom));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }

  .footer-tagline {
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal a {
    margin-left: 0;
    margin-right: 20px;
  }

  .scroll-hint { display: block; }
  .lead { text-align: left; }

  .wall-scroll img {
    width: 880px;
    min-width: 880px;
    max-width: none;
  }

  .report-list li {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px;
  }

  .report-list .button { width: 100%; text-align: center; }

  .report-title {
    margin-bottom: 16px;
  }

  .report-body th,
  .report-body td {
    padding: 6px 8px;
    font-size: var(--text-sm);
  }
}

@media (max-width: 480px) {
  .tabs a {
    padding: 10px 10px 12px;
  }

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

  .panel h1 {
    font-size: var(--text-lg);
  }

  .login-qr,
  .login-qr img,
  .qr img {
    width: 160px;
    height: 160px;
  }

  .login-qr {
    margin-left: auto;
    margin-right: auto;
  }
}
