:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: #17201b;
  background: #f3f6f4;
  --green: #18a65b;
  --green-dark: #0d7940;
  --ink: #17201b;
  --muted: #69746d;
  --line: #dfe6e1;
  --panel: #fff;
  --soft: #eef5f0;
  --danger: #c64141;
  --rose: #b23a78;
  --rose-dark: #7d2455;
  --rose-soft: #f8eaf1;
  --download-ink: #251c22;
  --download-muted: #756a71;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.download-body {
  position: relative;
  overflow-x: hidden;
  color: var(--download-ink);
  background:
    linear-gradient(135deg, #fff 0%, #fbf7f9 48%, #f5edf2 100%);
}
.download-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}
.glow-one {
  width: 480px;
  height: 480px;
  top: -220px;
  right: -120px;
  background: radial-gradient(circle, rgba(178, 58, 120, .16), rgba(178, 58, 120, 0) 70%);
}
.glow-two {
  width: 560px;
  height: 560px;
  left: -300px;
  bottom: -300px;
  background: radial-gradient(circle, rgba(32, 164, 100, .11), rgba(32, 164, 100, 0) 70%);
}
.download-header {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.download-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--download-ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}
.brand-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(145deg, #c8498b, var(--rose-dark));
  box-shadow: 0 8px 20px rgba(125, 36, 85, .2);
}
.platform-label {
  padding: 8px 13px;
  border: 1px solid rgba(125, 36, 85, .1);
  border-radius: 999px;
  color: var(--rose-dark);
  background: rgba(255, 255, 255, .7);
  font-size: 12px;
  font-weight: 700;
}
.download-layout {
  width: min(100% - 48px, 1180px);
  min-height: calc(100vh - 184px);
  margin: 0 auto;
  padding: 50px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .82fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}
.download-hero {
  padding: 30px 0;
}
.hero-kicker {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .17em;
}
.hero-kicker span {
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--rose);
}
h1 { margin: 0; }
.download-hero h1 {
  max-width: 680px;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -.055em;
}
.download-hero h1 em {
  display: block;
  color: var(--rose);
  font-style: normal;
}
.hero-lead {
  max-width: 590px;
  margin: 28px 0 34px;
  color: var(--download-muted);
  font-size: 18px;
  line-height: 1.8;
}
.feature-list {
  max-width: 590px;
  display: grid;
  gap: 12px;
}
.feature-list article {
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(58, 42, 51, .07);
  border-radius: 16px;
  background: rgba(255, 255, 255, .58);
}
.feature-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--rose-dark);
  background: var(--rose-soft);
  font-size: 11px;
  font-weight: 800;
}
.feature-list strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}
.feature-list p {
  margin: 0;
  color: var(--download-muted);
  font-size: 13px;
}
.compatibility {
  margin: 24px 0 0;
  color: var(--download-muted);
  font-size: 13px;
}
.compatibility span {
  margin-right: 7px;
  color: #168653;
  font-weight: 900;
}
.download-card, .login-card {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(82, 53, 69, .1);
  border-radius: 30px;
  box-shadow: 0 26px 80px rgba(77, 42, 61, .14);
}
.download-card {
  position: relative;
  padding: clamp(28px, 4vw, 42px);
}
.download-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 30px 30px 0 0;
  background: linear-gradient(90deg, var(--rose-dark), #d55c9c, #1ba365);
}
.download-card-top {
  display: flex;
  align-items: center;
  gap: 17px;
}
.app-mark {
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: white;
  background: linear-gradient(145deg, #c8498b, var(--rose-dark));
  box-shadow: 0 12px 25px rgba(125, 36, 85, .24);
  font-size: 31px;
  font-weight: 850;
}
.app-mark.small { width: 52px; height: 52px; border-radius: 16px; font-size: 24px; margin-bottom: 16px; }
.eyebrow { margin: 0 0 7px; color: var(--rose-dark); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.download-card h2 { margin: 0; font-size: 27px; letter-spacing: -.025em; }
.download-intro { margin: 25px 0 20px; color: var(--download-muted); font-size: 15px; line-height: 1.7; }
.primary-button {
  border: 0; border-radius: 14px; padding: 14px 22px; color: white; background: var(--green);
  font-weight: 700; cursor: pointer; transition: transform .15s, background .15s;
}
.primary-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.download-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 18px 17px 22px;
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  box-shadow: 0 13px 28px rgba(125, 36, 85, .2);
  font-size: 17px;
  text-decoration: none;
}
.download-button:hover {
  background: linear-gradient(135deg, #a72e6c, #6d1e49);
}
.button-arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .14);
  font-size: 18px;
}
.is-disabled { pointer-events: none; opacity: .45; }
.status-line { min-height: 20px; margin: 13px 2px; color: var(--download-muted); font-size: 12px; }
.release-row {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid rgba(82, 53, 69, .09);
  border-bottom: 1px solid rgba(82, 53, 69, .09);
  color: var(--download-muted);
  font-size: 12px;
}
.qr-panel {
  display: grid;
  grid-template-columns: 134px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding: 17px;
  border-radius: 20px;
  background: linear-gradient(145deg, #fcf6f9, var(--rose-soft));
}
.qr-frame {
  padding: 8px;
  border-radius: 15px;
  background: white;
  box-shadow: 0 8px 22px rgba(74, 45, 61, .08);
}
.qr-panel img { width: 100%; height: auto; display: block; border-radius: 8px; background: white; }
.qr-panel strong { font-size: 16px; }
.qr-panel p { margin: 7px 0 0; color: var(--download-muted); font-size: 12px; line-height: 1.65; }
.install-note {
  margin: 18px 2px 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--download-muted);
  font-size: 11px;
  line-height: 1.6;
}
.install-note span {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(117, 106, 113, .35);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}
.download-footer {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 24px 0 30px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(82, 53, 69, .08);
  color: var(--download-muted);
  font-size: 11px;
}
.quiet-link { display: inline-block; margin-top: 20px; color: var(--green-dark); text-decoration: none; }

.admin-body { background: #f2f5f3; }
.login-view { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(100%, 420px); padding: 38px; text-align: center; }
.login-card h1 { font-size: 34px; margin-bottom: 30px; }
label { display: grid; gap: 8px; margin: 15px 0; color: #425047; font-size: 13px; font-weight: 650; text-align: left; }
input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
  color: var(--ink); background: #fbfcfb; outline: none;
}
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(24,166,91,.12); }
.login-card .primary-button { width: 100%; margin-top: 10px; }
.form-message { min-height: 20px; margin: 12px 0 0; color: var(--danger); font-size: 13px; }

.console-view { min-height: 100vh; display: grid; grid-template-columns: 230px 1fr; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 30px 20px 22px;
  display: flex; flex-direction: column; color: white; background: #15241c;
}
.brand { font-size: 23px; font-weight: 800; }
.brand-subtitle { margin-top: 4px; color: #9bb3a4; font-size: 12px; }
.sidebar nav { display: grid; gap: 7px; margin-top: 42px; }
.nav-item { border: 0; border-radius: 11px; padding: 12px 14px; color: #afc1b5; background: transparent; text-align: left; cursor: pointer; }
.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.1); }
.nav-item.active { box-shadow: inset 3px 0 var(--green); }
.nav-item.logout { margin-top: auto; }
.workspace { min-width: 0; padding: 36px 42px 64px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.topbar h1 { font-size: 34px; }
.identity { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: white; font-size: 13px; }
.console-message { min-height: 22px; color: var(--green-dark); }
.console-message.error { color: var(--danger); }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: 15px; }
.metric-grid article, .section-card { border: 1px solid var(--line); border-radius: 17px; background: var(--panel); box-shadow: 0 8px 24px rgba(30,55,40,.045); }
.metric-grid article { padding: 22px; }
.metric-grid span { display: block; color: var(--muted); font-size: 13px; }
.metric-grid strong { display: block; margin-top: 12px; font-size: 30px; }
.section-card { margin-top: 20px; padding: 24px; }
.section-card h2 { margin: 0; font-size: 19px; }
.check-list { margin: 20px 0 0; padding-left: 22px; line-height: 2; color: #47534b; }
.split-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(600px, 1.8fr); gap: 20px; }
.split-grid .section-card { margin-top: 0; }
.phone-fields { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.form-card .primary-button { width: 100%; margin-top: 8px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.secondary-button, .text-button { border: 0; color: var(--green-dark); background: var(--soft); border-radius: 9px; padding: 8px 12px; cursor: pointer; font-weight: 650; }
.text-button { background: transparent; padding: 5px; }
.action-group { display: inline-flex; align-items: center; gap: 8px; }
.text-button.danger { color: var(--danger); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 14px 12px; border-bottom: 1px solid #edf0ee; text-align: left; font-size: 13px; }
th { color: var(--muted); font-size: 12px; font-weight: 700; }
.tag { display: inline-flex; border-radius: 999px; padding: 4px 8px; color: #657068; background: #edf0ee; font-size: 11px; }
.tag.positive { color: #08713b; background: #e2f6e9; }
.tag.negative { color: #a33333; background: #fbe8e8; }
.empty-state { padding: 34px 12px; color: var(--muted); text-align: center; }
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid #edf0ee;
}
.pagination-button {
  min-width: 76px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 12px;
  color: var(--green-dark);
  background: white;
  cursor: pointer;
  font-weight: 650;
}
.pagination-button:hover:not(:disabled) { border-color: var(--green); background: var(--soft); }
.pagination-button:disabled { color: #a6ada8; background: #f5f7f5; cursor: not-allowed; }
.pagination-info { min-width: 150px; color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .split-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .download-layout {
    min-height: auto;
    padding: 20px 0 64px;
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .download-hero {
    padding: 20px 0;
    text-align: center;
  }
  .hero-kicker { justify-content: center; }
  .download-hero h1 { max-width: 620px; margin-inline: auto; }
  .hero-lead, .feature-list { max-width: 680px; margin-left: auto; margin-right: auto; }
  .feature-list { text-align: left; }
  .download-card {
    width: min(100%, 600px);
    justify-self: center;
  }
}
@media (max-width: 720px) {
  .download-header, .download-layout, .download-footer { width: min(100% - 32px, 1180px); }
  .download-header { padding: 18px 0; }
  .platform-label { display: none; }
  .download-layout { padding-top: 10px; }
  .download-hero { padding: 12px 0; }
  .hero-kicker { margin-bottom: 17px; }
  .download-hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-lead { margin: 22px 0 27px; font-size: 16px; }
  .feature-list article { padding: 12px; }
  .download-card { padding: 28px 21px; border-radius: 24px; }
  .download-card::before { border-radius: 24px 24px 0 0; }
  .app-mark { width: 58px; height: 58px; border-radius: 18px; font-size: 26px; }
  .download-card h2 { font-size: 23px; }
  .qr-panel { grid-template-columns: 112px 1fr; gap: 14px; text-align: left; }
  .download-footer { padding-bottom: 24px; }
  .console-view { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 18px; }
  .sidebar nav { grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
  .nav-item { text-align: center; padding: 10px 5px; }
  .nav-item.logout { margin-top: 10px; }
  .workspace { padding: 24px 16px 50px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .pagination { justify-content: center; }
}
@media (max-width: 440px) {
  .qr-panel { grid-template-columns: 1fr; text-align: center; }
  .qr-frame { width: 146px; margin: 0 auto; }
  .download-footer { gap: 10px; flex-direction: column; align-items: center; }
}
