/* 郑州药通大数据有限公司 — 官网样式（蓝白科技风） */
:root {
  --bg-deep: #ffffff;
  --bg-card: #f8fafc;
  --bg-card-solid: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #1e293b;
  --text-muted: #64748b;
  --accent: #0ea5e9;
  --accent-soft: rgba(14, 165, 233, 0.08);
  --accent-glow: rgba(14, 165, 233, 0.25);
  --cyan: #06b6d4;
  --radius: 14px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.bg-glow--1 {
  width: min(60vw, 520px);
  height: min(60vw, 520px);
  top: -10%;
  right: -5%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
}

.bg-glow--2 {
  width: min(50vw, 400px);
  height: min(50vw, 400px);
  bottom: 10%;
  left: -10%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 65%);
}

.container {
  width: calc(100% - 48px);
  max-width: 1120px;
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo__name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.logo__sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav a.nav__active {
  color: var(--accent);
  background: rgba(14, 165, 233, 0.1);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown__trigger::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 4px;
  transition: transform 0.2s var(--ease);
}

.nav-dropdown:hover .nav-dropdown__trigger::after {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 140px;
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown__menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-dropdown__menu a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 10vh, 100px) 0 clamp(64px, 12vh, 120px);
  background: linear-gradient(135deg, #0c4a6e 0%, #0ea5e9 100%);
  color: #fff;
}

.hero__title { color: #fff; }
.hero__lead { color: rgba(255,255,255,0.85); }
.hero__eyebrow { color: #bae6fd; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); }
.hero__title-accent { background: linear-gradient(105deg, #fff 0%, #bae6fd 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__stat dt { color: rgba(255,255,255,0.7); }
.hero__stat dd { color: #fff; }
.hero__stat .num { color: #fff; }
.hero .btn--primary { background: #fff; color: #0ea5e9; box-shadow: 0 4px 24px rgba(0,0,0,0.15); }
.hero .btn--primary:hover { background: #f8fafc; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero .btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.hero__title {
  margin: 0 0 20px;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 28px;
  max-width: 34em;
  font-size: 1.02rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 4px 24px rgba(14, 165, 233, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.4);
}

.btn--ghost {
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.btn--block {
  width: 100%;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.hero__stat dt {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 400;
}

.hero__stat dd {
  margin: 0;
  font-size: 1rem;
}

.hero__stat .num {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hero__visual {
  position: relative;
}

.hero__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  background: rgba(255,255,255,0.05);
  padding: 32px;
}

.hero__code-demo {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  color: #fff;
  text-align: center;
}

.hero__code-demo .code-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.hero__code-demo .code-full {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  color: #fff;
}

.hero__code-segments {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.hero__code-seg {
  padding: 10px 16px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.85rem;
}

.hero__code-seg--type {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.hero__code-seg--doc {
  background: rgba(52, 211, 153, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.hero__code-seg--spec {
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.hero__code-seg .seg-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero__code-seg .seg-label {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 10vh, 100px) 0;
}

.section--dim {
  background: linear-gradient(180deg, #f8fafc 0%, transparent 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section__tag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__title {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.section__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.feature__icon {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 16px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
}

.feature__title {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
}

.feature__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Code Structure */
.code-example {
  margin: 20px 0 10px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.code-example h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.code-structure {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.code-segment {
  flex: 1;
  min-width: 120px;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.code-segment--type {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.code-segment--doc {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.code-segment--spec {
  background: #fef3c7;
  border: 1px solid #fde68a;
}

.code-segment__label {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.code-segment__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.code-segment__desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Code Table */
.code-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9375rem;
}

.code-table th,
.code-table td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.code-table th {
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.code-table td {
  color: var(--text-muted);
}

.code-table tbody tr:hover {
  background: rgba(14, 165, 233, 0.03);
}

/* Product Block */
.product-catalog {
  display: block;
}

.product-block {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(22px, 4vw, 32px);
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.product-block + .product-block {
  margin-top: 22px;
}

.product-block:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.08);
}

.product-block__title {
  margin: 0 0 18px;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  color: #0f172a;
}

.product-block__body p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.product-block__body p:last-child {
  margin-bottom: 0;
}

.product-block__body ul {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  padding-left: 1.5em;
  margin: 14px 0;
}

.product-block__body li {
  margin-bottom: 8px;
}

.product-block__body h3 {
  margin: 20px 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* CTA */
.section--cta {
  padding-top: clamp(16px, 3vh, 24px);
  padding-bottom: clamp(80px, 12vh, 120px);
}

.cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: clamp(40px, 6vw, 56px);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.06) 0%, var(--bg-card-solid) 50%, rgba(6, 182, 212, 0.04) 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
}

.cta__title {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: #0f172a;
}

.cta__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.cta__panel {
  padding: 8px 0 0;
}

.form__row {
  margin-bottom: 18px;
}

.form__row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form__input {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form__textarea {
  resize: vertical;
  min-height: 88px;
}

.form__msg {
  margin: 0 0 18px;
  padding: 12px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.form__msg--ok {
  color: #15803d;
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.3);
}

.form__msg--error {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  background: #0f172a;
  color: #94a3b8;
  padding-top: 56px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__desc {
  margin: 16px 0 0;
  max-width: 280px;
  color: #94a3b8;
  font-size: 0.875rem;
  white-space: nowrap;
}

.footer .footer__companies {
  list-style: none !important;
  padding: 0 !important;
  margin: 8px 0 0 !important;
}

.footer .footer__companies li {
  list-style: none !important;
  color: #94a3b8 !important;
  font-size: 0.8rem !important;
  line-height: 1.8 !important;
}

.footer .footer__companies a {
  color: #94a3b8 !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

.footer .footer__companies a:hover {
  color: #fff !important;
}

.footer__heading {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.footer__col p {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: #94a3b8;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a {
  display: block;
  margin-bottom: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
}

.footer__links a:hover {
  color: #fff;
}

.footer__bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
}

.footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: #64748b;
}

.footer__bar-inner a {
  color: #64748b;
  text-decoration: none;
}

.footer__bar-inner a:hover {
  color: #94a3b8;
}

.highlight {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .cta {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 12px 16px;
    color: #333;
  }

  .nav-dropdown__menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
  }

  .nav-dropdown__menu a {
    padding-left: 32px;
    font-size: 0.875rem;
  }

  .nav-dropdown__trigger::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .code-structure {
    flex-direction: column;
  }
  .code-segment {
    min-width: 100%;
  }
  .code-table {
    font-size: 0.8125rem;
  }
  .code-table th,
  .code-table td {
    padding: 8px 10px;
  }
}

@media (max-width: 600px) {
  .form__row--half {
    grid-template-columns: 1fr;
  }

  .hero__code-segments {
    flex-direction: column;
  }
}
