/* Lianhe Life - Shared Stylesheet */
:root {
  --navy: #0a2540;
  --navy-2: #11325a;
  --teal: #0ea5a5;
  --teal-2: #14b8b8;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg-soft: #f6f9fc;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.06);
  --shadow: 0 10px 30px rgba(10, 37, 64, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal); }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .5px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
}

.logo-text small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  font-weight: 500;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-menu a {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-menu a.active,
.nav-menu a:hover { color: var(--teal); }

.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.nav-cta {
  background: var(--navy);
  color: white !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}
.nav-cta:hover { background: var(--teal); color: white !important; }

/* ========== Hero ========== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, #0d3662 55%, var(--teal) 130%);
  color: white;
  padding: 96px 0 120px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1628595351029-c2bf17511435?auto=format&fit=crop&w=1600&q=70") center/cover;
  opacity: .18;
  mix-blend-mode: screen;
}

.hero-inner {
  position: relative;
  max-width: 860px;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(14, 165, 165, 0.18);
  border: 1px solid rgba(14, 165, 165, 0.4);
  color: #7eeaea;
  border-radius: 99px;
  font-size: 12.5px;
  letter-spacing: 2px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 .accent { color: #6ee7e7; }

.hero p.lead {
  font-size: 17px;
  color: #cbd5e1;
  max-width: 640px;
  margin-bottom: 36px;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  transition: transform .15s, box-shadow .2s, background .2s;
}

.btn-primary {
  background: var(--teal);
  color: white;
}
.btn-primary:hover { background: var(--teal-2); color: white; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(14, 165, 165, 0.4); }

.btn-ghost {
  border: 1px solid rgba(255,255,255,.4);
  color: white;
  margin-left: 12px;
}
.btn-ghost:hover { background: rgba(255,255,255,.08); color: white; }

/* ========== Sections ========== */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 54px;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: 34px;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 14px;
  font-weight: 700;
}
.section-head p { color: var(--muted); font-size: 16px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Pillar / feature cards */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card .icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 18px;
}
.card h3 {
  color: var(--navy);
  font-size: 19px;
  margin-bottom: 10px;
  font-weight: 600;
}
.card p { color: var(--muted); font-size: 14.5px; }
.card ul {
  list-style: none;
  margin-top: 12px;
}
.card ul li {
  color: var(--muted);
  font-size: 13.5px;
  padding: 4px 0 4px 18px;
  position: relative;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

/* Stats */
.stats {
  background: var(--navy);
  color: white;
  padding: 64px 0;
}
.stats .grid-4 { gap: 16px; }
.stat {
  text-align: center;
  padding: 16px;
}
.stat .num {
  font-size: 44px;
  font-weight: 700;
  color: #6ee7e7;
  line-height: 1;
  margin-bottom: 10px;
}
.stat .label { font-size: 14px; color: #cbd5e1; }

/* Media / image rows */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.media-row .text h2 {
  color: var(--navy);
  font-size: 30px;
  margin-bottom: 16px;
  line-height: 1.3;
}
.media-row .text p { color: var(--muted); margin-bottom: 14px; }
.media-row img { border-radius: 10px; box-shadow: var(--shadow); }

/* Application cards (with image) */
.app-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.app-card .thumb {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}
.app-card .body { padding: 22px 24px 26px; }
.app-card h3 { color: var(--navy); font-size: 18px; margin-bottom: 8px; }
.app-card p { color: var(--muted); font-size: 14px; }
.app-card .tag {
  display: inline-block;
  font-size: 12px;
  color: var(--teal);
  background: rgba(14,165,165,.1);
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

/* Partners */
.partners {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.partner {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 16px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--line);
  margin-top: 20px;
}
.timeline .item { padding: 0 0 32px 20px; position: relative; }
.timeline .item::before {
  content: "";
  position: absolute;
  left: -29px; top: 5px;
  width: 14px; height: 14px;
  background: var(--teal);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--teal);
}
.timeline .year { color: var(--teal); font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.timeline h4 { color: var(--navy); font-size: 17px; margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: 14px; }

/* Team */
.team-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card .photo {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
}
.team-card .body { padding: 20px 16px; }
.team-card h4 { color: var(--navy); font-size: 17px; margin-bottom: 4px; }
.team-card .role { color: var(--teal); font-size: 13px; font-weight: 600; margin-bottom: 8px; letter-spacing: 1px; }
.team-card p { color: var(--muted); font-size: 13px; }

/* Publication cards */
.pub-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 26px 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.pub-card .journal {
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pub-card h3 {
  color: var(--navy);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
}
.pub-card .authors { color: var(--muted); font-size: 13.5px; }
.pub-card .meta {
  display: flex; justify-content: space-between;
  font-size: 12.5px; color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 12px; margin-top: 6px;
}
.pub-card .badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-soft);
  border-radius: 4px;
  color: var(--ink);
  font-weight: 600;
}

/* Forms */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: .5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: white;
  transition: border .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,165,165,.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* Contact info blocks */
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 48px; }
.contact-info .block {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .block:last-child { border-bottom: none; }
.contact-info h4 { color: var(--navy); font-size: 15px; margin-bottom: 6px; letter-spacing: 1px; }
.contact-info p { color: var(--muted); font-size: 14px; }

/* Page hero (internal) */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #133863 100%);
  color: white;
  padding: 70px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1532187863486-abf9dbad1b69?auto=format&fit=crop&w=1600&q=70") center/cover;
  opacity: .14;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: 38px; margin-bottom: 10px; }
.page-hero .crumb { color: #7eeaea; font-size: 13px; letter-spacing: 2px; }

/* Footer */
.site-footer {
  background: #081c31;
  color: #a1b5cd;
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.site-footer h5 {
  color: white;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 18px;
  font-weight: 600;
}
.site-footer p { font-size: 13.5px; line-height: 1.8; }
.site-footer ul { list-style: none; }
.site-footer ul li { padding: 5px 0; font-size: 13.5px; }
.site-footer ul a:hover { color: var(--teal-2); }
.footer-brand {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 14px;
  color: white; font-weight: 700; font-size: 18px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
}

/* Responsive */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .media-row, .contact-grid { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-menu { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 84px; }
  .hero h1 { font-size: 28px; }
  section { padding: 64px 0; }
  .section-head h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .partners { grid-template-columns: repeat(2, 1fr); }
}

/* ========== Helix SVG Background (Hero) ========== */
.helix-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .5;
  pointer-events: none;
}
