/* ===== Design Tokens ===== */
:root {
  --bg-primary: #07070A;
  --bg-secondary: #0E0E14;
  --bg-card: #111118;
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-muted: #6E6E7A;
  --accent-gold: #D4AF37;
  --accent-gold-light: #E8C547;
  --accent-gold-dark: #B8960B;
  --accent-green: #059669;
  --accent-purple: #7C3AED;
  --border: #272733;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.5), 0 0 40px rgba(212,175,55,0.03);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 720px;
  --mono: "SF Mono", "Fira Code", "JetBrains Mono", Consolas, monospace;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent-gold); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Utility ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.text-md { font-size: 1.4rem; }
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7,7,10,0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-logo-img {
  height: 24px;
  width: auto;
  object-fit: contain;
  display: block;
  transform: translateY(1px);
}
.nav-logo span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  gap: var(--space-sm);
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent-gold);
  background: rgba(212,175,55,0.06);
}

/* ===== Bilingual Coexistence ===== */
.zh { display: inline; }
.en {
  display: block;
  color: var(--text-muted);
}

/* Headings */
h1 .en, h2 .en, .section-title .en, .subsection-title .en {
  font-size: 0.55em;
  font-weight: 400;
  margin-top: 6px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* Descriptions & paragraphs */
.section-desc .en, .hero-subtitle .en, .hero-desc .en,
.mechanism-intro .en, .card-text .en, .timeline-text .en,
.cert-desc .en, .footer-text .en {
  margin-top: 8px;
  font-size: 0.88em;
  line-height: 1.6;
}

/* Inline short text */
.hero-badge .en,
.hero-stat .label .en,
.data-card-label .en,
.data-card-source .en,
.data-card-desc .en,
.patent-strip-label .en,
.journal-desc .en {
  display: inline;
  font-size: 0.85em;
}
.footer-copy .en {
  display: block;
  font-size: 0.85em;
  margin-top: 4px;
}
.hero-badge .en::before,
.hero-stat .label .en::before,
.data-card-label .en::before,
.patent-strip-label .en::before {
  content: " | ";
  opacity: 0.4;
}

/* 关节保护模块：英文换行显示 */
.data-grid-block .en {
  display: block;
  font-size: 0.85em;
  margin-top: 4px;
}
.data-grid-block .en::before {
  content: none;
}

/* Navigation */
.nav-links a .en {
  display: inline;
  font-size: 0.78em;
  margin-left: 4px;
}

/* Timeline */
.timeline-year .en {
  display: inline;
  font-size: 0.85em;
  margin-left: 4px;
}
.timeline-title .en {
  font-size: 0.82em;
  font-weight: 400;
  margin-top: 3px;
}

/* Cards */
.card-title .en {
  font-size: 0.78em;
  font-weight: 400;
  margin-top: 3px;
}

/* Figures */
figcaption .en {
  margin-top: 3px;
  font-size: 0.9em;
}

/* Mechanism */
.mechanism-step-text .en {
  font-size: 0.88em;
  color: var(--text-secondary);
  margin-top: 4px;
}
.mechanism-result-title .en {
  font-size: 0.72em;
  color: var(--accent-gold);
  opacity: 0.85;
  margin-top: 3px;
}
.path-name .en, .path-effect .en {
  display: block;
  font-size: 0.85em;
  margin-top: 3px;
}

/* Data cards */
.data-card-value.text-md .en {
  display: inline;
  font-size: 0.85em;
  margin-left: 4px;
}

/* Cert & Patent */
.cert-title .en {
  font-size: 0.78em;
  font-weight: 400;
  margin-top: 3px;
}
.patent-figure figcaption .en {
  font-size: 0.85em;
  margin-top: 3px;
}

/* Hamburger toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-toggle:hover {
  background: rgba(212,175,55,0.06);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(52px + var(--space-xl)) var(--space-md) var(--space-xl);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212,175,55,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(232,197,71,0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(124,58,237,0.03) 0%, transparent 50%);
  pointer-events: none;
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
}
.hero-particles canvas { width: 100%; height: 100%; }
.hero-molecule {
  position: absolute;
  top: 15%;
  left: 5%;
  width: 80px;
  height: 80px;
  pointer-events: none;
  opacity: 0.03;
  z-index: 1;
  animation: fadeIn 1.2s ease-out 1.5s both;
}
.hero-molecule img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: hue-rotate(-50deg) saturate(0.2) brightness(0.9);
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--accent-gold);
  background: rgba(212,175,55,0.06);
  border: 1px solid rgba(212,175,55,0.12);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}
.hero-badge::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 {
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto var(--space-lg);
  line-height: 1.6;
}
.hero-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto var(--space-xl);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: block;
}
.hero-stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: fadeIn 0.8s ease-out 1.2s both, bounce 2s ease-in-out 2.0s infinite;
}
.scroll-hint svg { width: 20px; height: 20px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Hero entrance animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge   { animation: fadeInUp 0.6s ease-out 0.10s both; }
.hero h1      { animation: fadeInUp 0.6s ease-out 0.25s both; }
.hero-subtitle{ animation: fadeInUp 0.6s ease-out 0.40s both; }
.hero-desc    { animation: fadeInUp 0.6s ease-out 0.55s both; }
.hero-stats   { animation: fadeInUp 0.6s ease-out 0.70s both; }
.nav          { animation: slideDown 0.5s ease-out 0s both; }

/* ===== Section Base ===== */
section { scroll-margin-top: 60px; position: relative; }
.section { padding: var(--space-2xl) 0; }
.section-alt { background: var(--bg-secondary); }
/* 主背景层：各模块保持原有底图，opacity 提升至 0.5 */
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
#discovery::before { background-image: url('../images/background3.png'); opacity: 0.1; }
#mechanism::before { background-image: url('../images/background5.png'); }
#research::before { background-image: url('../images/background2.png'); }
#evidence::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/background4.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* 第二层：同底图 cover 复用，不同 position 偏移裁剪 */
#discovery::after,
#mechanism::after,
#research::after,
#evidence::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}
#discovery::after {
  background-image: url('../images/background3.png');
  background-position: center;
  opacity: 0.05;
}
#mechanism::after {
  background-image: url('../images/background5.png');
  background-position: center;
}
#research::after {
  background-image: url('../images/background2.png');
  background-position: center;
}

/* evidence 多层叠加：background4.png 复用 3 次 + background1.png 平铺 1 次 */
#evidence::after {
  background-image: url('../images/background4.png');
  background-position: center;
  transform: scaleX(-1);
}
.evidence-bg {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.bg4-flip-v {
  inset: 0;
  background-image: url('../images/background4.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scaleY(-1);
  opacity: 0.2;
}
.bg1-tile {
  inset: 0;
  background-image: url('../images/background1.png');
  background-size: cover;
  background-position: center;
  background-repeat: repeat-x;
  opacity: 0.35;
}
.section > .container {
  position: relative;
  z-index: 1;
}
.section-header { margin-bottom: var(--space-xl); }
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: var(--space-xs);
}
.section-title {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 560px;
}
.subsection-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

/* ===== Discovery / Timeline ===== */
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-gold), var(--accent-gold-light), transparent);
  border-radius: 2px;
}
.timeline-item { position: relative; padding-bottom: var(--space-lg); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -26px;
  top: 6px;
  width: 14px; height: 14px;
  background: var(--bg-card);
  border: 2.5px solid var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg-primary);
}
.timeline-item.active .timeline-dot {
  background: var(--accent-gold);
  box-shadow: 0 0 0 4px var(--bg-primary), 0 0 0 7px rgba(212,175,55,0.15);
}
.timeline-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 2px;
  min-height: 1.2em;
}
.timeline-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
  min-height: 1.4em;
}
.timeline-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  min-height: 3em;
}

/* ===== Cards ===== */
.cards { display: grid; gap: var(--space-md); }
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: var(--space-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
}
.card-icon.gold { background: rgba(212,175,55,0.08); }
.card-icon.green { background: rgba(5,150,105,0.08); }
.card-icon.purple { background: rgba(124,58,237,0.08); }
.card-icon.sky { background: rgba(232,197,71,0.08); }
.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.card-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Mechanism Diagram ===== */
.mechanism-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}
.mechanism-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
}
.mechanism-step-num {
  width: 32px; height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mechanism-step-text {
  font-size: 0.9rem;
  line-height: 1.5;
}
.mechanism-step-text strong { color: var(--text-primary); }
.mechanism-arrow {
  text-align: center;
  color: var(--accent-gold);
  line-height: 1;
}
.mechanism-arrow svg {
  width: 20px;
  height: 20px;
}
.mechanism-intro {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}
.mechanism-result {
  background: var(--bg-card);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  text-align: center;
  margin-top: var(--space-sm);
}
.mechanism-result-title {
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}
.mechanism-result-paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}
@media (min-width: 640px) {
  .mechanism-result-paths { grid-template-columns: 1fr 1fr; }
}
.mechanism-result-path {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-sm);
  background: rgba(212,175,55,0.08);
  border-radius: 8px;
  border: 1px solid rgba(212,175,55,0.2);
}
.path-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}
.path-effect {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ===== Data Cards / Evidence ===== */
.data-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 640px) {
  .data-grid { grid-template-columns: 1fr 1fr; }
}
.data-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: var(--space-md);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.data-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
}
.data-card.green::before {
  background: linear-gradient(90deg, var(--accent-green), #10B981);
}
.data-card.purple::before {
  background: linear-gradient(90deg, var(--accent-purple), #A78BFA);
}
.data-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
  min-height: 2.4em;
}
.data-card-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
}
.data-card-value.gold { color: var(--accent-gold); }
.data-card-value.green { color: var(--accent-green); }
.data-card-value.purple { color: var(--accent-purple); }
.data-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 3.2em;
}
.data-card-source {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: var(--space-xs);
  font-style: italic;
}

/* ===== Research / Patents ===== */
.journal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 640px) {
  .journal-grid { grid-template-columns: 1fr 1fr; }
}
.journal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.journal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.journal-card-image {
  width: 100%;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.journal-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.journal-card-info {
  padding: var(--space-md);
}
.journal-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
  line-height: 1.4;
}
.journal-name-en {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0;
}
.journal-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.patent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}
@media (min-width: 640px) {
  .patent-grid { grid-template-columns: 1fr 1fr; }
}
.patent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
}
.patent-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 4px;
}
.patent-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.patent-status {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--accent-green);
  background: rgba(5,150,105,0.08);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 6px;
}

/* Patent Showcase */
.patent-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.patent-figure {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.patent-figure:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.patent-figure img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  object-fit: cover;
}
.patent-figure figcaption {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  line-height: 1.5;
}
.patent-figure-main img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #f5f5f5;
}
.patent-figure-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.patent-figure-side .patent-figure img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #f5f5f5;
}

/* Patent Strip (horizontal scroll) */
.patent-strip {
  margin-bottom: var(--space-lg);
}
.patent-strip-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  text-align: center;
}
.patent-strip-scroll {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.patent-strip-scroll::-webkit-scrollbar {
  height: 4px;
}
.patent-strip-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.patent-strip-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}
.patent-strip-scroll img {
  flex-shrink: 0;
  width: 140px;
  height: 190px;
  object-fit: contain;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  scroll-snap-align: start;
  cursor: zoom-in;
  transition: transform 0.2s, border-color 0.2s;
}
.patent-strip-scroll img:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
}

@media (min-width: 640px) {
  .patent-showcase {
    grid-template-columns: 1fr 1fr;
  }
  .patent-figure-main {
    grid-row: span 2;
  }
  .patent-figure-main img {
    aspect-ratio: 3 / 4.5;
  }
  .patent-figure-side {
    grid-template-columns: 1fr;
  }
  .patent-figure-side .patent-figure img {
    aspect-ratio: 3 / 4;
  }
  .patent-strip-scroll img {
    width: 160px;
    height: 220px;
  }
}

@media (min-width: 1024px) {
  .patent-showcase {
    grid-template-columns: 1.2fr 1fr;
  }
  .patent-figure-side {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Certification Card ===== */
.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}
.cert-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
  background: rgba(124,58,237,0.08);
}
.cert-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.cert-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Tech Card Images ===== */
.tech-card {
  display: flex;
  flex-direction: column;
}
.tech-card .card-text {
  flex: 1;
}
.tech-card-image {
  margin-top: var(--space-md);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.tech-card-image img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s;
}
.tech-card-image img:hover {
  transform: scale(1.02);
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0;
  text-align: center;
}
.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.footer-brand span { color: var(--accent-gold); }
.footer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto var(--space-md);
  line-height: 1.7;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer-note {
  margin-top: 6px;
  opacity: 0.7;
}
/* Floating Share */
.share-fab {
  position: fixed;
  right: 16px;
  bottom: 44px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--accent-gold);
  background: rgba(14, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.share-fab:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
  transform: scale(1.05);
}
.share-fab svg {
  width: 20px;
  height: 20px;
}
.share-fab:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

.contact-content {
  text-align: center;
}
.contact-email {
  display: inline-block;
  font-size: 1.2rem;
  color: var(--accent-gold);
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius);
  background: rgba(212,175,55,0.06);
  transition: background 0.2s, color 0.2s;
}
.contact-email:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 200;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Focus Visibility ===== */
:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}
.nav-links a:focus-visible {
  outline-offset: -2px;
  border-radius: 6px;
}

/* ===== Science Figure ===== */
.science-figure {
  margin: var(--space-md) 0 var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.science-figure img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}
.science-figure figcaption {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  line-height: 1.5;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.open {
  display: flex;
  opacity: 1;
}
.lightbox-image {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.22);
}
.lightbox-close svg {
  width: 20px;
  height: 20px;
}
.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.78);
  font-size: 0.85rem;
  max-width: 90%;
  text-align: center;
  pointer-events: none;
}
body.lightbox-open {
  overflow: hidden;
}

/* ===== Responsive ===== */

/* Small screens (mobile) */
@media (max-width: 639px) {
  :root {
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }
  .section { padding: var(--space-xl) 0; }
  .section-header { margin-bottom: var(--space-lg); }

  /* Nav hamburger */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 52px;
    left: 0; right: 0;
    background: rgba(7,7,10,0.96);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    flex-direction: column;
    padding: var(--space-xs) var(--space-md);
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 10px 0;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links li:last-child a { border-bottom: none; }

  /* Hero */
  .hero {
    padding-bottom: calc(var(--space-xl) + 50px);
  }
  .hero-subtitle {
    margin-bottom: var(--space-md);
  }
  .hero-desc {
    margin-bottom: var(--space-md);
    font-size: 0.85rem;
  }
  .hero-stats { gap: var(--space-md); }
  .hero-stat .num { font-size: 1.4rem; }
  .scroll-hint {
    bottom: var(--space-sm);
  }

  /* Timeline tighter */
  .timeline { padding-left: 24px; }
  .timeline-dot {
    left: -24px;
    width: 12px; height: 12px;
  }

  /* Lightbox */
  .lightbox { padding: var(--space-sm); }
  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }
  .lightbox-image {
    max-height: 80vh;
    border-radius: 10px;
  }
  .lightbox-caption {
    bottom: 16px;
    font-size: 0.8rem;
  }
}

/* Tablet and up */
@media (min-width: 640px) {
  /* Timeline horizontal */
  .timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto 1fr;
    gap: var(--space-lg);
    padding-left: 0;
  }
  .timeline::before { display: none; }
  .timeline-item {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    padding-bottom: 0;
    position: relative;
    padding-top: var(--space-lg);
    text-align: center;
  }
  .timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 16px; height: 16px;
    box-shadow: 0 0 0 4px var(--bg-primary);
  }
  .timeline-item.active .timeline-dot {
    box-shadow: 0 0 0 4px var(--bg-primary), 0 0 0 7px rgba(212,175,55,0.15);
  }
  .timeline-year {
    font-size: 0.85rem;
    margin-bottom: var(--space-xs);
  }
  .timeline-title { margin-bottom: 6px; }

  /* Cards 2-column */
  .cards { grid-template-columns: repeat(2, 1fr); }

  /* Mechanism flow horizontal */
  .mechanism-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-sm) var(--space-xs);
    align-items: stretch;
  }
  .mechanism-step {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-sm);
  }
  .mechanism-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-90deg);
  }
  .mechanism-arrow svg { width: 18px; height: 18px; }
  .mechanism-result {
    grid-column: 1 / -1;
    margin-top: var(--space-md);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .container {
    max-width: 960px;
    padding: 0 var(--space-lg);
  }
  .nav-inner {
    max-width: 960px;
    padding: 0 var(--space-lg);
  }

  /* Cards 3-column */
  .cards { grid-template-columns: repeat(3, 1fr); }

  /* Data cards 4-column */
  .data-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }

  /* Subgrid alignment: label / value / desc / source 各行对齐 */
  .data-grid-block {
    grid-template-rows: auto auto 1fr auto;
  }
  .data-grid-block .data-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
  }

  /* Hero wider */
  .hero-desc { max-width: 600px; }
  .hero-subtitle { max-width: 640px; }
}

/* ===== 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; }
  /* Ensure entrance animations don't hide content */
  .hero-badge,
  .hero h1,
  .hero-subtitle,
  .hero-desc,
  .hero-stats,
  .scroll-hint,
  .nav {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
