/* ==========================================================================
   八角科技 · 官网样式
   纯静态站点，无构建依赖。改色只需修改下面的 :root 变量。
   ========================================================================== */

:root {
  --brand: #2b5cff;
  --brand-dark: #1b3fc9;
  --brand-soft: #eef3ff;
  --brand-2: #7b3ff2;
  --accent: #00b894;
  --warn: #ff7a18;

  --ink: #0e1526;
  --ink-2: #38425a;
  --muted: #6b7688;
  --line: #e6eaf2;
  --line-soft: #f0f3f9;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-dark: #0b1020;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14, 21, 38, .06), 0 4px 14px rgba(14, 21, 38, .05);
  --shadow: 0 10px 30px rgba(14, 21, 38, .08);
  --shadow-lg: 0 24px 60px rgba(14, 21, 38, .12);
  --maxw: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.4vw, 50px); }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
p { margin: 0 0 1em; color: var(--ink-2); }
ul, ol { color: var(--ink-2); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255, 255, 255, .74); }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--bg-dark); color: rgba(255, 255, 255, .78); font-size: 13px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar strong { color: #fff; }
.topbar .tb-right { display: flex; gap: 18px; align-items: center; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 19px; letter-spacing: -.02em; }
.logo img { width: 32px; height: 32px; }
.logo span small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .06em; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink-2);
  font-size: 15px; font-weight: 500;
}
.nav a:hover { background: var(--brand-soft); color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 700; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-tel { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .18s ease; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px rgba(43, 92, 255, .26); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(43, 92, 255, .34); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-light:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- 首页主视觉 ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(123, 63, 242, .16), transparent 60%),
    radial-gradient(700px 400px at 8% 0%, rgba(43, 92, 255, .14), transparent 62%),
    linear-gradient(180deg, #f7f9ff, #fff 62%);
  padding: 66px 0 74px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  color: var(--brand); font-weight: 600; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 17px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }

/* ---------- 通用板块元素 ---------- */
.section-head { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { font-size: 16px; margin-bottom: 0; }
.kicker { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm); transition: .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9e2f5; }
.card h3 { margin-bottom: 10px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .num { font-weight: 800; color: var(--brand); opacity: .5; font-size: 14px; letter-spacing: .1em; }
.card ul { padding-left: 20px; margin: 12px 0 16px; }
.card li { margin-bottom: 6px; }

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.stat b { display: block; font-size: 28px; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 14px; }

.steps { counter-reset: s; display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 8px; }
.step .idx {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 18px; }
.step p { font-size: 15px; margin: 0; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 15px; height: 15px; border-radius: 50%;
  background: var(--brand-soft); border: 1px solid #c9d8ff;
}
.checklist li::after {
  content: ""; position: absolute; left: 5px; top: .95em; width: 5px; height: 2px; background: var(--brand);
  box-shadow: 3px -3px 0 0 var(--brand); transform: rotate(-45deg);
}

.industry {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-soft); padding: 26px; min-height: 210px; display: flex; flex-direction: column;
}
.industry .tag { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .08em; }
.industry h3 { margin-top: 8px; }
.industry p { font-size: 15px; }

.cta-band {
  background: linear-gradient(135deg, #12203f, #1b2c5c 55%, #2b1f52);
  color: #fff; border-radius: var(--radius-lg); padding: 44px; display: grid;
  grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .78); margin-bottom: 0; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; }
thead th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
tbody tr:hover td { background: #fafbff; }
td:first-child, th:first-child { font-weight: 600; color: var(--ink); }

/* ---------- 价格卡 ---------- */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card .plan { font-size: 20px; font-weight: 800; }
.price-card .desc { font-size: 14px; color: var(--muted); min-height: 42px; }
.price-card .amount { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; }
.price-card .amount small { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-card .orig { color: var(--muted); font-size: 13px; text-decoration: line-through; }
.price-card .feat { margin: 18px 0 22px; }
.price-card .feat li { font-size: 14.5px; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.badge-rec {
  position: absolute; top: -13px; left: 26px; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}

/* ---------- 表单 ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(43, 92, 255, .25); border-color: var(--brand); }
.field textarea { min-height: 96px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.form-ok {
  background: #eafaf3; border: 1px solid #b6ebd3; color: #0b6b4c; border-radius: 12px; padding: 14px 16px; font-size: 14.5px;
}

/* ---------- 文章 ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article h2 { margin-top: 44px; font-size: 26px; }
.article h3 { margin-top: 30px; font-size: 19px; }
.article p, .article li { font-size: 16.5px; line-height: 1.9; color: #2c3448; }
.article ul, .article ol { padding-left: 22px; }
.article blockquote {
  margin: 22px 0; padding: 16px 20px; background: var(--brand-soft); border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0; color: var(--ink-2);
}
.article table { font-size: 15px; }
.article .meta { color: var(--muted); font-size: 14px; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; padding: 0; list-style: none; }
.article-tags li { background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 4px 10px; border-radius: 999px; }

.breadcrumb { font-size: 13.5px; color: var(--muted); padding: 18px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #c3cbd9; }

.page-head { padding: 40px 0 30px; background: linear-gradient(180deg, #f7f9ff, #fff); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 12px; }
.page-head p { max-width: 780px; font-size: 17px; margin-bottom: 0; }

.post-list { display: grid; gap: 20px; }
.post-item {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm);
}
.post-item img { border-radius: 12px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-item h3 { margin-bottom: 8px; font-size: 19px; }
.post-item h3 a { color: var(--ink); }
.post-item h3 a:hover { color: var(--brand); }
.post-item p { font-size: 15px; margin-bottom: 8px; }
.post-item time { font-size: 13px; color: var(--muted); }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; font-size: 15px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255, 255, 255, .68); padding: 58px 0 26px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 255, 255, .68); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer .logo small { color: rgba(255, 255, 255, .55); }
.footer-qr { width: 116px; border-radius: 10px; background: #fff; padding: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 38px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, .5);
}

/* ---------- 悬浮咨询 ---------- */
.fab { position: fixed; right: 18px; bottom: 22px; z-index: 80; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab-btn {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 12px 26px rgba(43, 92, 255, .34);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; line-height: 1.15; text-align: center;
}
.fab-btn.gray { background: #fff; color: var(--ink-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.fab-panel {
  display: none; width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 18px; text-align: center;
}
.fab-panel.open { display: block; }
.fab-panel img { width: 170px; margin: 0 auto 10px; border-radius: 10px; }
.fab-panel b { display: block; }
.fab-panel .wx { color: var(--brand); font-weight: 700; font-variant-numeric: tabular-nums; }
.fab-panel p { font-size: 13px; margin: 8px 0 0; }

/* 移动端底部转化条 */
.mobile-bar { display: none; }

/* ---------- 滚动出现动画 ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 34px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    display: none; padding: 10px 20px 18px; box-shadow: var(--shadow);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { padding: 12px; }
  .header-cta .header-tel { display: none; }
  .site-header .container { gap: 12px; }
  .section { padding: 58px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .post-item { grid-template-columns: 1fr; }
  .post-item img { aspect-ratio: 16/9; }
  .form-row { grid-template-columns: 1fr; }
  .topbar .tb-right { display: none; }
  .btn { width: 100%; }
  .hero-actions .btn, .cta-band .btn { width: 100%; }
  .hero-actions, .cta-band .btn { display: flex; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); padding: 9px 12px; z-index: 90;
    backdrop-filter: blur(8px);
  }
  .mobile-bar .btn { padding: 11px; font-size: 14.5px; }
  body { padding-bottom: 66px; }
  .fab { bottom: 84px; right: 12px; }
}

@media (max-width: 520px) {
  .grid-4, .steps, .stat-band, .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .cta-band { padding: 26px; }
}
