/* ============================================================
   蓝药本草 页面样式 - style.css
   ============================================================ */

/* ---------------- 首页 Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ocean-grad);
  color: #fff;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(5,191,219,.42), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(46,125,111,.32), transparent 50%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><circle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.18)'/></svg>");
  background-size: 60px 60px;
  opacity: .5;
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 760px; padding: 80px 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  font-size: .82rem; font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: .01em;
  margin-bottom: 22px;
}
.hero .lead {
  font-size: 1.12rem;
  line-height: 1.9;
  color: rgba(255,255,255,.9);
  max-width: 620px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 56px;
  padding-top: 36px; border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stats .num { font-size: 2.1rem; font-weight: 800; color: var(--gold); }
.hero-stats .lbl { font-size: .85rem; color: rgba(255,255,255,.78); }
.hero-deco {
  position: absolute; right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 520px; height: 520px;
  z-index: 1; opacity: .9;
}
.hero-deco svg { width: 100%; height: 100%; }

/* ---------------- 企业速览 ---------------- */
.intro {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}
.intro-text p { color: var(--ink-soft); margin-bottom: 18px; }
.intro-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.intro-visual {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(8,131,149,.12), rgba(46,125,111,.12));
  padding: 40px;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.intro-visual .deco-ring { position: absolute; }
.intro-visual .quote {
  text-align: center; position: relative; z-index: 2;
}
.intro-visual .quote .big { font-size: 2.6rem; font-weight: 800; color: var(--ocean); }
.intro-visual .quote .small { color: var(--ink-soft); margin-top: 8px; }

/* ---------------- 核心优势 ---------------- */
.adv-card { text-align: left; position: relative; overflow: hidden; }
.adv-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--ocean-grad); transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.adv-card:hover::before { transform: scaleX(1); }
.adv-card .num {
  font-size: .8rem; font-weight: 700; color: var(--ocean-bright); letter-spacing: .1em;
  margin-bottom: 8px;
}
.adv-card h3 { font-size: 1.15rem; }
.adv-card .card-icon { margin-bottom: 18px; }

/* ---------------- 产品卡片 ---------------- */
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-thumb {
  height: 180px;
  background: var(--ocean-grad);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-thumb.herb { background: linear-gradient(135deg, #2E7D6F, #1f5e54); }
.product-thumb.gold { background: linear-gradient(135deg, #C9A86A, #a07e3f); }
.product-thumb .icon { width: 64px; height: 64px; color: rgba(255,255,255,.9); }
.product-thumb .pattern { position: absolute; inset: 0; opacity: .15; }
.product-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.product-tagline { color: var(--ocean); font-size: .9rem; margin-bottom: 14px; }
.product-meta { font-size: .85rem; color: var(--ink-soft); margin-bottom: 14px; line-height: 1.7; }
.product-link { margin-top: auto; color: var(--ocean); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.product-link:hover { color: var(--ocean-bright); }

/* 产品详情区 */
.product-detail {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.product-detail-grid { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.product-detail-cover {
  border-radius: var(--radius);
  height: 300px;
  background: var(--ocean-grad);
  display: flex; align-items: center; justify-content: center;
}
.product-detail-cover .icon { width: 96px; height: 96px; color: rgba(255,255,255,.92); }
.product-info-block { margin-bottom: 28px; }
.product-info-block h4 { color: var(--ocean); font-size: 1rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.product-info-block p { color: var(--ink-soft); line-height: 1.85; }

/* ---------------- 团队卡片 ---------------- */
.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-avatar {
  height: 200px;
  background: linear-gradient(160deg, rgba(8,131,149,.14), rgba(46,125,111,.14));
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.team-avatar .avatar-circle {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--ocean-grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2rem; font-weight: 700;
}
.team-body { padding: 24px; }
.team-body .name { font-size: 1.2rem; font-weight: 700; }
.team-body .title { color: var(--ocean); font-size: .9rem; margin: 4px 0 14px; }
.team-body .bio { color: var(--ink-soft); font-size: .9rem; line-height: 1.8; }

/* ---------------- 特色服务 ---------------- */
.service-card {
  background: #fff; border-radius: var(--radius-lg); padding: 36px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease; height: 100%;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card .step { font-size: .8rem; color: var(--gold); font-weight: 700; letter-spacing: .1em; }
.service-card h3 { font-size: 1.25rem; margin: 8px 0 14px; }
.service-card p { color: var(--ink-soft); font-size: .92rem; line-height: 1.85; }
.service-icon { width: 60px; height: 60px; border-radius: var(--radius); background: var(--herb-soft); color: var(--herb); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.service-icon svg { width: 30px; height: 30px; }

.qr-box {
  background: #fff; border-radius: var(--radius); padding: 28px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.qr-box .qr {
  width: 180px; height: 180px; margin: 0 auto 16px;
  background: repeating-linear-gradient(0deg, var(--ink) 0 6px, transparent 6px 12px),
              repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px);
  border-radius: 8px; border: 8px solid #fff; box-shadow: 0 0 0 1px var(--line);
}
.qr-box .qr-note { font-size: .82rem; color: var(--ink-faint); }

/* 文献/案例分类 */
.doc-list li {
  padding: 18px 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 16px; align-items: flex-start;
}
.doc-list li:last-child { border-bottom: none; }
.doc-list .doc-idx {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--herb-soft); color: var(--herb); display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.doc-list .doc-text strong { display: block; margin-bottom: 4px; }
.doc-list .doc-text span { color: var(--ink-soft); font-size: .9rem; line-height: 1.7; }

/* ---------------- 文章/动态 ---------------- */
.news-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.news-filter button {
  padding: 9px 20px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
  font-size: .9rem; font-weight: 500; transition: all .25s ease;
}
.news-filter button:hover { color: var(--ocean); border-color: var(--ocean); }
.news-filter button.active { background: var(--ocean-grad); color: #fff; border-color: transparent; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column;
  height: 100%;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-cover { height: 170px; background: var(--ocean-grad); position: relative; display: flex; align-items: center; justify-content: center; }
.news-cover .cat-badge { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.9); color: var(--ocean); padding: 4px 12px; border-radius: var(--radius-pill); font-size: .74rem; font-weight: 600; }
.news-cover .icon { width: 48px; height: 48px; color: rgba(255,255,255,.85); }
.news-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-body h3 { font-size: 1.08rem; line-height: 1.5; margin-bottom: 10px; }
.news-body .summary { color: var(--ink-soft); font-size: .9rem; line-height: 1.7; flex: 1; }
.news-meta { margin-top: 16px; font-size: .82rem; color: var(--ink-faint); display: flex; gap: 14px; align-items: center; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination button {
  width: 42px; height: 42px; border-radius: 10px; background: #fff; border: 1px solid var(--line);
  color: var(--ink-soft); font-weight: 600; transition: all .2s ease;
}
.pagination button:hover { border-color: var(--ocean); color: var(--ocean); }
.pagination button.active { background: var(--ocean-grad); color: #fff; border-color: transparent; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* 文章详情 */
.article-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.article-main { background: #fff; border-radius: var(--radius-lg); padding: 48px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.article-main h1 { font-size: 1.9rem; line-height: 1.4; margin-bottom: 18px; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-faint); font-size: .88rem; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 32px; align-items: center; }
.article-meta .badge { margin-right: 4px; }
.article-content { line-height: 1.95; color: var(--ink); font-size: 1.02rem; }
.article-content h2 { font-size: 1.4rem; margin: 32px 0 16px; color: var(--ocean-deep); }
.article-content h3 { font-size: 1.15rem; margin: 26px 0 12px; }
.article-content p { margin-bottom: 18px; }
.article-content img { border-radius: var(--radius); margin: 24px 0; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.article-aside h4 { font-size: 1.05rem; margin-bottom: 18px; color: var(--ink); }
.article-aside .rel-item {
  padding: 16px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  margin-bottom: 14px; transition: all .25s ease;
}
.article-aside .rel-item:hover { box-shadow: var(--shadow-sm); transform: translateX(4px); }
.article-aside .rel-item .t { font-weight: 600; font-size: .95rem; line-height: 1.5; margin-bottom: 6px; }
.article-aside .rel-item .d { font-size: .8rem; color: var(--ink-faint); }

/* ---------------- 联系我们 ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-card { background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: none; }
.contact-item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--herb-soft); color: var(--herb); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item .lbl { font-size: .82rem; color: var(--ink-faint); margin-bottom: 2px; }
.contact-item .val { font-weight: 600; }
.map-box { background: #fff; border-radius: var(--radius-lg); padding: 8px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); min-height: 380px; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #eef6f9, #e2eef3); }
.map-box .placeholder { text-align: center; color: var(--ink-faint); }
.map-box .placeholder svg { width: 56px; height: 56px; margin-bottom: 12px; }

/* ---------------- 招贤纳士 ---------------- */
.recruit-intro { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.recruit-intro p { color: var(--ink-soft); font-size: 1.05rem; }
.position-list .position {
  background: #fff; border-radius: var(--radius); padding: 24px 28px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.position-list .position .p-title { font-weight: 700; font-size: 1.05rem; }
.position-list .position .p-meta { color: var(--ink-soft); font-size: .85rem; margin-top: 4px; }
.position-list .position .p-tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- 特色服务入口横幅 ---------------- */
.cta-band {
  background: var(--ocean-grad);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  position: relative; overflow: hidden;
}
.cta-band::before { content: ""; position: absolute; right: -40px; top: -40px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.1); }
.cta-band .text { position: relative; z-index: 1; }
.cta-band h3 { font-size: 1.6rem; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 540px; }
.cta-band .actions { position: relative; z-index: 1; display: flex; gap: 14px; flex-shrink: 0; }

/* ---------------- 发展历程时间轴 ---------------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--ocean), var(--herb)); }
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item::before { content: ""; position: absolute; left: -28px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--ocean); box-shadow: 0 0 0 4px rgba(8,131,149,.18); }
.timeline-item .year { font-weight: 700; color: var(--ocean); margin-bottom: 4px; }
.timeline-item p { color: var(--ink-soft); }

/* ---------------- 荣誉 ---------------- */
.honor-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.honor-card { background: #fff; border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.honor-card .icon { width: 48px; height: 48px; margin: 0 auto 14px; color: var(--gold); }

/* 通用富文本内容容器 */
.prose { line-height: 1.95; color: var(--ink); }
.prose p { margin-bottom: 18px; }
.prose h3 { color: var(--ocean-deep); margin: 26px 0 12px; }
