/* ============================================================
   紫荷科技官网 - 前台样式
   主色：清华紫 #660874 / 深紫 #3d0a54
   ============================================================ */
:root {
  --purple: #660874;
  --purple-dark: #3d0a54;
  --purple-deep: #2b0740;
  --purple-light: #f4eef9;
  --purple-mid: #8b2c9c;
  --ink: #1f2430;
  --gray: #5c6472;
  --line: #e8e2ef;
  --bg: #ffffff;
  --bg-soft: #faf8fc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(61, 10, 84, .10);
  --header-h: 72px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.icon { width: 22px; height: 22px; }

/* ---------- 顶部导航（固定） ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .3s;
}
/* Firefox 旧版无 backdrop-filter 时使用不透明背景兜底 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: #ffffff; }
  .hero-card { background: rgba(255, 255, 255, .16); }
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(61, 10, 84, .12); }
.header-inner { display: flex; align-items: center; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 20px; color: var(--purple-dark); letter-spacing: 1px; }
.brand-text small { font-size: 10px; color: var(--gray); letter-spacing: 2px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 8px 15px; border-radius: 8px; font-size: 15.5px; color: var(--ink);
  position: relative; transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--purple); background: var(--purple-light); }
.main-nav a.active { color: var(--purple); font-weight: 600; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px;
  height: 3px; border-radius: 2px; background: var(--purple);
}
.header-phone {
  display: flex; align-items: center; gap: 6px; color: var(--purple);
  font-weight: 600; font-size: 15px; flex-shrink: 0;
}
.header-phone .icon { width: 18px; height: 18px; }
.nav-toggle {
  display: none; border: none; background: none; cursor: pointer;
  color: var(--purple-dark); padding: 6px;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-open { display: none; }
.nav-toggle.open .icon-close { display: block; }

.site-main { padding-top: var(--header-h); min-height: 60vh; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--purple-deep) 0%, var(--purple-dark) 45%, var(--purple) 100%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero::after {
  content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  right: -160px; top: -160px;
  background: radial-gradient(circle, rgba(200, 130, 255, .35), transparent 65%);
}
.hero-inner {
  position: relative; z-index: 1;
  padding: 96px 0 110px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  padding: 6px 16px; font-size: 13.5px; color: #e9d7f5; margin-bottom: 22px;
}
.hero h1 { font-size: 44px; line-height: 1.25; font-weight: 700; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #d9a6f2; }
.hero p.lead { font-size: 17px; color: #dcc6ea; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 10px; font-size: 15.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--purple-dark); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-mid); box-shadow: 0 8px 22px rgba(102,8,116,.35); }
.hero-visual { display: flex; justify-content: center; }
.hero-card {
  width: 100%; max-width: 420px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px; padding: 26px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero-card h3 { font-size: 16px; color: #e9d7f5; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.hero-metric { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,.16); font-size: 14px; }
.hero-metric:last-child { border-bottom: none; }
.hero-metric b { color: #fff; font-size: 16px; }
.hero-metric span { color: #cbb3da; }
/* 数字滚动动画 */
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #7dffa8; box-shadow: 0 0 0 0 rgba(125,255,168,.7); -webkit-animation: pulse 2s infinite; animation: pulse 2s infinite; }
@-webkit-keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(125,255,168,0); } 100% { box-shadow: 0 0 0 0 rgba(125,255,168,0); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(125,255,168,0); } 100% { box-shadow: 0 0 0 0 rgba(125,255,168,0); } }

/* ---------- 数据统计条 ---------- */
.stats { background: #fff; transform: translateY(-46px); position: relative; z-index: 2; }
.stats-inner {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
}
.stat-item { padding: 30px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: none; }
.stat-item b { display: block; font-size: 34px; color: var(--purple); font-weight: 700; }
.stat-item b small { font-size: 16px; font-weight: 600; }
.stat-item span { color: var(--gray); font-size: 14px; }

/* ---------- 通用区块 ---------- */
.section { padding: 76px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .en { color: var(--purple); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; }
.section-head h2 { font-size: 32px; color: var(--purple-deep); margin: 8px 0 12px; }
.section-head p { color: var(--gray); max-width: 640px; margin: 0 auto; font-size: 15.5px; }

/* ---------- 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d9c4e6; }
.product-card .p-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--purple-light); color: var(--purple);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.product-card:hover .p-icon { background: var(--purple); color: #fff; }
.p-icon .icon { width: 28px; height: 28px; }
.product-card h3 { font-size: 17px; margin-bottom: 10px; color: var(--ink); }
.product-card p { font-size: 13.8px; color: var(--gray); flex: 1; }
.product-card .p-link { margin-top: 16px; color: var(--purple); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.p-link .icon { width: 16px; height: 16px; }

/* ---------- 解决方案 ---------- */
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.solution-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg, var(--purple-dark), var(--purple));
  color: #fff; padding: 30px 26px; min-height: 210px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .25s, box-shadow .25s;
}
.solution-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(61,10,84,.28); }
.solution-card .s-icon { position: absolute; top: 22px; right: 22px; opacity: .28; }
.s-icon .icon { width: 58px; height: 58px; }
.solution-card h3 { font-size: 19px; margin-bottom: 8px; }
.solution-card p { font-size: 13.8px; color: #dcc6ea; }

/* ---------- 新闻 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-card .n-date { color: var(--purple); font-size: 13px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.n-date .icon { width: 15px; height: 15px; }
.news-card h3 { font-size: 16.5px; line-height: 1.5; margin-bottom: 10px; }
.news-card p { color: var(--gray); font-size: 13.8px; flex: 1; }

/* ---------- CTA 条 ---------- */
.cta-band {
  background: linear-gradient(110deg, var(--purple-deep), var(--purple));
  border-radius: var(--radius); color: #fff; padding: 46px 50px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.cta-band h2 { font-size: 26px; margin-bottom: 8px; }
.cta-band p { color: #dcc6ea; font-size: 15px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #21073a; color: #bda8cd; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding: 60px 20px 44px; }
.footer-brand .brand-text strong { color: #fff; }
.footer-about p { margin-top: 16px; font-size: 13.8px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col ul li a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer-contact .icon { width: 17px; height: 17px; flex-shrink: 0; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; }
.footer-bottom .container { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }

/* ---------- 内页通用 ---------- */
.page-banner {
  background: linear-gradient(115deg, var(--purple-deep), var(--purple) 85%);
  color: #fff; padding: 64px 0 58px; position: relative; overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  right: -120px; bottom: -220px; background: radial-gradient(circle, rgba(200,130,255,.3), transparent 65%);
}
.page-banner h1 { font-size: 34px; margin-bottom: 8px; position: relative; z-index: 1; }
.page-banner .crumb { font-size: 13.5px; color: #d3bce2; position: relative; z-index: 1; }
.page-banner .crumb a:hover { color: #fff; }

.content-wrap { padding: 56px 0 76px; }
.prose { font-size: 15.5px; color: #3a4150; line-height: 1.9; }
.prose h3 { color: var(--purple-deep); margin: 28px 0 12px; font-size: 20px; }
.prose p { margin-bottom: 14px; }

/* 列表页 */
.list-layout { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.side-menu { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: calc(var(--header-h) + 20px); }
.side-menu .sm-title { background: var(--purple); color: #fff; padding: 15px 20px; font-size: 16px; font-weight: 600; }
.side-menu a { display: block; padding: 13px 20px; font-size: 14.5px; border-bottom: 1px solid var(--line); transition: background .2s, color .2s; }
.side-menu a:last-child { border-bottom: none; }
.side-menu a:hover { background: var(--purple-light); color: var(--purple); }
.side-menu a.active { color: var(--purple); font-weight: 600; border-left: 3px solid var(--purple); padding-left: 17px; background: var(--purple-light); }

.news-list-item { display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.news-list-item .nl-date {
  flex-shrink: 0; width: 86px; text-align: center; background: var(--purple-light);
  border-radius: 10px; padding: 12px 6px;
  -webkit-align-self: flex-start; align-self: flex-start;
}
.nl-date b { display: block; font-size: 26px; color: var(--purple); line-height: 1.2; }
.nl-date span { font-size: 12.5px; color: var(--purple-mid); }
.news-list-item h3 { font-size: 18px; margin-bottom: 8px; }
.news-list-item h3 a:hover { color: var(--purple); }
.news-list-item p { color: var(--gray); font-size: 14px; }
.news-meta { margin-top: 10px; font-size: 13px; color: #98a0ad; display: flex; gap: 16px; }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pager a, .pager span {
  min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--gray); background: #fff;
}
.pager a:hover { border-color: var(--purple); color: var(--purple); }
.pager .cur { background: var(--purple); border-color: var(--purple); color: #fff; }

/* 特征库下载 */
.sig-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(61,10,84,.06); }
.sig-table th { background: var(--purple); color: #fff; text-align: left; padding: 14px 18px; font-size: 14.5px; font-weight: 600; }
.sig-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.sig-table tr:last-child td { border-bottom: none; }
.sig-table tr:hover td { background: var(--bg-soft); }
.sig-name { font-weight: 600; color: var(--ink); }
.sig-desc { color: var(--gray); font-size: 13px; margin-top: 2px; }
.tag-ver { display: inline-block; background: var(--purple-light); color: var(--purple); border-radius: 6px; padding: 2px 10px; font-size: 12.5px; font-weight: 600; }
.btn-dl {
  display: inline-flex; align-items: center; gap: 6px; background: var(--purple); color: #fff;
  padding: 8px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 600; transition: background .2s;
}
.btn-dl:hover { background: var(--purple-mid); }
.btn-dl .icon { width: 15px; height: 15px; }
.support-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 40px 0 52px; }
.support-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.support-card .p-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--purple-light); color: var(--purple); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.support-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.support-card p { color: var(--gray); font-size: 13.8px; }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: start; }
.contact-info-card { background: linear-gradient(150deg, var(--purple-dark), var(--purple)); color: #fff; border-radius: var(--radius); padding: 34px 30px; }
.contact-info-card h3 { font-size: 20px; margin-bottom: 22px; }
.ci-item { display: flex; gap: 12px; margin-bottom: 18px; font-size: 14.5px; color: #e5d3ef; }
.ci-item .icon { width: 19px; height: 19px; flex-shrink: 0; margin-top: 3px; }
.ci-item b { color: #fff; display: block; font-size: 15px; }

/* 表单 */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; }
.form-card h3 { font-size: 20px; color: var(--purple-deep); margin-bottom: 6px; }
.form-card .form-tip { color: var(--gray); font-size: 13.5px; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-group label i { color: #d33; font-style: normal; }
.form-control {
  width: 100%; border: 1px solid #d9d2e2; border-radius: 8px; padding: 11px 14px;
  font-size: 14.5px; font-family: inherit; transition: border-color .2s, box-shadow .2s; background: #fff;
}
.form-control:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(102,8,116,.12); }
textarea.form-control { min-height: 120px; resize: vertical; }
.captcha-row { display: flex; gap: 12px; align-items: center; }
.captcha-row img { height: 42px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }
.form-msg { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.form-msg.ok { background: #eaf9ef; color: #1c7c3a; border: 1px solid #bfe8cc; }
.form-msg.err { background: #fdeeee; color: #b03030; border: 1px solid #f3c6c6; }

/* 关于页 */
.about-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.about-visual {
  border-radius: var(--radius); min-height: 300px;
  background: linear-gradient(140deg, var(--purple-deep), var(--purple) 70%, var(--purple-mid));
  position: relative; overflow: hidden; color: #fff; padding: 34px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.about-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 36px 36px;
}
.about-visual .av-num { font-size: 44px; font-weight: 700; position: relative; }
.about-visual .av-label { color: #dcc6ea; position: relative; }
.timeline { border-left: 2px solid var(--line); margin-left: 10px; padding-left: 28px; }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item::before {
  content: ""; position: absolute; left: -35px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 4px var(--purple-light);
}
.timeline-item b { color: var(--purple); font-size: 17px; display: block; margin-bottom: 4px; }
.timeline-item p { color: var(--gray); font-size: 14px; }

/* 详情页 */
.article-detail { max-width: 860px; margin: 0 auto; }
.article-detail h1 { font-size: 28px; color: var(--purple-deep); line-height: 1.4; margin-bottom: 14px; }
.article-meta { color: #98a0ad; font-size: 13.5px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px; display: flex; gap: 20px; flex-wrap: wrap; }
.detail-body { font-size: 15.5px; line-height: 2; color: #3a4150; }
.detail-body p { margin-bottom: 16px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 34px; color: var(--purple); font-weight: 600; font-size: 14.5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; padding: 72px 0 90px; }
  .hero-visual { display: none; }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .header-phone { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 10px 16px 18px;
    box-shadow: 0 18px 30px rgba(61,10,84,.15); border-top: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 10px; border-bottom: 1px solid var(--bg-soft); font-size: 16px; }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { background: var(--purple-light); }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 15px; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 25px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid var(--line); padding: 20px 10px; }
  .stat-item b { font-size: 26px; }
  .product-grid, .solution-grid, .news-grid, .support-cards { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 36px 26px; }
  .list-layout, .contact-grid, .about-intro { grid-template-columns: 1fr; }
  .side-menu { position: static; }
  .page-banner h1 { font-size: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 44px 20px 30px; }
  .sig-table th:nth-child(4), .sig-table td:nth-child(4) { display: none; }
  .news-list-item .nl-date { display: none; }
}
