/* ============================================================
   超话一键签到 下载页 — 移动优先响应式样式
   ============================================================ */

:root {
  --bg: #f5f7ff;
  --card: #ffffff;
  --ink: #16233f;
  --muted: #5b6b8c;
  --line: #e6eaf6;
  --primary: #12b76a;
  --primary-dark: #0a9d58;
  --primary-soft: rgba(18, 183, 106, 0.12);
  --grad: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
  --grad-btn: linear-gradient(135deg, #12b76a 0%, #0d8f5a 100%);
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(22, 35, 63, 0.08);
  --shadow-lg: 0 24px 60px rgba(22, 35, 63, 0.16);
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 183, 106, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(18, 183, 106, 0.45); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.btn-ghost:hover { border-color: #c9d2ea; }

.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 999px; }

.btn-main { display: block; line-height: 1.3; }
.btn-sub { display: block; font-size: 12px; font-weight: 500; opacity: 0.85; margin-top: 2px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
}

.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; }
.brand-name { font-size: 15px; }

/* 移动端隐藏导航，保持顶部简洁 */
.header-nav { display: none; }
.header-nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.header-nav a:hover { color: var(--ink); }

.header-cta {
  margin-left: auto;
  padding: 9px 18px;
  font-size: 13px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(18, 183, 106, 0.32);
}
.header-cta svg { width: 15px; height: 15px; }

/* ---------- Hero 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(166, 193, 238, 0.55), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(251, 194, 235, 0.5), transparent 60%),
    linear-gradient(180deg, #fdfdff 0%, var(--bg) 100%);
  padding: 48px 0 56px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  text-align: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(34px, 8vw, 56px);
  line-height: 1.15;
  margin: 16px 0 12px;
  letter-spacing: 0.5px;
}

.hero-desc { font-size: 16px; color: var(--muted); max-width: 560px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}
.hero-points li {
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 360px;
}
.hero-actions .btn { width: 100%; }

.hero-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  width: 100%;
}
.hero-quick a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.hero-quick a:hover { color: var(--primary-dark); }
.hero-quick svg { width: 18px; height: 18px; }

/* 手机模型（装饰） */
.hero-visual { position: relative; display: none; }

.phone {
  width: 250px;
  margin: 0 auto;
  background: #101826;
  border-radius: 40px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #1d2940;
}
.phone-notch {
  width: 90px;
  height: 22px;
  background: #101826;
  border-radius: 0 0 14px 14px;
  margin: -14px auto 0;
}
.phone-screen {
  background: var(--grad);
  border-radius: 30px;
  padding: 36px 22px 30px;
  text-align: center;
}
.phone-logo {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  margin: 0 auto 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(22, 35, 63, 0.25);
}
.phone-appname { font-size: 18px; font-weight: 700; color: var(--ink); }
.phone-tag { font-size: 12.5px; color: #4a5578; margin: 6px 0 18px; }
.phone-btn {
  display: inline-block;
  background: var(--grad-btn);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 30px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(18, 183, 106, 0.4);
}

.float-chip {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
}
.float-chip b { color: var(--ink); }
.chip-version { top: 18px; right: -6px; animation: float 5s ease-in-out infinite; }
.chip-size { bottom: 26px; left: -14px; animation: float 6s ease-in-out 1s infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- 通用区块 ---------- */
.section { padding: 56px 0 64px; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }

.section-title {
  font-size: clamp(24px, 5vw, 32px);
  text-align: center;
  letter-spacing: 0.5px;
}
.section-sub { text-align: center; color: var(--muted); margin: 8px 0 34px; }

/* ---------- 平台下载区 ---------- */
.platform-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.platform-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  scroll-margin-top: 76px;
}

.platform-section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 16px;
  padding: 18px 20px;
  background: var(--grad);
  align-items: center;
  color: #1a2540;
}

.platform-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(22, 35, 63, 0.18);
  flex-shrink: 0;
}
.platform-icon svg { width: 28px; height: 28px; }

.platform-info { min-width: 0; }
.platform-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}
.platform-desc {
  font-size: 13.5px;
  color: #3a4a6b;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.platform-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.78);
  color: #1a2540;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 8px;
}

.head-download {
  grid-column: 1 / -1;
  width: 100%;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(18, 183, 106, 0.35);
}
.head-download svg { width: 16px; height: 16px; }

/* 版本列表 */
.version-list { padding: 0; }

.version-list > li + li { border-top: 1px solid var(--line); }

.version-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 14px;
  padding: 14px 20px;
  align-items: center;
  transition: background 0.15s ease;
}
.version-row:hover { background: rgba(166, 193, 238, 0.08); }

.version-name-wrap { min-width: 0; }
.version-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.version-label { overflow-wrap: anywhere; word-break: break-word; }

.version-tag {
  flex-shrink: 0;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.version-meta-mobile {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}

.version-build,
.version-size,
.version-date { display: none; }

.version-actions { display: flex; align-items: center; gap: 8px; }

/* 骨架屏 */
.platform-section.skeleton { pointer-events: none; }
.skeleton-block {
  height: 200px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #eef1f8 25%, #f7f9ff 50%, #eef1f8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border: 1px solid var(--line);
}

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- 软件介绍 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.about-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.about-item .dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad);
  margin-top: 8px;
}
.about-item p { font-size: 15px; color: #37466b; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #101826;
  color: #8b97b5;
  padding: 26px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  flex-wrap: wrap;
}
.site-footer a:hover { color: #fff; }

/* ---------- 平板（≥720px） ---------- */
@media (min-width: 720px) {
  .header-inner { height: 60px; }
  .brand-logo { width: 34px; height: 34px; border-radius: 9px; }
  .brand-name { font-size: 16px; }

  .header-nav { display: flex; gap: 22px; margin-left: auto; }
  .header-cta { margin-left: 8px; padding: 8px 16px; font-size: 14px; box-shadow: 0 8px 20px rgba(18, 183, 106, 0.35); }
  .header-cta svg { width: 16px; height: 16px; }

  .hero { padding: 76px 0 88px; text-align: left; }
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }
  .hero-text { flex: 1 1 56%; align-items: flex-start; }
  .hero-desc { text-align: left; }
  .hero-points { justify-content: flex-start; }
  .hero-actions { flex-direction: row; width: auto; max-width: none; }
  .hero-actions .btn { width: auto; }
  .hero-quick { justify-content: flex-start; }
  .hero-visual { display: block; flex: 0 0 auto; }

  /* 平台区桌面版 */
  .platform-sections { gap: 28px; }
  .platform-section-head {
    grid-template-columns: auto 1fr auto;
    padding: 20px 24px;
    gap: 16px 20px;
  }
  .platform-icon { width: 56px; height: 56px; border-radius: 16px; }
  .platform-icon svg { width: 30px; height: 30px; }
  .platform-title { font-size: 20px; }
  .platform-desc { font-size: 14px; }
  .head-download {
    grid-column: auto;
    width: auto;
    padding: 10px 22px;
    font-size: 15px;
  }

  /* 版本表格 */
  .version-head-row {
    display: grid;
    grid-template-columns: 2.6fr 1fr 1fr 1.4fr 130px;
    gap: 20px;
    padding: 10px 24px;
    background: #f7f9ff;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .version-row {
    display: grid;
    grid-template-columns: 2.6fr 1fr 1fr 1.4fr 130px;
    gap: 20px;
    padding: 16px 24px;
  }
  .version-meta-mobile { display: none; }
  .version-build,
  .version-size,
  .version-date {
    display: block;
    font-size: 14px;
    color: var(--muted);
  }
  .version-actions { justify-self: end; }

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

/* ---------- 桌面（≥1024px） ---------- */
@media (min-width: 1024px) {
  .section { padding: 72px 0 84px; }
}

/* ---------- 深色模式 ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1524;
    --card: #161f33;
    --ink: #eef2fb;
    --muted: #93a1c2;
    --line: #232f4b;
    --primary-soft: rgba(18, 183, 106, 0.18);
  }
  .site-header { background: rgba(15, 21, 36, 0.85); border-bottom-color: var(--line); }
  .hero {
    background:
      radial-gradient(900px 420px at 85% -10%, rgba(60, 90, 160, 0.35), transparent 60%),
      radial-gradient(700px 380px at -10% 20%, rgba(150, 90, 150, 0.3), transparent 60%),
      linear-gradient(180deg, #10172a 0%, var(--bg) 100%);
  }
  .hero-points li { background: var(--card); border-color: var(--line); }
  .btn-ghost { background: var(--card); border-color: var(--line); box-shadow: none; }
  .about-item p { color: #c3cde6; }
  .version-head-row { background: #1a2438; }
  .version-row:hover { background: rgba(166, 193, 238, 0.1); }
  .platform-icon { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); }
}
