:root {
  --blue: #185fa5;
  --blue-dark: #0c447c;
  --blue-soft: #e6f1fb;
  --teal: #0f6e56;
  --teal-soft: #e1f5ee;
  --ink: #20242a;
  --muted: #60666e;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --radius: 12px;
  --shadow: 0 2px 14px rgba(24, 42, 66, 0.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hidden { display: none !important; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(8px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand em { font-style: normal; color: var(--blue); font-weight: 500; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--blue); position: relative; display: inline-block;
}
.brand-mark::after {
  content: ""; position: absolute; width: 9px; height: 9px; right: -4px; bottom: -4px;
  border-radius: 3px; background: var(--teal);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a { color: var(--muted); font-size: 14px; }
.nav-links > a:hover { color: var(--blue); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; border-radius: 9px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { border-color: var(--line); color: var(--blue); padding: 7px 15px; }
.btn-ghost:hover { background: var(--blue-soft); }
.btn-sm { padding: 5px 11px; font-size: 13px; border-radius: 7px; }
.btn-danger { color: #a32d2d; border-color: #f3d0d0; background: #fff; }
.btn-danger:hover { background: #fcebeb; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; padding: 84px 0 72px; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: .12em; color: var(--teal); font-weight: 600; margin-bottom: 14px; }
h1 { font-size: clamp(34px, 4.2vw, 50px); line-height: 1.22; margin: 0 0 20px; letter-spacing: -.01em; }
h2 { font-size: 28px; line-height: 1.35; margin: 0 0 12px; }
h3 { font-size: 17px; margin: 0 0 8px; }
.lead { color: var(--muted); font-size: 16px; max-width: 520px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 20px; margin-top: 30px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.hero-meta span { position: relative; padding-left: 14px; }
.hero-meta span::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

.hero-visual { position: relative; height: 330px; }
.screen-frame {
  position: absolute; left: 0; top: 24px; width: 84%; height: 250px;
  border: 1px solid #cfdce9; border-radius: 12px; background: #fff;
  box-shadow: var(--shadow); overflow: hidden;
}
.screen-bar { height: 30px; background: var(--blue-soft); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.screen-bar i { width: 7px; height: 7px; border-radius: 50%; background: #b5d4f4; }
.screen-body { padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { height: 58px; border-radius: 8px; background: #f0f4f8; }
.tile.t1 { background: #dcecfb; }
.tile.t2 { background: #d9f0e7; }
.tile.t4 { grid-column: span 2; }
.tile.t5 { background: #faeeda; }
.phone-frame {
  position: absolute; right: 0; bottom: 0; width: 108px; height: 210px;
  border: 6px solid #2c3440; border-radius: 20px; background: #fff;
  box-shadow: 0 8px 24px rgba(24, 42, 66, .16); padding: 22px 12px 12px;
}
.phone-notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 36px; height: 6px; border-radius: 4px; background: #d9e0e8; }
.phone-line { height: 7px; border-radius: 4px; background: #e7edf3; margin-bottom: 8px; }
.phone-line.l1 { width: 70%; }
.phone-line.l2 { width: 90%; }
.phone-block { height: 76px; border-radius: 8px; background: var(--teal-soft); margin-top: 14px; }
.link-badge {
  position: absolute; right: 72px; bottom: 96px; padding: 6px 12px;
  background: #fff; border: 1px solid #bfe4d5; color: var(--teal);
  border-radius: 20px; font-size: 12px; box-shadow: var(--shadow);
}

.section { padding: 72px 0; }
.section-head { margin-bottom: 32px; }
.section-head p { color: var(--muted); margin: 0; max-width: 700px; }
.band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.platform-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; font-weight: 600; color: #fff; background: var(--blue); }
.platform-icon.android { background: var(--teal); }
.platform-icon.macos { background: #4a5568; }
.platform-icon.ios { background: #5f5e5a; }
.platform-icon.web { background: #854f0b; }
.card h3 { margin: 0; font-size: 18px; }
.card .sub { color: var(--muted); font-size: 13px; margin: 0; }
.ver-row { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 14px; }
.ver { font-size: 20px; font-weight: 600; color: var(--blue-dark); }
.ver-label { font-size: 12px; color: var(--muted); }
.meta-list { list-style: none; padding: 0; margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.meta-list li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.meta-list li span:last-child { color: var(--ink); }
.changelog { font-size: 13px; color: var(--muted); background: var(--bg-soft); border-radius: 8px; padding: 10px 12px; margin-bottom: 18px; white-space: pre-wrap; }
.card .btn { margin-top: auto; width: 100%; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; background: var(--teal-soft); color: var(--teal); }
.badge.gray { background: #f1efe8; color: #5f5e5a; }

.empty-state { text-align: center; padding: 56px 24px; border: 1px dashed #cdd8e4; border-radius: var(--radius); background: var(--bg-soft); }
.empty-state h3 { font-size: 19px; }
.empty-state p { color: var(--muted); margin: 0 0 20px; }
.empty-icon { width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 12px; background: var(--blue-soft); position: relative; }
.empty-icon::after { content: ""; position: absolute; left: 20px; top: 10px; width: 4px; height: 18px; background: var(--blue); border-radius: 2px; box-shadow: 0 24px 0 var(--blue); }

.matrix { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.matrix-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.matrix-row:last-child { border-bottom: 0; }
.matrix-head { background: var(--bg-soft); color: var(--muted); font-size: 13px; font-weight: 600; }
.matrix-row > span:not(:first-child) { text-align: center; }
.yes { color: var(--teal); font-weight: 500; }
.part { color: #854f0b; font-weight: 500; }
.no { color: #a32d2d; font-weight: 500; }
.note { color: var(--muted); font-size: 13px; margin-top: 14px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.feature-num { font-size: 12px; color: var(--blue); font-weight: 600; margin-bottom: 14px; }
.feature p { color: var(--muted); font-size: 13.5px; margin: 0; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 26px 0; font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; padding: 12px 18px; border-radius: 10px; background: #20242a; color: #fff; font-size: 14px; box-shadow: var(--shadow); }
.toast.error { background: #a32d2d; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--bg-soft); padding: 24px; }
.login-card { width: min(400px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 34px; box-shadow: var(--shadow); }
.login-card .brand { margin-bottom: 26px; }
.login-card h2 { font-size: 22px; margin-bottom: 6px; }
.login-card .hint { color: var(--muted); font-size: 13px; margin: 0 0 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: #fff; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
textarea { min-height: 84px; resize: vertical; }
.login-card .btn { width: 100%; margin-top: 8px; }
.login-switch { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.login-switch a { cursor: pointer; }

.admin-shell { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; }
.sidebar { background: #fbfcfe; border-right: 1px solid var(--line); padding: 22px 14px; }
.sidebar .brand { padding: 0 8px 26px; font-size: 16px; }
.side-group { font-size: 11px; letter-spacing: .1em; color: #9aa3ad; padding: 14px 10px 8px; }
.side-item {
  display: block; width: 100%; text-align: left; padding: 9px 12px; margin-bottom: 3px;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted);
  font-size: 14px; font-family: inherit; cursor: pointer;
}
.side-item:hover { background: var(--blue-soft); color: var(--blue); }
.side-item.active { background: var(--blue-soft); color: var(--blue-dark); font-weight: 600; }
.side-foot { padding: 16px 10px; font-size: 12px; color: #9aa3ad; line-height: 1.6; }
.main { min-width: 0; }
.topbar { height: 64px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
.topbar h2 { font-size: 18px; margin: 0; }
.top-right { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.content { padding: 26px 28px 60px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.stat .num { font-size: 27px; font-weight: 600; color: var(--blue-dark); line-height: 1.3; }
.stat .label { font-size: 13px; color: var(--muted); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 16px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar input, .toolbar select { width: auto; min-width: 140px; padding: 7px 10px; font-size: 13px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: #fafbfd; color: var(--muted); font-weight: 500; font-size: 13px; }
tr:last-child td { border-bottom: 0; }
td.wrap { white-space: normal; min-width: 220px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; background: var(--teal-soft); color: var(--teal); }
.pill.gray { background: #f1efe8; color: #5f5e5a; }
.pill.red { background: #fcebeb; color: #a32d2d; }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.row-actions { display: flex; gap: 6px; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-size: 13px; color: var(--muted); }
.pager-btns { display: flex; gap: 6px; }
.notice { background: var(--blue-soft); color: var(--blue-dark); border-radius: 9px; padding: 12px 16px; font-size: 13px; margin-bottom: 20px; }
.notice code { background: rgba(255,255,255,.7); padding: 1px 5px; border-radius: 4px; }

.modal { position: fixed; inset: 0; z-index: 50; background: rgba(20, 30, 42, .42); display: grid; place-items: center; padding: 20px; }
.modal-card { width: min(480px, 100%); max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 14px; padding: 26px; box-shadow: 0 18px 50px rgba(20,30,42,.2); }
.modal-card h3 { font-size: 18px; margin: 0 0 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 54px 0; }
  .hero-visual { height: 280px; }
  .card-grid, .feature-grid, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; }
  .sidebar .brand { padding: 0 10px 0 4px; }
  .side-group, .side-foot { display: none; }
  .side-item { width: auto; }
  .content { padding: 20px 16px 50px; }
  .topbar { padding: 0 16px; }
}
@media (max-width: 600px) {
  .nav-links > a:not(.btn) { display: none; }
  .card-grid, .feature-grid, .stat-grid { grid-template-columns: 1fr; }
  .matrix-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; font-size: 12px; padding: 10px; }
  .form-grid { grid-template-columns: 1fr; }
}
