/* ===== 设计变量 ===== */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 10px 30px -10px rgba(15,23,42,.15);
  --shadow-lg: 0 24px 50px -12px rgba(79,70,229,.25);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== 导航 ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: all .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff; font-size: 18px;
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: all .15s ease;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-cta { padding: 9px 18px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--ink); }

/* ===== Hero ===== */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(124,58,237,.12), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(79,70,229,.10), transparent 55%),
    linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}
.hero-inner { text-align: center; max-width: 880px; }
.hero-title { font-size: clamp(34px, 6vw, 60px); line-height: 1.12; font-weight: 800; letter-spacing: -1px; }
.hero-title .accent {
  display: block; margin-top: 4px;
  background: linear-gradient(120deg, var(--primary), var(--accent, #7c3aed) 60%, var(--accent2, #db2777));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 26px auto 0; max-width: 640px; font-size: 18px; color: var(--muted); }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 8px; }
.stat .value { font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -1px; }
.stat .label { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* ===== 通用 Section ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.5px; }
.section-sub { margin-top: 14px; font-size: 17px; color: var(--muted); }
.eyebrow { color: var(--primary); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }

/* ===== 关于 ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-text .lead { font-size: 20px; font-weight: 600; color: var(--ink-2); margin: 16px 0 12px; }
.about-text .body-text { color: var(--muted); font-size: 16px; }
.about-points { display: flex; flex-direction: column; gap: 18px; }
.point {
  display: flex; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: all .2s ease;
}
.point:hover { transform: translateX(6px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.point .icon { font-size: 26px; width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; background: var(--primary-light); border-radius: 12px; }
.point h4 { font-size: 17px; margin-bottom: 3px; }
.point p { font-size: 14px; color: var(--muted); }

/* ===== 服务卡片 ===== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; padding: 30px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: all .25s ease; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .card-icon { font-size: 30px; width: 60px; height: 60px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-light), #faf5ff); border-radius: 14px; margin-bottom: 18px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card .tag { position: absolute; top: 20px; right: 20px; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-light); padding: 3px 10px; border-radius: 20px; }

/* ===== 案例 ===== */
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case {
  padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: all .2s ease; position: relative; overflow: hidden;
}
.case::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--case-color, var(--primary)); }
.case:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.case .company { font-size: 13px; color: var(--muted); font-weight: 600; }
.case h3 { font-size: 20px; margin: 6px 0 14px; }
.case .result { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); background: var(--bg-alt); padding: 8px 14px; border-radius: 8px; }
.case .result::before { content: "✓"; color: #10b981; font-weight: 800; }

/* ===== 新闻 ===== */
.news-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }
.news-item {
  display: flex; gap: 24px; align-items: baseline; padding: 24px 20px; border-radius: 12px;
  transition: background .15s ease; cursor: pointer;
}
.news-item:hover { background: #fff; box-shadow: var(--shadow-sm); }
.news-date { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; flex-shrink: 0; width: 100px; }
.news-item h4 { font-size: 18px; font-weight: 600; }
.news-item p { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ===== 联系 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: center; font-size: 16px; color: var(--ink-2); }
.contact-list .ci { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-md); }
.contact-form h3 { font-size: 20px; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; transition: border-color .15s ease; background: var(--bg-alt);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-light); }
.form-note { margin-top: 14px; font-size: 14px; color: #10b981; text-align: center; min-height: 20px; }

/* ===== 页脚 ===== */
.footer { background: var(--ink); color: #cbd5e1; padding: 48px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: #fff; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 14px; color: #94a3b8; }
.footer-icp { font-size: 13px; }

/* ===== 滚动动画 ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 16px 24px; gap: 2px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav.open .nav-links a { padding: 12px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .hero { padding: 120px 0 64px; }
  .news-item { flex-direction: column; gap: 4px; }
  .news-date { width: auto; }
}
