/* ==========================================================
   驻马店论坛 · 一站式数字服务 SPA
   深色科技主题 · 响应式
   ========================================================== */
:root {
  --bg: #0a0e1a;
  --bg-2: #0f1526;
  --bg-3: #161d33;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8ecf6;
  --muted: #8b93a8;
  --primary: #00e5ff;
  --primary-2: #7c4dff;
  --success: #69f0ae;
  --warn: #ffab40;
  --danger: #ff6e40;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --grad: linear-gradient(135deg, #00e5ff, #7c4dff);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { vertical-align: middle; }
input, select, textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
textarea { resize: vertical; }
::placeholder { color: #5a6378; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #061018; box-shadow: 0 6px 20px rgba(0, 229, 255, 0.25); }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(0, 229, 255, 0.4); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 15px 38px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
#siteHeader {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
#siteHeader.scrolled { background: rgba(10, 14, 26, 0.94); border-bottom-color: var(--line); }
.header-inner {
  width: min(1240px, 94%);
  margin: 0 auto;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.logo-icon { flex: none; }
.logo-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
#mainNav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-link.active { color: var(--primary); background: rgba(0, 229, 255, 0.08); }
#hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
#hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s; }
#hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
#navOverlay { position: fixed; inset: 0; background: rgba(5, 8, 16, 0.6); z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
#navOverlay.show { opacity: 1; pointer-events: auto; }

/* ---------- 页面切换 ---------- */
.page { display: none; min-height: 70vh; padding-top: 66px; animation: pageIn 0.35s ease; }
.page.active { display: block; }
.page.leaving { animation: pageOut 0.3s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pageOut { from { opacity: 1; } to { opacity: 0; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 120px 0 60px;
  background:
    radial-gradient(700px 400px at 20% 10%, rgba(0, 229, 255, 0.12), transparent 60%),
    radial-gradient(700px 400px at 80% 20%, rgba(124, 77, 255, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
}
.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--primary);
  border: 1px solid rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.07);
  margin-bottom: 20px;
}
.hero-title { font-size: clamp(34px, 6vw, 58px); font-weight: 800; line-height: 1.2; letter-spacing: 1px; }
.hero-typing { margin: 22px 0 10px; font-size: clamp(16px, 2.6vw, 21px); color: var(--primary); min-height: 32px; }
.cursor { animation: blink 0.8s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { color: var(--muted); font-size: 16px; margin-bottom: 34px; line-height: 1.9; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: min(880px, 90%);
  margin: 60px auto 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}
.stat { text-align: center; }
.stat .num { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--primary); }
.stat .suffix { font-size: 20px; font-weight: 700; color: var(--primary-2); }
.stat p { color: var(--muted); font-size: 14px; margin-top: 4px; }

.page-hero {
  text-align: center;
  padding: 110px 0 50px;
  background:
    radial-gradient(600px 300px at 30% 0%, rgba(0, 229, 255, 0.1), transparent 60%),
    radial-gradient(600px 300px at 70% 10%, rgba(124, 77, 255, 0.1), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.page-hero h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; margin-bottom: 14px; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.tandian-hero {
  background:
    radial-gradient(600px 300px at 30% 0%, rgba(255, 110, 64, 0.14), transparent 60%),
    radial-gradient(600px 300px at 70% 10%, rgba(255, 171, 64, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}

/* ---------- 区块 ---------- */
.section-head { text-align: center; margin: 70px 0 36px; }
.section-head h2 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 8px; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  display: block;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(0, 229, 255, 0.4); box-shadow: var(--shadow); }
.service-card h3 { margin: 16px 0 8px; font-size: 19px; }
.service-card p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.card-link { color: var(--primary); font-size: 14px; font-weight: 600; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.feature-card {
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.feature-card .f-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.price-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-card.featured { border-color: rgba(0, 229, 255, 0.45); box-shadow: 0 0 30px rgba(0, 229, 255, 0.12); }
.price-card h3 { font-size: 18px; }
.price-card .price { font-size: 30px; font-weight: 800; color: var(--primary); }
.price-card .price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.price-card ul { list-style: none; text-align: left; flex: 1; }
.price-card li { color: var(--muted); font-size: 14px; padding: 5px 0 5px 20px; position: relative; }
.price-card li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

.cta-band {
  margin-top: 70px;
  padding: 64px 0;
  text-align: center;
  background:
    radial-gradient(500px 240px at 50% 0%, rgba(0, 229, 255, 0.12), transparent 65%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(22px, 3.4vw, 32px); font-weight: 800; }
.cta-band p { color: var(--muted); margin: 10px 0 26px; }

/* ---------- 案例 ---------- */
.case-filter { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.chip {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  transition: 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.active { background: var(--grad); color: #061018; border-color: transparent; font-weight: 600; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s, box-shadow 0.25s;
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.case-thumb {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(124, 77, 255, 0.12));
  color: var(--primary);
  font-size: 42px;
  font-weight: 800;
}
.case-body { padding: 18px 20px 22px; }
.case-body h3 { font-size: 17px; margin-bottom: 6px; }
.case-body p { color: var(--muted); font-size: 13.5px; }
.case-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--primary);
  background: rgba(0, 229, 255, 0.1);
}

/* ---------- 关于 ---------- */
.about-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; padding: 30px 0 10px; }
.about-text h2 { font-size: 26px; margin-bottom: 18px; }
.about-text p { color: var(--muted); margin-bottom: 14px; }
.about-stats { display: grid; gap: 16px; }
.about-stats .stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: rgba(255, 255, 255, 0.02); }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 30px 0 20px; }
.contact-card {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.contact-card h3 { margin: 14px 0 6px; }
.contact-card p { color: var(--muted); margin-bottom: 14px; word-break: break-all; }

/* ---------- 后台 ---------- */
.admin-login { max-width: 420px; margin: 40px auto; }
.admin-login-card {
  padding: 36px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}
.admin-login-card h2 { margin-bottom: 6px; }
.admin-login-sub { color: var(--muted); margin-bottom: 20px; font-size: 14px; }
.admin-login-card input { text-align: center; margin-bottom: 14px; }
.admin-error { color: var(--danger); font-size: 13px; min-height: 20px; margin-top: 10px; }
.admin-tip { color: #5a6378; font-size: 12px; margin-top: 12px; }
.admin-panel { margin: 30px 0 60px; }
.admin-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.admin-toolbar h3 { font-size: 19px; }
.admin-form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-form input, .admin-form select { width: auto; flex: 1; min-width: 160px; }
.admin-list { display: grid; gap: 12px; }
.admin-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.admin-item-main { flex: 1; }
.admin-item-main h4 { font-size: 15px; margin-bottom: 4px; }
.admin-item-main p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.admin-item .meta { color: #5a6378; font-size: 12px; margin-top: 6px; }
.admin-item-actions { display: flex; gap: 8px; flex: none; }
.admin-empty { color: var(--muted); text-align: center; padding: 40px 0; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 60px 0 30px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 34px; }
.footer-col h4 { font-size: 16px; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; }
.footer-copy { margin-top: 18px; color: #5a6378 !important; font-size: 13px !important; }
.footer-tel { color: var(--primary) !important; font-weight: 600; }

/* ---------- 留资弹窗 ---------- */
.lead-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 8, 16, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}
/* 关键修复：hidden 属性必须能真正隐藏（display:flex 会覆盖 hidden 的 display:none，导致关不掉） */
.lead-modal-overlay[hidden] { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lead-modal {
  position: relative;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px 30px 30px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
.lead-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  transition: 0.2s;
}
.lead-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.12); }
.lead-modal h2 { font-size: 22px; margin-bottom: 4px; }
.lead-service-line { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.lead-service-line span { color: var(--primary); font-weight: 600; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field-error { display: block; color: var(--danger); font-size: 12px; min-height: 16px; margin-top: 4px; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.lead-error { color: var(--danger); font-size: 13px; margin-bottom: 10px; min-height: 18px; text-align: center; }
.lead-success-view { text-align: center; padding: 20px 0 6px; }
.lead-check { margin-bottom: 16px; }
.lead-check-path { stroke-dasharray: 60; stroke-dashoffset: 60; }
.lead-check-path.draw { animation: draw 0.6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lead-qr-tip { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.lead-qr { width: 148px; height: auto; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,229,255,0.18); margin-bottom: 18px; }
.lead-success-view h2 { margin-bottom: 8px; }
.lead-success-view p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

/* ---------- 地区提示 ---------- */
.geo-switch { position: fixed; right: 18px; bottom: 18px; z-index: 80; }

/* ---------- 渐入动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .service-grid, .case-grid, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  #mainNav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 80px 24px 24px;
    background: var(--bg-2);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  #mainNav.open { transform: none; }
  #mainNav .nav-link { width: 100%; padding: 12px 14px; font-size: 16px; }
  #hamburger { display: flex; }
  .header-cta { display: none; }
  .hero { padding: 100px 0 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .about-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .service-grid, .case-grid, .price-grid, .feature-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
