/* ============================================
   医信科技 · 企业官网
   Visual language adapted from Winning Health
   ============================================ */

:root {
  --blue: #2e5dd2;
  --blue-dark: #223aa8;
  --blue-soft: #5280db;
  --blue-pale: #e9f1ff;
  --blue-mist: #f4f8ff;
  --ink: #2a2a20;
  --ink-soft: #555;
  --muted: #777;
  --line: #dddddd;
  --line-soft: rgba(221, 221, 221, 0.55);
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --max: 1359px;
  --header-h: 72px;
  --font-cn: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-en: "Segoe UI", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-num: "Segoe UI", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-cn);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  font-size: 14px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  border: 0;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
.en-title {
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.site-header .header-inner {
  max-width: none;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px 0 28px;
  transition: all 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.logo-img {
  height: 46px;
  width: auto;
  max-width: min(320px, 55vw);
  object-fit: contain;
  object-position: left center;
  display: block;
}

.logo-img-on-light {
  display: none;
}

.site-header.is-solid .logo-img-on-dark {
  display: none;
}

.site-header.is-solid .logo-img-on-light {
  display: block;
}

.footer-logo .logo-img-on-dark {
  display: none;
}

.footer-logo .logo-img-on-light {
  display: block;
}

.header-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 28px;
}

.header-tabs a {
  padding: 8px 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.header-tabs a:hover,
.header-tabs a.is-active {
  color: #fff;
  border-bottom-color: #fff;
}

.site-header.is-solid .header-tabs a {
  color: var(--muted);
}

.site-header.is-solid .header-tabs a:hover,
.site-header.is-solid .header-tabs a.is-active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 0;
}

.header-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  transition: color 0.3s, opacity 0.3s;
}

.header-meta svg {
  opacity: 0.9;
  flex-shrink: 0;
}

.header-meta:hover {
  color: var(--blue);
}

.nav-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--blue);
  transition: all 0.3s;
}

.nav-toggle:hover {
  box-shadow: 0 0 0 4px rgba(46, 93, 210, 0.15);
}

/* Header on light bg / scrolled */
.site-header.is-solid {
  background: #fff;
  box-shadow: var(--shadow);
}

.site-header.is-solid .header-meta {
  color: var(--blue);
}

.site-header.is-solid .nav-toggle {
  background: var(--blue);
}

.site-header.is-solid .nav-toggle span {
  background: #fff;
}

/* ---------- Side / overlay nav ---------- */
.side-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  height: 100dvh;
  background: #fff;
  z-index: 110;
  transform: translateX(100%);
  transition: transform 0.35s ease, visibility 0.35s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 56px 40px;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
  visibility: hidden;
  pointer-events: none;
}

.side-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.side-nav a {
  display: block;
  font-size: 18px;
  line-height: 1.4;
  color: var(--muted);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s, padding-left 0.25s;
  position: relative;
}

.side-nav a:hover,
.side-nav a.is-active {
  color: var(--blue);
  padding-left: 12px;
}

.side-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 36px;
  height: 2px;
  background: var(--ink);
}

.nav-close {
  position: absolute;
  top: 28px;
  right: 36px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.nav-close::before,
.nav-close::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 2px;
  width: 24px;
  height: 2px;
  background: #555;
}

.nav-close::before {
  transform: rotate(45deg);
}

.nav-close::after {
  transform: rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 105;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* left-nav removed */  

main section[id] {
  scroll-margin-top: 72px;
}

/* ---------- Shared section chrome ---------- */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px 20px 70px;
}

.eyebrow {
  font-family: var(--font-en);
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-weight: 600;
}

.section-intro {
  text-align: center;
  margin-bottom: 52px;
}

.section-intro.light .eyebrow,
.section-intro.light h2,
.section-intro.light .lead {
  color: #fff;
}

.section-intro.dark .eyebrow {
  color: var(--ink);
}

.section-intro.dark h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  margin-top: 6px;
  color: var(--ink);
}

.section-intro .lead {
  margin-top: 12px;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.section-intro.light .lead {
  color: rgba(255, 255, 255, 0.85);
}

.section-intro h2 {
  font-family: var(--font-cn);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  margin-top: 4px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 160px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 14px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.btn-outline:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn-outline.sm {
  min-width: 130px;
  height: 40px;
  font-size: 12px;
}

.btn-outline.dark {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline.dark:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 160px;
  height: 48px;
  padding: 0 22px;
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
  font-size: 14px;
  transition: background 0.25s;
}

.btn-solid:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.arrow {
  font-size: 16px;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/hero.jpg") center center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 28, 72, 0.72) 0%, rgba(12, 28, 72, 0.35) 48%, rgba(12, 28, 72, 0.15) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 40%, rgba(0, 0, 0, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 48px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-content.is-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-label {
  font-size: 13px;
  letter-spacing: 0.18em;
  opacity: 0.85;
  margin-bottom: 18px;
  position: relative;
  padding-top: 18px;
}

.hero-label::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #fff;
}

.hero-en {
  font-family: var(--font-en);
  font-size: clamp(40px, 5.5vw, 78px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-cn {
  margin-top: 18px;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.hero-content .btn-outline {
  margin-top: 56px;
}

.hero-side-tag {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.7);
  z-index: 2;
  margin-left: 18px;
  white-space: nowrap;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  z-index: 2;
}

.scroll-hint span {
  display: block;
  width: 3px;
  height: 8px;
  margin: 7px auto 0;
  background: #fff;
  border-radius: 2px;
  animation: scroll-dot 1.6s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ---------- Products mosaic ---------- */
.products {
  background: #fff;
  min-height: auto;
  display: block;
}

.products .section-inner {
  padding-top: 110px;
  padding-bottom: 8px;
}

.mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 300px 300px;
  gap: 0;
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 70px;
}

.mosaic-card {
  position: relative;
  overflow: hidden;
  background: #1a2744 center center / cover no-repeat;
  background-image: var(--img);
  cursor: pointer;
  min-height: 280px;
}

.mosaic-card.wide {
  /* keep natural grid */
}

.mosaic-card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.mosaic-card:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: auto;
}

.mosaic-card:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.mosaic-card:nth-child(4) {
  grid-column: 1 / span 2;
  grid-row: 3;
  min-height: 280px;
}

.mosaic {
  grid-template-rows: 300px 300px 280px;
}

.mosaic-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
  transition: background 0.3s;
}

.mosaic-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.mosaic-card:hover::after {
  opacity: 1;
}

.mosaic-body {
  position: absolute;
  left: 28px;
  bottom: 20px;
  right: 28px;
  color: #fff;
  z-index: 2;
  transition: bottom 0.35s ease;
}

.mosaic-card:hover .mosaic-body {
  bottom: 24px;
}

.mosaic-en {
  font-family: var(--font-en);
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mosaic-body h3 {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: 0.08em;
}

.mosaic-desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s, max-height 0.3s, margin 0.3s;
}

.mosaic-card:hover .mosaic-desc {
  opacity: 1;
  max-height: 120px;
  margin-top: 10px;
}

.mosaic-body .btn-outline {
  margin-top: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s, background 0.25s, border-color 0.25s;
  pointer-events: none;
}

.mosaic-card:hover .btn-outline {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---------- About ---------- */
.about {
  background: #fff;
  min-height: auto;
}

.about .section-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 90px;
}

.about-copy .eyebrow {
  font-size: clamp(36px, 4vw, 56px);
  color: var(--ink);
}

.about-title {
  font-family: var(--font-cn);
  font-size: 28px;
  font-weight: 500;
  margin-top: 4px;
  color: var(--ink);
}

.about-lead {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.04em;
}

.about-copy p:not(.eyebrow):not(.about-lead) {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.about-copy .btn-solid {
  margin-top: 28px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}

.stat {
  text-align: center;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line-soft);
}

.stat-num {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(36px, 3.2vw, 52px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.01em;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Timeline ---------- */
.timeline-section {
  background: var(--blue-mist);
  min-height: auto;
}

.timeline-section .section-inner {
  padding-top: 100px;
  padding-bottom: 90px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
  margin-top: 10px;
}

.timeline li {
  background: #fff;
  padding: 28px 22px 24px;
  border-top: 3px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.timeline li:hover {
  border-top-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.timeline .year {
  display: block;
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.timeline h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.timeline p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.timeline .future-item {
  background: linear-gradient(145deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
}

.timeline .future-item .year,
.timeline .future-item h3 {
  color: #fff;
}

.timeline .future-item p {
  color: rgba(255, 255, 255, 0.85);
}

.timeline .future-item:hover {
  box-shadow: 0 8px 24px rgba(46, 93, 210, 0.3);
}

/* ---------- Strength ---------- */
.strength {
  background:
    linear-gradient(180deg, rgba(18, 36, 90, 0.92) 0%, rgba(18, 36, 90, 0.88) 100%),
    url("../assets/team.jpg") center center / cover no-repeat fixed;
  color: #fff;
}

.strength .section-inner {
  padding-bottom: 40px;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.strength-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 36px 28px 32px;
  backdrop-filter: blur(4px);
  transition: background 0.25s, transform 0.25s;
}

.strength-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.strength-icon {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue-soft);
  margin-bottom: 14px;
  display: inline-block;
  border-bottom: 2px solid var(--blue-soft);
  padding-bottom: 6px;
}

.strength-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.strength-card ul li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 6px;
}

.strength-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-soft);
}

.ai-strip {
  margin-top: 28px;
  background: rgba(46, 93, 210, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ai-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.ai-item {
  padding: 24px 18px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.ai-item:last-child {
  border-right: 0;
}

.ai-item strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.ai-item span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Cases ---------- */
.cases {
  background: #fff;
  min-height: auto;
}

.cases .section-inner {
  padding-top: 100px;
  padding-bottom: 90px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-card {
  border: 1px solid var(--line-soft);
  padding: 32px 26px 28px;
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.case-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.case-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 4px 10px;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.case-card h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}

.case-bg {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 22px;
  min-height: 68px;
}

.case-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.case-metrics div {
  text-align: center;
}

.case-metrics strong {
  display: block;
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.2;
}

.case-metrics span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Partners ---------- */
.partners {
  background: var(--blue-pale);
  min-height: auto;
}

.partners .section-inner {
  padding-top: 100px;
  padding-bottom: 90px;
}

.partner-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.partner-heading {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
}

.partner-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(46, 93, 210, 0.12);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  transition: color 0.2s, padding-left 0.2s;
}

.partner-list li:hover {
  color: var(--blue);
  padding-left: 8px;
}

.partner-list.badges li {
  padding-left: 18px;
  position: relative;
}

.partner-list.badges li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 7px;
  height: 7px;
  background: var(--blue);
  transform: rotate(45deg);
}

/* ---------- Future ---------- */
.future {
  min-height: 85vh;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.future-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/team.jpg") center center / cover no-repeat;
}

.future-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(16, 32, 86, 0.88) 0%, rgba(16, 32, 86, 0.55) 100%);
}

.future-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 28px 80px;
  text-align: center;
}

.future .eyebrow {
  color: #fff;
}

.future h2 {
  font-family: var(--font-cn);
  font-size: 28px;
  font-weight: 500;
  margin-top: 6px;
}

.future-slogan {
  margin-top: 18px;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.12em;
  font-weight: 500;
}

.future-phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
  text-align: left;
}

.phase {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 28px 24px;
  transition: background 0.25s, transform 0.25s;
}

.phase:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.phase-label {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #fff;
  border-bottom: 2px solid var(--blue-soft);
  padding-bottom: 6px;
  margin-bottom: 14px;
  font-weight: 600;
}

.phase p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid #f0f1f4;
  color: var(--ink);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 28px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.footer-brand .motto {
  margin-top: 8px;
  color: var(--blue);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 14px;
  color: var(--muted);
  line-height: 2;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--blue-dark);
}

.footer-bottom {
  border-top: 1px solid #f0f1f4;
}

.footer-bottom p {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 28px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Keep left dash-nav clear of content on wide screens */
@media (min-width: 1280px) {
  .about .section-inner,
  .timeline-section .section-inner,
  .cases .section-inner,
  .partners .section-inner,
  .strength .section-inner,
  .future-content {
    padding-left: 56px;
    padding-right: 56px;
  }
}

/* ---------- Inner / product pages ---------- */
.page-hero {
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  color: #fff;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/hospital.jpg") center 40% / cover no-repeat;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 28, 72, 0.88) 0%, rgba(12, 28, 72, 0.45) 55%, rgba(12, 28, 72, 0.25) 100%);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px 40px 56px;
}

.page-hero .eyebrow {
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
}

.page-hero h1 {
  font-family: var(--font-cn);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  margin-top: 8px;
  letter-spacing: 0.08em;
}

.page-hero .lead {
  margin-top: 14px;
  max-width: 720px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
}

.crumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 18px;
}

.crumb a {
  color: inherit;
}

.crumb a:hover {
  color: #fff;
}

.pd-body {
  background: #fff;
  padding: 64px 0 80px;
}

.pd-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.pd-block .pd-en {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.pd-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}

.pd-block h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--ink);
  position: relative;
  padding-left: 12px;
}

.pd-block h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 3px;
  height: 1em;
  background: var(--blue);
}

.pd-block p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.pd-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin: 8px 0 8px;
}

.pd-features li {
  position: relative;
  padding: 10px 12px 10px 28px;
  background: var(--blue-mist);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.pd-features li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0.95em;
  width: 6px;
  height: 6px;
  background: var(--blue);
  transform: rotate(45deg);
}

.pd-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 8px;
  counter-reset: step;
  list-style: none;
}

.pd-flow li {
  counter-increment: step;
  flex: 1 1 140px;
  min-width: 120px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--ink);
  position: relative;
  padding-top: 36px;
}

.pd-flow li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 10px;
  left: 16px;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

.pd-side {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line-soft);
  padding: 24px 20px;
  background: #fff;
}

.pd-side-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  color: var(--ink);
}

.pd-side-nav a {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.2s, padding-left 0.2s;
}

.pd-side-nav a:hover,
.pd-side-nav a.is-active {
  color: var(--blue);
  padding-left: 6px;
}

.pd-side-cta {
  width: 100%;
  margin-top: 20px;
}

/* Products hub grid (products.html) */
.prod-cat-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.prod-cat-nav .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prod-cat-nav a {
  flex: 0 0 auto;
  padding: 18px 16px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.prod-cat-nav a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.prod-section {
  padding: 56px 0 12px;
  scroll-margin-top: 130px;
}

.prod-section:nth-child(even) {
  background: #fafbfd;
}

.prod-section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px 40px;
}

.prod-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.prod-section-head .en {
  font-family: var(--font-en);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 600;
  color: var(--ink);
}

.prod-section-head .cn {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
}

.prod-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.prod-link-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line-soft);
  padding: 22px 20px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.prod-link-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.prod-link-card .tag {
  display: inline-block;
  font-size: 12px;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 2px 8px;
  margin-bottom: 10px;
}

.prod-link-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.prod-link-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 12px;
}

.prod-link-card .more {
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
}

@media (max-width: 960px) {
  .pd-inner {
    grid-template-columns: 1fr;
  }

  .pd-side {
    position: static;
  }

  .pd-features {
    grid-template-columns: 1fr;
  }

  .prod-link-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-inner {
    padding: 110px 20px 40px;
  }

  .prod-section-inner,
  .pd-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 700px) {
  .prod-link-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 280px 260px;
  }

  .mosaic-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .mosaic-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .mosaic-card:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }

  .mosaic-card:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 960px) {
  .header-meta {
    display: none;
  }

  .header-tabs {
    display: none;
  }

  .about .section-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .strength-grid,
  .case-grid,
  .future-phases,
  .ai-strip-inner,
  .partner-cols {
    grid-template-columns: 1fr;
  }

  .ai-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .ai-item:last-child {
    border-bottom: 0;
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-side-tag {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-header .header-inner {
    padding: 0 16px;
    height: 60px;
  }

  .logo-img {
    height: 30px;
    max-width: min(180px, 48vw);
  }

  .section-inner {
    padding: 80px 16px 56px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-content .btn-outline {
    margin-top: 36px;
  }

  .mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    padding: 0 0 40px;
  }

  .mosaic-card,
  .mosaic-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    min-height: 260px;
  }

  .mosaic-body {
    bottom: 20px;
  }

  .mosaic-desc,
  .mosaic-body .btn-outline {
    opacity: 1;
    max-height: none;
    pointer-events: auto;
    transform: none;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px 10px;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline-section .section-inner,
  .cases .section-inner,
  .partners .section-inner {
    padding-top: 72px;
    padding-bottom: 64px;
  }

  .future-content {
    padding: 88px 16px 64px;
  }

  .footer-inner {
    padding: 48px 16px 36px;
  }

  .footer-bottom p {
    padding: 18px 16px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-content,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
