:root {
  --primary: #2f6bff;
  --primary-dark: #1f56e0;
  --accent: #06b6d4;
  --bg: #ffffff;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(17, 24, 39, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { opacity: 0.85; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 导航栏 */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.brand .logo {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, #4f8bff, var(--primary));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px;
}

/* 站名扫光效果 */
.brand-name { display: inline-block; white-space: nowrap; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand-name {
    background-image: linear-gradient(90deg,
      #2f6bff 0%, #2f6bff 36%,
      #cfe0ff 50%,
      #2f6bff 64%, #2f6bff 100%);
    background-size: 200% 100%;
    background-position: 100% 50%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: brand-shine 3.4s linear infinite;
  }
}
/* 位移范围必须保持在 0% ~ 100%：渐变图宽为元素 2 倍，
   超出该范围会让文字区域失去背景而整体不可见 */
@keyframes brand-shine {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-name { animation: none; }
}

.nav-links { display: flex; gap: 30px; align-items: center; justify-content: center; }
.nav-links a { color: #4a5058; font-weight: 400; font-size: 14px; }
.nav-links a:hover { color: var(--primary); opacity: 1; }
.nav-links a.active { color: var(--primary); font-weight: 500; }
.nav-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.nav-actions .btn { white-space: nowrap; }
.nav-user { white-space: nowrap; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: all .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: #eff6ff; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f1c3f 0%, #1e3a8a 50%, #0e7490 100%);
  color: #fff;
  padding: 90px 0 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.08), transparent 40%);
}
.hero h1 { font-size: 44px; font-weight: 800; margin-bottom: 18px; position: relative; z-index: 1; }
.hero p { font-size: 18px; color: #cbd5e1; max-width: 640px; margin: 0 auto 34px; position: relative; z-index: 1; }
.hero .badge-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.hero .badge {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: 8px 16px; border-radius: 999px; font-size: 14px;
}

/* 分区 */
.section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.section-title p { color: var(--muted); font-size: 16px; }

/* 特性卡片 */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.feature .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: #eff6ff; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; }

/* 套餐卡片 */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.price-card {
  background: var(--card); border-radius: var(--radius); padding: 30px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  position: relative; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(17,24,39,.12); }
.price-card.featured { border: 2px solid var(--primary); }
.price-card .tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 4px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.price-card h3 { font-size: 20px; margin-bottom: 6px; }
.price-card .desc { color: var(--muted); font-size: 13px; margin-bottom: 20px; min-height: 40px; }
.price-card .price { font-size: 36px; font-weight: 800; color: var(--primary); }
.price-card .price span { font-size: 15px; color: var(--muted); font-weight: 500; }
.specs { list-style: none; margin: 22px 0; flex: 1; }
.specs li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; display: flex; justify-content: space-between; }
.specs li span:last-child { font-weight: 600; }

/* 卡片通用 */
.card {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}

/* 表单 */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 14px; transition: border-color .2s;
  background: #fff;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* 提示 */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
th { background: #f9fafb; font-weight: 600; color: var(--muted); white-space: nowrap; }
tr:hover td { background: #fafbfc; }

/* 徽章 */
.badge-status {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.badge-success { background: #ecfdf5; color: #065f46; }
.badge-danger { background: #fef2f2; color: #991b1b; }
.badge-warning { background: #fffbeb; color: #92400e; }
.badge-info { background: #eff6ff; color: #1e40af; }
.badge-muted { background: #f3f4f6; color: #4b5563; }

/* 页脚 */
.footer { background: #fff; color: #8a9099; padding: 46px 0 26px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer h4 { color: #1f2329; margin-bottom: 14px; font-size: 15px; }
.footer a { color: #8a9099; display: block; margin-bottom: 8px; font-size: 13.5px; }
.footer a:hover { color: var(--primary); opacity: 1; }
.footer .copyright { text-align: center; border-top: 1px solid var(--border); margin-top: 30px; padding-top: 20px; font-size: 13px; color: #9aa1ab; }

/* 认证页 */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f1c3f, #1e3a8a, #0e7490);
  padding: 40px 20px;
}
.auth-card { background: #fff; border-radius: 18px; padding: 40px; width: 100%; max-width: 420px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.auth-card h2 { text-align: center; margin-bottom: 8px; font-size: 24px; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 28px; font-size: 14px; }

/* 面包屑 */
.page-head { padding: 40px 0 24px; }
.page-head h1 { font-size: 28px; font-weight: 800; }
.page-head p { color: var(--muted); }

/* 统计 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.stat {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-size: 28px; font-weight: 800; margin-top: 6px; }
.stat .value .unit { font-size: 15px; color: var(--muted); font-weight: 500; }

/* 网格工具 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* ============ 首页（浅色版） ============ */
.hero-light {
  background: #e8f1fe;
  text-align: center;
  padding: 58px 0 96px;
}
.hero-badge {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}
.hero-light h1 {
  font-size: 44px;
  font-weight: 800;
  color: #1f2329;
  line-height: 1.34;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

/* Hero 标题打字动画 */
.hero-title { min-height: 2.7em; }
.hero-title .typed-line { white-space: pre-wrap; }
.hero-title .caret {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 5px;
  vertical-align: -0.12em;
  background: var(--primary);
  border-radius: 2px;
  animation: caret-blink 1s steps(1, end) infinite;
}
@keyframes caret-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
/* 浏览器启用 JS 时先隐藏原文，避免打字前闪现 */
.js .hero-title .typed-line,
.js .hero-title .caret { visibility: hidden; }
.js.typing .hero-title .typed-line,
.js.typing .hero-title .caret { visibility: visible; }

.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-btns .btn { padding: 11px 30px; border-radius: 8px; font-size: 14.5px; }
.btn-white { background: #fff; color: #1f2329; border-color: #dfe3e8; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.btn-white:hover { color: var(--primary); border-color: #c7d7fe; }

/* 数据条 */
.stat-strip { margin-top: -58px; position: relative; z-index: 5; }
.stat-strip-inner {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.09);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 26px 0;
}
.stat-item { text-align: center; border-right: 1px solid #eef0f3; }
.stat-item:last-child { border-right: none; }
.stat-item .num { font-size: 34px; font-weight: 800; color: #1f2329; line-height: 1.2; }
.stat-item .num .u { color: var(--primary); font-size: 17px; font-weight: 700; margin-left: 2px; }
.stat-item .cap { font-size: 13px; color: #8a9099; margin-top: 4px; }

/* 区块标题（左对齐） */
.section-label { color: var(--primary); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.section-head h2 { font-size: 30px; font-weight: 800; color: #1f2329; }
.section-head p { color: #8a9099; font-size: 14px; line-height: 1.9; margin-top: 12px; max-width: 660px; }

/* 应用场景 */
.scenes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.scene {
  border: 1px solid var(--border); border-radius: 12px; padding: 24px;
  transition: box-shadow .2s, transform .2s;
}
.scene:hover { box-shadow: 0 10px 26px rgba(16,24,40,.08); transform: translateY(-3px); }
.scene .icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: #eef3ff; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; margin-bottom: 14px;
}
.scene h3 { font-size: 15.5px; margin-bottom: 6px; }
.scene p { color: #8a9099; font-size: 13.5px; line-height: 1.8; }

/* 文档 / 常见问题 */
.doc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.doc-item {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px;
  font-size: 14px; color: #4a5058;
}
.doc-item:hover { border-color: #c7d7fe; color: var(--primary); opacity: 1; }
.doc-item span.arw { color: #c0c6cf; }

/* 响应式 */
@media (max-width: 900px) {
  .nav-links { display: none; }
}
@media (max-width: 992px) {
  .features, .pricing, .stats, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .scenes { grid-template-columns: repeat(2, 1fr); }
  .stat-strip-inner { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .stat-item:nth-child(2) { border-right: none; }
  .section { padding: 48px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .features, .pricing, .stats, .grid-3, .grid-2, .scenes, .doc-list { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero h1, .hero-light h1 { font-size: 26px; letter-spacing: 0; }
  .hero-light { padding: 36px 0 72px; }
  .hero-badge { font-size: 12px; }
  .hero-btns { gap: 10px; }
  .hero-btns .btn { padding: 11px 22px; font-size: 14px; }
  .stat-strip-inner { grid-template-columns: 1fr 1fr; padding: 20px 0; row-gap: 18px; }
  .stat-item { border-right: none; }
  .stat-item .num { font-size: 26px; }
  .section-head h2 { font-size: 24px; }
  .section { padding: 40px 0; }
  .price-card { padding: 22px 20px; }
  .price-card .price { font-size: 30px; }
  .auth-wrap { padding: 24px 16px; }
  .auth-card { padding: 30px 22px; }
  .page-head { padding: 28px 0 16px; }
  .page-head h1 { font-size: 24px; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .footer .copyright { font-size: 12px; }
  /* 底部工具栏避免被遮挡 */
  body { padding-bottom: 0; }
}

/* 小屏导航：汉堡菜单 + 底部工具栏 */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 38px; height: 38px; border-radius: 8px; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px; padding: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #4a5058; border-radius: 2px; transition: all .2s; }
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .navbar-inner { grid-template-columns: auto 1fr auto; gap: 12px; }
  .navbar-inner .nav-actions { justify-content: flex-end; }
  .nav-actions .btn { padding: 7px 14px; font-size: 13px; }
  /* 抽屉式导航 */
  .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: 62px; left: 0; right: 0; bottom: 0;
    background: #fff; padding: 12px 16px 24px; gap: 4px;
    z-index: 99; transform: translateX(-100%); transition: transform .25s ease;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 12px; font-size: 15px; border-bottom: 1px solid #f2f4f7; }
  .nav-links a:last-child { border-bottom: none; }
}
