/* 全量主权研究院 - 副站样式 */
:root {
  --navy: #0a1d37;
  --navy-light: #001f3f;
  --charcoal: #1a1a1a;
  --gray-bg: #f5f5f5;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #dddddd;
  --accent: #e84393;
  /* 设计稿 3130px 宽时内容区 1751px → 占比 1751/3130 */
  --design-width: 3130;
  --content-width: 1751;
  --max-w: 100%;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  box-sizing: border-box;
}

.page-banner {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
}

.page-banner .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-banner .banner-visual { flex-shrink: 0; width: 160px; }
.page-banner h1 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.page-banner .subtitle { font-size: 1rem; opacity: 0.9; max-width: 600px; line-height: 1.7; }

.main-nav {
  background: #e8e8e8;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 14px 0;
}

.main-nav a {
  padding: 4px 12px;
  font-size: 0.9rem;
  color: var(--text);
  border-right: 1px solid #bbb;
}

.main-nav a:last-child { border-right: none; }
.main-nav a.active { font-weight: 700; color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px 0;
  text-align: center;
}

.stat-item .num { font-size: 2rem; font-weight: 700; color: var(--navy); }
.stat-item .label { font-size: 0.9rem; color: var(--text-light); margin-top: 4px; }

.section { padding: 48px 0; }
.section.gray { background: var(--gray-bg); }
.section h2 { font-size: 1.5rem; margin-bottom: 8px; color: var(--navy); }
.section .section-desc { color: var(--text-light); margin-bottom: 28px; font-size: 0.95rem; }

.data-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.9rem; }
.data-table th, .data-table td { border: 1px solid var(--border); padding: 12px 16px; text-align: left; }
.data-table th { background: var(--gray-bg); font-weight: 600; width: 30%; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 2px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--navy); opacity: 1; }
.btn-gradient {
  background: linear-gradient(90deg, #e84393, #6c5ce7);
  color: var(--white);
  border: none;
}
.btn-center { text-align: center; margin-top: 28px; }

.summary-cta {
  text-align: center;
  padding: 48px 0;
  background: var(--gray-bg);
}

.summary-cta h2 { font-size: 1.3rem; margin-bottom: 16px; color: var(--navy); }
.summary-cta p { color: var(--text-light); max-width: 700px; margin: 0 auto 24px; }

.cta-band {
  background: #2a2a2a;
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

.cta-band h2 { font-size: 1.3rem; margin-bottom: 20px; }
.cta-band .cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 24px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-grid h3 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,0.75); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

.article-list .article-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.article-list h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--navy); }
.article-list p { font-size: 0.9rem; color: var(--text-light); }

.glossary-list dt { font-weight: 700; color: var(--navy); margin-top: 20px; }
.glossary-list dd { margin: 6px 0 0 0; color: var(--text-light); }

@media (min-width: 900px) {
  :root {
    --max-w: min(calc(var(--content-width) * 1px), calc(100vw * var(--content-width) / var(--design-width)));
  }
}

@media (min-width: 1440px) {
  :root {
    --gutter: 48px;
  }
}

@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .page-banner .container { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .nav-toggle { display: block; position: absolute; right: 16px; top: 10px; }
  .main-nav .nav-inner { display: none; flex-direction: column; padding: 0 0 16px; }
  .main-nav.open .nav-inner { display: flex; }
  .main-nav a { border-right: none; border-bottom: 1px solid var(--border); width: 100%; text-align: center; padding: 10px; }
  .main-nav { position: relative; }
  .stats-row { grid-template-columns: 1fr; }
}

/* Sub-site homepage — 副站首页.jpg */
.sub-home { background: var(--white); }

.sub-top-header {
  background: var(--white);
  border-bottom: 1px solid #ececec;
  padding: 18px 0;
}

.sub-top-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sub-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.sub-brand:hover { opacity: 1; }

.sub-brand-logo {
  width: 56px;
  height: auto;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.sub-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sub-brand-text strong {
  font-size: 1.05rem;
  color: var(--charcoal);
  line-height: 1.35;
}

.sub-brand-text small {
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.01em;
}

.sub-top-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
  flex-shrink: 0;
}

.sub-top-sep { color: #bbb; }

.sub-hero {
  background: #e9eaec;
  padding: 72px 0 56px;
  text-align: center;
}

.sub-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.sub-hero-tagline {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 12px;
}

.sub-hero-byline {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 48px;
}

.sub-hero-notice {
  text-align: left;
  font-size: 0.82rem;
  color: var(--text);
  width: 100%;
  margin: 0;
  line-height: 1.6;
}

.sub-hero-notice p {
  margin: 0 0 6px;
  text-align: left;
}

.sub-hero-notice p:last-child {
  margin-bottom: 0;
}

.sub-categories {
  padding: 36px 0 12px;
  background: var(--white);
}

.sub-cat-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.sub-cat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 10px 6px;
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.84rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  border-radius: 2px;
  transition: background 0.2s;
}

.sub-cat-btn:hover {
  background: var(--navy);
  opacity: 1;
}

.sub-featured {
  padding: 28px 0 64px;
}

.sub-featured + .sub-featured {
  padding-top: 0;
}

.sub-featured h2 {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.sub-section-desc {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 36px;
}

.sub-cat-btn.active {
  background: var(--white);
  color: var(--charcoal);
  font-weight: 700;
  box-shadow: inset 0 0 0 2px var(--charcoal);
}

.sub-cat-btn.active:hover {
  background: var(--white);
  color: var(--charcoal);
}

.sub-category-head {
  padding: 40px 0 32px;
  background: #f3f4f6;
}

.sub-category-head h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.sub-category-intro {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.75;
}

.sub-breadcrumb {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.sub-breadcrumb a { color: var(--text); }
.sub-breadcrumb a:hover { text-decoration: underline; opacity: 1; }

.sub-category-list {
  padding: 36px 0 64px;
}

.sub-category-list h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 24px;
  text-align: center;
}

.sub-article-detail {
  padding: 40px 0 48px;
}

.sub-article-detail-header {
  margin-bottom: 24px;
}

.sub-article-detail-header h1 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 12px 0;
  line-height: 1.45;
}

.sub-article-lead {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.75;
}

.sub-article-detail-figure {
  margin-bottom: 28px;
}

.sub-article-detail-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.sub-article-detail-content {
  font-size: 10.5pt;
  line-height: 1.75;
  color: var(--text);
  word-break: break-word;
  font-family: 宋体, SimSun, "Microsoft YaHei", "PingFang SC", serif;
}

/* Word 空行段落 = 段间距（非 margin，是整行空白） */
.sub-article-detail-content p.word-p-spacer {
  margin: 0;
  padding: 0;
  min-height: 0.65em;
  line-height: 1.2;
  font-size: 10.5pt;
}

.sub-article-detail-content p:not([style]):not(.word-p-spacer) {
  margin: 0 0 0.5em;
}

/* Word 14pt 加粗标题段落（未转换 h2 的旧内容） */
.sub-article-detail-content p:has(> b > span[style*="14"]),
.sub-article-detail-content p:has(> strong > span[style*="14"]) {
  margin: 1.25em 0 0.5em;
}

.sub-article-detail-content h2:not([style]),
.sub-article-detail-content h3:not([style]),
.sub-article-detail-content h4:not([style]) {
  color: var(--charcoal);
  font-weight: 700;
  line-height: 1.45;
  margin: 1.25em 0 0.5em;
}

.sub-article-detail-content h2:not([style]) { font-size: 14pt; }
.sub-article-detail-content h3:not([style]) { font-size: 12pt; }
.sub-article-detail-content h4:not([style]) { font-size: 11pt; }

.sub-article-detail-content strong:not([style]),
.sub-article-detail-content b:not([style]) {
  font-weight: 700;
  color: var(--charcoal);
}

.sub-article-detail-content ul:not([style]),
.sub-article-detail-content ol:not([style]) {
  margin: 0 0 0.75em 1.4em;
  padding: 0;
}

.sub-article-detail-content li:not([style]) {
  margin-bottom: 0.35em;
}

.sub-article-detail-content blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--navy);
  background: var(--gray-bg);
  color: var(--text-light);
}

.sub-article-detail-content img {
  max-width: 100%;
  height: auto;
  margin: 16px 0;
}

.sub-article-detail-content table {
  width: auto;
  max-width: 100%;
  border-collapse: collapse;
  margin: 16px auto;
  font-size: 10.5pt;
}

.sub-article-detail-content table.word-table,
.sub-article-detail-content table[style] {
  width: auto;
  max-width: 100%;
}

.sub-article-detail-content table:not([style]) th,
.sub-article-detail-content table:not([style]) td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.sub-article-detail-content table:not([style]) th {
  background: var(--gray-bg);
  font-weight: 600;
}

.sub-article-detail-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #ececec;
}

.sub-simple-content {
  padding: 40px 0 64px;
}

.sub-simple-content h2 {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 28px 0 12px;
}

.sub-simple-content h2:first-child { margin-top: 0; }

.sub-simple-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.sub-simple-content li { margin-bottom: 6px; }

.sub-about-body,
.sub-contact-body {
  padding: 0 0 64px;
  background: var(--white);
}

.sub-about-body .sub-about-content,
.sub-contact-body .sub-contact-content {
  padding-top: 32px;
  max-width: none;
  margin: 0;
}

.sub-about-content p {
  margin-bottom: 1em;
  line-height: 1.85;
  color: var(--text);
}

.sub-about-content h2 {
  font-size: 1.2rem;
  color: var(--navy);
  margin: 36px 0 16px;
  font-weight: 700;
}

.sub-about-content h2:first-of-type {
  margin-top: 0;
}

.sub-about-lead {
  font-size: 1.02rem;
}

.sub-about-compare {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  border-left: 3px solid var(--navy);
  padding-left: 20px;
}

.sub-about-compare li {
  margin-bottom: 10px;
  line-height: 1.75;
  color: var(--text);
}

.sub-about-founder-name {
  font-size: 1.1rem;
  color: var(--charcoal);
  margin: 8px 0 14px;
  font-weight: 700;
}

.sub-about-standards {
  margin: 16px 0 24px;
}

.sub-about-standards dt {
  font-weight: 700;
  color: var(--navy);
  margin-top: 18px;
}

.sub-about-standards dt:first-child {
  margin-top: 0;
}

.sub-about-standards dd {
  margin: 6px 0 0;
  color: var(--text);
  line-height: 1.85;
}

.sub-about-mission {
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 1.5em;
}

.sub-contact-block {
  text-align: center;
  padding: 24px 0;
}

.sub-contact-block p { margin-bottom: 10px; }

.sub-contact-page p {
  line-height: 1.85;
  margin-bottom: 1em;
}

.sub-contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.sub-contact-list li {
  margin-bottom: 14px;
  line-height: 1.75;
}

.sub-contact-list a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sub-contact-list a:hover {
  opacity: 0.85;
}

.sub-article-list {
  list-style: none;
  width: 100%;
  margin: 0 auto;
}

.sub-article-item {
  border-bottom: 1px solid #ececec;
}

.sub-article-item:first-child { border-top: 1px solid #ececec; }

.sub-article-link {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 28px 0;
  transition: background 0.2s;
}

.sub-article-link:hover {
  opacity: 1;
  background: #fafafa;
}

.sub-article-thumb {
  width: 120px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f0f0f0;
}

.sub-article-thumb img {
  width: 100%;
  height: 90px;
  object-fit: cover;
}

.sub-article-body {
  flex: 1;
  min-width: 0;
}

.sub-article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sub-article-cat {
  display: inline-block;
  padding: 3px 10px;
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.72rem;
  line-height: 1.3;
}

.sub-article-date {
  font-size: 0.82rem;
  color: var(--text-light);
  white-space: nowrap;
}

.sub-article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
  line-height: 1.45;
}

.sub-article-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}

.sub-cta-band {
  background: #33363b;
  color: var(--white);
  padding: 44px 0;
  text-align: center;
}

.sub-cta-band h2 {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
}

.sub-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-sub-cta {
  display: inline-block;
  padding: 12px 28px;
  background: #e84393;
  color: var(--white);
  font-size: 0.92rem;
  border-radius: 2px;
  transition: opacity 0.2s;
}

.btn-sub-cta:hover {
  opacity: 0.9;
}

.sub-home-footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.85);
  padding: 48px 0 24px;
  font-size: 0.88rem;
}

.sub-home-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  width: 100%;
  margin-bottom: 32px;
}

.sub-home-footer .footer-grid > * {
  min-width: 0;
}

.sub-home-footer .footer-brand {
  padding-right: 0;
}

.sub-home-footer .footer-brand img,
.sub-home-footer .footer-brand-logo {
  display: block;
  width: auto;
  height: 48px;
  margin-bottom: 12px;
  object-fit: contain;
  background: white;
  border-radius: 99px;
}

.sub-home-footer .footer-brand h3,
.sub-home-footer .footer-grid h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.sub-home-footer .footer-slogan {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 6px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sub-home-footer .footer-nav-cols {
  display: flex;
  gap: clamp(32px, 5vw, 56px);
}

.sub-home-footer .footer-nav-cols ul {
  list-style: none;
}

.sub-home-footer .footer-nav-cols li { margin-bottom: 8px; }

.sub-home-footer .footer-nav-cols a,
.sub-home-footer .footer-grid a {
  color: rgba(255,255,255,0.75);
}

.sub-home-footer .footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sub-home-footer .footer-grid ul li { margin-bottom: 10px; line-height: 1.65; }

.sub-home-footer .footer-col-contact ul li {
  white-space: normal;
}

@media (min-width: 901px) {
  .sub-home-footer .footer-col-contact ul li {
    white-space: nowrap;
  }
}

.sub-home-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.65;
}

@media (min-width: 1280px) {
  .sub-home-footer > .container {
    max-width: min(calc(var(--content-width) * 1px), calc(100vw * var(--content-width) / var(--design-width)));
  }

  .sub-home-footer .footer-nav-cols li {
    white-space: nowrap;
  }
}

@media (max-width: 1200px) {
  .sub-cat-grid {
    gap: 6px;
  }

  .sub-cat-btn {
    padding: 10px 4px;
    font-size: 0.76rem;
  }
}

@media (max-width: 900px) {
  .sub-top-header-inner { flex-direction: column; align-items: flex-start; }
  .sub-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .sub-cat-btn {
    padding: 10px 8px;
    font-size: 0.84rem;
  }
  .sub-home-footer .footer-brand h3,
  .sub-home-footer .footer-slogan,
  .sub-home-footer .footer-grid ul li,
  .sub-home-footer .footer-bottom p {
    white-space: normal;
  }
  .sub-home-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .sub-hero { padding: 48px 0 40px; }
  .sub-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sub-cat-btn { padding: 10px 6px; font-size: 0.8rem; white-space: nowrap; }
  .sub-article-link { flex-direction: column; gap: 14px; padding: 22px 0; }
  .sub-article-thumb { width: 100%; }
  .sub-article-thumb img { height: 160px; }
}

.sub-empty {
  padding: 24px 0;
  color: var(--text-muted, #666);
  text-align: center;
}
