/* ========================================
   CellAge Pro - 抗衰科技官网样式
   专业生物科技风格
   ======================================== */

@import url('https://fonts.googleapis.cn/css2?family=Noto+Sans+SC:wght@300;400;500;600;700;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Variables --- */
:root {
  --white: #FFFFFF;
  --bg: #FAFBFD;
  --bg-alt: #F0F2F7;
  --bg-dark: #0B1426;
  --bg-dark-alt: #111D35;
  --text: #1A1D2E;
  --text-secondary: #4A5068;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --accent: #0B4D8C;
  --accent-light: #1A6FB5;
  --accent-pale: #E8F1FA;
  --teal: #0D9488;
  --teal-pale: #E6F7F5;
  --gold: #B8860B;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --font: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

/* --- Typography --- */
.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
}

.section-header {
  margin-bottom: 56px;
}

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

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: var(--font);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(11, 77, 140, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-pale);
}

.btn-white {
  background: var(--white);
  color: var(--accent);
}

.btn-white:hover {
  background: var(--bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* --- Scroll Reveal --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-d1 { transition-delay: 0.1s; }
.fade-in-d2 { transition-delay: 0.2s; }
.fade-in-d3 { transition-delay: 0.3s; }
.fade-in-d4 { transition-delay: 0.4s; }

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.navbar-brand svg {
  flex-shrink: 0;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.navbar-menu a:hover {
  color: var(--text);
}

.navbar-cta .btn {
  padding: 10px 24px;
  font-size: 14px;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: var(--white);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-pale);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

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

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

.hero-image img,
.hero-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.hero-stat {
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid var(--border);
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================================
   Partners / Trust
   ======================================== */
.partners {
  padding: 48px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partners-label {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.partner-item {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.5px;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.partner-item:hover {
  opacity: 1;
}

/* ========================================
   About / Mission
   ======================================== */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text .section-subtitle {
  margin-bottom: 24px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.about-value {
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.about-value-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.about-value-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================
   Technology Platform
   ======================================== */
.technology {
  background: var(--bg);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tech-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.3s var(--ease);
}

.tech-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.tech-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.tech-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.tech-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.tech-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.tech-card-link:hover {
  gap: 8px;
}

/* ========================================
   Clinical Evidence
   ======================================== */
.evidence {
  background: var(--white);
}

.evidence-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.evidence-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.metric-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.metric-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.evidence-publications {
  margin-top: 32px;
}

.pub-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.5;
}

.pub-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.pub-meta em {
  font-style: italic;
  color: var(--accent);
}

/* ========================================
   Scientific Team
   ======================================== */
.team {
  background: var(--bg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

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

.team-photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-alt);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  padding: 24px;
}

.team-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-role {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}

.team-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================================
   Advisory Board
   ======================================== */
.advisory {
  background: var(--white);
}

.advisory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advisory-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.advisory-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.advisory-title {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 4px;
}

.advisory-org {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================================
   Products
   ======================================== */
.products {
  background: var(--bg-dark);
  color: var(--white);
}

.products .section-eyebrow {
  color: rgba(255,255,255,0.5);
}

.products .section-title {
  color: var(--white);
}

.products .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.products-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/2;
}

.products-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-item {
  padding: 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}

.product-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

.product-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.product-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(13, 148, 136, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.product-item-name {
  font-size: 17px;
  font-weight: 700;
}

.product-item-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.product-item-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background: rgba(13, 148, 136, 0.15);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
}

/* ========================================
   News
   ======================================== */
.news {
  background: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

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

.news-card-body {
  padding: 24px;
}

.news-date {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 10px;
}

.news-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--text);
}

.news-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.news-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 10px;
  background: var(--accent-pale);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-alt));
  padding: 80px 0;
  text-align: center;
}

.cta-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.3;
}

.cta-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 32px;
  color: rgba(255,255,255,0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand svg {
  flex-shrink: 0;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: rgba(255,255,255,0.8);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.7);
}

.footer-disclaimer {
  margin-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  line-height: 1.8;
  text-align: center;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .evidence-content,
  .products-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tech-grid,
  .team-grid,
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .hero-stat {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .navbar-menu { display: none; }

  .section { padding: 64px 0; }

  .container { padding: 0 20px; }

  .hero { min-height: auto; padding-top: 100px; padding-bottom: 60px; }

  .hero-stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  .tech-grid,
  .team-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

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

  .evidence-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

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

  .partners-logos {
    gap: 24px;
  }
}

/* ====== Ad Popup ====== */
.ad-popup {
  position: fixed;
  top: 100px;
  right: -320px;
  z-index: 1000;
  transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  width: 300px;
  overflow: hidden;
}

.ad-popup.show {
  right: 24px;
  pointer-events: auto;
}

.ad-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  font-size: 14px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
  line-height: 1;
}

.ad-popup-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.ad-popup-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.ad-popup-link:hover {
  transform: scale(1.02);
}

.ad-popup-img {
  width: 120px;
  height: 100px;
  object-fit: cover;
  flex-shrink: 0;
}

.ad-popup-text {
  padding: 12px;
  flex: 1;
  min-width: 0;
}

.ad-popup-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.ad-popup-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.ad-popup-desc {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.ad-popup-cta {
  display: inline-block;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
}

@media (max-width: 480px) {
  .ad-popup {
    right: -100%;
    top: 80px;
    width: calc(100% - 32px);
    margin: 0 16px;
  }

  .ad-popup.show {
    right: 16px;
  }
}
