/* =====================================================
   明芯数智官网样式 — 简约商务医疗风
   主色：印章紫 #9F4892（取自Logo）+ 浅灰 / 米白
   ===================================================== */
:root {
  --primary: #8E3F84;
  --primary-dark: #5F2A58;
  --primary-light: #A95C9E;
  --accent: #B06FA6;
  --bg: #F7F5F8;
  --bg-white: #FFFFFF;
  --text: #2E2832;
  --text-sub: #6E6472;
  --border: #E8E2EA;
  --tint: #D9BBD3; /* 浅紫 tint，用于深色背景上的次级文字 */
  --radius: 10px;
  --shadow: 0 4px 20px rgba(94, 42, 88, 0.08);
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(94,42,88,0.12); }

.header-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 32px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-img {
  height: 46px;
  width: auto;
  display: block;
}
.logo-text { font-weight: 700; font-size: 17px; color: var(--primary); line-height: 1.2; }
.logo-text em {
  display: block;
  font-style: normal;
  font-size: 10px;
  color: var(--text-sub);
  letter-spacing: 2px;
  font-weight: 400;
}

.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a {
  font-size: 15px;
  color: var(--text-sub);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a.active::after, .main-nav a:hover::after { width: 100%; }

.nav-cta { padding: 9px 22px; font-size: 14px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 22px; height: 2px;
  background: var(--primary);
  transition: 0.3s;
}

/* ---------- 首屏 Banner ---------- */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  background: url("../images/hero.jpg") center / cover no-repeat;
  background-color: #EFEAF0;
}
/* 形象墙为明亮背景，加深左侧遮罩保证白色文字可读 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(63,26,58,0.82) 0%, rgba(63,26,58,0.62) 42%, rgba(63,26,58,0.28) 75%);
}
.hero-content { position: relative; z-index: 1; padding-top: 68px; }
.hero-tag {
  color: var(--tint);
  letter-spacing: 3px;
  font-size: 14px;
  margin-bottom: 18px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.hero-sub {
  color: rgba(255,255,255,0.88);
  font-size: clamp(15px, 1.6vw, 19px);
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 数据条 ---------- */
.stats-bar { background: var(--primary); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 34px 24px;
  text-align: center;
}
.stat-item strong {
  font-size: clamp(26px, 3vw, 38px);
  color: #fff;
  font-weight: 700;
}
.stat-item strong span { font-size: 0.5em; margin-left: 2px; color: var(--tint); }
.stat-item p { color: var(--tint); font-size: 14px; margin-top: 2px; }

/* ---------- 通用 Section ---------- */
.section { padding: 84px 0; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  color: var(--primary);
  margin-bottom: 12px;
}
.section-head p { color: var(--text-sub); font-size: 16px; }

/* ---------- 关于明芯 ---------- */
.about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 44px;
}
.about-text p { margin-bottom: 16px; color: var(--text-sub); }
.about-points { margin-top: 24px; display: grid; gap: 14px; }
.about-points li {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 12px 18px;
}
.about-points strong { display: block; color: var(--primary); font-size: 15px; }
.about-points span { font-size: 13px; color: var(--text-sub); }

.about-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-figure figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 10px;
}

/* ---------- 图片轮播（4:3，3秒/张） ---------- */
.carousel {
  position: relative;
  aspect-ratio: 4 / 3;    /* 固定 4:3 画面比例 */
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #1A1420;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* 居中裁切填充，不变形 */
  opacity: 0;
  transition: opacity 0.6s ease;
}
.carousel-slide.active { opacity: 1; }
.carousel-dots {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.carousel-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.carousel-dots button.active {
  background: #fff;
  transform: scale(1.15);
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.culture-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.culture-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.culture-card h3 { color: var(--primary); font-size: 15px; margin-bottom: 8px; }
.culture-card p { font-size: 13px; color: var(--text-sub); }

/* ---------- 核心优势 ---------- */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.adv-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.adv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}
.adv-num {
  display: inline-block;
  font-size: 26px;
  font-weight: 700;
  color: var(--border);
  -webkit-text-stroke: 1px var(--accent);
  margin-bottom: 12px;
}
.adv-card h3 { font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.adv-card p { font-size: 14px; color: var(--text-sub); }

/* ---------- 产品与服务 ---------- */
.products { background: var(--bg); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card h3 {
  font-size: 19px;
  color: var(--primary);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.product-desc { font-size: 14px; color: var(--text-sub); margin-bottom: 12px; }
.product-card ul li {
  font-size: 14px;
  color: var(--text);
  padding: 5px 0 5px 16px;
  position: relative;
}
.product-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.consulting {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--primary);
  border-radius: var(--radius);
  padding: 40px 44px;
}
.consulting h3 { color: #fff; font-size: 21px; margin-bottom: 12px; }
.consulting p { color: #E3D2DF; font-size: 15px; }
.consulting img {
  width: 100%;
  height: auto;           /* 覆盖HTML的高度属性，否则会拉伸变形 */
  aspect-ratio: 1 / 1;    /* 固定 1:1 显示比例 */
  object-fit: cover;      /* 居中裁切填充，不变形 */
  border-radius: 8px;
}

/* ---------- 合作价值 ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-top: 3px solid var(--primary);
  transition: transform 0.25s, box-shadow 0.25s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: #fff; }
.value-card h3 { font-size: 16px; color: var(--primary); margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--text-sub); }

/* ---------- 发展历程 ---------- */
.history { background: var(--bg); }
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline li { position: relative; padding-bottom: 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -28px; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
}
.timeline time {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.timeline h3 { font-size: 17px; color: var(--text); margin-bottom: 4px; }
.timeline p { font-size: 14px; color: var(--text-sub); }

/* ---------- 联系我们 ---------- */
.contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2 { font-size: 28px; color: var(--primary); margin-bottom: 10px; }
.contact-lead { color: var(--text-sub); margin-bottom: 26px; }
.contact-info ul li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info strong { min-width: 76px; color: var(--primary); font-size: 14px; }
.contact-info span { font-size: 14px; color: var(--text-sub); }
.contact-link { color: inherit; transition: color 0.2s; }
.contact-link:hover { color: var(--primary); }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
}
.contact-form h3 { color: var(--primary); font-size: 18px; margin-bottom: 18px; }
.contact-form label { display: block; margin-bottom: 14px; }
.contact-form label span {
  display: block;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s;
  background: var(--bg);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  background: #fff;
}
.contact-form .form-tip {
  margin-top: 12px;
  font-size: 13px;
  color: #2E7D52;
  min-height: 18px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--primary-dark);
  color: #BFA9BA;
  padding: 40px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { height: 44px; width: auto; }
.footer-text strong { color: #fff; font-size: 16px; display: block; }
.footer-text p { font-size: 13px; margin-top: 4px; letter-spacing: 2px; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { font-size: 13px; color: #BFA9BA; transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }
.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  font-size: 12px;
  text-align: center;
}
.footer-icp {
  grid-column: 1 / -1;
  font-size: 12px;
  text-align: center;
  margin-top: 6px;
}
.footer-icp a { color: #BFA9BA; text-decoration: none; }
.footer-icp a:hover { color: #fff; text-decoration: underline; }

/* ---------- 滚动显现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   响应式
   ===================================================== */
@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    top: 68px; right: 0;
    width: 240px;
    height: calc(100vh - 68px);
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 16px 24px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .menu-toggle { display: flex; margin-left: auto; }
  .nav-cta { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .consulting { grid-template-columns: 1fr; }
  .advantage-grid, .culture-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .advantage-grid, .culture-grid, .value-grid { grid-template-columns: 1fr; }
  .hero { min-height: 74vh; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-nav { justify-content: center; }
}

/* =====================================================
   GEO 增强样式：FAQ 问答区 / 新闻栏目 / 文章页
   ===================================================== */

/* ---------- 首页 FAQ 问答区 ---------- */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}
.faq-q::after {
  content: '+';
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--primary);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s ease, background 0.25s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); background: var(--tint); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner { padding: 0 24px 22px; color: var(--text-sub); font-size: 15px; line-height: 1.9; }
.faq-a-inner strong { color: var(--primary-dark); }

/* ---------- 首页新闻预览 ---------- */
.news-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 8px;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card-tag {
  align-self: flex-start;
  font-size: 12px;
  color: var(--primary);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.news-card h3 { font-size: 17px; line-height: 1.5; margin-bottom: 10px; color: var(--text); }
.news-card p { font-size: 14px; color: var(--text-sub); line-height: 1.8; flex: 1; }
.news-card-more {
  margin-top: 16px;
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
}
.news-card-more::after { content: ' →'; }
.section-center { text-align: center; }
.section-more {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 30px;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.25s ease;
}
.section-more:hover { background: var(--primary); color: #fff; }

/* ---------- 新闻列表页 ---------- */
.page-hero {
  padding: 150px 0 60px;
  background: linear-gradient(135deg, #f7f2f6, #efe6ee);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 38px; color: var(--primary-dark); margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: var(--text-sub); max-width: 720px; }
.news-list { padding: 60px 0 90px; }
.news-list-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 18px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.news-list-item:hover { box-shadow: var(--shadow); border-color: var(--tint); }
.news-list-meta { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--text-sub); flex-wrap: wrap; }
.news-list-meta .tag {
  color: var(--primary); background: var(--bg);
  padding: 2px 10px; border-radius: 20px; border: 1px solid var(--border);
}
.news-list-item h2 { font-size: 21px; line-height: 1.5; }
.news-list-item h2 a { color: var(--text); }
.news-list-item h2 a:hover { color: var(--primary); }
.news-list-item p { font-size: 14px; color: var(--text-sub); line-height: 1.8; }
.news-list-item .read-link { color: var(--primary); font-size: 14px; font-weight: 600; }

/* ---------- 文章详情页 ---------- */
.article-wrap { padding: 150px 0 90px; }
.article-main { max-width: 820px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: var(--text-sub); margin-bottom: 24px; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 8px; color: var(--border); }
.article-head { border-bottom: 1px solid var(--border); padding-bottom: 28px; margin-bottom: 36px; }
.article-head h1 { font-size: 32px; line-height: 1.4; color: var(--text); margin-bottom: 18px; }
.article-meta { display: flex; gap: 18px; font-size: 13px; color: var(--text-sub); flex-wrap: wrap; }
.article-body { font-size: 16px; line-height: 2; color: var(--text); }
.article-body h2 {
  font-size: 23px; color: var(--primary-dark);
  margin: 44px 0 18px; padding-left: 14px;
  border-left: 4px solid var(--primary);
  line-height: 1.5;
}
.article-body h3 { font-size: 19px; color: var(--text); margin: 30px 0 14px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px 0; padding-left: 24px; }
.article-body li { list-style: disc; margin-bottom: 10px; }
.article-body ol li { list-style: decimal; }
.article-body strong { color: var(--primary-dark); }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.article-table th, .article-table td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; }
.article-table th { background: var(--bg); color: var(--primary-dark); font-weight: 600; }
.article-table tr:nth-child(even) td { background: #fcfafc; }
.fact-box {
  background: var(--bg); border-left: 4px solid var(--primary);
  padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 26px 0; font-size: 15px; line-height: 1.9;
}
.fact-box strong { color: var(--primary-dark); }
.article-faq { margin-top: 44px; }
.article-faq h2 { border-left-color: var(--accent); }
.article-tags { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; flex-wrap: wrap; }
.article-tags span { font-size: 13px; color: var(--text-sub); background: var(--bg); padding: 4px 12px; border-radius: 20px; }
.article-back { display: inline-block; margin-top: 30px; color: var(--primary); font-weight: 600; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .news-preview-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 30px; }
  .article-head h1 { font-size: 26px; }
  .article-body h2 { font-size: 21px; }
}
