:root {
  --bg: #F4F6FA;
  --card: #FFFFFF;
  --ink: #1B2030;
  --ink-2: #5A6478;
  --ink-3: #8B92A6;
  --line: #E9ECF4;
  --line-2: #F1F3F9;
  --brand: #4F6BFF;
  --brand-soft: #EDF0FF;
  --ok: #10B981;
  --warn: #F59E0B;
  --danger: #EF4444;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(24, 30, 48, .04), 0 8px 28px rgba(24, 30, 48, .06);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

/* ---------- 布局 ---------- */
.shell { display: flex; min-height: 100vh; }

.side {
  width: 232px;
  flex: 0 0 232px;
  background: #FFFFFF;
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 22px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, #5B7CFA, #8B5CF6);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(91, 124, 250, .28);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-name { font-size: 15px; font-weight: 650; letter-spacing: .2px; }
.brand-sub { font-size: 11px; color: var(--ink-3); margin-top: 2px; letter-spacing: .3px; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  border: 0; background: transparent; color: var(--ink-2);
  padding: 10px 12px; border-radius: 10px; font-size: 13.5px; text-align: left;
  transition: .16s;
}
.nav-item svg { width: 17px; height: 17px; opacity: .75; }
.nav-item:hover { background: var(--line-2); color: var(--ink); }
.nav-item.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-item.is-active svg { opacity: 1; }

.side-foot { margin-top: auto; padding: 0 6px; }
.env-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--ink-2);
  background: #F7F8FC; border: 1px solid var(--line);
  padding: 6px 10px; border-radius: 20px;
}
.env-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.env-pill.ok .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(16, 185, 129, .14); }
.env-pill.bad .dot { background: var(--danger); box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }
.ver { font-size: 11px; color: var(--ink-3); margin-top: 10px; }

.main { flex: 1; min-width: 0; padding: 24px 28px 60px; max-width: 1280px; }

.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.topbar h1 { font-size: 21px; margin: 0 0 6px; font-weight: 650; letter-spacing: -.2px; }
.topbar p { margin: 0; color: var(--ink-3); font-size: 13px; }
.chip {
  font-size: 12px; color: var(--ink-2); background: #fff;
  border: 1px solid var(--line); padding: 7px 12px; border-radius: 20px;
  white-space: nowrap;
}

.view { display: none; }
.view.is-active { display: block; animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.col-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.col-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }

.grid-status { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-status .span2 { grid-column: span 2; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px 20px;
  box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { font-size: 14px; margin: 0; font-weight: 650; letter-spacing: .1px; }
.hint { font-size: 11.5px; color: var(--ink-3); }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field label { font-size: 12.5px; color: var(--ink-2); font-weight: 550; }
.field .opt { color: var(--ink-3); font-weight: 400; font-size: 11px; }

input[type="text"], input[type="number"], select {
  height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #FBFCFE; color: var(--ink);
  font-size: 13.5px; outline: none; transition: .16s; width: 100%;
}
input[type="text"]:focus, input[type="number"]:focus, select:focus {
  border-color: #B9C4FF; background: #fff; box-shadow: 0 0 0 3px rgba(79, 107, 255, .1);
}
input::placeholder { color: #B4BACB; }
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B92A6' stroke-width='2.4'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tip { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }

.with-btn { display: flex; gap: 8px; }
.with-btn input { flex: 1; }
.mini {
  height: 40px; padding: 0 13px; border-radius: 10px; flex: 0 0 auto;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 12.5px;
  transition: .16s;
}
.mini:hover { border-color: #C9D1FF; color: var(--brand); }
.mini.ghost { background: #FBFCFE; height: 30px; padding: 0 12px; font-size: 12px; }

.color-field { display: flex; gap: 8px; align-items: center; }
.color-field input[type="color"] {
  width: 40px; height: 40px; padding: 0; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer; flex: 0 0 auto;
}
.color-field input[type="color"]::-webkit-color-swatch-wrapper { padding: 3px; }
.color-field input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 7px; }
.color-field input[type="text"] { font-variant-numeric: tabular-nums; letter-spacing: .4px; }

/* 分段控件 */
.seg { display: flex; gap: 10px; }
.seg-item {
  flex: 1; display: flex; align-items: center; gap: 9px; justify-content: center;
  border: 1px solid var(--line); background: #FBFCFE; color: var(--ink-2);
  padding: 12px 10px; border-radius: 12px; font-size: 13.5px; font-weight: 550;
  transition: .16s; position: relative;
}
.seg-item svg { width: 18px; height: 18px; opacity: .7; }
.seg-item em { font-style: normal; font-size: 10.5px; color: var(--ink-3); background: var(--line-2); padding: 2px 6px; border-radius: 5px; }
.seg-item:hover { border-color: #CFD8FF; }
.seg-item.is-active { border-color: #B9C4FF; background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.seg-item.is-active svg { opacity: 1; }
.seg-item.is-active em { background: #fff; color: var(--brand); }

/* 开关 */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); }
.switch-row:last-child { border-bottom: 0; }
.switch-row b { font-size: 13px; font-weight: 550; display: block; }
.switch-row p { margin: 3px 0 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.switch { position: relative; width: 42px; height: 24px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 20px; background: #DFE4EE; transition: .2s; }
.switch i::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px; transition: .2s;
  box-shadow: 0 1px 3px rgba(20, 26, 44, .22);
}
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(18px); }

/* 折叠 */
.link-toggle {
  display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent;
  color: var(--brand); font-size: 12.5px; font-weight: 550; padding: 0;
}
.link-toggle svg { width: 14px; height: 14px; transition: .2s; }
.link-toggle.open svg { transform: rotate(180deg); }
.adv { display: none; margin-top: 6px; }
.adv.open { display: block; }
.tip-block {
  font-size: 12px; line-height: 1.85; color: var(--ink-2);
  background: #F7F9FF; border: 1px solid #E6ECFF; border-radius: 12px; padding: 12px 14px;
}

/* 内容与体积 */
.seg-sm .seg-item { padding: 9px 8px; font-size: 12.5px; border-radius: 10px; }
.seg-sm .seg-item em { display: none; }

.drop-zone {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px dashed #CDD4E6; border-radius: 12px; background: #FBFCFE;
  padding: 14px 16px; cursor: pointer; transition: .16s;
}
.drop-zone svg { width: 22px; height: 22px; color: #9AA3B8; flex: 0 0 auto; }
.drop-zone b { font-size: 12.5px; display: block; font-weight: 550; }
.drop-zone span { font-size: 11px; color: var(--ink-3); display: block; margin-top: 3px; }
.drop-zone:hover, .drop-zone.drag { border-color: #A9B8FF; background: #F7F9FF; }

.files { display: flex; flex-direction: column; gap: 6px; margin-top: 9px; }
.files:empty { display: none; }
.pick-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pick-hint { font-size: 11px; color: var(--ink-3); line-height: 1.5; }
.file-item {
  display: flex; align-items: center; gap: 8px; font-size: 11.5px;
  background: #F8F9FC; border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 10px;
}
.file-item .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.file-item .fsize { color: var(--ink-3); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.file-item .fdel {
  border: 0; background: transparent; color: #B4BACB; font-size: 15px; line-height: 1;
  padding: 0 2px; cursor: pointer; flex: 0 0 auto;
}
.file-item .fdel:hover { color: var(--danger); }

.check { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-2); margin-top: 9px; cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--brand); }

.est {
  height: 40px; display: flex; align-items: center; padding: 0 12px;
  font-size: 13.5px; font-weight: 650; color: var(--ink);
  background: #F7F9FF; border: 1px solid #E6ECFF; border-radius: 10px;
  font-variant-numeric: tabular-nums;
}

/* 图标上传 */
.icon-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.icon-drop {
  width: 92px; height: 92px; flex: 0 0 auto; border-radius: 20px;
  border: 1.5px dashed #CDD4E6; background: #FBFCFE; cursor: pointer;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: .16s; position: relative;
}
.icon-drop:hover { border-color: #A9B8FF; background: #F7F9FF; }
.icon-drop.drag { border-color: var(--brand); background: var(--brand-soft); }
.icon-drop img { width: 100%; height: 100%; object-fit: cover; }
.icon-empty { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--ink-3); font-size: 11px; }
.icon-empty svg { width: 22px; height: 22px; }
.icon-note { flex: 1; min-width: 0; }
.icon-note b { font-size: 12.5px; }
.icon-note p { margin: 5px 0 9px; font-size: 11.5px; color: var(--ink-3); line-height: 1.7; }
.icon-note-actions { display: flex; gap: 6px; }

/* 取色色板 */
.palette-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin: 2px 0 14px;
  background: #FAFBFE; border: 1px solid var(--line-2); border-radius: 12px;
}
.palette-label { font-size: 11.5px; color: var(--ink-3); flex: 0 0 auto; }
.swatches { display: flex; gap: 7px; flex: 1; flex-wrap: wrap; align-items: center; }
.swatch {
  width: 22px; height: 22px; border-radius: 7px; border: 1px solid rgba(20, 26, 44, .08);
  cursor: pointer; padding: 0; transition: .15s; position: relative;
}
.swatch:hover { transform: scale(1.14); }
.swatch.active::after {
  content: ""; position: absolute; inset: -3px; border-radius: 9px;
  border: 2px solid var(--brand);
}
.swatch-empty { font-size: 11.5px; color: #B4BACB; }

/* 启动页设置 */
.splash-layout { display: grid; grid-template-columns: minmax(0, 1fr) 158px; gap: 18px; margin-top: 4px; }
.splash-controls { min-width: 0; }
.splash-modes { display: flex; gap: 8px; }
.sm-item {
  flex: 1; min-width: 0; border: 1px solid var(--line); background: #FBFCFE;
  border-radius: 11px; padding: 8px 6px 7px; display: flex; flex-direction: column;
  align-items: center; gap: 6px; transition: .16s;
}
.sm-item em { font-style: normal; font-size: 10.5px; color: var(--ink-2); white-space: nowrap; }
.sm-item:hover { border-color: #CFD8FF; }
.sm-item.is-active { border-color: #B9C4FF; background: var(--brand-soft); }
.sm-item.is-active em { color: var(--brand); font-weight: 650; }
.sm-thumb {
  width: 100%; height: 34px; border-radius: 6px; display: block;
  position: relative; overflow: hidden; background: #EDF0F7;
}
.thumb-icon::before {
  content: ""; position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  width: 13px; height: 13px; border-radius: 4px; background: #98A2B8;
}
.thumb-icon span {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  width: 16px; height: 3px; border-radius: 2px; background: #C2C9DA;
}
.thumb-solid { background: linear-gradient(135deg, #C6D0E8, #B4BFDA); }
.thumb-image { background: linear-gradient(135deg, #D8DFF0 0%, #B9C5DE 55%, #A6B3CE 100%); }
.thumb-image::after {
  content: ""; position: absolute; inset: 9px 26px; border-radius: 3px;
  background: rgba(255, 255, 255, .55);
}

.upload-inline {
  display: flex; align-items: center; gap: 10px; min-height: 64px;
  border: 1.5px dashed #CDD4E6; border-radius: 11px; background: #FBFCFE;
  cursor: pointer; padding: 8px 12px; overflow: hidden; transition: .16s;
}
.upload-inline:hover { border-color: #A9B8FF; background: #F7F9FF; }
.upload-inline img { height: 48px; border-radius: 6px; display: block; }
.ui-empty { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 11.5px; }
.ui-empty svg { width: 20px; height: 20px; flex: 0 0 auto; }

.splash-demo-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 2px; }
.splash-demo {
  width: 148px; height: 262px; border-radius: 18px; background: #4F6BFF;
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(20, 26, 44, .07), 0 10px 24px rgba(20, 24, 40, .13);
}
.splash-demo #sdImage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sd-center { display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2; padding: 0 8px; }
.sd-center img {
  width: 52px; height: 52px; border-radius: 13px; object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.sd-center span {
  font-size: 10.5px; color: #fff; max-width: 120px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sd-caption { font-size: 10.5px; color: var(--ink-3); }
.splash-layout.is-off { opacity: .42; pointer-events: none; filter: grayscale(.35); }

/* ---------- 手机预览 ---------- */
.preview-card { padding-bottom: 16px; }
.phone-wrap { display: flex; justify-content: center; padding: 6px 0 14px; }
.phone {
  width: 250px; height: 500px; border-radius: 38px; padding: 9px;
  background: linear-gradient(160deg, #2A3042, #141826);
  box-shadow: 0 20px 44px rgba(20, 24, 40, .22), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 30px; overflow: hidden; position: relative;
  background:
    radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--pv, #4F6BFF) 55%, #0E1220) 0%, transparent 60%),
    radial-gradient(120% 110% at 85% 15%, color-mix(in srgb, var(--pv, #4F6BFF) 32%, #101423) 0%, transparent 55%),
    linear-gradient(170deg, #1A1F30 0%, #0C0F18 100%);
  display: flex; flex-direction: column;
}
.p-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px 0; color: rgba(255, 255, 255, .92);
  font-size: 11px; font-weight: 600; letter-spacing: .3px;
}
.p-status-right { font-size: 9px; letter-spacing: 2px; opacity: .85; }
.p-home-icon {
  margin-top: 76px; display: flex; flex-direction: column; align-items: center; gap: 9px;
}
.p-home-icon img {
  width: 66px; height: 66px; border-radius: 17px; object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .38), inset 0 0 0 1px rgba(255, 255, 255, .1);
  background: #2A3042;
}
.p-label {
  font-size: 11.5px; color: rgba(255, 255, 255, .94); max-width: 150px;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.preview-meta { border-top: 1px solid var(--line-2); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.pm-item { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; }
.pm-item span { color: var(--ink-3); flex: 0 0 auto; }
.pm-item b { font-weight: 500; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }

/* ---------- 构建 ---------- */
.build-card { padding: 16px; }
.btn-primary {
  width: 100%; height: 48px; border: 0; border-radius: 13px; color: #fff;
  background: linear-gradient(135deg, #5B7CFA, #4F6BFF 60%, #6D5CF6);
  font-size: 14.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 10px 22px rgba(79, 107, 255, .28); transition: .18s;
}
.btn-primary svg { width: 18px; height: 18px; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(79, 107, 255, .34); }
.btn-primary:active { transform: none; }
.btn-primary:disabled { opacity: .62; cursor: progress; transform: none; box-shadow: none; }

.build-progress { margin-top: 14px; }
.bp-bar { height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.bp-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #5B7CFA, #8B5CF6); transition: width .4s ease; }
.bp-steps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.bp-steps li { font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 7px; }
.bp-steps li::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.6px solid #D8DEEC; flex: 0 0 auto;
}
.bp-steps li.doing { color: var(--brand); font-weight: 550; }
.bp-steps li.doing::before { border-color: var(--brand); border-top-color: transparent; animation: spin .7s linear infinite; }
.bp-steps li.done { color: var(--ink-2); }
.bp-steps li.done::before { border-color: var(--ok); background: var(--ok); box-shadow: inset 0 0 0 2.5px #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.build-result { margin-top: 14px; border-top: 1px dashed var(--line-2); padding-top: 14px; }
.result-group + .result-group { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.result-ok { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ok); margin-bottom: 10px; }
.result-ok svg { width: 17px; height: 17px; }
.result-file { font-size: 12px; color: var(--ink-2); word-break: break-all; margin-bottom: 3px; }
.result-meta { font-size: 11.5px; color: var(--ink-3); margin-bottom: 12px; }
.result-actions { display: flex; gap: 8px; }
.btn-sm {
  flex: 1; height: 38px; border-radius: 10px; font-size: 12.5px; font-weight: 550;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
  transition: .16s;
}
.btn-sm svg { width: 15px; height: 15px; }
.btn-sm:hover { border-color: #C9D1FF; color: var(--brand); }
.btn-sm.solid { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-sm.solid:hover { background: #4059E8; color: #fff; }
.err-box { font-size: 12px; color: #B42318; background: #FEF3F2; border: 1px solid #FEE4E2; border-radius: 10px; padding: 10px 12px; line-height: 1.7; word-break: break-word; }

.asset-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.asset-chip {
  font-size: 10.5px; color: var(--ink-2); background: #F4F6FB; border: 1px solid var(--line-2);
  border-radius: 6px; padding: 4px 8px; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- 记录 ---------- */
.history { display: flex; flex-direction: column; }
.h-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 92px 110px 76px 150px;
  gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2);
}
.h-row:last-child { border-bottom: 0; }
.h-row.head { font-size: 11.5px; color: var(--ink-3); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.h-icon { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; background: var(--line-2); }
.h-name { font-size: 13px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-url { font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.badge { font-size: 11px; padding: 4px 9px; border-radius: 7px; font-weight: 550; display: inline-block; }
.badge.android { background: #EAF7EF; color: #12924F; }
.badge.ios { background: #EEF1FF; color: #4F6BFF; }
.h-cell { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.h-actions { display: flex; gap: 6px; justify-content: flex-end; }
.a-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center;
  transition: .16s;
}
.a-btn svg { width: 15px; height: 15px; }
.a-btn:hover { border-color: #C9D1FF; color: var(--brand); }
.a-btn.danger:hover { border-color: #FCC9C9; color: var(--danger); }
.empty { text-align: center; padding: 46px 0; color: var(--ink-3); font-size: 13px; }

/* ---------- 状态 ---------- */
.tlist { display: flex; flex-direction: column; gap: 10px; }
.t-item { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-2); }
.t-item .st { width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 9px; color: #fff; }
.t-item .st.ok { background: var(--ok); }
.t-item .st.bad { background: var(--danger); }
.t-item code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; color: var(--ink-3); margin-left: auto; }
/* 工具链缺失时的修复提示 */
.tc-fix { margin-top: 12px; padding: 11px 12px; border-radius: 10px; background: #FEF3F2; border: 1px solid #FEE4E2; }
.tc-fix b { font-size: 12px; color: #B42318; }
.tc-fix p { margin: 6px 0 8px; font-size: 11.5px; color: #7A271A; line-height: 1.75; }
.tc-fix code { display: block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; color: #1F2330; background: #fff; border: 1px solid #F3D3D0; border-radius: 6px; padding: 6px 8px; word-break: break-all; }
.tc-fix p.tc-fix-sub { margin: 8px 0 0; font-size: 11px; color: #9C3A2E; }
.tc-fix p.tc-fix-sub code { display: inline; background: none; border: 0; padding: 0; font-size: 10.5px; color: #7A271A; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.how b { font-size: 12.5px; }
.how p { margin: 6px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.85; }

/* 本地服务卡片 */
.svc { display: flex; gap: 24px; align-items: flex-start; }
.svc-list { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.svc-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-2); min-width: 0; }
.svc-row b { flex: 0 0 66px; font-weight: 550; color: var(--ink-3); font-size: 12px; }
.svc-row code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; color: var(--ink);
  background: #F7F8FC; border: 1px solid var(--line); padding: 4px 8px; border-radius: 7px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 340px;
}
.svc-row .cp { flex: 0 0 auto; }
.svc-qr { flex: 0 0 auto; width: 132px; text-align: center; }
.svc-qr img {
  width: 132px; height: 132px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; display: block;
}
.svc-qr span { display: block; margin-top: 7px; font-size: 10.5px; color: var(--ink-3); line-height: 1.5; }

/* 对外分发 */
.share { display: flex; flex-direction: column; gap: 16px; }
/* 下载中心地址行 */
.dl-link { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 11px;
  background: var(--bg-soft, #F7F8FC); border: 1px solid var(--line); border-radius: 10px; }
.dl-link b { font-size: 12px; color: var(--ink-2); flex: 0 0 auto; }
.dl-link code { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px;
  color: var(--ink-1, #1F2330); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-form label { font-size: 12px; color: var(--ink-2); display: block; margin-bottom: 7px; }
.share-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.share-ways b { font-size: 12.5px; }
.share-ways p { margin: 5px 0 0; font-size: 11.5px; color: var(--ink-2); line-height: 1.8; }
.share-ways code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px;
  background: #F5F6FA; border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px;
  word-break: break-all;
}

/* ---------- 弹窗 / toast ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(20, 24, 36, .42);
  display: flex; align-items: center; justify-content: center; z-index: 50;
  backdrop-filter: blur(2px);
}
.modal[hidden] { display: none; }
.modal-card { background: #fff; border-radius: 18px; padding: 20px; width: 320px; box-shadow: 0 24px 60px rgba(20, 24, 36, .24); text-align: center; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-size: 14px; font-weight: 650; }
.icon-btn { border: 0; background: #F4F6FA; width: 28px; height: 28px; border-radius: 8px; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn svg { width: 15px; height: 15px; }
#qrImg { width: 220px; height: 220px; }
.modal-url { font-size: 11.5px; color: var(--ink-2); word-break: break-all; margin-top: 10px; background: #F7F8FC; padding: 8px 10px; border-radius: 8px; }
.modal-tip { font-size: 11.5px; color: var(--ink-3); margin-top: 10px; }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%);
  background: #1B2030; color: #fff; font-size: 13px; padding: 11px 18px; border-radius: 11px;
  box-shadow: 0 12px 30px rgba(20, 24, 36, .28); z-index: 60; animation: toastin .2s ease;
}
.toast[hidden] { display: none; }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

.ios-only { display: none; }
body[data-platform="ios"] .android-only { display: none !important; }
body[data-platform="ios"] .ios-only { display: block; }
body[data-platform="both"] .ios-only { display: block; }
/* 三段式平台选择：三个选项时收紧一点，避免文字换行 */
.seg .seg-item { min-width: 0; white-space: nowrap; }
.seg .seg-item em { white-space: nowrap; }
@media (max-width: 520px) {
  .seg .seg-item { font-size: 12px; gap: 6px; padding: 11px 6px; }
  .seg .seg-item em { display: none; }
}

@media (max-width: 1080px) {
  .grid { grid-template-columns: 1fr; }
  .col-side { position: static; }
  .grid-status { grid-template-columns: 1fr; }
  .grid-status .span2 { grid-column: auto; }
  .how-grid { grid-template-columns: 1fr; }
  .share-ways { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .side { display: none; }
  .main { padding: 18px 14px 40px; }
  .row { grid-template-columns: 1fr; }
  .svc { flex-direction: column-reverse; align-items: stretch; }
  .svc-qr { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; }
  .svc-qr img { width: 84px; height: 84px; }
  .svc-qr span { margin: 0; }
  .svc-row code { max-width: none; }
  .h-row { grid-template-columns: 40px minmax(0, 1fr) 70px; }
  .h-row .h-cell.hide-sm, .h-row.head .hide-sm { display: none; }
  .splash-layout { grid-template-columns: 1fr; }
  .splash-demo-wrap { flex-direction: row; justify-content: flex-start; gap: 12px; }
  .splash-demo { width: 96px; height: 170px; }
  .sd-center img { width: 36px; height: 36px; border-radius: 9px; }
}
