/* ============================================================
   鸿远医疗科技创新发展研究院
   主样式文件 v2.0 — 多页面版
   ============================================================ */

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

:root {
  --primary:    #1557a8;
  --primary-d:  #0c3d7a;
  --primary-l:  #e6f0fb;
  --accent:     #00bfa5;
  --accent-d:   #00897b;
  --gold:       #f59e0b;
  --dark:       #0a1628;
  --dark2:      #0f2040;
  --light:      #f4f7fc;
  --light2:     #e8eef8;
  --text:       #1c2b3a;
  --text-m:     #4a5a70;
  --text-l:     #8496aa;
  --white:      #ffffff;
  --red:        #ef4444;
  --green:      #22c55e;
  --teal:       #0891b2;

  --radius:     10px;
  --radius-lg:  18px;
  --radius-xl:  28px;
  --shadow-sm:  0 2px 10px rgba(10,30,70,.07);
  --shadow:     0 4px 24px rgba(10,30,70,.11);
  --shadow-lg:  0 12px 48px rgba(10,30,70,.17);
  --trans:      all .28s cubic-bezier(.4,0,.2,1);
  --nav-h:      68px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.75;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   TOPNAV
   ============================================================ */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(8, 18, 45, .97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center;
  transition: background .3s;
}
.topnav-inner {
  max-width: 1380px; margin: 0 auto; width: 100%;
  padding: 0 28px;
  display: flex; align-items: center; gap: 8px;
}
.topnav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-weight: 800; font-size: .95rem;
  white-space: nowrap; flex-shrink: 0;
  margin-right: 8px;
}
.topnav-logo .logo-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--white);
}
.topnav-logo .logo-text .cn { display: block; line-height: 1.25; }
.topnav-logo .logo-text .en { display: block; font-size: .65rem; color: var(--accent); font-weight: 500; letter-spacing: .06em; opacity: .85; }

.nav-links {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,.72);
  padding: 6px 13px; border-radius: 8px;
  font-size: .875rem; font-weight: 500;
  transition: var(--trans); white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white); background: rgba(255,255,255,.1);
}
.nav-links a.active { color: var(--accent); }

.nav-cta {
  margin-left: 8px;
  padding: 7px 18px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white) !important; font-weight: 600 !important;
  font-size: .85rem !important; white-space: nowrap;
}
.nav-cta:hover { opacity: .9; transform: translateY(-1px); }

.nav-hamburger {
  display: none; color: var(--white); font-size: 1.3rem;
  padding: 8px; margin-left: auto;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 72px) 28px 72px;
  background: linear-gradient(145deg, var(--dark) 0%, var(--dark2) 60%, #0d2d55 100%);
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(0,191,165,.12), transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(21,87,168,.25), transparent 55%);
}
.page-hero-inner { position: relative; max-width: 860px; margin: 0 auto; }
.page-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px; padding: 6px 16px; margin-bottom: 22px;
  color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .05em;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900; color: var(--white); line-height: 1.2;
  margin-bottom: 18px;
}
.page-hero h1 span { color: var(--accent); }
.page-hero p {
  font-size: 1.05rem; color: rgba(255,255,255,.7);
  max-width: 620px; margin: 0 auto;
}
.page-hero-stats {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
  margin-top: 40px;
}
.phs-item { text-align: center; }
.phs-num {
  font-size: 2.2rem; font-weight: 900; color: var(--white);
  line-height: 1;
}
.phs-num span { color: var(--accent); }
.phs-label { font-size: .8rem; color: rgba(255,255,255,.55); margin-top: 4px; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section-sm { padding: 60px 0; }
.section-alt { background: var(--light); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block;
  background: var(--primary-l); color: var(--primary);
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 99px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800;
  color: var(--dark); line-height: 1.25; margin-bottom: 14px;
}
.section-head h2 span { color: var(--primary); }
.section-head p { color: var(--text-m); max-width: 620px; margin: 0 auto; font-size: 1.02rem; }

/* ============================================================
   CARDS & GRIDS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; }

.card {
  background: var(--white); border: 1.5px solid var(--light2);
  border-radius: var(--radius-lg); padding: 28px 26px;
  box-shadow: var(--shadow-sm); transition: var(--trans);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(21,87,168,.2); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--primary-l); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px; flex-shrink: 0;
}
.card-icon.accent { background: rgba(0,191,165,.1); color: var(--accent-d); }
.card-icon.gold { background: rgba(245,158,11,.1); color: var(--gold); }
.card-icon.teal { background: rgba(8,145,178,.1); color: var(--teal); }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.card p { font-size: .92rem; color: var(--text-m); line-height: 1.65; }

/* ============================================================
   TAGS & BADGES
   ============================================================ */
.tag {
  display: inline-block; padding: 3px 11px; border-radius: 99px;
  font-size: .78rem; font-weight: 600;
  background: var(--primary-l); color: var(--primary);
}
.tag-accent { background: rgba(0,191,165,.1); color: var(--accent-d); }
.tag-gold { background: rgba(245,158,11,.12); color: #b45309; }
.tag-red { background: rgba(239,68,68,.1); color: #dc2626; }
.tag-green { background: rgba(34,197,94,.1); color: #16a34a; }
.tag-teal { background: rgba(8,145,178,.1); color: var(--teal); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border-radius: var(--radius);
  font-size: .92rem; font-weight: 600; transition: var(--trans);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #1e7ad4);
  color: var(--white); box-shadow: 0 4px 15px rgba(21,87,168,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(21,87,168,.45); }
.btn-outline {
  border: 2px solid var(--primary); color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  color: var(--white); box-shadow: 0 4px 15px rgba(0,191,165,.35);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,191,165,.45); }
.btn-ghost {
  border: 1.5px solid rgba(255,255,255,.3); color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }

/* ============================================================
   PRIORITY BADGES
   ============================================================ */
.priority-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 99px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.priority-highest { background: rgba(239,68,68,.12); color: #dc2626; }
.priority-high { background: rgba(245,158,11,.12); color: #b45309; }
.priority-medium { background: rgba(34,197,94,.1); color: #16a34a; }

/* ============================================================
   STAT ITEMS
   ============================================================ */
.stat-row { display: flex; gap: 32px; flex-wrap: wrap; }
.stat-item { }
.stat-num {
  font-size: 2.4rem; font-weight: 900; color: var(--primary);
  line-height: 1;
}
.stat-num em { font-style: normal; color: var(--accent); }
.stat-label { font-size: .82rem; color: var(--text-m); margin-top: 3px; }

/* ============================================================
   DIVIDER & MISC
   ============================================================ */
.divider { height: 1px; background: var(--light2); margin: 40px 0; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-m); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ============================================================
   COUNTRY CARDS
   ============================================================ */
.country-card {
  background: var(--white); border: 1.5px solid var(--light2);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--trans);
}
.country-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cc-header {
  padding: 20px 22px 16px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--light2);
}
.cc-flag { font-size: 2rem; }
.cc-title h3 { font-size: 1rem; font-weight: 800; color: var(--dark); }
.cc-title p { font-size: .8rem; color: var(--text-m); margin-top: 1px; }
.cc-body { padding: 16px 22px 20px; }
.cc-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.cc-stat { text-align: center; padding: 10px 8px; background: var(--light); border-radius: 8px; }
.cc-stat-num { font-size: 1.05rem; font-weight: 800; color: var(--primary); }
.cc-stat-label { font-size: .7rem; color: var(--text-l); margin-top: 2px; }
.cc-partners h4 { font-size: .82rem; font-weight: 700; color: var(--text-m); margin-bottom: 8px; letter-spacing: .04em; text-transform: uppercase; }
.cc-partner-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; background: var(--light); border-radius: 8px; margin-bottom: 6px;
  font-size: .85rem; color: var(--text);
}
.cc-partner-item i { color: var(--primary); font-size: .8rem; flex-shrink: 0; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--primary), var(--accent));
}
.tl-item { position: relative; margin-bottom: 32px; }
.tl-dot {
  position: absolute; left: -28px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}
.tl-dot.accent { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.tl-year {
  font-size: .78rem; font-weight: 700; color: var(--primary);
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px;
}
.tl-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.tl-body { font-size: .9rem; color: var(--text-m); }

/* ============================================================
   PARTNER LOGO GRID
   ============================================================ */
.logo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 20px;
}
.logo-card {
  background: var(--white); border: 1.5px solid var(--light2);
  border-radius: var(--radius-lg); padding: 22px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  box-shadow: var(--shadow-sm); transition: var(--trans);
  text-align: center;
}
.logo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(21,87,168,.2); }
.logo-card img { height: 48px; width: auto; object-fit: contain; max-width: 140px; }
.logo-card-name { font-size: .82rem; font-weight: 600; color: var(--text-m); }
.logo-card-tag { font-size: .72rem; }

/* Logo fallback */
.logo-placeholder {
  height: 48px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--primary);
}

/* ============================================================
   ACCORDION / FAQ
   ============================================================ */
.accordion-item {
  border: 1.5px solid var(--light2); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 12px;
}
.accordion-header {
  padding: 18px 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); font-weight: 600;
  transition: var(--trans);
}
.accordion-header:hover { background: var(--light); }
.accordion-header .icon { transition: transform .3s; flex-shrink: 0; color: var(--primary); }
.accordion-header.open .icon { transform: rotate(180deg); }
.accordion-body {
  padding: 0 24px; max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .3s;
}
.accordion-body.open { max-height: 600px; padding: 0 24px 20px; }
.accordion-body p { color: var(--text-m); font-size: .93rem; }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 24px; counter-reset: step;
}
.process-step {
  background: var(--white); border: 1.5px solid var(--light2);
  border-radius: var(--radius-lg); padding: 28px 22px;
  box-shadow: var(--shadow-sm); transition: var(--trans);
  text-align: center; position: relative;
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ps-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white); font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.ps-title { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.ps-desc { font-size: .86rem; color: var(--text-m); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark); color: rgba(255,255,255,.6);
  padding: 48px 0 28px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 32px;
}
.footer-brand h3 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.footer-brand p { font-size: .85rem; max-width: 320px; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { font-size: .88rem; transition: var(--trans); }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1320px; margin: 28px auto 0; padding: 20px 28px 0;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: .82rem;
}
.footer-bottom span { color: var(--accent); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h);
    left: 0; right: 0; background: rgba(8,18,45,.98); padding: 16px 24px 24px; gap: 4px; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 16px; border-radius: 8px; }
  .nav-hamburger { display: flex; }
  .topnav-inner { padding: 0 20px; }
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .page-hero { padding: calc(var(--nav-h) + 48px) 20px 56px; }
  .page-hero-stats { gap: 20px; }
  .logo-grid { grid-template-columns: repeat(2,1fr); }
  .cc-stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
  .stat-row { gap: 20px; }
  .process-steps { grid-template-columns: 1fr; }
  .page-hero-stats { flex-direction: column; align-items: center; gap: 16px; }
}
