/* 画笺 · 医院站 — 临床静谧风（青灰 + 深靛 + 银白） */

:root {
  --bg: #f3f6f9;
  --bg-alt: #e7edf3;
  --ink: #0f2942;
  --ink-2: #1a3d5c;
  --muted: #5c6f82;
  --accent: #0d7ea5;
  --accent-light: #5ec4e0;
  --accent-deep: #0a5f7d;
  --silver: #94a3b8;
  --line: rgba(15, 41, 66, 0.1);
  --line-strong: rgba(13, 126, 165, 0.28);
  --white: #ffffff;
  --dark: #0c1f33;
  --dark-elevated: #132a42;
  --shadow: 0 20px 50px rgba(15, 41, 66, 0.08);
  --shadow-card: 0 8px 28px rgba(15, 41, 66, 0.06);
  --font: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  --font-display: "DM Sans", "Noto Sans SC", sans-serif;
  --max: 1140px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 12px;
  --radius-lg: 18px;
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

/* 细线纹理背景 */
.body-texture {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 40%, var(--bg-alt) 100%);
}

.body-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 47px,
    rgba(15, 41, 66, 0.03) 47px,
    rgba(15, 41, 66, 0.03) 48px
  );
}

.page {
  position: relative;
  z-index: 1;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 30;
  pointer-events: none;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* —— 顶栏：简洁横条 —— */
.topbar {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  text-align: center;
  padding: 8px var(--gutter);
  letter-spacing: 0.04em;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--gutter);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav.is-scrolled {
  box-shadow: var(--shadow-card);
}

.nav.is-hidden {
  transform: translateY(-100%);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-brand img,
.nav-lockup {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-brand {
  font-family: var(--font);
}

.nav-brand-text {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  will-change: transform;
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(13, 126, 165, 0.06);
}

.btn-on-dark {
  background: var(--accent-light);
  color: var(--dark);
}

.label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(13, 126, 165, 0.1);
  border-radius: 4px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(32px, 4.8vw, 52px);
}

h2 {
  font-size: clamp(24px, 3.2vw, 36px);
}

.lede {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
  max-width: 32em;
  line-height: 1.75;
}

.fine {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.section {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* —— Hero 左右分栏 —— */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
  padding: clamp(56px, 8vh, 88px) var(--gutter);
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

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

.hero-monitor-wrap {
  position: relative;
}

.hero-monitor-wrap::before {
  content: "";
  position: absolute;
  inset: -12px -12px 12px 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--bg-alt);
  z-index: 0;
}

.monitor-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.monitor-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.monitor-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--silver);
  background: var(--dark-elevated);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.monitor-card-bar .live {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-light);
}

.monitor-card-bar .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
}

/* —— 指标带 —— */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.metric {
  padding: 32px var(--gutter);
  text-align: center;
  background: var(--white);
}

.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 1;
  margin-bottom: 8px;
}

.metric span {
  font-size: 14px;
  color: var(--muted);
}

/* —— 时间轴 —— */
.timeline-section {
  padding: 80px 0;
}

.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--line-strong);
}

.timeline-item {
  position: relative;
  padding: 0 0 40px 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline-time {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}

.timeline-item h3 {
  font-size: 20px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  max-width: 36em;
}

.timeline-item blockquote {
  margin: 14px 0 0;
  padding: 12px 16px;
  font-size: 14px;
  font-style: normal;
  color: var(--ink-2);
  background: var(--white);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-card);
}

/* —— 演示宽屏 —— */
.demo-wide {
  padding: 80px 0;
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.demo-wide .section-head {
  text-align: center;
  margin-inline: auto;
}

.demo-cinema {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.monitor {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--dark);
  box-shadow: var(--shadow);
}

.monitor-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.monitor-layer.is-on {
  opacity: 1;
}

.monitor-grade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 31, 51, 0.55), transparent 45%);
  pointer-events: none;
}

.monitor-chrome {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #cbd5e1;
  background: rgba(12, 31, 51, 0.7);
  border-radius: 4px;
}

.monitor-chrome .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
}

.monitor.is-night .monitor-layer.is-on {
  filter: brightness(0.5) saturate(0.8);
}

.monitor-alert {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.story-tag {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
}

.monitor-alert p:last-child {
  margin: 0;
  font-size: 14px;
}

.demo-chapters {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-chapters li {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.demo-chapters li.is-on {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.demo-chapters li span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--silver);
  margin-bottom: 4px;
}

.demo-chapters h3 {
  margin: 0 0 2px;
  font-size: 15px;
}

.demo-chapters p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* —— 场景清单卡 —— */
.checklist-section {
  padding: 80px 0;
}

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

.checklist-col h3 {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  font-size: 18px;
}

.check-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

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

.check-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-deep);
  background: rgba(13, 126, 165, 0.12);
  border-radius: 6px;
}

.check-item h4 {
  margin: 0 0 4px;
  font-size: 16px;
}

.check-item p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* —— 深色原则带 —— */
.principles {
  padding: 72px var(--gutter);
  background: var(--dark);
  color: rgba(255, 255, 255, 0.88);
}

.principles-inner {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.principles .section-head .lede {
  color: rgba(255, 255, 255, 0.6);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.principle {
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--dark-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.principle-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 12px;
}

.principle h3 {
  color: #fff;
  font-size: 16px;
}

.principle p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.65;
}

/* —— 边界声明 —— */
.boundary {
  padding: 72px 0;
}

.boundary-box {
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  background: var(--white);
}

.boundary-box h2 {
  margin-bottom: 20px;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.boundary-list li {
  padding: 16px;
  font-size: 14px;
  color: var(--muted);
  background: var(--bg);
  border-radius: var(--radius);
}

.boundary-list strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

/* —— 产品简卡 —— */
.product-inline {
  padding: 72px 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}

.product-inline img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.specs-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.specs-inline span {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* —— 联系 —— */
.contact-split {
  padding: 88px 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-info {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: rgba(255, 255, 255, 0.85);
}

.contact-info h2 {
  color: #fff;
}

.contact-info .lede {
  color: rgba(255, 255, 255, 0.6);
}

.contact-points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.contact-points li {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.form-shell .card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-shell label {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 500;
}

.form-shell input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.form-shell .hp {
  position: absolute;
  left: -9999px;
}

.form-err {
  color: #dc2626;
  font-size: 14px;
}

.form-success-panel {
  padding: 32px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--white);
}

.form-success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--accent);
}

/* —— 页脚 —— */
.site-foot {
  padding: 48px var(--gutter) 24px;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.55);
}

.site-foot-inner {
  width: min(var(--max), 100%);
  margin: 0 auto 28px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.site-foot-brand {
  max-width: 280px;
}

.site-foot-brand .foot-lockup {
  display: inline-block;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 12px;
}

.site-foot-brand .foot-lockup img {
  height: 28px;
  width: auto;
  display: block;
}

.site-foot-brand p {
  font-size: 14px;
  margin: 12px 0 0;
}

.site-foot-cols {
  display: flex;
  gap: 48px;
}

.site-foot-cols h3 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
}

.site-foot-cols a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  margin-bottom: 8px;
}

.site-foot-cols a:hover {
  color: #fff;
}

.site-foot-bar {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

/* —— 动画 —— */
.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line span {
  display: block;
}

.js-mask .line {
  display: block;
  overflow: hidden;
}

.js-mask .line > span {
  display: block;
}

.has-motion:not(.motion-ready) .hero-in,
.has-motion:not(.motion-ready) .hero-title .line span,
.has-motion:not(.motion-ready) .js-mask,
.has-motion:not(.motion-ready) [data-reveal],
.has-motion:not(.motion-ready) .monitor,
.has-motion:not(.motion-ready) .demo-chapters li,
.has-motion:not(.motion-ready) .timeline-item,
.has-motion:not(.motion-ready) .check-item {
  visibility: hidden;
}

@media (max-width: 960px) {
  .nav-brand-text,
  .nav-links {
    display: none;
  }

  .hero-split,
  .demo-cinema,
  .checklist-grid,
  .contact-split,
  .product-inline,
  .principles-grid,
  .boundary-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .site-foot-cols {
    flex-direction: column;
    gap: 24px;
  }
}
