/* ==========================================================================
   Android下载 内页骨架：材料设计 · 卡片网格 + Chips + 标签页 + 悬浮按钮
   ========================================================================== */

:root {
  --md-bg: #f5fbf6;
  --md-green: #0f9d58;
  --md-green-2: #22c55e;
  --md-lime: #3ddc84;
  --md-ink: #10241a;
  --md-muted: #5d7a68;
  --md-line: #e0eee5;
  --md-soft: #eaf7ee;
}

body.md-page { background: var(--md-bg); color: var(--md-ink); }

.md-page .brand-mark { background: linear-gradient(140deg, #6ee7a0, #0f9d58); color: #04241a; box-shadow: 0 6px 16px rgba(15, 157, 88, .28); }
.md-page .brand-text em { color: var(--md-green); }
.md-page .site-nav a.is-active { color: var(--md-green); background: rgba(15, 157, 88, .1); }
.md-page .btn-login { background: linear-gradient(135deg, #3ddc84, #0f9d58); color: #04241a; box-shadow: 0 8px 20px rgba(15, 157, 88, .26); }

/* ---------------- Hero ---------------- */
.md-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 78px;
  background:
    radial-gradient(680px 420px at 84% 8%, rgba(61, 220, 132, .2), transparent 66%),
    linear-gradient(180deg, #ffffff, var(--md-bg));
}

.md-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 157, 88, .16) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 30% 30%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000, transparent 70%);
  pointer-events: none;
}

.md-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 48px;
  align-items: center;
}

.md-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--md-line);
  box-shadow: var(--shadow-s);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--md-green);
}

.md-hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -.6px;
  text-wrap: balance;
}

.md-hero h1 span { color: var(--md-green); }

.md-hero .lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--md-muted);
  max-width: 540px;
}

.md-hero .lead strong { color: var(--md-ink); }

/* chips */
.md-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.md-chips span {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--md-soft);
  border: 1px solid transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: #1b6b41;
}

.md-chips span.solid {
  background: var(--md-green);
  color: #fff;
}

.md-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.md-actions .btn-primary {
  background: linear-gradient(135deg, #3ddc84, #0f9d58);
  color: #04241a;
  box-shadow: 0 14px 30px rgba(15, 157, 88, .28);
}

.md-actions .btn-room {
  background: #fff;
  border: 1px solid var(--md-line);
  color: #1b6b41;
}

.md-actions .btn-room b { letter-spacing: 1.5px; }

.md-visual { position: relative; }
.md-visual img { width: 100%; border-radius: 20px; box-shadow: 0 30px 60px rgba(16, 36, 26, .14); }

/* FAB */
.md-fab {
  position: absolute;
  right: 18px;
  bottom: -22px;
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: var(--md-green);
  color: #fff;
  box-shadow: 0 16px 32px rgba(15, 157, 88, .4);
  transition: transform .2s, background .2s;
}

.md-fab:hover { transform: translateY(-4px) scale(1.04); background: #0b8a4c; }

/* ---------------- 步骤卡 ---------------- */
.md-section { padding: 82px 0; }

.md-head { max-width: 700px; margin-bottom: 36px; }

.md-head .k { font-size: 12px; font-weight: 800; letter-spacing: 2.5px; color: var(--md-green); }
.md-head h2 { margin: 10px 0 8px; font-size: clamp(23px, 3vw, 34px); font-weight: 900; line-height: 1.3; }
.md-head p { font-size: 15px; color: var(--md-muted); }

.step-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step-card {
  position: relative;
  padding: 26px 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(16, 36, 26, .06), 0 12px 28px rgba(16, 36, 26, .06);
  transition: transform .25s, box-shadow .25s;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(16, 36, 26, .08), 0 20px 40px rgba(16, 36, 26, .1);
}

.step-card .circle {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--md-soft);
  color: var(--md-green);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
}

.step-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 7px; }
.step-card p { font-size: 13.5px; line-height: 1.8; color: var(--md-muted); }

/* ---------------- 标签页 ---------------- */
.md-tabs {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(16, 36, 26, .05), 0 14px 30px rgba(16, 36, 26, .06);
  overflow: hidden;
}

.tab-bar {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--md-line);
  overflow-x: auto;
}

.tab-bar button {
  flex: 1;
  min-width: 130px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--md-muted);
  white-space: nowrap;
  transition: background .2s, color .2s;
}

.tab-bar button:hover { background: var(--md-soft); color: var(--md-ink); }

.tab-bar button.is-active {
  background: var(--md-green);
  color: #fff;
}

.tab-body { padding: 30px 32px 34px; }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: mdFade .3s ease; }

@keyframes mdFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.tab-panel h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.tab-panel > p { font-size: 14.5px; line-height: 1.85; color: var(--md-muted); margin-bottom: 18px; }

.md-steps { display: grid; gap: 14px; counter-reset: ms; }

.md-steps li {
  counter-increment: ms;
  position: relative;
  padding-left: 42px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #3c5648;
}

.md-steps li::before {
  content: counter(ms);
  position: absolute;
  left: 0; top: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--md-soft);
  color: var(--md-green);
  font-size: 13px;
  font-weight: 800;
}

.md-steps li strong { color: var(--md-ink); }

/* ---------------- 系统要求 ---------------- */
.req-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.req {
  padding: 22px 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--md-line);
}

.req .k { font-size: 12px; color: #8ba99a; }
.req .v { display: block; margin-top: 6px; font-size: 18px; font-weight: 800; }
.req .v small { font-size: 12px; font-weight: 400; color: var(--md-muted); margin-left: 4px; }

/* ---------------- 提示 ---------------- */
.md-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin-top: 26px;
  padding: 26px 28px;
  border-radius: 16px;
  background: #fff;
  border-left: 4px solid var(--md-green);
  box-shadow: 0 2px 6px rgba(16, 36, 26, .05);
}

.md-note .i {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--md-soft);
  color: var(--md-green);
  font-weight: 900;
}

.md-note h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 6px; }
.md-note p { font-size: 13.5px; line-height: 1.85; color: var(--md-muted); }
.md-note a { color: var(--md-green); font-weight: 600; }

/* ---------------- 相关 ---------------- */
.md-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.md-related a {
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(16, 36, 26, .05);
  transition: transform .2s, box-shadow .2s;
}

.md-related a:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(16, 36, 26, .1); }
.md-related strong { display: block; font-size: 14.5px; margin-bottom: 4px; }
.md-related span { font-size: 12.5px; color: var(--md-muted); }

/* ---------------- 底部导航条 ---------------- */
.md-bottomnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 14px 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 36, 26, .1);
  width: fit-content;
  margin: 0 auto;
}

.md-bottomnav a {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--md-muted);
  transition: background .2s, color .2s;
}

.md-bottomnav a:hover { background: var(--md-soft); color: var(--md-ink); }
.md-bottomnav a.on { background: var(--md-green); color: #fff; }

/* 入场 */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s, transform .7s; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1000px) {
  .md-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .md-visual { order: -1; }
  .md-fab { right: 14px; bottom: -18px; width: 54px; height: 54px; border-radius: 17px; }
  .step-cards { grid-template-columns: 1fr 1fr; }
  .req-grid { grid-template-columns: 1fr 1fr; }
  .md-related { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .md-hero { padding: 46px 0 58px; }
  .md-hero h1 { font-size: 29px; }
  .md-actions .btn { width: 100%; }
  .md-section { padding: 58px 0; }
  .step-cards { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .tab-body { padding: 22px 18px 26px; }
  .tab-bar button { min-width: 110px; font-size: 13px; }
  .md-note { grid-template-columns: 1fr; padding: 20px; }
  .md-bottomnav { border-radius: 18px; }
}
