/* ===== 共享变量 ===== */
:root {
  --bg: #e6f0fa;
  --bg-deep: #d4e5f8;
  --surface: #ffffff;
  --surface-alt: #edf4fc;
  --text: #102a4a;
  --text-muted: #3d5c85;
  --border: #bdd4ee;
  --accent: #1e66ff;
  --accent-dark: #0d4ed6;
  --accent-soft: rgba(30, 102, 255, 0.14);
  --accent-ring: rgba(30, 102, 255, 0.22);
  --footer-bg: linear-gradient(165deg, #143d72 0%, #0a1f3d 55%, #071426 100%);
  --footer-text: #b3cce8;
  --footer-heading: #f0f6ff;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16, 42, 74, 0.06), 0 14px 40px rgba(30, 90, 180, 0.1);
  --max: 1120px;
}

/* ===== 基础重置 ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background: rgba(30, 102, 255, 0.22);
  color: var(--text);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 100% 70% at 50% -15%, #c5dcfa 0%, transparent 52%);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== 布局工具 ===== */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

/* ===== 头部导航 ===== */
header {
  background: rgba(247, 251, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.logo img {
  display: block;
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.logo-text .sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
  font-size: 0.9rem;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--accent);
  text-decoration: none;
}

nav .btn-download {
  background: var(--accent);
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s;
}

nav .btn-download:hover {
  background: var(--accent-dark);
  text-decoration: none !important;
}

/* ===== 页面标题区 ===== */
.page-hero {
  padding: 52px 0 44px;
  background: linear-gradient(165deg, #d4e8ff 0%, var(--bg-deep) 42%, var(--bg) 100%);
  text-align: center;
}

.page-hero .eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid var(--accent-ring);
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #0a2540;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.page-hero .lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
}

/* ===== 内容区块 ===== */
.section {
  padding: 48px 0;
}

.section.alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== 卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  padding: 26px 24px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(30, 90, 200, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon img {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ===== 特性列表 ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 800px) {
  .feature-row {
    grid-template-columns: 1fr;
  }
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-text h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-text p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 18px;
}

.bullets {
  list-style: none;
  margin: 0;
}

.bullets li {
  position: relative;
  padding-left: 1.2em;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

.feature-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.feature-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== 面板 ===== */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  overflow: hidden;
}

.panel-body {
  padding: 26px 28px 30px;
}

.panel-body p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.panel-body p + p {
  margin-top: 14px;
}

.panel-body strong {
  color: var(--text);
  font-weight: 600;
}

.figure-block {
  margin: 0;
  background: linear-gradient(180deg, #f4f8ff 0%, #e3eef9 45%, #d5e4f5 100%);
}

.figure-block img {
  width: 100%;
  height: auto;
  display: block;
}

.img-contain {
  padding: 12px 14px 18px;
}

.img-contain img {
  object-fit: contain;
  max-height: min(72vh, 820px);
  margin: 0 auto;
}

/* ===== 药丸标签 ===== */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

.pill {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  background: linear-gradient(180deg, rgba(30, 102, 255, 0.16) 0%, rgba(30, 102, 255, 0.08) 100%);
  color: var(--accent-dark);
  border: 1px solid var(--accent-ring);
}

/* ===== 统计数字 ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 36px 0;
}

@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: 20px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-item .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-item .label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== 流程步骤 ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 36px 0;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 500px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.step {
  text-align: center;
  padding: 20px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.step h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.step p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== 终端展示 ===== */
.terminal {
  text-align: center;
  padding: 32px 24px 36px;
  background: linear-gradient(180deg, rgba(30, 102, 255, 0.18) 0%, #f7fbff 55%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.terminal p {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 500;
  max-width: 560px;
  margin: 0 auto;
}

.terminal .hint {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.terminal-img {
  max-width: 480px;
  margin: 24px auto 0;
}

/* ===== 对比表格 ===== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-table th,
.compare-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--surface-alt);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.compare-table td {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .check {
  color: var(--accent);
  font-weight: 700;
}

.compare-table .cross {
  color: #ccc;
}

/* ===== CTA 区块 ===== */
.cta-section {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(165deg, #d4e8ff 0%, var(--bg-deep) 42%, var(--bg) 100%);
}

.cta-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1rem;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 32px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ===== 页脚 ===== */
footer {
  border-top: 1px solid #0d2847;
  background: var(--footer-bg);
  padding: 32px 0 44px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--footer-text);
}

footer .company {
  color: var(--footer-heading);
  font-weight: 600;
  margin-bottom: 6px;
}

footer .links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 14px 0;
}

footer .links a {
  color: #8eb8e8;
  font-size: 0.875rem;
}

footer .links a:hover {
  color: #cfe6ff;
  text-decoration: underline;
}

footer .beian {
  margin-top: 10px;
}

footer .beian a {
  color: #8eb8e8;
  font-size: 0.8125rem;
}

footer .beian a:hover {
  color: #cfe6ff;
  text-decoration: underline;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  nav {
    display: none;
  }

  .section {
    padding: 32px 0;
  }

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