/* 启禾曦科技 - 设计系统 */
:root {
  --bg-deep: #0a1628;
  --bg-panel: #0f2138;
  --bg-elev: #142a47;
  --bg-soft: #f4f7fb;
  --bg-white: #ffffff;
  --line: #1e3556;
  --line-soft: #e3e9f2;
  --ink: #0b1a2e;
  --ink-2: #344862;
  --ink-3: #6a7a90;
  --ink-inv: #e8f0fa;
  --brand: #0e7c86;
  --brand-2: #16b3b8;
  --brand-3: #2cd8c2;
  --accent: #ffb547;
  --silver: #b8c3d1;
  --gold: #cfb774;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 18px;
  --shadow-s: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-m: 0 8px 28px rgba(10, 22, 40, 0.10);
  --shadow-l: 0 24px 60px rgba(10, 22, 40, 0.18);
  --font-sans: -apple-system, "PingFang SC", "Source Han Sans", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg-white);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* 顶部窄信息条 */
.topbar {
  background: var(--bg-deep);
  color: var(--silver);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid #00000040;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: var(--brand-3); margin-left: 14px; }

/* 主导航 */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 18px rgba(22,179,184,0.35);
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; color: var(--ink-2);
  font-size: 14.5px; font-weight: 500; transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { background: var(--bg-soft); color: var(--brand); }
.nav-cta { background: var(--brand); color: #fff !important; padding: 10px 18px !important; border-radius: 8px; }
.nav-cta:hover { background: var(--brand-2) !important; color: #fff !important; }

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

/* Hero 商务横条 */
.hero {
  background: linear-gradient(135deg, #0a1628 0%, #0f2138 60%, #14365b 100%);
  color: var(--ink-inv);
  padding: 88px 0 72px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; right: -10%; top: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(44,216,194,0.18) 0%, transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(44,216,194,0.12); color: var(--brand-3);
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
  border: 1px solid rgba(44,216,194,0.3); margin-bottom: 22px;
}
.hero h1 { font-size: 44px; line-height: 1.25; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.5px; }
.hero h1 em { font-style: normal; color: var(--brand-3); }
.hero p.lead { font-size: 17px; color: #b8c3d1; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 8px; font-weight: 600; font-size: 15px; transition: all .2s; }
.btn-primary { background: var(--brand-2); color: #fff; box-shadow: 0 8px 22px rgba(22,179,184,0.35); }
.btn-primary:hover { background: var(--brand-3); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink-inv); border: 1px solid rgba(255,255,255,0.25); }
.btn-ghost:hover { border-color: var(--brand-3); color: var(--brand-3); }
.hero-visual {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 24px; backdrop-filter: blur(8px);
}
.hero-visual img { border-radius: 10px; }

/* 数字横条 */
.stats-bar {
  background: var(--bg-deep);
  color: var(--ink-inv);
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-num { font-size: 38px; font-weight: 700; color: var(--brand-3); letter-spacing: -1px; }
.stat-num span { font-size: 18px; color: var(--silver); margin-left: 4px; }
.stat-label { color: var(--silver); font-size: 13.5px; margin-top: 6px; }

/* 区段 */
.section { padding: 80px 0; }
.section-tinted { background: var(--bg-soft); }
.section-dark { background: var(--bg-deep); color: var(--ink-inv); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-eyebrow { color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.section-head h2 { font-size: 32px; font-weight: 700; margin: 10px 0 14px; letter-spacing: -0.5px; }
.section-dark .section-head h2 { color: #fff; }
.section-head p { color: var(--ink-3); font-size: 15.5px; }

/* 服务卡片网格 */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-l);
  padding: 28px; transition: all .3s; box-shadow: var(--shadow-s);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--brand-2); }
.svc-ico {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(14,124,134,0.1), rgba(44,216,194,0.15));
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: 24px; margin-bottom: 18px;
}
.svc-card h3 { font-size: 18px; margin-bottom: 10px; }
.svc-card p { color: var(--ink-2); font-size: 14.5px; }

/* 流程步骤 */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.flow-step { text-align: center; padding: 26px 16px; background: #fff; border-radius: var(--radius-m); position: relative; border: 1px solid var(--line-soft); }
.flow-num {
  width: 40px; height: 40px; margin: 0 auto 12px;
  background: var(--brand); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.flow-step h4 { font-size: 15px; margin-bottom: 6px; }
.flow-step p { color: var(--ink-3); font-size: 13px; }

/* 案例展示 */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-item {
  background: #fff; border-radius: var(--radius-l); overflow: hidden;
  border: 1px solid var(--line-soft); transition: all .3s;
}
.case-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.case-item img { height: 190px; object-fit: cover; width: 100%; }
.case-body { padding: 22px; }
.case-tag { display: inline-block; padding: 4px 10px; background: rgba(14,124,134,0.08); color: var(--brand); border-radius: 4px; font-size: 12px; font-weight: 600; }
.case-body h3 { font-size: 17px; margin: 10px 0 8px; }
.case-body p { color: var(--ink-3); font-size: 14px; }
.case-meta { margin-top: 14px; font-size: 13px; color: var(--ink-3); display: flex; gap: 14px; }

/* 客户 logo 墙 */
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: center; }
.logo-cell {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 8px;
  padding: 20px 12px; text-align: center; color: var(--ink-3);
  font-weight: 600; font-size: 14px; letter-spacing: 1px;
}

/* 好评 */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.review-card {
  background: #fff; border-radius: var(--radius-m); padding: 24px;
  border: 1px solid var(--line-soft); position: relative;
}
.review-stars { color: var(--accent); font-size: 14px; margin-bottom: 10px; letter-spacing: 2px; }
.review-text { color: var(--ink-2); font-size: 14.5px; margin-bottom: 14px; }
.review-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line-soft); padding-top: 12px; }
.review-meta strong { color: var(--ink); }

/* 服务套餐网格 */
.pkg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pkg-card {
  background: #fff; border-radius: var(--radius-l); overflow: hidden;
  border: 1px solid var(--line-soft); transition: all .3s; cursor: pointer;
}
.pkg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--brand-2); }
.pkg-img { height: 170px; overflow: hidden; }
.pkg-img img { height: 100%; object-fit: cover; transition: transform .4s; width: 100%; }
.pkg-card:hover .pkg-img img { transform: scale(1.06); }
.pkg-body { padding: 20px; }
.pkg-cat { font-size: 12px; color: var(--brand); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.pkg-body h3 { font-size: 16px; margin: 8px 0 8px; line-height: 1.4; }
.pkg-body p { color: var(--ink-3); font-size: 13.5px; min-height: 42px; }
.pkg-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.pkg-price { font-size: 22px; font-weight: 700; color: var(--brand); }
.pkg-price span { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.pkg-btn { padding: 8px 14px; background: var(--brand); color: #fff; border-radius: 6px; font-size: 13px; }

/* 详情页 */
.detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.detail-img-main img { border-radius: var(--radius-l); width: 100%; }
.detail-info h1 { font-size: 28px; margin-bottom: 14px; line-height: 1.3; }
.detail-cat { color: var(--brand); font-weight: 600; font-size: 13px; letter-spacing: 1px; }
.detail-price { font-size: 36px; font-weight: 700; color: var(--brand); margin: 18px 0; }
.detail-list { margin: 22px 0; padding: 0; list-style: none; }
.detail-list li { padding: 9px 0; border-bottom: 1px dashed var(--line-soft); font-size: 14.5px; }
.detail-list li::before { content: '✓'; color: var(--brand-2); font-weight: 700; margin-right: 10px; }

/* 表单 */
.form-card {
  background: #fff; border-radius: var(--radius-l); padding: 32px;
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-s);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  padding: 11px 14px; border: 1px solid var(--line-soft); border-radius: 8px;
  font-family: inherit; font-size: 14.5px; transition: border-color .2s;
  background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--brand-2); }
.form-field textarea { min-height: 100px; resize: vertical; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; cursor: pointer; padding: 10px 16px; border: 1px solid var(--line-soft); border-radius: 8px; transition: all .2s; flex: 1; min-width: 140px; }
.radio-row label:hover { border-color: var(--brand-2); }
.radio-row input[type=radio]:checked + span { color: var(--brand); font-weight: 600; }

/* 时间线 */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--line-soft); }
.tl-item { position: relative; padding-bottom: 28px; }
.tl-item::before { content: ''; position: absolute; left: -28px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand-2); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--brand-2); }
.tl-date { color: var(--brand); font-size: 13px; font-weight: 700; }
.tl-item h4 { margin: 4px 0 6px; font-size: 16px; }
.tl-item p { color: var(--ink-3); font-size: 14px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.about-img img { border-radius: var(--radius-l); }
.qual-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.qual-item { background: var(--bg-soft); padding: 14px 16px; border-radius: 8px; border-left: 3px solid var(--brand); font-size: 14px; }
.qual-item strong { color: var(--brand); display: block; font-size: 13px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.contact-info { background: var(--bg-deep); color: var(--ink-inv); padding: 36px; border-radius: var(--radius-l); }
.contact-info h3 { color: #fff; margin-bottom: 20px; }
.contact-info ul { list-style: none; }
.contact-info li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 14.5px; color: var(--silver); }
.contact-info li strong { display: block; color: var(--brand-3); font-size: 13px; margin-bottom: 4px; }

/* Footer */
.footer { background: #06101e; color: var(--silver); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer h5 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer li { padding: 4px 0; font-size: 13.5px; }
.footer a:hover { color: var(--brand-3); }
.footer-bot {
  border-top: 1px solid #142a47; padding-top: 22px;
  display: flex; justify-content: space-between; font-size: 13px;
  flex-wrap: wrap; gap: 12px;
}
.footer-bot a { color: var(--brand-3); }
.footer-bot a:hover { text-decoration: underline; }

/* 浮动按钮 */
.fab-chat, .fab-top {
  position: fixed; right: 24px; z-index: 200;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; cursor: pointer;
  transition: all .25s; box-shadow: var(--shadow-m);
}
.fab-chat { bottom: 130px; background: var(--brand); }
.fab-chat:hover { background: var(--brand-2); transform: scale(1.08); }
.fab-top { bottom: 36px; background: var(--ink-2); opacity: 0; pointer-events: none; }
.fab-top.show { opacity: 1; pointer-events: auto; }
.fab-top:hover { background: var(--brand); }

/* 聊天面板 */
.chat-panel {
  position: fixed; right: 24px; bottom: 200px; width: 320px;
  background: #fff; border-radius: var(--radius-l);
  box-shadow: var(--shadow-l); z-index: 210; display: none;
  border: 1px solid var(--line-soft); overflow: hidden;
}
.chat-panel.open { display: block; }
.chat-head {
  background: var(--bg-deep); color: #fff; padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.chat-head h4 { font-size: 15px; }
.chat-head .close { color: #fff; font-size: 20px; cursor: pointer; }
.chat-body { padding: 14px; height: 240px; overflow-y: auto; background: var(--bg-soft); }
.chat-msg { background: #fff; padding: 10px 14px; border-radius: 10px; margin-bottom: 10px; font-size: 13.5px; max-width: 85%; box-shadow: var(--shadow-s); }
.chat-msg.user { background: var(--brand); color: #fff; margin-left: auto; }
.chat-input { display: flex; border-top: 1px solid var(--line-soft); }
.chat-input input { flex: 1; padding: 12px 14px; border: 0; outline: 0; font-size: 14px; }
.chat-input button { padding: 0 18px; background: var(--brand); color: #fff; }

/* 滚动渐入 */
.reveal { opacity: 0; transform: translateY(20px); transition: all .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* 响应式 */
@media (max-width: 980px) {
  .hero { padding: 56px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .svc-grid, .case-grid { grid-template-columns: 1fr; }
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .detail-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .section { padding: 50px 0; }
  .section-head h2 { font-size: 24px; }
  .topbar .wrap > div:first-child { display: none; }
  .chat-panel { width: calc(100% - 48px); right: 24px; }
}
@media (max-width: 560px) {
  .pkg-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
