/* ==========================================================================
   谨记刷题 · 官网首页样式（纯本地、无 CDN、无 JS 依赖）
   深蓝渐变 hero + 光斑装饰 + 玻璃面板 + 功能卡片，移动端自适应。
   ========================================================================== */

:root {
  --bg-deep: #061027;
  --bg-deep-2: #0a1a3c;
  --brand: #5b8cff;
  --brand-2: #3567f0;
  --brand-3: #2449cf;
  --cyan: #4ce0d6;
  --ink: #0f1c33;
  --text: #1a2439;
  --text-soft: #66738b;
  --text-on-dark: rgba(226, 236, 255, 0.92);
  --text-on-dark-soft: rgba(196, 212, 240, 0.66);
  --line-dark: rgba(255, 255, 255, 0.1);
  --card: #ffffff;
  --radius-lg: 26px;
  --radius: 18px;
  --grad-brand: linear-gradient(135deg, #6d9bff 0%, #3567f0 52%, #2246c9 100%);
  --shadow-card: 0 30px 60px -32px rgba(9, 24, 58, 0.32), 0 6px 18px -10px rgba(9, 24, 58, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, p, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

.landing {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 14% -8%, rgba(84, 138, 255, 0.34), transparent 64%),
    radial-gradient(880px 520px at 92% 6%, rgba(76, 224, 214, 0.14), transparent 60%),
    radial-gradient(760px 520px at 84% 78%, rgba(123, 97, 255, 0.16), transparent 62%),
    linear-gradient(165deg, #071228 0%, #081730 46%, #050d20 100%);
  color: var(--text-on-dark);
}

/* ---------- 背景网格与光斑 ---------- */

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(900px 560px at 50% 0%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 560px at 50% 0%, #000 10%, transparent 78%);
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  animation: float 16s ease-in-out infinite;
}

.glow-a {
  width: 520px;
  height: 520px;
  left: -180px;
  top: -160px;
  background: radial-gradient(circle at 36% 34%, rgba(109, 155, 255, 0.5), transparent 68%);
}

.glow-b {
  width: 620px;
  height: 620px;
  right: -240px;
  top: -220px;
  background: radial-gradient(circle at 42% 40%, rgba(76, 224, 214, 0.22), transparent 66%);
  animation-delay: -5s;
}

.glow-c {
  width: 560px;
  height: 560px;
  left: 34%;
  bottom: -300px;
  background: radial-gradient(circle at 50% 50%, rgba(123, 97, 255, 0.22), transparent 66%);
  animation-delay: -9s;
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(16px, -20px, 0); }
}

/* ---------- 顶部导航 ---------- */

.site-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 32px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-brand);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 14px 28px -14px rgba(91, 140, 255, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.nav-logo.small {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 17px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.32;
}

.nav-brand-text b {
  font-size: 17px;
  letter-spacing: 1.6px;
  color: #f2f7ff;
}

.nav-brand-text small {
  color: var(--text-on-dark-soft);
  font-size: 11px;
  letter-spacing: 0.6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--text-on-dark-soft);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(122, 160, 255, 0.12);
}

.nav-link-strong {
  color: #fff !important;
  border-color: rgba(122, 160, 255, 0.32) !important;
  background: rgba(91, 140, 255, 0.16);
}

.nav-link-ghost {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(122, 160, 255, 0.28);
  background: rgba(91, 140, 255, 0.12);
  color: #b9cdf7;
  font-size: 11px;
  letter-spacing: 2.4px;
  font-weight: 600;
}

.hero h1 {
  margin: 22px 0 12px;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: 8px;
  font-weight: 800;
  color: #f6f9ff;
  text-shadow: 0 26px 60px rgba(64, 116, 235, 0.45);
}

.hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: 3px;
  color: #b9cdf7;
  font-weight: 600;
}

.hero-desc {
  max-width: 560px;
  margin: 22px 0 30px;
  color: var(--text-on-dark-soft);
  font-size: 14.5px;
  line-height: 1.9;
  letter-spacing: 0.3px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 22px 40px -18px rgba(91, 140, 255, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 30px 52px -20px rgba(91, 140, 255, 1);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #e6eeff;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: rgba(122, 160, 255, 0.42);
  background: rgba(91, 140, 255, 0.14);
}

.btn-arrow {
  font-size: 17px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ce0d6;
  box-shadow: 0 0 0 0 rgba(76, 224, 214, 0.5);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(76, 224, 214, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(76, 224, 214, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 224, 214, 0); }
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
  color: var(--text-on-dark-soft);
  font-size: 12px;
  letter-spacing: 0.6px;
}

.hero-tags li {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

/* ---------- Hero 右侧玻璃面板 ---------- */

.hero-visual {
  position: relative;
}

.glass-panel {
  position: relative;
  z-index: 2;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  box-shadow: 0 40px 80px -34px rgba(3, 10, 26, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(140%);
  animation: panel-in 0.6s cubic-bezier(0.22, 0.8, 0.32, 1);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ce0d6;
  box-shadow: 0 0 12px rgba(76, 224, 214, 0.8);
}

.panel-title {
  color: #eaf1ff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.panel-badge {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(76, 224, 214, 0.14);
  border: 1px solid rgba(76, 224, 214, 0.3);
  color: #8ff0e8;
  font-size: 10.5px;
  letter-spacing: 0.6px;
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.panel-stat {
  padding: 14px 12px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  text-align: center;
}

.panel-stat b {
  display: block;
  font-size: 23px;
  font-weight: 700;
  color: #f4f8ff;
  letter-spacing: 0.5px;
}

.panel-stat span {
  display: block;
  margin-top: 4px;
  color: var(--text-on-dark-soft);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.panel-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 12, 30, 0.4);
}

.chart-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--text-on-dark-soft);
}

.chart-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.chart-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4ce0d6, #6d9bff);
  box-shadow: 0 0 12px rgba(109, 155, 255, 0.6);
}

.chart-value {
  text-align: right;
  color: #b9cdf7;
  font-weight: 600;
}

.panel-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.panel-chip {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-on-dark-soft);
  font-size: 10.5px;
  letter-spacing: 0.4px;
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 23, 48, 0.82);
  box-shadow: 0 24px 48px -24px rgba(2, 8, 20, 0.9);
  backdrop-filter: blur(12px);
  animation: float 9s ease-in-out infinite;
}

.floating-card b {
  display: block;
  color: #f1f6ff;
  font-size: 12.5px;
  letter-spacing: 0.5px;
}

.floating-card small {
  color: var(--text-on-dark-soft);
  font-size: 10.5px;
  letter-spacing: 0.3px;
}

.floating-icon {
  font-size: 20px;
}

.floating-a {
  right: -14px;
  top: -26px;
  animation-delay: -2s;
}

.floating-b {
  left: -26px;
  bottom: -24px;
  animation-delay: -6s;
}

/* ---------- 功能特性 ---------- */

.features,
.usage,
.cta {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.features {
  padding-top: 30px;
  padding-bottom: 70px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 16px 0 12px;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: 1.2px;
  color: #f4f8ff;
  font-weight: 800;
}

.section-head p {
  color: var(--text-on-dark-soft);
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.3px;
}

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

.feature-card {
  padding: 26px 22px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  box-shadow: 0 22px 44px -30px rgba(2, 8, 20, 0.9);
  backdrop-filter: blur(10px);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(122, 160, 255, 0.4);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow: 0 36px 60px -30px rgba(2, 8, 20, 1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 14px 26px -18px rgba(2, 8, 20, 0.9);
}

.icon-blue { background: linear-gradient(135deg, #6d9bff, #3567f0); }
.icon-green { background: linear-gradient(135deg, #4ce0d6, #16a979); }
.icon-orange { background: linear-gradient(135deg, #ffc46b, #ff8a3d); }
.icon-purple { background: linear-gradient(135deg, #a995ff, #6c4cf0); }

.feature-card h3 {
  margin-bottom: 9px;
  font-size: 16px;
  letter-spacing: 0.6px;
  color: #f1f6ff;
}

.feature-card p {
  color: var(--text-on-dark-soft);
  font-size: 12.8px;
  line-height: 1.85;
  letter-spacing: 0.2px;
}

/* ---------- 使用方法 ---------- */

.usage {
  padding-bottom: 78px;
}

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

.step-card {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
}

.step-no {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #8fb2ff;
}

.step-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
  color: #f1f6ff;
  letter-spacing: 0.5px;
}

.step-card p {
  color: var(--text-on-dark-soft);
  font-size: 12.8px;
  line-height: 1.85;
}

/* ---------- 管理员入口 CTA ---------- */

.cta {
  padding-bottom: 80px;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 34px 38px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(122, 160, 255, 0.26);
  background:
    radial-gradient(620px 260px at 8% 20%, rgba(91, 140, 255, 0.26), transparent 70%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  box-shadow: 0 34px 64px -34px rgba(2, 8, 20, 0.9);
  backdrop-filter: blur(14px);
}

.cta-text h2 {
  margin-bottom: 8px;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: 1px;
  color: #f4f8ff;
}

.cta-text p {
  color: var(--text-on-dark-soft);
  font-size: 13px;
  letter-spacing: 0.2px;
}

/* ---------- 页脚 ---------- */

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 9, 22, 0.55);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 38px 32px 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px 40px;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand b {
  display: block;
  color: #e9f1ff;
  font-size: 15px;
  letter-spacing: 1.4px;
}

.footer-brand small {
  color: var(--text-on-dark-soft);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-size: 12.5px;
}

.footer-links a {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark-soft);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.footer-links a:hover {
  color: #fff;
  border-color: rgba(122, 160, 255, 0.42);
  background: rgba(91, 140, 255, 0.12);
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(170, 188, 218, 0.5);
  font-size: 11.5px;
  letter-spacing: 0.4px;
  line-height: 1.8;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 46px;
    padding-top: 44px;
    padding-bottom: 60px;
  }

  .hero-visual {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    width: 100%;
    gap: 6px;
  }

  .nav-links a {
    padding: 8px 12px;
    font-size: 12.5px;
  }

  .hero {
    padding: 36px 20px 52px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 52px);
    letter-spacing: 5px;
  }

  .hero-desc {
    font-size: 13.5px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    height: 50px;
  }

  .floating-card {
    display: none;
  }

  .glass-panel {
    padding: 18px;
  }

  .panel-stats {
    gap: 8px;
  }

  .features,
  .usage,
  .cta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .feature-grid,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-inner {
    padding: 26px 22px;
  }

  .footer-inner {
    padding: 28px 20px 34px;
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-links {
    justify-content: flex-start;
  }

  .chart-row {
    grid-template-columns: 74px minmax(0, 1fr) 34px;
    font-size: 10.5px;
  }
}

/* ICP 备案号展示 */
.footer-icp {
  margin-top: 8px;
}
.footer-icp a {
  color: inherit;
  text-decoration: none;
  opacity: .85;
}
.footer-icp a:hover {
  opacity: 1;
  text-decoration: underline;
}
