/* 医院陪护报告系统 — 宣传手册样式 */
:root {
  --primary: #1a6fb5;
  --primary-dark: #0d4a7a;
  --primary-light: #e8f2fa;
  --accent: #2ecc71;
  --accent-warn: #e74c3c;
  --accent-orange: #f39c12;
  --text: #2c3e50;
  --text-muted: #6c7a89;
  --bg: #f4f7fb;
  --card: #ffffff;
  --border: #dde4ec;
  --shadow: 0 4px 24px rgba(26, 111, 181, 0.08);
  --radius: 12px;
  --font: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
}

/* 导航 */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  padding-top: env(safe-area-inset-top, 0);
}

.top-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s;
}

.nav-links a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* 移动端导航按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 封面 */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #2980b9 100%);
  color: #fff;
  padding: 80px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.hero-sub {
  font-size: clamp(15px, 2.5vw, 20px);
  opacity: 0.92;
  max-width: 680px;
  margin: 0 auto 32px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
}

/* 主内容 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 64px 0;
}

section:nth-child(even) {
  background: #fff;
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

section h2 {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 36px;
}

/* 卡片网格 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(26, 111, 181, 0.12);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}

.card-icon.patient { background: #e3f2fd; }
.card-icon.doctor { background: #e8f5e9; }
.card-icon.family { background: #fff3e0; }

.card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.card .app-name {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card ul {
  list-style: none;
  padding: 0;
}

.card ul li {
  padding: 5px 0 5px 20px;
  position: relative;
  font-size: 14px;
  color: var(--text);
}

.card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* 架构图 */
.arch-diagram {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.arch-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.arch-node {
  background: var(--primary-light);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 28px;
  min-width: 160px;
}

.arch-node.hub {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: var(--primary-dark);
  min-width: 220px;
}

.arch-node strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.arch-node small {
  font-size: 12px;
  opacity: 0.85;
}

.arch-arrow {
  color: var(--primary);
  font-size: 24px;
  align-self: center;
}

.arch-caption {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* 终端详情 */
.terminal-block {
  margin-bottom: 48px;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--primary);
}

.terminal-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.terminal-badge.patient { background: #bbdefb; }
.terminal-badge.doctor { background: #c8e6c9; }
.terminal-badge.family { background: #ffe0b2; }

.terminal-header h3 {
  font-size: 24px;
  color: var(--primary-dark);
}

.terminal-header p {
  font-size: 14px;
  color: var(--text-muted);
}

/* 主页界面截图 */
.screen-shot-wrap {
  margin: 20px 0 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.screen-shot-wrap figcaption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text-muted);
  background: #fafbfc;
  border-top: 1px solid var(--border);
  text-align: center;
}

.screen-shot {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.screenshot-gallery .screen-shot-wrap {
  margin: 0;
}

.screenshot-gallery .screen-shot-wrap figcaption {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}

/* 外呼演示视频 */
.demo-video-block {
  margin: 28px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-video-header {
  padding: 20px 24px 0;
}

.demo-video-header h4 {
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.demo-video-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.demo-video-wrap {
  margin: 16px 0 0;
}

.demo-video-wrap figcaption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text-muted);
  background: #fafbfc;
  border-top: 1px solid var(--border);
  text-align: center;
}

.demo-video {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #000;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

/* 表格横向滚动（手机端） */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.table-scroll .feature-table {
  margin-bottom: 0;
  box-shadow: none;
  min-width: 560px;
}

.feature-table th,
.feature-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.feature-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.feature-table tr:last-child td {
  border-bottom: none;
}

.feature-table tr:nth-child(even) td {
  background: #fafbfc;
}

/* UI 布局示意 */
.ui-mock {
  background: #1e1e2e;
  border-radius: var(--radius);
  padding: 16px;
  color: #fff;
  font-size: 12px;
  margin-top: 16px;
}

.ui-mock-title {
  text-align: center;
  color: #8892b0;
  margin-bottom: 12px;
  font-size: 11px;
}

.ui-layout {
  display: grid;
  gap: 8px;
}

.ui-layout.patient-main {
  grid-template-rows: 40px 1fr 80px;
  min-height: 280px;
}

.ui-bar {
  background: rgba(26, 111, 181, 0.6);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ui-body {
  display: grid;
  grid-template-columns: 80px 1fr 90px;
  gap: 8px;
}

.ui-panel {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}

.ui-panel.center { text-align: left; padding: 12px; }

.ui-bottom {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 8px;
}

.ui-menu-grid {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px;
  text-align: center;
  font-size: 10px;
}

.ui-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.ui-actions span {
  background: rgba(231, 76, 60, 0.5);
  border-radius: 6px;
  padding: 8px 4px;
  text-align: center;
}

.ui-actions span:last-child {
  background: rgba(46, 204, 113, 0.5);
}

.ui-layout.doctor-main {
  grid-template-rows: 36px 1fr 40px;
  min-height: 240px;
}

.ui-bed-grid {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 8px;
  min-height: 140px;
}

.ui-bed-cell {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 6px 4px;
  font-size: 9px;
  text-align: center;
}

.ui-footer {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
}

/* 流程步骤 */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
}

.flow-step {
  display: flex;
  gap: 20px;
  position: relative;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: -8px;
  width: 2px;
  background: var(--border);
}

.flow-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
}

.flow-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  flex: 1;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.flow-content h4 {
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.flow-content p {
  font-size: 14px;
  color: var(--text-muted);
}

/* 亮点标签 */
.highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.tag.warn { background: #fdecea; color: #c0392b; }
.tag.success { background: #e8f8f0; color: #1e8449; }

/* 部署清单 */
.checklist {
  list-style: none;
}

.checklist li {
  padding: 12px 16px 12px 44px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  position: relative;
  font-size: 14px;
}

.checklist li::before {
  content: "☐";
  position: absolute;
  left: 16px;
  color: var(--primary);
  font-size: 16px;
}

/* 页脚 */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
}

.footer p { margin-bottom: 6px; }

/* 打印 */
@media print {
  .top-nav { display: none; }
  .hero { padding: 40px 24px; }
  section { page-break-inside: avoid; }
  .card:hover { transform: none; }
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .top-nav {
    padding: 0 12px;
  }

  .top-nav-inner {
    height: 52px;
    position: relative;
  }

  .nav-logo {
    font-size: 14px;
    max-width: calc(100% - 48px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 8px 12px 12px;
    max-height: calc(100vh - 52px);
    overflow-y: auto;
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 8px;
  }

  .hero {
    padding: 48px 16px 64px;
  }

  .hero h1 {
    letter-spacing: 1px;
  }

  .hero-tags span {
    font-size: 12px;
    padding: 6px 12px;
  }

  .container {
    padding: 0 16px;
  }

  section {
    padding: 40px 0;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 20px;
  }

  .card:hover {
    transform: none;
  }

  .arch-row {
    flex-direction: column;
    align-items: center;
  }

  .arch-arrow {
    transform: rotate(90deg);
  }

  .arch-node {
    width: 100%;
    max-width: 280px;
    min-width: 0;
  }

  .arch-node.hub {
    min-width: 0;
  }

  .terminal-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .terminal-header h3 {
    font-size: 20px;
  }

  .terminal-badge {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .screenshot-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .demo-video-header {
    padding: 16px 16px 0;
  }

  .demo-video-header h4 {
    font-size: 16px;
  }

  .demo-video {
    max-height: none;
  }

  .feature-table th,
  .feature-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .flow-step {
    gap: 12px;
  }

  .flow-num {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .flow-step:not(:last-child)::after {
    left: 15px;
    top: 36px;
  }

  .flow-content {
    padding: 14px 16px;
  }

  .highlight-row {
    gap: 8px;
  }

  .tag {
    font-size: 12px;
    padding: 6px 10px;
  }

  .footer {
    padding: 28px 16px;
  }

  .ui-body {
    grid-template-columns: 1fr;
  }

  .ui-bed-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 12px;
    padding: 5px 12px;
  }

  .section-desc {
    margin-bottom: 24px;
  }

  .table-scroll .feature-table {
    min-width: 480px;
  }

  .arch-diagram {
    padding: 24px 12px;
  }
}
