/* ===== 灵码官网 · 移动端优先 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  background: #f6f8f7; color: #1f2937; line-height: 1.6;
  max-width: 640px; margin: 0 auto;
}
a { color: #0d9488; text-decoration: none; }
img { max-width: 100%; display: block; }

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
}
.topbar .logo { width: 34px; height: 34px; border-radius: 9px; }
.topbar .t-name { font-size: 17px; font-weight: 700; color: #134e4a; }
.topbar .spacer { flex: 1; }
.topbar .admin-link { font-size: 12px; color: #9ca3af; padding: 6px 8px; }

/* Hero 首屏 */
.hero {
  background: linear-gradient(160deg, #0d9488 0%, #0b3d34 100%);
  color: #fff; text-align: center;
  padding: 46px 24px 40px;
  border-radius: 0 0 28px 28px;
}
.hero .h-logo {
  width: 92px; height: 92px; border-radius: 22px;
  margin: 0 auto 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
  border: 2px solid rgba(255,255,255,.18);
}
.hero h1 { font-size: 30px; font-weight: 800; letter-spacing: 2px; }
.hero .slogan { margin-top: 8px; font-size: 15px; color: rgba(255,255,255,.85); }
.hero .users {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; padding: 6px 14px;
  background: rgba(255,255,255,.14); border-radius: 999px;
  font-size: 13px;
}
.hero .users b { font-size: 15px; }
.btn-download {
  display: block; margin: 22px auto 0; max-width: 320px;
  padding: 14px 0; border-radius: 14px;
  background: #fff; color: #0b3d34;
  font-size: 17px; font-weight: 700; text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: transform .12s;
}
.btn-download:active { transform: scale(.97); }
.btn-download .sub { display: block; font-size: 12px; font-weight: 400; color: #6b7280; margin-top: 2px; }

/* 区块 */
.section { padding: 30px 20px; }
.section h2 { font-size: 19px; font-weight: 700; color: #134e4a; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.section h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: #0d9488; }

/* 特性网格 */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feat {
  background: #fff; border-radius: 14px; padding: 16px 14px;
  border: 1px solid #eef2f1; box-shadow: 0 2px 8px rgba(13,148,136,.05);
}
.feat .ico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: #ecfdf5; margin-bottom: 10px; }
.feat .ico svg { width: 20px; height: 20px; stroke: #0d9488; }
.feat h3 { font-size: 14.5px; font-weight: 700; color: #134e4a; margin-bottom: 4px; }
.feat p { font-size: 12.5px; color: #6b7280; }

/* 更新日志时间轴 */
.updates { background: #fff; border-radius: 16px; border: 1px solid #eef2f1; padding: 6px 18px; }
.update-item { padding: 16px 0; border-bottom: 1px solid #f0f2f1; }
.update-item:last-child { border-bottom: none; }
.u-head { display: flex; align-items: baseline; gap: 8px; }
.u-title { font-size: 14.5px; font-weight: 700; color: #134e4a; }
.u-ver { font-size: 12px; color: #0d9488; background: #ecfdf5; padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.u-date { margin-left: auto; font-size: 12px; color: #9ca3af; }
.u-log { margin-top: 8px; font-size: 13px; color: #4b5563; white-space: pre-line; }

/* 底部 */
.footer { padding: 24px 20px 32px; text-align: center; font-size: 12px; color: #9ca3af; }

/* 下载页 */
.dl-card { background: #fff; border-radius: 16px; border: 1px solid #eef2f1; padding: 22px 18px; margin-top: 14px; }
.dl-card h3 { font-size: 16px; color: #134e4a; margin-bottom: 10px; }
.step { display: flex; gap: 12px; margin-bottom: 14px; }
.step .n {
  flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: #0d9488; color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step .t { font-size: 13.5px; color: #4b5563; }
.step .t b { color: #134e4a; }
.btn-primary {
  display: block; width: 100%; padding: 14px 0; border-radius: 14px;
  background: linear-gradient(135deg, #0d9488, #0f766e); color: #fff;
  font-size: 16px; font-weight: 700; text-align: center; border: none;
  box-shadow: 0 8px 20px rgba(13,148,136,.3);
}
.btn-primary:active { transform: scale(.98); }
.note { margin-top: 12px; font-size: 12px; color: #9ca3af; text-align: center; }

/* 后台简单样式 */
.admin-body { padding: 20px 16px 40px; }
.admin-card { background: #fff; border-radius: 14px; border: 1px solid #eef2f1; padding: 18px; margin-bottom: 14px; }
.admin-card h3 { font-size: 15px; color: #134e4a; margin-bottom: 12px; }
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 13px; color: #4b5563; margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 10px;
  font-size: 14px; font-family: inherit; background: #fff;
}
.form-row textarea { min-height: 90px; resize: vertical; }
.btn-sm {
  padding: 8px 16px; border-radius: 9px; border: none; cursor: pointer;
  font-size: 13px; font-weight: 600;
}
.btn-green { background: #0d9488; color: #fff; }
.btn-gray { background: #f3f4f6; color: #374151; }
.btn-red { background: #fee2e2; color: #b91c1c; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat-box { background: #ecfdf5; border-radius: 12px; padding: 14px; text-align: center; }
.stat-box .v { font-size: 24px; font-weight: 800; color: #0d9488; }
.stat-box .k { font-size: 12px; color: #6b7280; margin-top: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 6px; border-bottom: 1px solid #f0f2f1; text-align: left; vertical-align: top; }
th { color: #6b7280; font-weight: 600; white-space: nowrap; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; background: #ecfdf5; color: #0d9488; }
.muted { color: #9ca3af; font-size: 12px; }
