/* ===== 全局变量（想换配色改这里即可）===== */
:root {
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --blue-light: #eff4ff;
  --ink: #1f2937;
  --gray: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f6f9ff;
  --border: #e5e9f2;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ===== 导航 ===== */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff; font-size: 14px; letter-spacing: 0.5px;
}
.brand-name { font-size: 18px; line-height: 1.15; }
.brand-text { display: flex; flex-direction: column; }
.brand-slogan { font-size: 11px; color: var(--gray); font-weight: 400; letter-spacing: .2px; margin-top: 1px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--gray); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--blue); }

/* ===== 首屏（深色渐变 + 双码展示）===== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
  color: #fff; padding: 52px 0 44px;
}
.hero-glow {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, .55), transparent 70%);
  top: -180px; right: -120px; filter: blur(20px); pointer-events: none;
}
.hero-inner {
  position: relative; display: grid; gap: 44px;
  grid-template-columns: 1.05fr .95fr; align-items: center;
}
.hero-badge {
  display: inline-block; font-size: 13px; color: #dbe6ff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero-title { font-size: 44px; line-height: 1.22; font-weight: 800; letter-spacing: -.5px; }
.hero-sub { margin: 18px 0 24px; color: #dbe4ff; font-size: 17px; line-height: 1.7; }
.hero-brand { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hb {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 108px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  padding: 9px 14px; border-radius: 12px;
}
.hb-k { font-size: 18px; font-weight: 800; color: #fff; line-height: 1; }
.hb-v { font-size: 16px; font-weight: 700; color: #f2f6ff; line-height: 1; letter-spacing: .3px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 24px; font-size: 13px; color: #a9c0ff; letter-spacing: .3px; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 10px;
  font-size: 15px; font-weight: 600; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-light { background: #fff; color: var(--blue-deep); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn-light:hover { transform: translateY(-2px); background: #eef3ff; }
.btn-line { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-line:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

/* 首屏产品码：已上线几款就排几列，窄屏自动变 2 + 1 */
.hero-codes {
  background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 22px;
  padding: 26px 22px; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px; justify-items: center; align-items: start;
}
.hero-codes .hc-label {
  grid-column: 1 / -1; width: 100%; text-align: center; font-size: 13px; color: #cfe0ff;
  letter-spacing: 1px; margin-bottom: 4px;
}
.hero-code { text-align: center; width: 100%; }
.hero-code img {
  width: 100%; max-width: 150px; height: auto; aspect-ratio: 1 / 1;
  object-fit: contain; box-sizing: border-box;
  border-radius: 16px; background: #fff; padding: 9px;
  cursor: zoom-in; transition: transform .15s; box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.hero-code img:hover { transform: scale(1.04); }
.hero-code span { display: block; margin-top: 10px; font-weight: 700; font-size: 15px; color: #fff; }
.hero-code em { display: block; font-style: normal; margin-top: 2px; font-size: 12px; color: #bcd0ff; }

/* ===== 区块通用 ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 28px; font-weight: 800; text-align: center; }
.section-desc { text-align: center; color: var(--gray); margin: 10px 0 40px; }

/* ===== 休闲一下（小游戏）===== */
.game-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.game-btn {
  display: flex; flex-direction: column; gap: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .2s, border-color .2s;
}
.game-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(37,99,235,.14); border-color: var(--blue); }
.game-no { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: 1px; }
.game-name { font-size: 19px; font-weight: 700; }
.game-desc { font-size: 14px; color: var(--gray); }
.game-go { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--blue-deep); }

/* ===== 产品卡片 ===== */
.product-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.card {
  position: relative;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { font-size: 22px; margin-bottom: 6px; padding-right: 64px; }
.card .tagline { color: var(--blue-deep); font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.card .desc { color: var(--gray); font-size: 15px; margin-bottom: 16px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag {
  font-size: 13px; color: var(--blue-deep); background: var(--blue-light);
  border: 1px solid #dbe6ff; padding: 4px 10px; border-radius: 999px;
}

/* 开发中徽标 */
.badge-dev {
  position: absolute; top: 22px; right: 22px;
  font-size: 12px; font-weight: 700; color: #b45309;
  background: #fef3c7; border: 1px solid #fde68a;
  padding: 3px 10px; border-radius: 999px;
}

/* 小程序码区域 */
.code-box {
  margin-top: auto; text-align: center;
  background: var(--bg-alt); border: 1px dashed var(--border);
  border-radius: 12px; padding: 18px;
}
.code-box img {
  width: 220px; height: 220px; object-fit: contain; border-radius: 10px; background: #fff;
  border: 1px solid var(--border);
  cursor: zoom-in; transition: transform .15s, box-shadow .2s;
}
.code-box img:hover { transform: scale(1.04); box-shadow: 0 6px 18px rgba(37,99,235,.18); }
.code-tip { display: block; margin-top: 12px; font-size: 13px; color: var(--gray); }
.zoom-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--blue); }

/* 新上线徽标（与「开发中」互斥，同一右上角） */
.badge-new {
  position: absolute; top: 22px; right: 22px;
  font-size: 12px; font-weight: 700; color: #047857;
  background: #d1fae5; border: 1px solid #6ee7b7;
  padding: 3px 10px; border-radius: 999px;
}

/* 开发中：暂无二维码占位 */
.code-box-dev { border-style: dashed; }
.dev-qr {
  width: 200px; height: 200px; margin: 0 auto; border-radius: 12px;
  background: repeating-linear-gradient(45deg, #fafbff, #fafbff 10px, #eef2fb 10px, #eef2fb 20px);
  border: 1px dashed #c7d2fe; color: #94a3b8; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; line-height: 1.5;
}
/* 开发中产品：界面预览图（手机截图） */
.intro-img {
  width: 100%; max-width: 212px; height: 372px; object-fit: cover;
  border-radius: 16px; border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(37,99,235,.12);
  cursor: zoom-in; transition: transform .15s, box-shadow .2s;
}
.intro-img:hover { transform: scale(1.03); box-shadow: 0 10px 28px rgba(37,99,235,.2); }

/* ===== 点击放大（灯箱）===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 23, 42, .88);
  display: none; align-items: center; justify-content: center;
  padding: 20px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 92vh; border-radius: 14px; background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.lightbox .lb-tip {
  position: absolute; bottom: 26px; left: 0; right: 0;
  text-align: center; color: #cbd5e1; font-size: 13px;
}

/* 预留卡片 */
.card-reserved {
  align-items: center; justify-content: center; text-align: center; min-height: 210px;
  border-style: dashed; border-color: #c7d2fe;
  background: #f7f9ff;
  color: var(--gray);
}
.card-reserved h3 { padding-right: 0; font-weight: 700; }
.card-reserved .reserved-icon { margin-bottom: 12px; }
.reserved-icon {
  width: 48px; height: 48px; border-radius: 50%; border: 2px dashed #93b4ff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--blue); margin: 0 auto;
  transition: transform .25s ease, border-color .25s ease, color .25s ease;
}
.card-reserved:hover .reserved-icon { transform: rotate(90deg); border-color: var(--blue); color: var(--blue-deep); }

/* ===== 关于 ===== */
.about-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.about-text { color: var(--gray); font-size: 16px; margin-top: 16px; line-height: 1.8; }

/* 关于区：品牌内核四宫格 */
.brand-kernel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 38px; }
.bk {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 16px; text-align: center;
  transition: transform .15s, box-shadow .2s, border-color .2s;
}
.bk:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue); }
.bk-k {
  min-width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 12px; padding: 0 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff; font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.bk h4 { font-size: 17px; margin-bottom: 4px; }
.bk p { font-size: 13.5px; color: var(--gray); line-height: 1.7; }
/* 品牌内核：英文全称 */
.bk .bk-en {
  font-size: 13px; font-weight: 600; color: var(--blue-deep);
  letter-spacing: .3px; line-height: 1.5; word-break: break-word;
}
/* 产品卡片"了解更多"按钮 */
.more-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; padding: 10px 20px; border-radius: 10px;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 14px;
  text-decoration: none; transition: .2s;
}
.more-btn:hover { background: var(--blue-deep); transform: translateY(-1px); }

/* ===== 浏览人数统计（页脚上方细条） ===== */
.visit-strip {
  background: linear-gradient(90deg, #f6f9ff 0%, #eef4ff 50%, #f6f9ff 100%);
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.visit-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px; text-align: center;
}
.visit-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.14);
  margin-right: 4px;
}
.visit-label { font-size: 14px; color: var(--gray); }
.visit-num {
  font-size: 26px; font-weight: 800; color: var(--blue-deep);
  letter-spacing: .5px; font-variant-numeric: tabular-nums; line-height: 1.2;
}

/* ===== 页脚 ===== */
.footer { background: #0f172a; color: #cbd5e1; padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.footer .icp a, .footer .feedback a { color: #93c5fd; text-decoration: none; }
.footer .icp a:hover, .footer .feedback a:hover { text-decoration: underline; }

/* 小屏适配 */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: 34px; }
  .brand-kernel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero-title { font-size: 30px; }
  /* 窄屏把导航移到第二行横排，避免链接被挤成「一字一列」的竖排 */
  .nav-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; row-gap: 8px; }
  .brand-name { white-space: nowrap; }
  .nav-links {
    width: 100%; gap: 0; justify-content: space-between;
    border-top: 1px solid var(--border); padding-top: 8px;
  }
  .nav-links a { font-size: 13px; white-space: nowrap; }
  .brand-slogan { display: none; }
  .section { padding: 56px 0; }
  /* 窄屏改成单列：原 minmax(320px,1fr) 在 320px 视口会把卡片撑出 20px 横向滚动 */
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .code-box img { width: 180px; height: 180px; }
  /* 4 张码：窄屏正好 2×2 */
  .hero-codes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .hero-code img { max-width: 140px; }
  .footer-inner { justify-content: center; text-align: center; }
}
/* ===== 首屏：每日挑战（8 款游戏，紧凑排布） ===== */
.daily-wrap { position: relative; margin-top: 26px; }
.daily-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.daily-tag {
  font-size: 13px; font-weight: 700; letter-spacing: 1px; color: #fff;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32);
  padding: 5px 13px; border-radius: 999px;
}
.daily-date { font-size: 14px; font-weight: 700; color: #fff; }
.daily-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.daily-card {
  display: flex; align-items: center; gap: 10px; padding: 10px 13px;
  min-height: 66px; box-sizing: border-box;
  border-radius: 14px; background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.24);
  transition: transform .15s, background .2s, border-color .2s;
}
.daily-card:hover { transform: translateY(-2px); background: rgba(255,255,255,.17); border-color: rgba(255,255,255,.5); }
.daily-card.daily-done { background: rgba(255,255,255,.07); }
.daily-badge {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12.5px; font-weight: 800;
}
.daily-info { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.daily-name, .daily-desc, .daily-state {
  min-width: 0; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.daily-name { font-size: 14px; font-weight: 700; color: #fff; }
.daily-desc { font-size: 11.5px; color: #cfe0ff; line-height: 1.4; }
.daily-state { font-size: 11px; color: #a9c0ff; margin-top: 3px; }
.daily-state.done { color: #86efac; }
.daily-go { flex: none; width: 16px; text-align: center; white-space: nowrap; font-size: 16px; font-weight: 700; color: #fff; }
@media (max-width: 768px) {
  .daily-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .daily-card { gap: 8px; padding: 10px; min-height: 62px; }
  .daily-badge { width: 34px; height: 34px; font-size: 11px; }
  .daily-name { font-size: 13px; }
  .daily-desc { font-size: 10.5px; }
}

/* ===== 一枚贝壳：首页随机照片板块 ===== */
.section-shell {
  background: linear-gradient(135deg, #f1fbff 0%, #eef5ff 48%, #f8fcff 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.shell-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 26px;
}
.shell-head-text { min-width: 0; flex: 1 1 420px; }
.shell-title { text-align: left; font-size: 28px; }
.shell-tagline {
  color: var(--gray); font-size: 15px; margin-top: 8px;
  line-height: 1.75; max-width: 680px;
}
.shell-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shell-shuffle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px;
  color: #2c7395; background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(44, 115, 149, .34);
  box-shadow: 0 4px 14px rgba(30, 80, 110, .07);
  transition: .2s; cursor: pointer;
}
.shell-shuffle svg { width: 15px; height: 15px; flex: 0 0 auto; }
.shell-shuffle:hover { color: #fff; background: #2c7395; border-color: #2c7395; }
.shell-shuffle:hover svg { transform: rotate(-90deg); transition: transform .3s; }
.shell-shuffle:disabled { opacity: .62; cursor: default; }
.shell-shuffle[hidden] { display: none; }
.shell-shuffle.is-loading svg { animation: shellSpin .9s linear infinite; }
@keyframes shellSpin { to { transform: rotate(360deg); } }
.shell-more {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .18); transition: .2s;
}
.shell-more:hover { background: var(--blue-deep); transform: translateY(-1px); }
.shell-more span { font-size: 16px; line-height: 1; }
.shell-photos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.shell-photos.is-swap { animation: shellFade .34s ease; }
@keyframes shellFade { from { opacity: .25; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.shell-photo {
  position: relative; display: block; min-width: 0; aspect-ratio: 1 / 1;
  border-radius: 14px; overflow: hidden; background: #e3f1f8;
  border: 1px solid rgba(44, 115, 149, .14);
  box-shadow: 0 8px 22px rgba(30, 80, 110, .08);
  transition: transform .2s, box-shadow .2s;
}
.shell-photo:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30, 80, 110, .16); }
.shell-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.shell-photo:hover img { transform: scale(1.06); }
.shell-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 9px 7px; font-size: 11.5px; color: #fff;
  background: linear-gradient(180deg, rgba(15, 45, 60, 0), rgba(15, 45, 60, .72));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shell-empty {
  text-align: center; color: var(--gray); font-size: 14px;
  padding: 22px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .75); border: 1px dashed rgba(44, 115, 149, .28);
}
.shell-empty[hidden] { display: none; }
@media (max-width: 768px) {
  .shell-photos { gap: 9px; }
}
@media (max-width: 600px) {
  .shell-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
  .shell-head-text { flex: 1 1 auto; }
  .shell-title { font-size: 24px; }
  .shell-tagline { font-size: 14px; }
  .shell-actions { width: 100%; gap: 8px; }
  .shell-shuffle { padding: 9px 14px; font-size: 13px; }
  .shell-more { padding: 10px 18px; margin-left: auto; }
  .shell-photo { border-radius: 11px; }
}
