/* ========================================================================
   极简水印 纯 HTML 版样式
   配色对照 BrandPalette.kt / BrandSurfaces；亮/暗双主题。
   ======================================================================== */

/* ---- 品牌配色变量 ---- */
:root {
  --ink: #123D43;
  --teal: #2F7776;
  --mint: #CFE5DF;
  --cream: #F6F1E7;
  --paper: #FFFCF6;
  --coral: #F28C5B;
  --outline: #D9E1DC;
  --hairline: rgba(255, 255, 255, 0.9);

  --backdrop: var(--cream);
  --surface: var(--paper);
  --surface-alt: var(--paper);
  --mint-surface: var(--mint);
  --text-primary: var(--ink);
  --text-secondary: var(--ink);

  --radius-card: 26px;
  --radius-chip: 13px;
  --radius-pill: 50px;
  --shadow-card: 0 8px 26px rgba(18, 61, 67, 0.18);
}

/* 暗色主题 */
[data-theme="dark"] {
  --ink: #0E1F24;
  --teal: #2F7776;
  --mint: #24403D;
  --cream: #0E1F24;
  --paper: #14302F;
  --outline: #2F4A48;
  --hairline: rgba(255, 255, 255, 0.1);

  --backdrop: #0E1F24;
  --surface: #14302F;
  --surface-alt: #1C3A39;
  --mint-surface: #24403D;
  --text-primary: #E8F0EE;
  --text-secondary: #AEBBB8;

  --shadow-card: 0 8px 26px rgba(0, 0, 0, 0.5);
}

/* 跟随系统：未显式设定 data-theme 时按系统切换 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #0E1F24;
    --teal: #2F7776;
    --mint: #24403D;
    --cream: #0E1F24;
    --paper: #14302F;
    --outline: #2F4A48;
    --hairline: rgba(255, 255, 255, 0.1);
    --backdrop: #0E1F24;
    --surface: #14302F;
    --surface-alt: #1C3A39;
    --mint-surface: #24403D;
    --text-primary: #E8F0EE;
    --text-secondary: #AEBBB8;
    --shadow-card: 0 8px 26px rgba(0, 0, 0, 0.5);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body {
  height: 100%;
  background: var(--backdrop);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body { min-height: 100vh; min-height: 100dvh; }
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---- 品牌背景装饰（对照 BrandBackdrop） ---- */
.backdrop-deco {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.backdrop-deco::before {
  /* 右上角薄荷圆 */
  content: "";
  position: absolute;
  width: 50vw;
  height: 50vw;
  right: -8vw;
  top: -8vw;
  border-radius: 50%;
  background: var(--mint);
  opacity: 0.55;
}
.backdrop-deco::after {
  /* 左下角珊瑚圆 */
  content: "";
  position: absolute;
  width: 42vw;
  height: 42vw;
  left: -8vw;
  top: 68vh;
  border-radius: 50%;
  background: var(--coral);
  opacity: 0.09;
}

/* ---- 主容器 ---- */
.app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 720px;
  margin: 0 auto;
}

/* ---- 品牌标题栏 ---- */
.brand-bar {
  display: flex;
  align-items: center;
  padding: 12px 10px 8px 18px;
  gap: 12px;
}
.brand-mark { display: flex; align-items: center; gap: 12px; }
.brand-text h1 {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}
.brand-tag {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 1.45px;
}
.brand-actions { margin-left: auto; display: flex; gap: 6px; padding-right: 6px; }

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--surface-alt) 76%, transparent);
  border: 1px solid var(--outline);
  color: var(--text-primary);
  transition: opacity .15s, transform .1s;
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn[disabled] { opacity: 0.4; pointer-events: none; }

/* 图标方块（对照 BrandIconTile） */
.brand-icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--coral) 13%, transparent);
  color: var(--teal);
  flex-shrink: 0;
}
.brand-icon-tile svg { width: 24px; height: 24px; }
.brand-icon-tile.big { width: 104px; height: 104px; border-radius: 22px; color: var(--teal); }
.brand-icon-tile.big svg { width: 52px; height: 52px; }
.brand-icon-tile.coral-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--coral) 15%, transparent);
  color: var(--coral);
}
.brand-icon-tile.coral-badge svg { width: 20px; height: 20px; }

/* ---- 空状态 ---- */
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 46px;
  text-align: center;
}
.empty-logo { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.empty-logo-ring {
  position: absolute;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--mint-surface) 55%, transparent);
}
.empty-title { font-size: 22px; font-weight: 800; color: var(--text-primary); margin-bottom: 10px; }
.empty-sub { font-size: 14px; color: var(--text-secondary); max-width: 320px; line-height: 1.6; }
.empty-actions { display: flex; gap: 12px; margin-top: 26px; width: 100%; max-width: 380px; }
.empty-actions > button { flex: 1; }
.empty-privacy {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
}

/* 应用商店徽章（华为 Android / 鸿蒙 NEXT） */
.store-badges {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
  justify-content: center;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 12px;
  text-decoration: none;
  background: #FFFCF6;
  border: 1px solid #D9E1DC;
  transition: transform .12s, box-shadow .15s;
}
.store-badge:active { transform: scale(0.98); }
.store-badge:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(18, 61, 67, 0.18); }
.store-badge .sb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
}
.store-badge .sb-label { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .sb-label small { font-size: 10px; opacity: .75; font-weight: 600; }
.store-badge .sb-label strong { font-size: 13px; font-weight: 700; }
/* 华为 Android —— 品牌红（字面量颜色，避免 var() 在微信/X5 内核被错误覆盖） */
a.store-badge.hw-android {
  background: linear-gradient(135deg, #cf0a2c 0%, #e0264a 100%);
  color: #ffffff;
  border: 1px solid transparent;
}
a.store-badge.hw-android .sb-icon { background: rgba(255,255,255,.16); }
/* HarmonyOS NEXT —— 墨黑 */
a.store-badge.hmos {
  background: #0a0a0a;
  color: #ffffff;
  border: 1px solid transparent;
}
a.store-badge.hmos .sb-icon { background: rgba(255,255,255,.14); }

@media (max-width: 600px) {
  .store-badges { gap: 8px; }
  .store-badge { padding: 7px 11px; }
}

/* 通用按钮 */
.btn-outlined, .btn-filled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 50px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  transition: transform .1s, opacity .15s;
}
.btn-outlined {
  border: 1.5px solid var(--outline);
  color: var(--text-primary);
  background: var(--surface);
}
.btn-filled {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--teal) 40%, transparent);
}
.btn-outlined:active, .btn-filled:active { transform: scale(0.98); }
.btn-outlined[disabled], .btn-filled[disabled] { opacity: 0.5; pointer-events: none; }

/* ---- 编辑布局 ---- */
.editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  gap: 10px;
  padding-bottom: 8px;
}

/* 工具栏 */
.toolbar { display: flex; flex-direction: column; gap: 8px; }
.toolbar-row { display: flex; gap: 8px; align-items: center; }
.toolbar-row.sub { flex-wrap: wrap; }
.chip {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 11px 14px;
  border-radius: var(--radius-chip);
  background: color-mix(in srgb, var(--surface-alt) 82%, transparent);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  transition: transform .1s;
}
.chip:active { transform: scale(0.97); }
.chip.compact { flex: 0 0 auto; padding: 7px 10px; font-size: 12px; }
.chip[disabled] { opacity: 0.4; pointer-events: none; }
.chip svg { color: var(--teal); }
.drag-hint {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}
[data-theme="dark"] .drag-hint, :root:not([data-theme="light"]) .drag-hint { color: var(--text-primary); }
.hint-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.drag-hint svg { color: var(--teal); }

/* 预览卡片：深色卡片占满中间区域，canvas 用绝对定位 contain 居中，
   不撑大卡片自身（否则会因 canvas 固定尺寸导致 stretch 失效）。 */
.preview-wrap {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 0;
  min-width: 0;
}
.preview-card {
  position: relative;
  flex: 1;
  border-radius: var(--radius-card);
  background: var(--ink);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  box-sizing: border-box;
}
[data-theme="dark"] .preview-card, :root:not([data-theme="light"]) .preview-card {
  background: #0a1416;
}
.preview-card canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  border-radius: 19px;
  background: #000;
  touch-action: none;
}

/* 信息胶囊 */
.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-alt) 62%, transparent);
  border: 1px solid var(--hairline);
}
.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--mint-surface) 72%, transparent);
  border: 1px solid var(--hairline);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.ip-icon { font-size: 14px; }

/* 底部导出栏 */
.export-bar {
  padding: 9px 16px 11px;
  padding-bottom: calc(11px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--backdrop) 96%, transparent);
}
.export-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 18px;
  border-radius: 22px;
  background: linear-gradient(90deg, var(--ink), var(--teal));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
  color: #fff;
  transition: transform .1s, opacity .15s;
}
.export-btn:active { transform: scale(0.99); }
.export-btn[disabled] { opacity: 0.6; pointer-events: none; }
.export-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--coral);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.export-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.export-text strong { font-size: 16px; font-weight: 800; }
.export-text small { font-size: 11px; opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }
#export-spinner { animation: spin 0.8s linear infinite; }

/* ========================================================================
   半屏弹窗
   ======================================================================== */
.sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.sheet-scrim.show { opacity: 1; visibility: visible; }

.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 41;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.show { transform: translateY(0); }
.sheet.transparent { opacity: 0; pointer-events: none; }
.sheet.transparent .sheet-inner { visibility: hidden; }

.sheet-inner {
  width: 100%;
  max-width: 720px;
  max-height: 78vh;
  max-height: 78dvh;
  margin: 12px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 50px;
  background: var(--outline);
  margin: 12px auto 6px;
}
.sheet-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px 6px 18px;
}
.sheet-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--coral) 13%, transparent);
  color: var(--coral);
}
.sheet-tile svg { width: 20px; height: 20px; }
.sheet-header h3 { flex: 1; font-size: 22px; font-weight: 800; color: var(--text-primary); }
.sheet-close {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}
.sheet-close:active { background: color-mix(in srgb, var(--outline) 40%, transparent); }
.sheet-divider { height: 1px; background: color-mix(in srgb, var(--outline) 50%, transparent); }
.sheet-body {
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

/* ---- 滑块（对照 LabeledSlider） ---- */
.slider-block { margin-bottom: 10px; }
.slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.slider-head .label { font-weight: 500; font-size: 14px; color: var(--text-primary); }
.slider-head .value { font-size: 13px; color: var(--text-secondary); }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 50px;
  background: var(--outline);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid #fff;
  margin-top: -9px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 50px;
  background: var(--outline);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid #fff;
}

/* ---- 文本输入 ---- */
.text-field {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1.5px solid var(--outline);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
}
.text-field:focus { outline: none; border-color: var(--teal); }
.number-field {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid var(--outline);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
}
.number-field:focus { outline: none; border-color: var(--teal); }

/* ---- 分段按钮（左斜/右斜） ---- */
.segment {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--outline);
  margin-bottom: 8px;
}
.segment button {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
}
.segment button.active { background: var(--teal); color: #fff; }

/* ---- 色板（对照 ColorPicker） ---- */
.color-picker { margin: 8px 0 12px; }
.color-picker .cp-label { font-size: 14px; margin-bottom: 10px; color: var(--text-primary); }
.swatches { display: flex; gap: 12px; }
.swatch {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--outline) 60%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.swatch.selected { border: 3px solid var(--teal); }
.swatch svg { width: 20px; height: 20px; }

/* ---- 行内字段 ---- */
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }

/* ---- sheet 内的分区（标题 + 内容） ---- */
.sheet-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--outline) 60%, transparent); }
.sheet-section-title {
  font-size: 12px; font-weight: 700; color: var(--text-secondary);
  margin-bottom: 10px; letter-spacing: .02em;
}
/* sheet 内复用的 .store-badges 贴左对齐、更紧凑 */
.sheet-section .store-badges { justify-content: flex-start; margin-top: 0; gap: 8px; }

/* ---- 主题/单选行 ---- */
.radio-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  cursor: pointer;
}
.radio-row .radio-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--outline);
  flex-shrink: 0;
  position: relative;
}
.radio-row.selected .radio-dot { border-color: var(--teal); }
.radio-row.selected .radio-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--teal);
}
.radio-row .radio-text strong { display: block; font-size: 16px; font-weight: 600; color: var(--text-primary); }
.radio-row .radio-text small { font-size: 13px; color: var(--text-secondary); }

/* 弹窗内汇总文字 */
.summary { margin-top: 6px; font-size: 13px; color: var(--text-secondary); }

/* 浮动镜像滑块（对照 FloatingSliderMirror） */
.float-mirror {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 50;
  padding: 14px 20px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.fm-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.fm-row span:first-child { font-weight: 500; color: var(--text-primary); }
.fm-row span:last-child { color: var(--text-secondary); }
.fm-track { height: 4px; border-radius: 50px; background: var(--outline); overflow: hidden; }
.fm-fill { height: 100%; background: var(--teal); width: 0; transition: width .05s; }

/* ========================================================================
   裁剪页
   ======================================================================== */
.crop-screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #000;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
}
.crop-bar {
  display: flex;
  align-items: center;
  padding: 4px;
  gap: 4px;
}
.crop-back, .crop-done {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  color: #fff;
}
.crop-back:active, .crop-done:active { background: rgba(255, 255, 255, 0.1); }
.crop-title { flex: 1; color: #fff; font-size: 18px; padding-left: 4px; }
.crop-reset {
  display: inline-flex; align-items: center; gap: 4px;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 12px;
  font-size: 14px;
  margin-right: 6px;
}
.crop-done {
  background: var(--teal);
  margin-right: 10px;
}
.crop-stage {
  flex: 1;
  position: relative;
  margin: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#crop-canvas { display: block; touch-action: none; }
.crop-presets {
  display: flex;
  gap: 8px;
  padding: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.preset-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.preset-chip.active { background: var(--teal); border-color: var(--teal); }

/* ========================================================================
   保存 Modal
   ======================================================================== */
.save-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.save-card {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.save-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
}
.save-header h3 { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.save-close {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-primary);
}
.save-body {
  padding: 0 18px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.save-img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
  pointer-events: auto;
}
.save-tip {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
}
.save-download { width: 100%; max-width: 280px; }

/* ========================================================================
   Toast
   ======================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(40px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 80;
  padding: 12px 20px;
  border-radius: 50px;
  background: rgba(18, 61, 67, 0.95);
  color: #fff;
  font-size: 14px;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  animation: toast-in .2s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* 横屏适配 */
@media (orientation: landscape) and (max-height: 500px) {
  .empty-state { padding: 16px 30px; }
  .empty-logo-ring { width: 100px; height: 100px; }
  .brand-icon-tile.big { width: 76px; height: 76px; }
}
