:root {
  --brand: #e53935;
  --radius: 16px;
  --ink: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.72);
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html, body { height: 100%; }

body {
  font-family: var(--font);
  background: #0b0b0f;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background-size: cover;
  background-position: center;
  background-color: #0b0b0f;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay, rgba(11, 11, 15, 0.45));
  z-index: 1;
}
.hero > * { position: relative; z-index: 2; }

.hero-logo {
  height: 88px;
  width: auto;
  margin-bottom: 22px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
  align-self: center;
}
.hero-logo.pos-left { align-self: flex-start; }
.hero-logo.pos-right { align-self: flex-end; }
.hero-logo.pos-center { align-self: center; }
.hero-title {
  font-size: clamp(34px, 7vw, 76px);
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}
.hero-subtitle {
  margin-top: 14px;
  font-size: clamp(15px, 2.4vw, 22px);
  color: var(--muted);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  white-space: pre-line;
}
.hero-cta {
  margin-top: 34px;
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.hero-cta:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* ---------- 区块通用 ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 72px 24px; }
.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}
.section-desc { text-align: center; color: var(--muted); margin-bottom: 40px; }

/* ---------- 导航卡片网格 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  backdrop-filter: blur(8px);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.1);
}
.card-icon { font-size: 38px; line-height: 1; }
.card-title { margin-top: 14px; font-size: 20px; font-weight: 700; }
.card-sub { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* ---------- 文字区块 ---------- */
.blocks { display: grid; gap: 22px; }
.block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.block-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; color: var(--brand); }
.block-body { color: var(--muted); white-space: pre-wrap; }

/* ---------- 页脚 ---------- */
.footer {
  text-align: center;
  padding: 36px 24px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--card-border);
  white-space: pre-line;
}
.footer-links {
  margin: 0 auto 18px;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 160px));
  gap: 14px;
  justify-content: center;
}
.footer-links-title {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  white-space: pre-line;
}
.footer-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px 12px;
  backdrop-filter: blur(8px);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.footer-link-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.1);
}
.footer-link-icon { font-size: 22px; line-height: 1; }
.footer-link-icon-img {
  height: 34px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.footer-link-title { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.footer-text { margin-top: 18px; opacity: 0.85; }
.footer-icp { margin-top: 10px; font-size: 13px; opacity: 0.75; }
.footer-icp a { color: inherit; text-decoration: none; }
.footer-icp a:hover { text-decoration: underline; }
button.footer-link-card { font: inherit; text-align: center; cursor: pointer; }

/* ---------- 弹窗图片 ---------- */
.img-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.img-modal.hidden { display: none; }
.img-modal-box {
  position: relative;
  max-width: min(560px, 90vw);
  max-height: 86vh;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.img-modal-box img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  border-radius: calc(var(--radius) - 6px);
  object-fit: contain;
}
.img-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* ---------- 合作品牌 / 代理 LOGO 横条 ---------- */
.partner-strip {
  margin: 0 auto 18px;
  max-width: 960px;
  border-top: 1px solid var(--card-border);
  padding-top: 24px;
}
.partner-title {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  white-space: pre-line;
}
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px 32px;
  margin-top: 6px;
  line-height: 0;
}
.partner-logo {
  display: block;
  vertical-align: middle;
  height: 80px;
  width: auto;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.partner-logo:hover { transform: translateY(-3px); opacity: 1; }

/* ---------- 圆角预设 ---------- */
body[data-radius="sm"] { --radius: 8px; }
body[data-radius="md"] { --radius: 16px; }
body[data-radius="lg"] { --radius: 26px; }

/* ---------- 顶栏按钮（右上角固定红色） ---------- */
.topbar-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.topbar-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
