/* ═══════════════════════════════════════════════════════════════
   民智国际研究院 · D&C THINK — Editorial Design System v3 "Lumen"
   Light-first: paper hero, ink anchors · Hairline rules · Quiet luxury
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Palette — bright paper base, ink navy anchors, one vermilion accent */
  --ink: #0b1a2e;
  --ink-2: #101f36;
  --ink-3: #16283f;
  --paper: #faf8f4;
  --paper-2: #f2efe8;
  --white: #ffffff;
  --vermilion: #b5342a;
  --vermilion-bright: #cf4a37;
  --mist: #8b94a0;
  --line: rgba(11, 26, 46, 0.13);
  --line-strong: rgba(11, 26, 46, 0.32);
  --line-dark: rgba(247, 245, 240, 0.16);
  --paper-soft: rgba(247, 245, 240, 0.66);

  /* Type */
  --serif-zh: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --serif-en: "Playfair Display", Georgia, serif;
  --sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* Rhythm */
  --container: 1240px;
  --container-wide: 1400px;
  --radius: 2px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--vermilion); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: rgba(11, 26, 46, 0.26); }
::-webkit-scrollbar-thumb:hover { background: rgba(11, 26, 46, 0.48); }

:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 3px; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ── Language body state ───────────────────────────────────── */
body.lang-en { font-family: "Inter", var(--sans); }
body.lang-en .hero-title .line { font-family: var(--serif-en); letter-spacing: -0.01em; }
body.lang-en .hero-title .line-accent { font-style: italic; font-weight: 600; }

/* ═══════════════ PRELOADER ═══════════════ */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--ink);
  display: grid; place-items: center;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; color: var(--paper); }
.preloader-logo {
  width: 148px; height: auto; margin: 0 auto;
  opacity: 0; transform: translateY(12px);
  animation: plFade 0.9s var(--ease-out) 0.15s forwards;
}
@keyframes plFade { to { opacity: 1; transform: none; } }
.preloader-bar {
  width: 160px; height: 1px; margin: 30px auto 0;
  background: rgba(247, 245, 240, 0.14); overflow: hidden;
}
.preloader-bar span {
  display: block; height: 100%; width: 36%;
  background: var(--vermilion-bright);
  animation: loadbar 1.15s ease-in-out infinite;
}
@keyframes loadbar { 0% { transform: translateX(-130%); } 100% { transform: translateX(310%); } }

/* ═══════════════ HEADER — light ═══════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.45s var(--ease-out), box-shadow 0.35s;
  border-bottom: 1px solid var(--line);
}
.site-header.hidden { transform: translateY(-100%); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 84px;
  transition: height 0.35s var(--ease-out);
}

.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand-logo { height: 48px; width: auto; flex: none; display: block; }
.brand-text { display: grid; gap: 2px; color: var(--ink); padding-left: 16px; border-left: 1px solid var(--line); }
.brand-zh {
  font-family: var(--serif-zh); font-size: 1.16rem; font-weight: 700;
  letter-spacing: 0.14em; white-space: nowrap;
}
body.lang-en .brand-zh { font-family: var(--serif-en); font-size: 1.2rem; letter-spacing: 0.02em; }
.brand-sub { font-size: 0.62rem; letter-spacing: 0.18em; color: rgba(11, 26, 46, 0.5); white-space: nowrap; }
body.lang-en .brand-sub { font-size: 0.6rem; letter-spacing: 0.08em; }

.main-nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); }
.nav-link {
  position: relative;
  color: rgba(11, 26, 46, 0.76);
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.06em;
  padding: 6px 1px;
  transition: color 0.25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--vermilion);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  margin-left: 10px;
  padding: 9px 20px;
  border: 1px solid var(--line-strong);
  color: var(--ink); font-size: 0.84rem; font-weight: 500; letter-spacing: 0.08em;
  transition: all 0.3s var(--ease-out);
}
.nav-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.lang-switch { display: flex; align-items: stretch; border: 1px solid var(--line); }
.lang-btn {
  color: rgba(11, 26, 46, 0.5);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 5px 14px;
  transition: all 0.3s var(--ease-out);
}
.lang-btn + .lang-btn { border-left: 1px solid var(--line); }
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { background: var(--vermilion); color: #fff; }

.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 10px;
}
.menu-toggle span {
  display: block; height: 1.5px; width: 100%;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* ═══════════════ HERO — bright paper ═══════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding: 150px 0 90px;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11, 26, 46, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 26, 46, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, black 30%, transparent 75%);
}

.hero-globe {
  position: absolute; right: -160px; top: 50%;
  width: min(760px, 92vw); height: auto;
  transform: translateY(-54%);
  opacity: 0.6;
}
.globe-rotator { transform-origin: 300px 300px; animation: globeSpin 110s linear infinite; }
@keyframes globeSpin { to { transform: rotate(360deg); } }
.arc { stroke: #97a2ae; stroke-width: 1; stroke-dasharray: 5 8; opacity: 0.9; }
.arc-1 { stroke: var(--vermilion); }
.node circle { fill: var(--ink); }
.node circle.pulse { fill: var(--vermilion-bright); }
.node .pulse { animation: nodePulse 3s ease-out infinite; transform-origin: center; transform-box: fill-box; }
.node-2 .pulse { animation-delay: 0.6s; }
.node-3 .pulse { animation-delay: 1.2s; }
.node-4 .pulse { animation-delay: 1.8s; }
.node-5 .pulse { animation-delay: 2.4s; }
@keyframes nodePulse {
  0% { opacity: 0.7; r: 4; }
  70% { opacity: 0; r: 15; }
  100% { opacity: 0; r: 15; }
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.6fr 0.9fr; gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.34em;
  color: rgba(11, 26, 46, 0.55);
  margin-bottom: 36px;
}
.eyebrow-rule { width: 56px; height: 1px; background: var(--vermilion); }

.hero-title {
  font-family: var(--serif-zh);
  font-size: clamp(3rem, 7.2vw, 6rem);
  font-weight: 900; line-height: 1.14; letter-spacing: 0.065em;
  margin-bottom: 36px;
}
.hero-title .line { display: block; }
.hero-title .line-accent { color: var(--vermilion); }

.hero-desc {
  max-width: 560px;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 400; color: rgba(11, 26, 46, 0.68);
  margin-bottom: 46px;
}
body.lang-en .hero-desc { line-height: 1.8; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 32px;
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.06em;
  transition: all 0.3s var(--ease-out);
}
.btn svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease-out); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--vermilion); color: #fff; }
.btn-dark:hover svg { transform: translateX(5px); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* Hero side panel — hairline on paper */
.hero-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 34px 32px;
}
.hero-card-item { display: flex; flex-direction: column; gap: 4px; padding: 13px 0; }
.hc-label { font-size: 0.74rem; letter-spacing: 0.16em; color: rgba(11, 26, 46, 0.46); }
.hc-value { font-family: var(--serif-en); font-size: 2.4rem; font-weight: 600; line-height: 1.1; color: var(--ink); }
.hc-plus { color: var(--vermilion); font-size: 1.5rem; margin-left: 2px; }
.hero-card-divider { height: 1px; background: var(--line); }

/* Scroll cue */
.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(11, 26, 46, 0.45); z-index: 2;
}
.scroll-mouse {
  width: 22px; height: 38px; border: 1px solid rgba(11, 26, 46, 0.35);
  border-radius: 11px; display: flex; justify-content: center; padding-top: 7px;
}
.scroll-wheel { width: 2px; height: 8px; background: var(--vermilion); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(11px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
.scroll-label { font-size: 0.6rem; letter-spacing: 0.42em; margin-right: -0.42em; }

/* ═══════════════ TICKER — quiet index strip ═══════════════ */
.ticker {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
}
.ticker-track { display: flex; width: max-content; animation: tickerScroll 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.ticker-group span {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em;
  color: rgba(11, 26, 46, 0.62); white-space: nowrap;
}
.ticker-group span i {
  font-style: italic; font-weight: 400; opacity: 0.5;
  font-family: var(--serif-en); margin-left: 8px; letter-spacing: 0.03em;
}
.ticker-group em { font-style: normal; font-size: 0.5rem; color: rgba(11, 26, 46, 0.3); }
@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* ═══════════════ SECTIONS SHARED ═══════════════ */
.section { padding: clamp(84px, 10vw, 148px) 0; position: relative; }

.section-head {
  display: flex; align-items: flex-end; gap: clamp(20px, 3vw, 44px);
  margin-bottom: clamp(46px, 6vw, 84px);
  flex-wrap: wrap;
}
.section-index {
  font-family: var(--serif-en); font-style: italic;
  font-size: clamp(3.2rem, 5vw, 4.6rem); font-weight: 500; line-height: 0.82;
  color: transparent;
  -webkit-text-stroke: 1px rgba(11, 26, 46, 0.2);
  flex: none;
}
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--vermilion);
  margin-bottom: 15px;
}
.section-eyebrow span::before {
  content: ""; display: inline-block; width: 26px; height: 1px;
  background: var(--vermilion); margin-right: 12px; vertical-align: middle;
}
.section-title {
  font-family: var(--serif-zh);
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  font-weight: 900; line-height: 1.3; letter-spacing: 0.045em;
}
.section-title em { font-style: normal; color: var(--vermilion); }
body.lang-en .section-title { font-family: var(--serif-en); letter-spacing: -0.005em; }
.section-link {
  margin-left: auto;
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.05em; color: var(--ink);
  background-image: linear-gradient(var(--vermilion), var(--vermilion));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 4px;
  transition: color 0.25s, background-size 0.4s var(--ease-out);
}
.section-link:hover { color: var(--vermilion); background-size: 30% 1px; }

/* ═══════════════ ABOUT ═══════════════ */
.about { border-bottom: 1px solid var(--line); }

.about-grid {
  display: grid; grid-template-columns: 1.55fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.about-main .lead {
  font-family: var(--serif-zh);
  font-size: clamp(1.22rem, 1.9vw, 1.55rem);
  font-weight: 600; line-height: 1.9;
  margin-bottom: 30px;
  padding-left: 24px;
  border-left: 2px solid var(--vermilion);
}
body.lang-en .about-main .lead { font-family: var(--serif-en); font-weight: 500; }
.about-main p:not(.lead) {
  color: rgba(11, 26, 46, 0.74);
  margin-bottom: 20px;
  max-width: 640px;
}

.about-values {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; margin-top: 48px;
  border: 1px solid var(--line);
  background: var(--white);
}
.value-item {
  padding: 22px 8px;
  text-align: center;
  border-left: 1px solid var(--line);
  transition: all 0.3s var(--ease-out);
}
.value-item:first-child { border-left: 0; }
.value-item:hover { background: var(--ink); }
.value-item:hover .value-num { color: var(--paper); }
.value-item:hover .value-en { color: rgba(247, 245, 240, 0.5); }
.value-num {
  display: block; font-family: var(--serif-zh);
  font-size: 1.12rem; font-weight: 700; letter-spacing: 0.16em;
  margin-bottom: 6px; transition: color 0.3s;
}
.value-en {
  display: block; font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mist); transition: color 0.3s;
}

.about-aside { position: sticky; top: 110px; display: grid; gap: 0; }
.about-quote-card {
  background: var(--ink); color: var(--paper);
  padding: 38px 34px;
  margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.about-quote-card::after {
  content: "智"; position: absolute; right: -14px; bottom: -34px;
  font-family: var(--serif-zh); font-size: 9rem; font-weight: 900;
  color: rgba(181, 52, 42, 0.22); line-height: 1; pointer-events: none;
}
.quote-mark { width: 30px; color: var(--vermilion-bright); margin-bottom: 18px; }
.about-quote-card blockquote {
  font-family: var(--serif-zh);
  font-size: 1.26rem; font-weight: 600; line-height: 1.9; letter-spacing: 0.06em;
  margin-bottom: 18px;
}
body.lang-en .about-quote-card blockquote { font-family: var(--serif-en); font-size: 1.18rem; }
.about-quote-card figcaption { font-size: 0.78rem; color: rgba(247, 245, 240, 0.48); letter-spacing: 0.08em; }

.about-fact {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.fact-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.24em; color: var(--vermilion); }
.fact-value { font-size: 0.94rem; font-weight: 500; color: rgba(11, 26, 46, 0.85); }

/* ═══════════════ RESEARCH ═══════════════ */
.research { border-bottom: 1px solid var(--line); }

.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.research-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 0; border-left: 0;
  padding: 38px 34px 32px;
  transition: background 0.4s var(--ease-out), border-color 0.4s;
  cursor: default;
}
.research-card:hover { background: var(--ink); border-color: var(--ink); z-index: 1; }

.rc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.rc-num {
  font-family: var(--serif-en); font-style: italic;
  font-size: 2.5rem; font-weight: 600; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(11, 26, 46, 0.3);
  transition: all 0.35s;
}
.research-card:hover .rc-num { color: var(--vermilion-bright); -webkit-text-stroke: 1px var(--vermilion-bright); }
.rc-icon { width: 42px; height: 42px; color: var(--ink-3); opacity: 0.7; transition: all 0.35s; }
.research-card:hover .rc-icon { color: rgba(247, 245, 240, 0.85); opacity: 1; }

.research-card h3 {
  font-family: var(--serif-zh);
  font-size: 1.3rem; font-weight: 700; letter-spacing: 0.04em;
  margin-bottom: 14px; line-height: 1.5;
  transition: color 0.35s;
}
body.lang-en .research-card h3 { font-family: var(--serif-en); font-size: 1.32rem; }
.research-card p {
  font-size: 0.9rem; color: rgba(11, 26, 46, 0.64);
  margin-bottom: 26px; min-height: 3.6em;
  transition: color 0.35s;
}
.research-card:hover h3 { color: var(--paper); }
.research-card:hover p { color: var(--paper-soft); }

.rc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-tags li {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 5px 12px;
  border: 1px solid var(--line);
  color: rgba(11, 26, 46, 0.72);
  transition: all 0.35s;
}
.rc-tags li i { font-style: italic; font-family: var(--serif-en); font-weight: 400; opacity: 0.55; margin-left: 5px; }
.research-card:hover .rc-tags li { border-color: rgba(247, 245, 240, 0.24); color: rgba(247, 245, 240, 0.75); }

/* ═══════════════ BUSINESS — numbered ledger ═══════════════ */
.business { background: var(--white); border-bottom: 1px solid var(--line); }

.biz-list {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.biz-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px;
  padding: 28px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease-out);
}
.biz-item:hover { background: var(--paper); }
.biz-num {
  font-family: var(--serif-en); font-style: italic;
  font-size: 1.5rem; font-weight: 600; line-height: 1.2;
  color: transparent; -webkit-text-stroke: 1px rgba(11, 26, 46, 0.32);
  transition: all 0.3s;
}
.biz-item:hover .biz-num { color: var(--vermilion); -webkit-text-stroke: 1px var(--vermilion); }
.biz-body h3 {
  font-family: var(--serif-zh);
  font-size: 1.12rem; font-weight: 700; letter-spacing: 0.05em;
  margin-bottom: 8px;
}
body.lang-en .biz-body h3 { font-family: var(--serif-en); font-weight: 600; }
.biz-body p { font-size: 0.86rem; color: rgba(11, 26, 46, 0.62); }

/* ═══════════════ PUBLICATIONS ═══════════════ */
.publications { background: var(--paper); border-bottom: 1px solid var(--line); }

.pub-layout {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 4vw, 56px);
  align-items: start;
}

.pub-feature {
  background: var(--ink); color: var(--paper);
  overflow: hidden;
  position: sticky; top: 110px;
}
.pub-feature-media {
  position: relative; height: 260px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
}
.pf-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(247, 245, 240, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 245, 240, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: perspective(500px) rotateX(38deg) translateY(28%) scale(1.6);
  transform-origin: center top;
}
.pf-pattern::after {
  content: "DC"; position: absolute; right: 8%; top: 10%;
  font-family: var(--serif-en); font-style: italic; font-weight: 800;
  font-size: 6.5rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(247, 245, 240, 0.16);
}
.pf-badge {
  position: absolute; left: 30px; bottom: 24px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.3em;
  color: rgba(247, 245, 240, 0.85);
  padding: 8px 16px;
  border: 1px solid rgba(247, 245, 240, 0.3);
}
.pub-feature-body { padding: 36px 34px 40px; }
.pub-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.pub-type { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; color: var(--vermilion-bright); }
.pub-date { font-size: 0.7rem; letter-spacing: 0.1em; color: rgba(247, 245, 240, 0.42); }
.pub-feature-body h3 {
  font-family: var(--serif-zh);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 900;
  letter-spacing: 0.04em; line-height: 1.5;
  margin-bottom: 16px;
}
body.lang-en .pub-feature-body h3 { font-family: var(--serif-en); }
.pub-feature-body p { font-size: 0.93rem; font-weight: 300; color: var(--paper-soft); margin-bottom: 28px; }
.pub-link {
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.06em;
  color: rgba(247, 245, 240, 0.9);
  display: inline-flex; align-items: center; gap: 8px;
  background-image: linear-gradient(var(--vermilion-bright), var(--vermilion-bright));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  padding-bottom: 4px;
  transition: background-size 0.4s var(--ease-out);
}
.pub-link::after { content: "→"; }
.pub-link:hover { background-size: 100% 1px; }

.pub-list { display: grid; }
.pub-item {
  display: grid; grid-template-columns: 74px 1fr 34px;
  gap: 20px; align-items: center;
  padding: 26px 6px;
  border-bottom: 1px solid var(--line);
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}
.pub-item:first-child { border-top: 1px solid var(--line); }
.pub-item:hover { background: var(--white); padding-left: 16px; padding-right: 0; }
.pi-year {
  font-family: var(--serif-en); font-style: italic;
  font-size: 1rem; font-weight: 600; color: var(--vermilion);
}
.pub-item h4 {
  font-family: var(--serif-zh);
  font-size: 1.06rem; font-weight: 700; letter-spacing: 0.02em;
  margin-bottom: 7px; line-height: 1.55;
}
body.lang-en .pub-item h4 { font-family: var(--serif-en); font-weight: 600; }
.pub-item p { font-size: 0.85rem; color: rgba(11, 26, 46, 0.58); }
.pi-arrow { font-size: 1.25rem; color: var(--mist); transition: all 0.3s var(--ease-out); }
.pub-item:hover .pi-arrow { color: var(--vermilion); transform: translateX(5px); }

/* Periodicals band */
.pub-journals {
  margin-top: clamp(36px, 4vw, 56px);
  border: 1px solid var(--line);
  background: var(--white);
  padding: 26px 30px;
}
.pj-head {
  display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.pj-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.26em;
  color: var(--vermilion); white-space: nowrap;
}
.pj-note { font-size: 0.82rem; color: rgba(11, 26, 46, 0.55); }
.pj-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.pj-tags li {
  font-family: var(--serif-zh);
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 7px 16px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: all 0.3s var(--ease-out);
}
.pj-tags li:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ═══════════════ EXPERTS ═══════════════ */
.experts { border-bottom: 1px solid var(--line); }

.expert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 64px); align-items: start; }
.ex-col-title {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.3em;
  color: rgba(11, 26, 46, 0.55);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 6px;
}
.ex-list { display: grid; }
.ex-item {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: background 0.3s var(--ease-out);
}
.ex-item:hover { background: var(--white); }
.ex-avatar {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  font-family: var(--serif-zh); font-size: 1.3rem; font-weight: 700;
  color: var(--ink);
  transition: all 0.3s var(--ease-out);
}
.ex-item:hover .ex-avatar { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ex-name {
  display: block;
  font-family: var(--serif-zh); font-size: 1.08rem; font-weight: 700; letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.ex-name i {
  font-style: italic; font-family: var(--serif-en); font-weight: 400;
  font-size: 0.85rem; color: var(--mist); margin-left: 6px;
}
.ex-role { display: block; font-size: 0.82rem; color: rgba(11, 26, 46, 0.6); line-height: 1.65; }

/* ═══════════════ EVENTS ═══════════════ */
.events { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.event-timeline { position: relative; }
.event-timeline::before {
  content: ""; position: absolute; left: 87px; top: 10px; bottom: 10px;
  width: 1px;
  background: rgba(11, 26, 46, 0.16);
}
.event-item {
  display: grid; grid-template-columns: 74px 1fr auto;
  gap: 40px; align-items: center;
  padding: 30px 0;
  position: relative;
}
.event-item::before {
  content: ""; position: absolute; left: 83px; top: 50%;
  width: 9px; height: 9px;
  background: var(--paper-2);
  border: 1.5px solid var(--vermilion);
  transform: translateY(-50%) rotate(45deg);
  transition: all 0.3s;
}
.event-item:hover::before { background: var(--vermilion); }
.ev-date { text-align: center; }
.ev-date b {
  display: block;
  font-family: var(--serif-zh); font-weight: 900;
  font-size: 1.5rem; line-height: 1.2; color: var(--ink);
}
body.lang-en .ev-date b { font-family: var(--serif-en); }
.ev-date span { font-size: 0.66rem; letter-spacing: 0.16em; color: var(--mist); }
.ev-tag {
  display: inline-block;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em;
  color: rgba(11, 26, 46, 0.66);
  border: 1px solid var(--line);
  padding: 4px 12px; margin-bottom: 10px;
}
.ev-recurring { color: #fff; background: var(--vermilion); border-color: var(--vermilion); }
.ev-body h3 {
  font-family: var(--serif-zh);
  font-size: 1.2rem; font-weight: 700; letter-spacing: 0.02em;
  margin-bottom: 8px;
}
body.lang-en .ev-body h3 { font-family: var(--serif-en); font-weight: 600; }
.ev-body p { font-size: 0.89rem; color: rgba(11, 26, 46, 0.6); max-width: 620px; }
.ev-loc {
  font-size: 0.79rem; color: var(--mist); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.ev-loc::before { content: "◉"; color: var(--vermilion); font-size: 0.68rem; }

/* ═══════════════ ALLIANCE ═══════════════ */
.alliance {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}
.alliance-inner { text-align: center; max-width: 960px; margin: 0 auto; }
.alliance-mark { width: 96px; margin: 0 auto 36px; }
.alliance-mark img { width: 100%; height: auto; }
.alliance-title {
  font-family: var(--serif-zh);
  font-size: clamp(1.85rem, 3.6vw, 2.9rem); font-weight: 900;
  line-height: 1.45; letter-spacing: 0.07em;
  margin-bottom: 28px;
}
body.lang-en .alliance-title { font-family: var(--serif-en); letter-spacing: 0; }
.alliance-desc {
  font-size: 0.95rem; font-weight: 300; color: var(--paper-soft);
  margin-bottom: 54px; text-align: left;
}
.alliance-partners { display: grid; gap: 22px; }
.partner-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 20px;
  align-items: start; text-align: left;
}
.partner-cat {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em;
  color: var(--vermilion-bright);
  padding-top: 10px; white-space: nowrap;
}
.partner-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.partner-chip {
  font-family: var(--serif-zh); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.06em;
  border: 1px solid var(--line-dark);
  padding: 9px 18px;
  transition: all 0.3s;
}
.partner-chip:hover { border-color: rgba(247, 245, 240, 0.5); background: rgba(247, 245, 240, 0.05); }

/* ═══════════════ CONTACT ═══════════════ */
.contact { background: var(--paper); }
.contact-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
}
.ci-cell {
  padding: 32px 36px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.ci-cell:nth-child(odd) { border-left: 0; }
.ci-cell:nth-child(-n+2) { border-top: 0; }
.ci-label {
  display: block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.26em; color: var(--vermilion); margin-bottom: 12px;
}
.ci-cell p { font-size: 1rem; font-weight: 500; color: rgba(11, 26, 46, 0.85); line-height: 1.9; }
.ci-cell a {
  background-image: linear-gradient(var(--line-strong), var(--line-strong));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 2px;
  transition: all 0.3s;
}
.ci-cell a:hover {
  color: var(--vermilion);
  background-image: linear-gradient(var(--vermilion), var(--vermilion));
  background-size: 30% 1px;
}

.contact-cta {
  margin-top: 30px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.contact-note { font-size: 0.84rem; color: var(--mist); }

/* ═══════════════ FOOTER ═══════════════ */
.site-footer {
  background: var(--ink);
  color: rgba(247, 245, 240, 0.68);
  padding: 70px 0 34px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "民智"; position: absolute; right: -20px; bottom: -60px;
  font-family: var(--serif-zh); font-weight: 900;
  font-size: 15rem; line-height: 1;
  color: rgba(247, 245, 240, 0.025);
  pointer-events: none;
}
.footer-top {
  display: grid; grid-template-columns: 1.3fr 2fr;
  gap: clamp(40px, 6vw, 100px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.brand-footer .brand-logo { height: 44px; }
.brand-footer .brand-text { border-left-color: var(--line-dark); }
.brand-footer .brand-zh, .brand-footer .brand-sub { color: var(--paper); }
.footer-motto {
  margin-top: 22px;
  font-family: var(--serif-zh);
  font-size: 1.02rem; letter-spacing: 0.16em;
  color: rgba(247, 245, 240, 0.48);
}
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.fn-col h4 {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.3em;
  color: var(--vermilion-bright); margin-bottom: 20px;
}
.fn-col a {
  display: flex; align-items: center;
  font-size: 0.89rem;
  color: rgba(247, 245, 240, 0.62);
  padding: 6px 0;
  transition: color 0.25s, padding-left 0.3s var(--ease-out);
}
.fn-col a::before {
  content: ""; width: 0; height: 1px; background: var(--vermilion-bright);
  margin-right: 0; transition: all 0.3s var(--ease-out);
}
.fn-col a:hover { color: var(--paper); padding-left: 18px; }
.fn-col a:hover::before { width: 12px; margin-right: 6px; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; flex-wrap: wrap;
  padding-top: 30px;
  font-size: 0.76rem; color: rgba(247, 245, 240, 0.38);
}
.footer-bottom-right { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-credits { letter-spacing: 0.12em; }
.footer-icp a { letter-spacing: 0.06em; transition: color 0.25s; }
.footer-icp a:hover { color: rgba(247, 245, 240, 0.75); }

/* ═══════════════ BACK TO TOP ═══════════════ */
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 48px; height: 48px;
  background: var(--ink); color: var(--paper);
  border: 1px solid rgba(247, 245, 240, 0.2);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all 0.4s var(--ease-out);
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--vermilion); border-color: var(--vermilion); }
.back-top svg { width: 19px; height: 19px; }

/* ═══════════════ REVEAL ANIMATIONS ═══════════════ */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

/* Language switch crossfade */
body.lang-switching main,
body.lang-switching .site-header,
body.lang-switching .site-footer { opacity: 0.35; transition: opacity 0.22s ease; }
main, .site-header, .site-footer { transition: opacity 0.35s ease; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1180px) {
  .hero-globe { right: -260px; opacity: 0.42; }
  .research-grid { grid-template-columns: repeat(2, 1fr); }
  .research-card:nth-child(n+3):nth-child(odd) { border-left: 1px solid var(--line); }
  .biz-list { grid-template-columns: 1fr; }
  .biz-item { border-right: 0; }
  .expert-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-side { max-width: 480px; }
  .hero-globe { right: -320px; top: 30%; opacity: 0.32; }
  .about-grid { grid-template-columns: 1fr; }
  .about-aside { position: static; }
  .pub-layout { grid-template-columns: 1fr; }
  .pub-feature { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .partner-row { grid-template-columns: 1fr; gap: 12px; }
  .partner-cat { padding-top: 0; }

  .main-nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center;
    background: var(--paper);
    gap: 8px;
    opacity: 0; visibility: hidden;
    transition: all 0.45s var(--ease-out);
    z-index: -1;
  }
  .main-nav.open { opacity: 1; visibility: visible; z-index: 95; }
  .nav-link {
    font-family: var(--serif-zh);
    font-size: 1.6rem; font-weight: 700;
    color: var(--ink);
    padding: 12px 0;
    opacity: 0; transform: translateY(16px);
    transition: all 0.5s var(--ease-out);
  }
  .main-nav.open .nav-link { opacity: 1; transform: none; }
  .main-nav.open .nav-link:nth-child(1) { transition-delay: 0.05s; }
  .main-nav.open .nav-link:nth-child(2) { transition-delay: 0.1s; }
  .main-nav.open .nav-link:nth-child(3) { transition-delay: 0.15s; }
  .main-nav.open .nav-link:nth-child(4) { transition-delay: 0.2s; }
  .main-nav.open .nav-link:nth-child(5) { transition-delay: 0.25s; }
  .main-nav.open .nav-link:nth-child(6) { transition-delay: 0.3s; }
  .main-nav.open .nav-link:nth-child(7) { transition-delay: 0.35s; }
  .nav-cta { margin: 18px 0 0; color: var(--ink); border-color: var(--line-strong); }
  .menu-toggle { display: flex; z-index: 96; position: relative; }

  .event-timeline::before { display: none; }
  .event-item::before { display: none; }
  .event-item { grid-template-columns: 64px 1fr; }
  .ev-loc { grid-column: 2; }
}

@media (max-width: 640px) {
  .brand-sub { display: none; }
  .brand { gap: 12px; }
  .brand-logo { height: 40px; }
  .brand-text { padding-left: 12px; }
  .hero { padding-top: 120px; }
  .hero-title { letter-spacing: 0.04em; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .about-values { grid-template-columns: repeat(3, 1fr); }
  .value-item { border-top: 1px solid var(--line); }
  .value-item:nth-child(-n+3) { border-top: 0; }
  .value-item:nth-child(4) { border-left: 0; }
  .research-grid { grid-template-columns: 1fr; }
  .research-card { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; }
  .ci-cell { border-left: 0; border-top: 1px solid var(--line); }
  .ci-cell:first-child { border-top: 0; }
  .contact-cta .btn { width: 100%; justify-content: center; }
  .section-link { margin-left: 0; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .ticker-group span i { display: none; }
  .pub-item { grid-template-columns: 56px 1fr; }
  .pi-arrow { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .pj-head { flex-direction: column; gap: 8px; }
}

/* ═══════════════ REDUCED MOTION ═══════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
