/* ============================================================
   蓝药本草 设计系统 - base.css
   海洋中医药 · 简洁现代生物医药风
   ============================================================ */

:root {
  /* 主题色 - 海洋蓝 */
  --ocean-deep: #0A4D68;
  --ocean: #088395;
  --ocean-bright: #05BFDB;
  --ocean-grad: linear-gradient(135deg, #0A4D68 0%, #088395 55%, #05BFDB 100%);

  /* 辅色 - 本草青 / 沙金 */
  --herb: #2E7D6F;
  --herb-soft: #E7F1EE;
  --gold: #C9A86A;
  --gold-soft: #F5EFE2;

  /* 中性 */
  --ink: #1A2B3C;
  --ink-soft: #5A6B7B;
  --ink-faint: #8B9BAA;
  --bg: #F7F9FB;
  --bg-alt: #EEF4F8;
  --white: #FFFFFF;
  --line: #E3EAF0;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(10, 77, 104, 0.06);
  --shadow: 0 8px 26px rgba(10, 77, 104, 0.10);
  --shadow-lg: 0 18px 50px rgba(10, 77, 104, 0.16);

  /* 圆角 */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* 字体 */
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Songti SC", "STSong", "SimSun", serif;

  /* 布局 */
  --container: 1200px;
  --header-h: 72px;
}

/* ---------------- Reset ---------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .25s ease; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

::selection { background: var(--ocean-bright); color: #fff; }

/* ---------------- 布局容器 ---------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-ocean { background: var(--ocean-grad); color: #fff; }

/* ---------------- 标题区 ---------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--ocean);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--ocean-bright);
  border-radius: 2px;
}
.section-alt .eyebrow, .section-ocean .eyebrow { color: rgba(255,255,255,.9); }
.section-ocean .eyebrow::before { background: var(--gold); }

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: .01em;
}
.section-ocean .section-title { color: #fff; }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 720px;
  line-height: 1.9;
}
.section-ocean .section-subtitle { color: rgba(255,255,255,.85); }

.section-head { margin-bottom: 52px; }
.section-head.center { text-align: center; }
.section-head.center .section-subtitle { margin-left: auto; margin-right: auto; }

.text-grad {
  background: var(--ocean-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.98rem;
  font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--ocean-grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(8, 131, 149, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(8,131,149,.36); }
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.55);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--ocean);
  border: 1.5px solid var(--ocean);
}
.btn-outline:hover { background: var(--ocean); color: #fff; }
.btn-soft {
  background: var(--herb-soft);
  color: var(--herb);
}
.btn-soft:hover { background: var(--herb); color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

/* ---------------- 网格 ---------------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------- 卡片 ---------------- */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  height: 100%;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(8,131,149,.25);
}
.card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--herb-soft);
  color: var(--herb);
  margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; }
.card-icon.ocean { background: rgba(5,191,219,.12); color: var(--ocean); }
.card-icon.gold { background: var(--gold-soft); color: var(--gold); }
.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}
.card p { color: var(--ink-soft); font-size: .96rem; }

/* ---------------- 徽标 ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: .76rem;
  font-weight: 600;
  background: var(--herb-soft);
  color: var(--herb);
}
.badge.ocean { background: rgba(8,131,149,.12); color: var(--ocean); }
.badge.gold { background: var(--gold-soft); color: var(--gold); }

/* ---------------- 头部导航 ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
  background: transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  height: 64px;
}
.site-header.on-solid {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}
.nav {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.18rem; color: var(--ink);
}
.site-header:not(.scrolled):not(.on-solid) .nav-logo,
.site-header:not(.scrolled):not(.on-solid) .nav-links a { color: #fff; }
.nav-logo .logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ocean-grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.nav-logo .logo-mark svg { width: 22px; height: 22px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 16px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-pill);
  position: relative;
}
.nav-links a:hover { color: var(--ocean-bright); }
.nav-links a.active { color: var(--ocean); }
.site-header.scrolled .nav-links a.active,
.site-header.on-solid .nav-links a.active { background: var(--herb-soft); }
.nav-cta { margin-left: 12px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* 公司 Logo 图片（替换原 inline SVG 文字 logo） */
.nav-logo img { max-height: 44px; width: auto; display: block; }
.footer-logo img { max-height: 56px; width: auto; display: block; background: #fff; padding: 4px 8px; border-radius: 8px; }

/* 下拉导航 */
.nav-links .has-dropdown { position: relative; }
.nav-links .dropdown-toggle { display: inline-flex; align-items: center; gap: 4px; }
.nav-links .dropdown-toggle svg { width: 14px; height: 14px; transition: transform .25s ease; }
.nav-links .has-dropdown.open .dropdown-toggle svg { transform: rotate(180deg); }
.nav-links .dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 180px;
  background: rgba(255,255,255,.98); backdrop-filter: blur(12px);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; display: none; z-index: 60;
  border: 1px solid var(--line);
}
.nav-links .has-dropdown:hover .dropdown { display: block; }
.nav-links .has-dropdown.open .dropdown { display: block; }
.nav-links .dropdown a {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm);
  color: var(--ink); font-size: .92rem; font-weight: 500;
}
.nav-links .dropdown a:hover { background: var(--herb-soft); color: var(--herb); }
.nav-links .dropdown a.active { background: var(--herb-soft); color: var(--herb); font-weight: 600; }

/* ---------------- 波浪分割 ---------------- */
.wave-divider { line-height: 0; display: block; }
.wave-divider svg { width: 100%; height: 70px; display: block; }
.wave-divider.flip svg { transform: rotate(180deg); }

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: var(--ocean-deep);
  color: rgba(255,255,255,.78);
  padding: 64px 0 28px;
  position: relative;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.site-footer a:hover { color: var(--ocean-bright); }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; font-size: .92rem; }
.footer-contact li { margin-bottom: 12px; font-size: .92rem; display: flex; gap: 8px; }
.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; color: var(--ocean-bright); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 24px;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}

/* ---------------- 动画 ---------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp .8s ease forwards; }
.fade-up { animation: fadeUp .8s ease forwards; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float { animation: float 6s ease-in-out infinite; }

/* ---------------- 工具类 ---------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-1 { margin-bottom: 12px; } .mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 16px; }
.rounded { border-radius: var(--radius); }
.hidden { display: none !important; }

/* 页面通用 banner（内页） */
.page-hero {
  padding: calc(var(--header-h) + 70px) 0 64px;
  background: var(--ocean-grad);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(5,191,219,.35), transparent 50%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,.88); max-width: 640px; }

.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }

/* 加载占位 */
.loading-state { padding: 60px 0; text-align: center; color: var(--ink-faint); }
