/* ============================================================
 * AI夜市 · 设计系统 (暗色霓虹科技感)
 * 纯静态，无构建依赖；PC / 手机 响应式
 * ============================================================ */

:root {
  --bg-0: #05070f;
  --bg-1: #0a0e1c;
  --bg-2: #11162a;
  --panel: rgba(20, 28, 52, 0.55);
  --panel-solid: #0e1430;
  --line: rgba(120, 160, 255, 0.16);
  --line-strong: rgba(120, 160, 255, 0.34);

  --cyan: #00e5ff;
  --purple: #b14cff;
  --pink: #ff3d8b;
  --amber: #ff8a18;   /* 夜市烟火橙 */
  --green: #2ee6a6;

  --text: #eaf0ff;
  --text-soft: #aab6d8;
  --text-dim: #6f7ba0;

  --glow-cyan: 0 0 24px rgba(0, 229, 255, 0.45);
  --glow-purple: 0 0 24px rgba(177, 76, 255, 0.45);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1240px;

  --font: "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "Consolas", monospace;
}

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

html { scroll-behavior: smooth; }

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

/* 背景：网格 + 光斑 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -5%, rgba(0, 229, 255, 0.14), transparent 60%),
    radial-gradient(800px 600px at 95% 5%, rgba(177, 76, 255, 0.14), transparent 60%),
    radial-gradient(700px 700px at 50% 110%, rgba(255, 138, 24, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, var(--bg-0));
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- 文字/标题 ---------- */
.gradient-text {
  background: linear-gradient(100deg, var(--cyan), var(--purple) 55%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-title { font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; letter-spacing: .5px; }
.section-sub { color: var(--text-soft); margin-top: 12px; font-size: 16px; max-width: 720px; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 13px; letter-spacing: 2px;
  color: var(--cyan); border: 1px solid var(--line-strong); padding: 5px 12px; border-radius: 999px;
  background: rgba(0, 229, 255, 0.06); margin-bottom: 16px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; transition: .25s; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(100deg, var(--cyan), var(--purple));
  color: #05101f; box-shadow: var(--glow-cyan);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(0,229,255,.6); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 7, 15, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: var(--glow-cyan); font-size: 20px;
}
.logo small { display: block; font-size: 11px; color: var(--text-dim); font-weight: 500; letter-spacing: 1px; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--text-soft); font-size: 14.5px; position: relative; padding: 6px 0; white-space: nowrap; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple)); transition: .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); width: 42px; height: 42px; font-size: 20px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 86px 0 70px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 62px); line-height: 1.12; font-weight: 900; letter-spacing: .5px; }
.hero p.lead { color: var(--text-soft); font-size: 18px; margin: 22px 0 28px; max-width: 560px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.hero-tags span {
  font-size: 13px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-soft); background: rgba(255,255,255,.02);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.stat-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 18px;
  background: var(--panel); backdrop-filter: blur(8px);
}
.stat-card b { font-size: 28px; font-family: var(--mono); }
.stat-card span { display: block; color: var(--text-dim); font-size: 13px; margin-top: 4px; }

/* Hero 视觉：霓虹仪表盘 */
.hero-visual {
  position: relative; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, rgba(0,229,255,.06), rgba(177,76,255,.06));
  padding: 26px; min-height: 380px;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 300px at 80% 10%, rgba(0,229,255,.18), transparent 60%);
}
.viz-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.viz-chip { font-size: 12px; color: var(--text-soft); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.viz-live { color: var(--green); font-family: var(--mono); font-size: 12px; }
.viz-live::before { content: "●"; margin-right: 6px; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.25} }
.viz-orbit {
  position: relative; height: 230px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(5,8,18,.5); overflow: hidden;
}
.viz-orbit .ring { position: absolute; inset: 30px; border: 1px dashed rgba(0,229,255,.25); border-radius: 50%; animation: spin 18s linear infinite; }
.viz-orbit .ring.r2 { inset: 60px; border-color: rgba(177,76,255,.25); animation-duration: 26s; animation-direction: reverse; }
.viz-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: linear-gradient(135deg, var(--cyan), var(--purple)); box-shadow: var(--glow-purple);
  font-weight: 800; font-size: 13px; color: #05101f;
}
.viz-node {
  position: absolute; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 20px; background: var(--panel-solid); border: 1px solid var(--line-strong);
  box-shadow: 0 0 18px rgba(0,229,255,.18); animation: float 5s ease-in-out infinite;
}
.viz-bars { display: flex; gap: 8px; align-items: flex-end; height: 60px; margin-top: 18px; }
.viz-bars i { flex: 1; background: linear-gradient(180deg, var(--cyan), transparent); border-radius: 4px 4px 0 0; animation: grow 2.4s ease-in-out infinite; }

/* ---------- 通用区块 ---------- */
.section { padding: 74px 0; }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head .section-sub { margin-left: auto; margin-right: auto; }

/* 卡片网格 */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }

/* FAQ 手风琴 */
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--cyan); font-size: 20px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 20px 18px; color: var(--text-soft); font-size: 14.5px; }
.arch-card { border: 1px solid var(--line-strong); border-radius: 16px; padding: 22px; background: var(--panel); }
.arch-card .ic { font-size: 28px; }
.arch-card h4 { font-size: 17px; margin: 10px 0 12px; }
.arch-card ul li { font-size: 13px; color: var(--text-soft); padding: 5px 0; border-bottom: 1px dashed var(--line); }
.arch-card p { font-size: 12.5px; color: var(--text-dim); margin-top: 12px; }
.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  background: var(--panel); backdrop-filter: blur(8px); transition: .28s; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink)); opacity: 0; transition: .28s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.card:hover::before { opacity: 1; }
.card .ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(135deg, rgba(0,229,255,.16), rgba(177,76,255,.16));
  border: 1px solid var(--line-strong); margin-bottom: 16px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card .cat { font-size: 12px; color: var(--cyan); font-family: var(--mono); letter-spacing: 1px; }
.card p { color: var(--text-soft); font-size: 14.5px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag-list span { font-size: 12px; color: var(--text-soft); border: 1px solid var(--line); padding: 4px 10px; border-radius: 8px; }

/* 痛点 <-> 方案 对照 */
.pain-item { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--panel); margin-bottom: 14px; }
.pain-item .pain { color: var(--text-soft); }
.pain-item .pain b { color: var(--pink); }
.pain-item .arrow { color: var(--cyan); font-size: 22px; }
.pain-item .sol { color: var(--text); }
.pain-item .sol b { color: var(--green); }
.pain-item .from { font-size: 12px; color: var(--text-dim); grid-column: 1 / -1; margin-top: 6px; }

/* 案例 */
.case-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--panel); transition:.28s; }
.case-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.case-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.case-meta .region { font-size: 12px; color: var(--cyan); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.case-meta .type { font-size: 12px; color: var(--text-dim); }
.case-card h3 { font-size: 18px; margin-bottom: 10px; }
.case-card p { color: var(--text-soft); font-size: 14px; }
.case-results { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.case-results span { font-size: 12px; font-family: var(--mono); color: var(--green); border: 1px solid rgba(46,230,166,.3); padding: 4px 10px; border-radius: 8px; background: rgba(46,230,166,.06); }

/* 趋势时间线 */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--purple)); }
.tl-item { position: relative; margin-bottom: 22px; }
.tl-item::before { content: ""; position: absolute; left: -27px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--cyan); box-shadow: var(--glow-cyan); }
.tl-item h4 { font-size: 17px; margin-bottom: 6px; }
.tl-item .t-tag { font-size: 11px; color: var(--purple); font-family: var(--mono); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; margin-left: 8px; }
.tl-item p { color: var(--text-soft); font-size: 14px; }

/* 资讯 */
.news-card { display: grid; grid-template-columns: 92px 1fr; gap: 18px; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; background: var(--panel); transition:.25s; }
.news-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.news-date { font-family: var(--mono); color: var(--cyan); font-size: 13px; text-align: center; align-self: start; }
.news-date b { display: block; font-size: 26px; color: var(--text); }
.news-card h4 { font-size: 16px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.news-cat { font-size: 11px; color: var(--amber); border: 1px solid rgba(255,138,24,.4); padding: 2px 8px; border-radius: 999px; }
.news-hot { font-size: 11px; color: var(--pink); border: 1px solid rgba(255,61,139,.4); padding: 2px 8px; border-radius: 999px; }
.news-card p { color: var(--text-soft); font-size: 13.5px; }

/* 对标优缺表 */
.bench { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--panel); }
.bench h4 { font-size: 17px; margin-bottom: 12px; }
.bench .col { margin-bottom: 12px; }
.bench .col span.label { font-size: 12px; font-weight: 700; }
.bench .col.good .label { color: var(--green); }
.bench .col.bad .label { color: var(--pink); }
.bench ul li { font-size: 13px; color: var(--text-soft); padding-left: 16px; position: relative; margin-top: 4px; }
.bench .col.good li::before { content: "✓"; color: var(--green); position: absolute; left: 0; }
.bench .col.bad li::before { content: "✕"; color: var(--pink); position: absolute; left: 0; }
.bench .lesson { font-size: 13px; color: var(--cyan); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 4px; }

/* CTA */
.cta {
  border: 1px solid var(--line-strong); border-radius: 24px; padding: 48px; text-align: center;
  background: linear-gradient(135deg, rgba(0,229,255,.08), rgba(177,76,255,.08));
  position: relative; overflow: hidden;
}
.cta h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 14px; }
.cta p { color: var(--text-soft); margin-bottom: 26px; }

/* 页脚 */
.site-footer { border-top: 1px solid var(--line); padding: 50px 0 30px; margin-top: 40px; background: rgba(5,8,18,.6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h5 { font-size: 15px; margin-bottom: 16px; color: var(--text); }
.footer-grid a, .footer-grid p { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--cyan); }
.footer-about p { color: var(--text-soft); font-size: 14px; }
.footer-bottom { text-align: center; color: var(--text-dim); font-size: 13px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }

/* 动画 */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }
@keyframes grow { 0%,100%{ transform: scaleY(.5); } 50%{ transform: scaleY(1); } }
.reveal { opacity: 0; transform: translateY(28px); transition: .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1150px) { .nav-cta .btn-ghost { display: none; } }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(8,11,22,.97); border-bottom: 1px solid var(--line); padding: 18px 22px; gap: 14px;
  }
  .menu-toggle { display: block; }
}
@media (max-width: 720px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .pain-item { grid-template-columns: 1fr; }
  .pain-item .arrow { transform: rotate(90deg); justify-self: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 70px 1fr; }
  .cta { padding: 32px 22px; }
  .hero { padding: 56px 0 40px; }
  .section { padding: 54px 0; }
}

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--cyan), var(--purple)); border-radius: 999px; }
