/* 北京药天下科技有限公司 — 官网样式 */
:root {
  --bg-deep: #05080f;
  --bg-card: rgba(12, 18, 32, 0.72);
  --bg-card-solid: #0c1220;
  --border: rgba(0, 166, 80, 0.14);
  --border-strong: rgba(0, 166, 80, 0.32);
  --text: #e8edf5;
  --text-muted: #8b97ad;
  --accent: #00a650;
  --accent-soft: rgba(0, 166, 80, 0.15);
  --accent-glow: rgba(0, 166, 80, 0.42);
  --cyan: #34d399;
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Noto Sans SC", "PingFang SC", "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(0, 166, 80, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 166, 80, 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.35;
  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(52, 211, 153, 0.32), 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(5, 8, 15, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.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__img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(200px, 46vw);
  object-fit: contain;
}

.logo__img--footer {
  height: 44px;
  max-width: 180px;
}

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

.logo__name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
}

.logo__sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo--footer .logo__name {
  font-size: 1rem;
}

.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(--text);
  background: var(--accent-soft);
}

.nav a.nav__active {
  color: var(--accent);
  background: rgba(74, 222, 128, 0.12);
}

.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);
}

.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;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  background: rgba(34, 211, 238, 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__title-accent {
  background: linear-gradient(105deg, var(--text) 0%, var(--accent) 45%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 28px;
  max-width: 34em;
  color: var(--text-muted);
  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: #020617;
  background: linear-gradient(135deg, #00c45e 0%, #009944 100%);
  box-shadow: 0 4px 24px rgba(0, 166, 80, 0.38);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 166, 80, 0.48);
}

.btn--ghost {
  color: var(--text);
  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 var(--border);
}

.hero__stat dt {
  margin: 0 0 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.hero__stat dd {
  margin: 0;
  font-size: 1rem;
}

.hero__stat .num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hero__visual {
  position: relative;
}

.hero__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.hero__photo {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.hero__media-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: stretch;
  background: linear-gradient(
    to top,
    rgba(5, 8, 15, 0.94) 0%,
    rgba(5, 8, 15, 0.55) 45%,
    transparent 100%
  );
}

.hero__media-foot .hero__card {
  position: relative;
  flex: 1 1 140px;
  max-width: 200px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(12, 18, 32, 0.82);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero__card-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hero__card-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 10vh, 100px) 0;
}

.section--dim {
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.5) 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;
}

.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);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.feature__icon {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.feature__title {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 600;
}

.feature__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.card--accent {
  background: linear-gradient(160deg, rgba(0, 166, 80, 0.14) 0%, var(--bg-card-solid) 45%);
  border-color: rgba(0, 166, 80, 0.38);
}

.card__top {
  margin-bottom: 20px;
}

.card__badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border-radius: 6px;
}

.card__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
}

.card__list {
  margin: 0 0 24px;
  padding-left: 1.15em;
  color: var(--text-muted);
  font-size: 0.9375rem;
  flex: 1;
}

.card__list li {
  margin-bottom: 8px;
}

.card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.card__link:hover {
  text-decoration: underline;
}

/* Solutions */
.solutions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.solution {
  padding: 28px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(12, 18, 32, 0.4);
  transition: background 0.25s var(--ease);
}

.solution:hover {
  background: var(--accent-soft);
}

.solution__title {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 600;
}

.solution__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-left: 2px solid var(--border);
  margin-left: 20px;
}

.timeline__item {
  position: relative;
  padding: 0 0 36px 40px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__step {
  position: absolute;
  left: -13px;
  top: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--bg-deep);
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg-deep);
}

.timeline__body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.timeline__body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* CTA */
.section--cta {
  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(0, 166, 80, 0.1) 0%, var(--bg-card-solid) 50%, rgba(52, 211, 153, 0.08) 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.cta__title {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
}

.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: rgba(5, 8, 15, 0.6);
  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: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

.form__msg--error {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding-top: 56px;
  background: #03050a;
}

.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: var(--text-muted);
  font-size: 0.875rem;
}

.footer__heading {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer__col p {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__bar {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__bar-inner a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer__bar-inner a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .features,
  .cards {
    grid-template-columns: 1fr;
  }

  .solutions {
    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(5, 8, 15, 0.97);
    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;
  }

  .nav-toggle {
    display: flex;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

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

  .hero__media-foot {
    position: static;
    padding: 12px 0 0;
    background: transparent;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__media-foot .hero__card {
    max-width: none;
  }

  .hero__media {
    overflow: visible;
  }
}

/* —— 主要产品 / 入库产品目录 —— */
/* 与 .hero / .section 一致：抬升主内容层，避免部分浏览器下 fixed 背景层盖住卡片描边与圆角 */
.product-page-main {
  position: relative;
  z-index: 1;
  isolation: isolate;
  padding: calc(var(--header-h) + 32px) 0 72px;
}

.product-page-head {
  margin-bottom: 40px;
}

.product-page-h1 {
  margin-top: 10px;
}

/* 使用块级 + 相邻边距，避免旧版 Edge 等对 flex gap 支持不完整时出现「挤成一长条」 */
.product-catalog {
  display: block;
}

.product-catalog > .product-block + .product-block {
  margin-top: 22px;
}

.product-block {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 24px;
  padding: clamp(22px, 4vw, 32px);
  border-radius: 14px;
  border-radius: var(--radius);
  background: rgba(12, 18, 32, 0.72);
  background: var(--bg-card);
  border: 1px solid rgba(0, 166, 80, 0.14);
  border: 1px solid var(--border);
  /* 保证子元素不会「顶穿」圆角视觉，并促使部分内核正确合成圆角 */
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}

.product-block:hover {
  border-color: var(--border-strong);
}

.product-block__title {
  margin: 0 0 18px;
  font-size: 1.125rem;
  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);
}

.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--original p {
  white-space: pre-wrap;
}

.product-block__body a {
  color: var(--accent);
  word-break: break-all;
}

.product-block__body a:hover {
  text-decoration: underline;
}

.product-page-cta {
  margin: 48px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border-radius: 14px;
  border-radius: var(--radius);
  background: rgba(12, 18, 32, 0.72);
  background: var(--bg-card);
  border: 1px solid rgba(0, 166, 80, 0.14);
  border: 1px solid var(--border);
  overflow: hidden;
}

.product-page-cta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
