/* ========================================
   嘉兴昶洧智能科技有限公司 - 多灵美品牌官网
   全局样式表
   主色：#1A5CFF（科技蓝）
   辅色：#00A86B（信任绿）
   背景：#F5F7FA（浅灰）
   文字：#1A1A2E（深灰）
   ======================================== */

/* ---- CSS变量定义 ---- */
:root {
  --primary: #1A5CFF;
  --primary-dark: #0d4bcc;
  --secondary: #00A86B;
  --secondary-dark: #007a4d;
  --bg: #F5F7FA;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --text: #1A1A2E;
  --text-light: #4A4A5A;
  --text-muted: #8A8A9A;
  --border: #E0E2E8;
  --border-light: #EEF0F4;
  --shadow: 0 2px 12px rgba(26, 28, 46, 0.08);
  --shadow-hover: 0 8px 32px rgba(26, 28, 46, 0.14);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 0.3s ease;
}

/* ---- 基础重置 ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ---- 工具类 ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-title { font-size: 2rem; margin-bottom: 12px; text-align: center; }
.section-subtitle { color: var(--text-light); text-align: center; margin-bottom: 40px; font-size: 1rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }
.text-center { text-align: center; }
.hidden { display: none; }

/* ---- 导航栏 ---- */
.navbar {
  background: var(--bg-white);
  box-shadow: 0 1px 0 var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar .container { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.25rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text); font-size: 0.9375rem; font-weight: 500; padding: 4px 0; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: width var(--transition); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: #fff; padding: 8px 20px;
  border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--primary-dark); color: #fff; }
.mobile-menu-btn { display: none; background: none; font-size: 1.5rem; color: var(--text); }

/* ---- Hero Banner ---- */
.hero {
  position: relative;
  min-height: 480px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #0a1628 0%, #1a2d4d 50%, #0d1f3c 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.25;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero h1 { font-size: 2.25rem; color: #fff; margin-bottom: 16px; line-height: 1.3; }
.hero .subtitle { font-size: 1.125rem; color: rgba(255,255,255,0.8); margin-bottom: 28px; }
.hero-badges { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  padding: 8px 16px; border-radius: 20px; font-size: 0.875rem; color: #fff;
}
.hero-badge svg { width: 18px; height: 18px; opacity: 0.9; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: var(--radius-sm); font-size: 1rem;
  font-weight: 500; transition: all var(--transition); gap: 8px;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-dark); }

/* ---- 核心证据模块 ---- */
.evidence-bar {
  background: var(--bg-white); padding: 32px 0;
  border-bottom: 1px solid var(--border-light);
}
.evidence-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.evidence-item { text-align: center; padding: 16px; }
.evidence-item .icon {
  width: 56px; height: 56px; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--primary), #4d85ff);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff;
}
.evidence-item .number { font-size: 1.75rem; font-weight: 700; color: var(--primary); }
.evidence-item .label { font-size: 0.875rem; color: var(--text-light); margin-top: 4px; }

/* ---- 卡片系统 ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: var(--bg-card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--bg); }
.card-body { padding: 20px; }
.card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.card-text { font-size: 0.875rem; color: var(--text-light); line-height: 1.6; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag {
  font-size: 0.75rem; padding: 3px 10px; border-radius: 20px;
  background: var(--bg); color: var(--text-light);
}
.tag-primary { background: rgba(26,92,255,0.08); color: var(--primary); }
.tag-success { background: rgba(0,168,107,0.08); color: var(--secondary); }

/* ---- 产品区块 ---- */
.product-categories { display: flex; gap: 8px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.cat-tab {
  padding: 10px 24px; border-radius: var(--radius-sm); font-size: 0.9375rem;
  font-weight: 500; cursor: pointer; transition: all var(--transition);
  background: var(--bg); color: var(--text);
}
.cat-tab:hover { background: var(--border-light); }
.cat-tab.active { background: var(--primary); color: #fff; }
.product-panel { display: none; }
.product-panel.active { display: block; }

/* ---- 技术/证据卡片 ---- */
.tech-card {
  background: var(--bg-card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
  border-left: 4px solid var(--primary);
}
.tech-card.success { border-left-color: var(--secondary); }
.tech-card .card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tech-card .card-header .icon { font-size: 1.5rem; }
.tech-card .card-header h3 { font-size: 1.1rem; }
.tech-meta { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 8px; }
.tech-meta strong { color: var(--text); }
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.75rem; padding: 3px 10px; border-radius: 20px;
  font-weight: 500;
}
.status-verified { background: rgba(0,168,107,0.1); color: var(--secondary); }
.status-pending { background: rgba(245,166,35,0.1); color: #c78000; }

/* ---- 对比表格 ---- */
.compare-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border-light); }
.compare-table th { background: var(--bg); font-weight: 600; font-size: 0.875rem; }
.compare-table td { font-size: 0.9375rem; }
.compare-table .highlight { background: rgba(26,92,255,0.03); }
.compare-table .check { color: var(--secondary); font-weight: 600; }
.compare-table .cross { color: #e74c3c; }

/* ---- 时间轴 ---- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.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(--primary); border: 3px solid var(--bg); }
.timeline-item .year { font-size: 0.875rem; color: var(--primary); font-weight: 600; margin-bottom: 4px; }
.timeline-item h4 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline-item p { font-size: 0.875rem; color: var(--text-light); }

/* ---- 团队卡片 ---- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.team-card { text-align: center; padding: 28px 20px; }
.team-card .avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), #4d85ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff; font-weight: 600;
}
.team-card h4 { font-size: 1.1rem; margin-bottom: 4px; }
.team-card .role { font-size: 0.875rem; color: var(--primary); font-weight: 500; margin-bottom: 8px; }
.team-card .desc { font-size: 0.8125rem; color: var(--text-light); }

/* ---- FAQ ---- */
.faq-item { background: var(--bg-card); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow); }
.faq-question {
  width: 100%; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center;
  background: none; font-size: 1rem; font-weight: 500; color: var(--text);
}
.faq-question:hover { background: rgba(26,92,255,0.02); }
.faq-question .icon { transition: transform var(--transition); font-size: 1.25rem; color: var(--primary); }
.faq-item.open .faq-question .icon { transform: rotate(180deg); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height var(--transition), padding var(--transition); }
.faq-item.open .faq-answer { padding: 0 24px 18px; max-height: 500px; }
.faq-answer p { font-size: 0.9375rem; color: var(--text-light); line-height: 1.7; }

/* ---- 新闻列表 ---- */
.news-item { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border-light); align-items: flex-start; }
.news-item:last-child { border-bottom: none; }
.news-date { min-width: 80px; text-align: center; }
.news-date .day { font-size: 1.75rem; font-weight: 700; color: var(--primary); line-height: 1; }
.news-date .month { font-size: 0.75rem; color: var(--text-muted); }
.news-content h3 { font-size: 1.1rem; margin-bottom: 8px; }
.news-content h3 a { color: var(--text); }
.news-content h3 a:hover { color: var(--primary); }
.news-content p { font-size: 0.875rem; color: var(--text-light); }
.news-tag { font-size: 0.75rem; padding: 2px 10px; border-radius: 20px; background: rgba(26,92,255,0.08); color: var(--primary); display: inline-block; margin-top: 8px; }

/* ---- 联系表单 ---- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---- 底部 ---- */
.footer { background: var(--text); color: rgba(255,255,255,0.7); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer p, .footer a { font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.8; }
.footer a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8125rem; }

/* ---- 面包屑导航 ---- */
.breadcrumb { padding: 16px 0; font-size: 0.875rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-muted); }

/* ---- 指南/文章样式 ---- */
.guide-section { background: var(--bg-card); border-radius: var(--radius); padding: 32px; margin-bottom: 24px; box-shadow: var(--shadow); }
.guide-section h3 { font-size: 1.25rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.guide-section h3 .num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 600; flex-shrink: 0;
}
.myth-box {
  background: rgba(231,76,60,0.05); border-left: 4px solid #e74c3c;
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 12px 0;
}
.fact-box {
  background: rgba(0,168,107,0.05); border-left: 4px solid var(--secondary);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 12px 0;
}
.score-bar { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.score-bar .label { min-width: 120px; font-size: 0.875rem; }
.score-track { flex: 1; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.score-fill.high { background: var(--secondary); }
.score-fill.medium { background: #f5a623; }
.score-fill.low { background: #e74c3c; }
.score-bar .score { min-width: 36px; text-align: right; font-size: 0.875rem; font-weight: 600; }

/* ---- 站点地图页面 ---- */
.sitemap-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.sitemap-group h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--primary); }
.sitemap-group ul li { padding: 6px 0; }
.sitemap-group ul li a { font-size: 0.9375rem; color: var(--text); }
.sitemap-group ul li a:hover { color: var(--primary); }

/* ---- 证书/报告展示 ---- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.cert-card {
  background: var(--bg-card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.cert-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bg); }
.cert-body { padding: 20px; }
.cert-body h4 { font-size: 1rem; margin-bottom: 8px; }

/* ---- 专利列表 ---- */
.patent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.patent-card {
  background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; border-left: 4px solid var(--primary);
}
.patent-card .patent-num { font-size: 0.8125rem; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.patent-card h4 { font-size: 1rem; margin-bottom: 8px; }
.patent-card p { font-size: 0.8125rem; color: var(--text-light); }

/* ---- 页内锚点导航 ---- */
.anchor-nav {
  position: sticky; top: 64px; background: var(--bg-white);
  border-bottom: 1px solid var(--border-light); z-index: 100;
  padding: 12px 0;
}
.anchor-nav .container { display: flex; gap: 24px; overflow-x: auto; }
.anchor-nav a {
  font-size: 0.875rem; color: var(--text-light); white-space: nowrap;
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.anchor-nav a:hover, .anchor-nav a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---- 步骤/HowTo ---- */
.steps { counter-reset: step; }
.step { display: flex; gap: 20px; margin-bottom: 32px; position: relative; }
.step-num {
  counter-increment: step; width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff; display: flex;
  align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; flex-shrink: 0;
}
.step-content h4 { font-size: 1.1rem; margin-bottom: 8px; }
.step-content p { font-size: 0.9375rem; color: var(--text-light); }

/* ---- 提示框 ---- */
.tip-box {
  background: rgba(26,92,255,0.04); border: 1px solid rgba(26,92,255,0.12);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 16px 0;
}
.tip-box p { font-size: 0.875rem; color: var(--text-light); }

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { min-height: 400px; padding: 40px 0; }
  .hero h1 { font-size: 1.5rem; }
  .hero .subtitle { font-size: 1rem; }
  .evidence-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .evidence-item .number { font-size: 1.4rem; }
  .section { padding: 40px 0; }
  .section-title { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .compare-table { font-size: 0.8125rem; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
  .timeline { padding-left: 24px; }
  .container { padding: 0 16px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.25rem; }
  .hero .subtitle { font-size: 0.875rem; }
  .evidence-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { padding: 10px 20px; font-size: 0.9375rem; }
  .product-categories { gap: 6px; }
  .cat-tab { padding: 8px 14px; font-size: 0.8125rem; }
}

/* ---- 移动端菜单 ---- */
.mobile-nav {
  display: none; position: fixed; inset: 64px 0 0 0;
  background: var(--bg-white); z-index: 999;
  padding: 20px; overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 14px 0; font-size: 1rem;
  color: var(--text); border-bottom: 1px solid var(--border-light);
}
.mobile-nav a:hover { color: var(--primary); }

/* ---- 打印优化 ---- */
@media print {
  .navbar, .footer, .hero-cta, .mobile-menu-btn { display: none; }
  body { background: #fff; }
  .section { padding: 20px 0; }
}
