/* 企海 QIHAI 品牌官网 · 深色科技风样式 */
:root {
  --bg: #070a18;
  --bg-2: #0b1023;
  --surface: rgba(255,255,255,.04);
  --surface-2: rgba(255,255,255,.07);
  --line: rgba(148,163,184,.16);
  --line-glow: rgba(139,92,246,.35);
  --primary: #8b7cf6;
  --primary-2: #5b8def;
  --primary-bright: #a78bfa;
  --primary-light: rgba(139,124,246,.14);
  --accent: #38bdf8;
  --brand-red: #f43f5e;
  --ink: #f4f6ff;
  --ink-2: #c4cce8;
  --ink-3: #8f9bc4;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --shadow-glow: 0 0 40px rgba(124,92,246,.18);
  --maxw: 1120px;
  --grad: linear-gradient(120deg, #a855f7 0%, #6366f1 45%, #3b82f6 100%);
  --grad-btn: linear-gradient(100deg, #7c3aed 0%, #4f46e5 50%, #2563eb 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.02em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }
::selection { background: rgba(139,92,246,.4); color: #fff; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; position: relative; }
.section-soft { background: linear-gradient(180deg, rgba(139,92,246,.05), rgba(59,130,246,.03)); }
.section-tint { background: var(--bg-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,10,24,.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-logo { height: 42px; width: auto; display: block; background: #fff; border-radius: 9px; padding: 5px 11px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 18px; font-weight: 800;
}
.brand span { color: var(--primary-bright); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: .95rem; color: var(--ink-2); font-weight: 500; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--primary-bright); }
.nav .mobile-login { display: none; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-size: .95rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 28px rgba(99,102,241,.4); }
.btn-primary:hover { box-shadow: 0 10px 36px rgba(124,58,237,.55); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--line-glow); }
.btn-outline { background: rgba(139,92,246,.08); color: var(--primary-bright); border-color: var(--line-glow); }
.btn-outline:hover { background: var(--grad-btn); color: #fff; border-color: transparent; }
.btn-sm { padding: 9px 18px; font-size: .86rem; }
.btn-light { background: #fff; color: #4f46e5; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 104px 0 88px;
  background: radial-gradient(ellipse 70% 60% at 75% 10%, rgba(124,58,237,.28), transparent 60%),
              radial-gradient(ellipse 55% 50% at 15% 40%, rgba(37,99,235,.22), transparent 65%),
              var(--bg);
}
.hero::before {
  content: ""; position: absolute; top: -200px; right: -140px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(168,85,247,.22), transparent 65%); pointer-events: none;
}
.hero-single { max-width: 820px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero-single .lead { margin-left: auto; margin-right: auto; }
.hero-single .hero-actions { justify-content: center; }
.hero-single .hero-note { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--grad); }
.hero h1 {
  background: linear-gradient(100deg, #ffffff 0%, #ddd6fe 45%, #93c5fd 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(139,92,246,.25);
}
.hero p.lead { font-size: 1.12rem; color: var(--ink-3); max-width: 580px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: .84rem; color: var(--ink-3); }

/* ---------- Section heading ---------- */
.section-head { max-width: 740px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { background: linear-gradient(100deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head p { color: var(--ink-3); font-size: 1.05rem; margin: 0; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head.left .eyebrow { justify-content: flex-start; }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px; margin-top: -40px;
  position: relative; z-index: 2;
  background: linear-gradient(100deg, rgba(30,27,75,.85), rgba(15,23,42,.9));
  border: 1px solid var(--line-glow); border-radius: var(--radius); box-shadow: var(--shadow-glow); backdrop-filter: blur(14px);
}
.stats-strip .stat { text-align: center; }
.stats-strip .stat b { display: block; font-size: 2.3rem; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-strip .stat span { font-size: .88rem; color: var(--ink-3); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  backdrop-filter: blur(10px); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-glow); box-shadow: var(--shadow-glow); }
.card-icon {
  width: 50px; height: 50px; border-radius: 14px; background: var(--grad);
  display: grid; place-items: center; font-size: 23px; margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(124,58,237,.3);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-3); font-size: .95rem; margin: 0; }
.card ul { margin: 14px 0 0; font-size: .92rem; color: var(--ink-3); }

/* Feature split rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 44px 0; }
.feature-row.reverse .feature-media { order: -1; }
.feature-list { list-style: none; padding: 0; margin: 22px 0 0; }
.feature-list li { padding-left: 32px; position: relative; margin-bottom: 14px; }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; color: #fff; background: var(--grad);
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.feature-media {
  background: linear-gradient(145deg, rgba(76,29,149,.25), rgba(30,64,175,.16));
  border: 1px solid var(--line-glow); border-radius: var(--radius);
  padding: 34px; min-height: 268px; box-shadow: var(--shadow-glow);
}
.code-line {
  background: rgba(2,6,23,.55); border: 1px solid var(--line); border-radius: 9px;
  padding: 11px 15px; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .82rem; color: var(--ink-2); margin-bottom: 11px;
}
.code-line .k { color: var(--primary-bright); font-weight: 600; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 20px;
  box-shadow: 0 8px 26px rgba(124,58,237,.35);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-3); font-size: .95rem; }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -22px; top: 28px; color: var(--primary); font-size: 1.5rem; }

/* ---------- Industry cards ---------- */
.industry-card { display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.industry-card .tag { font-size: .74rem; font-weight: 700; color: var(--primary-bright); background: rgba(139,92,246,.14); border: 1px solid var(--line-glow); padding: 4px 11px; border-radius: 999px; align-self: flex-start; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 14px; background: var(--surface); overflow: hidden; transition: border-color .2s; }
.faq-item:hover, .faq-item.open { border-color: var(--line-glow); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 22px 26px;
  font-size: 1.04rem; font-weight: 600; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-q::after { content: "+"; font-size: 1.5rem; color: var(--primary-bright); font-weight: 400; line-height: 1; flex: none; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { display: none; padding: 0 26px 24px; color: var(--ink-3); font-size: .97rem; }
.faq-item.open .faq-a { display: block; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-glow); border-radius: var(--radius); box-shadow: var(--shadow-glow); }
table { width: 100%; border-collapse: collapse; min-width: 620px; background: rgba(11,16,35,.7); }
th, td { padding: 17px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .94rem; }
th { background: rgba(139,92,246,.12); color: var(--ink); font-weight: 700; }
td { color: var(--ink-3); }
tr:last-child td { border-bottom: 0; }
td.check { color: #4ade80; font-weight: 700; }
td.cross { color: #64748b; }

/* ---------- Case card ---------- */
.case-card { border-left: 3px solid var(--primary); }
.case-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.case-meta span { font-size: .76rem; background: rgba(139,92,246,.12); border: 1px solid var(--line); color: var(--primary-bright); padding: 4px 11px; border-radius: 6px; }
.case-result { display: flex; gap: 28px; margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line); }
.case-result div b { display: block; font-size: 1.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.2; }
.case-result div span { font-size: .8rem; color: var(--ink-3); }

/* 真实案例数据看板（客户系统后台数值原样呈现） */
.data-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 34px 0 20px; }
.data-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.data-item b { display: block; font-size: 1.75rem; line-height: 1.25; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.data-item span { display: block; font-size: .82rem; color: var(--ink-3); margin-top: 6px; }
.data-note { font-size: .86rem; color: var(--ink-3); line-height: 1.9; }
.data-scale { margin-top: 26px; border-left: 3px solid var(--primary); }
.data-scale h3 { color: var(--ink); font-size: 1.15rem; margin: 0 0 10px; }
.data-scale p { color: var(--ink-3); font-size: .92rem; line-height: 1.85; margin: 0; }
@media (max-width: 900px) { .data-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .data-grid { grid-template-columns: 1fr; }
  .stats-strip .stat b, .dash-stat b { font-size: 1.55rem; }
  .data-item b { font-size: 1.55rem; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #3b1d7a, #4f46e5 55%, #1d4ed8);
  color: #fff; border-radius: var(--radius); padding: 60px; text-align: center;
  position: relative; overflow: hidden; border: 1px solid rgba(167,139,250,.4); box-shadow: var(--shadow-glow);
}
.cta-band::before { content: ""; position: absolute; top: -100px; left: 20%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(255,255,255,.15), transparent 70%); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto 28px; position: relative; }
.cta-band .btn-light { position: relative; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(124,58,237,.22), transparent 70%), var(--bg);
  padding: 72px 0 48px; border-bottom: 1px solid var(--line);
}
.page-banner h1 { background: linear-gradient(100deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-banner p { color: var(--ink-3); max-width: 720px; font-size: 1.08rem; margin: 0; }
.breadcrumb { font-size: .84rem; color: var(--ink-3); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--primary-bright); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
.contact-info .info-item { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-info .info-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-size: 18px; }
.contact-info h4 { margin: 0 0 2px; font-size: .96rem; }
.contact-info p { margin: 0; color: var(--ink-3); font-size: .92rem; }
.contact-card { background: var(--surface); border: 1px solid var(--line-glow); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-glow); backdrop-filter: blur(12px); }
.contact-card h3 { margin: 0 0 12px; }
.contact-card > p { color: var(--ink-3); font-size: .94rem; line-height: 1.8; margin: 0 0 24px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.contact-way { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-way h4 { margin: 0 0 6px; font-size: .96rem; }
.contact-way p { margin: 0; color: var(--ink-3); font-size: .9rem; line-height: 1.75; }

/* ---------- Footer ---------- */
.site-footer { background: #05070f; border-top: 1px solid var(--line); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.site-footer .brand { color: var(--ink); }
.site-footer .brand-logo { background: #fff; border-radius: 9px; padding: 5px 11px; height: 46px; }
.site-footer .brand-mark { background: var(--grad); }
.footer-col h4 { color: var(--ink); font-size: .96rem; margin-bottom: 20px; }
.footer-col a, .footer-col p { display: block; font-size: .88rem; margin-bottom: 12px; color: var(--ink-3); }
.footer-col a:hover { color: var(--primary-bright); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 26px; text-align: center; font-size: .82rem; color: var(--ink-3); }
.footer-bottom a { color: var(--ink-3); }
.footer-bottom a:hover { color: var(--primary-bright); }

/* ---------- Back to top ---------- */
#toTop {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad-btn); color: #fff; border: 0; cursor: pointer; font-size: 1.2rem;
  box-shadow: 0 8px 28px rgba(124,58,237,.45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 60;
}
#toTop.show { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .feature-row, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse .feature-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0; background: rgba(7,10,24,.98);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav .mobile-login { display: block; color: var(--primary-bright); font-weight: 700; }
  .nav-cta .btn { display: none; }
  .menu-toggle { display: block; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .grid-3, .grid-2, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .stats-strip { padding: 28px 20px; gap: 22px; }
  .cta-band { padding: 40px 24px; }
  .hero { padding: 76px 0 60px; }
  .case-result { gap: 18px; }
}

/* 企业资质背书（深色科技风适配） */
.trust-note { text-align: center; margin: 22px auto 0; font-size: .86rem; color: var(--ink-3); letter-spacing: .2px; }
.company-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 32px 0 4px; }
.company-facts .fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 18px 20px; }
.company-facts .fact span { display: block; font-size: .78rem; color: var(--ink-3); margin-bottom: 8px; letter-spacing: .5px; }
.company-facts .fact b { font-size: .98rem; color: var(--ink); font-weight: 700; line-height: 1.5; }
@media (max-width: 900px) { .company-facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .company-facts { grid-template-columns: 1fr; } .trust-note { font-size: .78rem; } }

/* 电话拨号链接 / 微信视频号二维码 */
.tel-link { color: var(--primary-bright); text-decoration: none; }
.tel-link:hover { text-decoration: underline; }
.qr-grid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; max-width: 900px; margin: 34px auto 0; }
.qr-card { margin: 0; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.qr-card img { display: block; width: 100%; height: auto; border-radius: 8px; }
.qr-card figcaption { color: #475569; font-size: .84rem; text-align: center; margin-top: 12px; }
.qr-note h3 { color: var(--ink); font-size: 1.05rem; margin: 0 0 8px; }
.qr-note p { color: var(--ink-3); font-size: .94rem; margin: 0 0 22px; line-height: 1.8; }
@media (max-width: 900px) { .qr-grid { grid-template-columns: 1fr; max-width: 420px; gap: 26px; } }

/* 合规公示 / 资质证书 / 视频号样片 */
.footer-compliance { margin-top: 9px; font-size: .78rem; color: var(--ink-3); line-height: 1.8; }
.footer-compliance a { color: var(--ink-3); }
.footer-compliance a:hover { color: var(--primary-bright); }
.footer-compliance b { color: var(--ink); font-weight: 600; }
.license-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; align-items: start; }
.license-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.license-card h3 { color: var(--ink); font-size: 1.1rem; margin: 0 0 16px; }
.license-card p { color: var(--ink-3); font-size: .9rem; line-height: 1.75; margin: 0 0 10px; }
.license-card b { color: var(--ink); }
.license-card a { color: var(--primary-bright); }
.license-shot { margin: 18px 0 0; background: #fff; border-radius: 10px; padding: 10px; }
.license-shot img { display: block; width: 100%; height: auto; border-radius: 6px; }
.license-shot figcaption { color: #64748b; font-size: .78rem; text-align: center; margin-top: 9px; }
@media (max-width: 900px) { .license-grid { grid-template-columns: 1fr; } }
