/* ============================================================
   红析 AI · 共享样式
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cyan: #00f0ff;
  --purple: #b16bff;
  --pink: #ff4d8d;
  --bg: #050714;
  --bg-2: #0a0e22;
  --text: #e7ecff;
  --muted: #9aa6d0;
  --line: rgba(255,255,255,.08);
}

html, body {
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ====== 背景：粒子 + 网格 + 扫描线 ====== */
#particle-canvas { position: fixed; inset: 0; z-index: 0; }

.grid-floor {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 40vh; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,240,255,.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,.3) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  animation: grid-move 6s linear infinite;
}
@keyframes grid-move { from{background-position:0 0} to{background-position:0 60px} }

.scan-line {
  position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 4;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
  box-shadow: 0 0 20px var(--cyan);
  animation: scan 6s ease-in-out infinite;
}
@keyframes scan {
  0%,100% { transform: translateY(0); opacity: .8; }
  50%     { transform: translateY(100vh); opacity: .3; }
}

/* ====== 容器 ====== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 5; }

/* ====== 顶部导航 ====== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,7,20,.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; max-width: 1200px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 1px; font-size: 17px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: conic-gradient(from 0deg, var(--cyan), var(--purple), var(--pink), var(--cyan));
  display: grid; place-items: center;
  box-shadow: 0 0 18px rgba(0,240,255,.6);
  animation: spin 6s linear infinite;
  color: #050714; font-size: 13px; font-weight: 900;
}
@keyframes spin { to { transform: rotate(360deg); } }
.logo small { color: var(--muted); font-weight: 400; font-size: 11px; letter-spacing: 2px; }

.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: 14px; position: relative; transition: color .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--cyan); transition: width .3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  padding: 8px 18px; border-radius: 8px;
  background: linear-gradient(120deg, var(--cyan), var(--purple));
  color: #050714 !important; font-weight: 700; font-size: 13px;
  box-shadow: 0 0 16px rgba(0,240,255,.4);
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); }

.menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }

/* ====== 通用区块 ====== */
.section { padding: 80px 0; position: relative; z-index: 5; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-tag {
  display: inline-block; font-size: 12px; letter-spacing: 3px; color: var(--cyan);
  padding: 5px 14px; border: 1px solid rgba(0,240,255,.3); border-radius: 999px;
  background: rgba(0,240,255,.06); margin-bottom: 18px;
}
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: 1px; }
.section-title .grad {
  background: linear-gradient(120deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-sub { color: var(--muted); margin-top: 14px; font-size: 15px; }

/* ====== Hero ====== */
.hero {
  position: relative; z-index: 5;
  min-height: 80vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 999px;
  background: rgba(0,240,255,.08); border: 1px solid rgba(0,240,255,.35);
  font-size: 13px; color: var(--cyan); letter-spacing: 1px; margin-bottom: 30px;
  animation: float 3s ease-in-out infinite;
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan); animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

.hero-title {
  font-size: clamp(40px, 8vw, 96px); font-weight: 900; line-height: 1.08; letter-spacing: 3px;
  background: linear-gradient(120deg, #fff 10%, var(--cyan) 40%, var(--purple) 70%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.hero-sub {
  margin-top: 24px; font-size: clamp(15px, 2vw, 19px); color: var(--muted);
  letter-spacing: 1px; max-width: 680px;
}
.hero-sub .cursor {
  display: inline-block; width: 8px; height: 18px; background: var(--cyan);
  margin-left: 3px; vertical-align: middle; animation: blink .8s steps(2) infinite;
  box-shadow: 0 0 8px var(--cyan);
}
@keyframes blink { 50% { opacity: 0; } }

.cta-group { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ====== 按钮 ====== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 32px; border-radius: 10px; cursor: pointer;
  font-size: 15px; letter-spacing: 1px; transition: all .3s; border: none;
}
.btn-primary {
  background: linear-gradient(120deg, var(--cyan), var(--purple));
  color: #050714; font-weight: 700; box-shadow: 0 0 24px rgba(0,240,255,.5);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 40px rgba(177,107,255,.8); }
.btn-ghost {
  background: rgba(255,255,255,.04); color: var(--text);
  border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ====== 卡片网格 ====== */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.card {
  position: relative; padding: 28px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(0,240,255,.18);
  backdrop-filter: blur(10px);
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.card:hover {
  transform: translateY(-8px); border-color: rgba(0,240,255,.5);
  box-shadow: 0 16px 50px rgba(0,240,255,.18);
}
.card-icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 18px;
  background: rgba(0,240,255,.12); border: 1px solid rgba(0,240,255,.3);
}
.card h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.card p { font-size: 13.5px; color: var(--muted); }

/* ====== 数据统计条 ====== */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.stat {
  text-align: center; padding: 26px 16px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
}
.stat-num {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  background: linear-gradient(120deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ====== 定价 ====== */
.price-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px; align-items: stretch;
}
.price-card {
  position: relative; padding: 34px 28px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .35s, border-color .35s;
}
.price-card.featured {
  border-color: var(--cyan);
  box-shadow: 0 0 40px rgba(0,240,255,.18);
  transform: scale(1.02);
}
.price-card:hover { transform: translateY(-6px); border-color: rgba(0,240,255,.5); }
.price-card.featured:hover { transform: scale(1.02) translateY(-6px); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(120deg, var(--cyan), var(--purple));
  color: #050714; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px;
}
.price-name { font-size: 18px; font-weight: 700; }
.price-desc { color: var(--muted); font-size: 13px; margin-top: 4px; }
.price-amount { font-size: 42px; font-weight: 900; margin: 18px 0 4px; }
.price-amount small { font-size: 15px; color: var(--muted); font-weight: 400; }
.price-features { list-style: none; margin: 20px 0; flex: 1; }
.price-features li {
  padding: 9px 0; font-size: 14px; color: var(--muted);
  border-bottom: 1px dashed var(--line);
}
.price-features li::before { content: "✓ "; color: var(--cyan); font-weight: 700; }
.price-card .btn { width: 100%; justify-content: center; }

/* ====== 步骤 ====== */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px; counter-reset: step;
}
.step {
  position: relative; padding: 30px 24px; border-radius: 16px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 18px; right: 22px;
  font-size: 42px; font-weight: 900; opacity: .15;
  background: linear-gradient(120deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 13.5px; }

/* ====== 通用正文（政策/条款页用） ====== */
.doc { padding: 70px 0; }
.doc-box {
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  border-radius: 18px; padding: 44px;
}
.doc-box h1 { font-size: 30px; margin-bottom: 6px; }
.doc-box .updated { color: var(--muted); font-size: 13px; margin-bottom: 30px; }
.doc-box h2 {
  font-size: 19px; margin: 30px 0 12px; padding-left: 12px;
  border-left: 3px solid var(--cyan);
}
.doc-box p, .doc-box li { color: #c4cbe8; font-size: 14.5px; line-height: 1.9; }
.doc-box ul { padding-left: 22px; margin: 10px 0; }
.doc-box ol { padding-left: 22px; margin: 10px 0; }

/* ====== 联系页 ====== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
}
.contact-card {
  padding: 30px; border-radius: 16px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
}
.contact-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: none; }
.contact-item .ic { font-size: 22px; }
.contact-item .k { color: var(--muted); font-size: 12px; }
.contact-item .v { font-size: 15px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  color: var(--text); font-size: 14px; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--cyan); }

/* ====== 案例页 ====== */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.case-card {
  border-radius: 16px; overflow: hidden;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  transition: transform .35s, border-color .35s;
}
.case-card:hover { transform: translateY(-6px); border-color: rgba(0,240,255,.4); }
.case-cover {
  height: 140px; display: grid; place-items: center; font-size: 40px;
  background: linear-gradient(135deg, rgba(0,240,255,.2), rgba(177,107,255,.2));
}
.case-body { padding: 22px; }
.case-body h3 { font-size: 17px; margin-bottom: 8px; }
.case-body p { color: var(--muted); font-size: 13.5px; }
.case-tags { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.case-tags span {
  font-size: 11px; padding: 3px 10px; border-radius: 999px;
  background: rgba(0,240,255,.1); color: var(--cyan); border: 1px solid rgba(0,240,255,.25);
}

/* ====== FAQ ====== */
.faq-item {
  padding: 20px; border-radius: 12px; margin-bottom: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
}
.faq-item h3 { font-size: 15px; margin-bottom: 8px; color: var(--cyan); }
.faq-item p { color: var(--muted); font-size: 13.5px; }

/* ====== 页脚 ====== */
.footer {
  position: relative; z-index: 5;
  border-top: 1px solid var(--line);
  background: rgba(5,7,20,.6); backdrop-filter: blur(8px);
  padding: 50px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.footer-brand p { color: var(--muted); font-size: 13px; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: 14px; margin-bottom: 14px; color: #fff; }
.footer-col a { display: block; color: var(--muted); font-size: 13px; padding: 5px 0; transition: color .3s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1200px; margin: 30px auto 0; padding: 22px 24px 0;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: #6b76a0; font-size: 13px; }
.icp {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: #8a93bd; transition: color .3s;
}
.icp:hover { color: var(--cyan); }
.icp::before { content: "🛡"; }

/* ====== 渐入动画 ====== */
.reveal { opacity: 0; transform: translateY(30px); transition: all .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ====== 响应式 ====== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(5,7,20,.97); padding: 20px; gap: 16px; border-bottom: 1px solid var(--line);
  }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .doc-box { padding: 26px; }
}
