/* =====================================================
   青慧数字官网样式
   设计基调：专业、简洁、科技感（深蓝 + 白 + 青色点缀）
   ===================================================== */

:root {
  --primary: #1450a3;        /* 主色：深蓝 */
  --primary-dark: #0e3a78;
  --accent: #00b8a9;         /* 点缀：青色 */
  --text: #1f2937;
  --text-soft: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --border: #e5eaf1;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(20, 80, 163, 0.08);
  --shadow-hover: 0 12px 32px rgba(20, 80, 163, 0.14);
  --container: 1120px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-ghost {
  border-color: var(--border);
  color: var(--primary);
  background: #fff;
}
.btn-ghost:hover { border-color: var(--primary); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 15px;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--primary); font-weight: 600; }
.nav-cta { margin-left: 8px; }

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

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #f0f6ff 0%, #ffffff 55%, #eafaf8 100%);
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-tagline {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.3;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--primary); }
.hero-desc {
  color: var(--text-soft);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stats strong {
  display: block;
  font-size: 28px;
  color: var(--primary);
}
.hero-stats span { font-size: 14px; color: var(--text-soft); }

/* Hero 右侧装饰卡片 */
.hero-visual { position: relative; height: 380px; }
.visual-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card-a {
  width: 78%;
  height: 300px;
  top: 10px;
  right: 0;
  animation: float 6s ease-in-out infinite;
}
.card-b {
  width: 55%;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  animation: float 6s ease-in-out 1.5s infinite;
}
.vc-head {
  width: 50%;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-bottom: 16px;
}
.vc-line {
  height: 10px;
  border-radius: 5px;
  background: var(--bg-alt);
  margin-bottom: 10px;
}
.w80 { width: 80%; }
.w60 { width: 60%; }
.vc-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 130px;
  margin-top: 20px;
}
.vc-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  opacity: 0.85;
}
.vc-badge {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- 通用 Section ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 8px;
}
.section-head h2 { font-size: 32px; margin-bottom: 10px; }
.section-sub { color: var(--text-soft); }

/* ---------- 公司简介 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-text p { margin-bottom: 16px; color: var(--text-soft); }
.about-text b { color: var(--text); }
.about-points { margin-top: 24px; display: grid; gap: 12px; }
.about-points li {
  padding-left: 20px;
  position: relative;
  font-size: 15px;
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.about-cards { display: grid; gap: 20px; }
.about-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.ac-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
}
.about-card h3 { margin: 6px 0 6px; font-size: 18px; }
.about-card p { font-size: 14px; color: var(--text-soft); }

/* ---------- 产品与服务 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 184, 169, 0.4);
}
.product-icon { font-size: 36px; margin-bottom: 16px; }
.product-card h3 { font-size: 19px; margin-bottom: 10px; }
.product-card > p { font-size: 14px; color: var(--text-soft); margin-bottom: 16px; }
.product-card ul { display: grid; gap: 8px; }
.product-card li {
  font-size: 14px;
  color: var(--primary);
  padding-left: 18px;
  position: relative;
}
.product-card li::before {
  content: "·";
  position: absolute;
  left: 4px;
  font-weight: 700;
}

/* ---------- 新闻动态 ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.news-card time {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.news-card h3 { font-size: 17px; margin: 10px 0 8px; line-height: 1.5; }
.news-card p { font-size: 14px; color: var(--text-soft); }

/* ---------- 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.ci-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 20px;
  flex-shrink: 0;
}
.contact-item h3 { font-size: 16px; margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: var(--text-soft); }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--bg-alt);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 80, 163, 0.12);
  background: #fff;
}
.form-tip {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
}
.form-tip.success { color: #0a8f4e; font-weight: 600; }
.form-tip.error { color: #d0342c; font-weight: 600; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0e2036;
  color: #9fb0c3;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.footer-copy, .footer-icp { font-size: 13px; }
.footer-icp a:hover { color: #fff; }

/* =====================================================
   响应式适配
   ===================================================== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 30px; }
  .hero-stats { gap: 28px; }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 26px; }
  .product-grid, .news-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* 移动端抽屉导航 */
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.open { max-height: 360px; }
  .nav-link { padding: 14px 24px; border-top: 1px solid var(--border); }
  .nav-link::after { display: none; }
  .nav-cta { margin: 12px 24px 16px; }
}
