/* ==========================================================================
   航标 · 你的股票投资驾驶舱 — 设计系统
   ========================================================================== */

:root {
  /* 底色 / 面板 */
  --app-bg: #0a0f17;
  --app-bg-2: #070b12;
  --card: #141c26;
  --card-2: #101720;
  --card-3: #0d141d;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);

  /* 文字 */
  --text: #ffffff;
  --text-2: #9aa6b5;
  --text-3: #6b7686;

  /* 语义色（A 股习惯：红涨绿跌） */
  --up: #f04452;
  --up-soft: rgba(240, 68, 82, 0.14);
  --down: #2ed08a;
  --down-soft: rgba(46, 208, 138, 0.14);
  --warn: #f9bd15;
  --warn-soft: rgba(249, 189, 21, 0.14);
  --green-bright: #38e783;

  /* 品牌蓝 */
  --blue: #2e8bfb;
  --blue-2: #4da3ff;
  --blue-soft: rgba(46, 139, 251, 0.14);
  --blue-line: rgba(46, 139, 251, 0.42);
  --blue-grad: linear-gradient(135deg, #57b0ff 0%, #2e7ff2 55%, #1f68d8 100%);

  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-hand: "Kaiti SC", "STKaiti", KaiTi, "Songti SC", cursive, var(--font);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(46, 139, 251, 0.16), transparent 60%),
    radial-gradient(900px 520px at 8% 108%, rgba(46, 139, 251, 0.1), transparent 62%),
    linear-gradient(160deg, #0b1522 0%, #070c14 48%, #05080e 100%);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

button { font-family: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }

.tab, .chip, .list__row, .tabbar__item, .ai-card, .suggest__item { touch-action: manipulation; }

/* ============================ 桌面外壳 ============================ */

/* ===== Mac 桌面版（Apple 风格）：大字号 + 留白 + 卡片 + 磨砂导航 ===== */
body.is-mac { background: #0b0c0f; }
body.is-mac .shell { display: block; padding: 0; min-height: 0; }
body.is-mac .brand-panel { display: none !important; }
body.is-mac .device,
body.is-mac .device__screen {
  width: 100% !important;
  height: auto !important;
  transform: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  background: transparent;
}
body.is-mac .device__notch,
body.is-mac .status-bar,
body.is-mac .tabbar { display: none !important; }
body.is-mac .screen { overflow: visible; height: auto; }

.mac { min-height: 100vh; background: #0b0c0f; color: #f5f5f7; }
.mac * { letter-spacing: -0.01em; }
.mac-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 34px;
  height: 56px;
  background: rgba(11, 12, 15, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mac-nav__brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; color: #f5f5f7; }
.mac-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.mac-nav__links::-webkit-scrollbar { display: none; }
.mac-nav__links .mac-nav__link { white-space: nowrap; flex: 0 0 auto; }
/* 导航标签按各自的颜色显示，当前页高亮（同色填充 + 描边） */
[data-nav] { --nav: #8ea4c0; }
[data-nav="dashboard"] { --nav: #6ea8ff; }
[data-nav="plan"] { --nav: #4d8dff; }
[data-nav="exec"] { --nav: #f0674f; }
[data-nav="risk"] { --nav: #f9bd15; }
[data-nav="review"] { --nav: #a06ef0; }
[data-nav="longterm"] { --nav: #2ed08a; }
[data-nav="holdings"] { --nav: #3ac7f0; }
[data-nav="pool"] { --nav: #8fb64a; }
[data-nav="battle"] { --nav: #f076a8; }
[data-nav="console"] { --nav: #e0a13c; }
[data-nav="weekplan"] { --nav: #5b8def; }
[data-nav="cycles"] { --nav: #41d3c0; }
[data-nav="ai"] { --nav: #c98bff; }
body .mac-nav__link { color: var(--nav, var(--text-2)); }
body .mac-nav__link:hover { background: rgba(255, 255, 255, 0.06); color: var(--nav, #fff); }
body .mac-nav__link.is-active {
  background: var(--nav, var(--blue));
  color: #0b1118;
  font-weight: 800;
  box-shadow: 0 8px 20px -12px var(--nav, var(--blue));
}
body .mac-nav__link.is-active:hover { color: #0b1118; }
.mac-nav__link {
  padding: 7px 13px;
  border-radius: 999px;
  border: 0;
  background: none;
  color: #a1a1a6;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
}
.mac-nav__link:hover { color: #f5f5f7; }
.mac-nav__link.is-active { color: #fff; background: rgba(255, 255, 255, 0.1); }
.mac-nav__right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 12px; color: #86868b; }
.mac-nav__btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f7;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
}

/* A4 版式：内容列宽 ≈ A4（21cm），大字号，自适应窗口 */
.mac-main { max-width: 880px; margin: 0 auto; padding: 44px 30px 80px; font-size: 16px; }
.mac-hero { text-align: center; padding: 22px 0 38px; }
.mac-hero__eyebrow { font-size: 16px; color: #86868b; }
.mac-hero__title { font-size: 62px; line-height: 1.05; font-weight: 700; margin: 14px 0 0; }
.mac-hero__sub { font-size: 20px; color: #a1a1a6; margin-top: 14px; }
.mac-hero__meta { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; margin-top: 34px; }
.mac-hero__item { text-align: center; }
.mac-hero__item em { display: block; font-style: normal; font-size: 13.5px; color: #86868b; margin-bottom: 6px; }
.mac-hero__item b { font-size: 30px; font-weight: 700; }
.mac-hero__item b.up { color: #ff5a68; }
.mac-hero__item b.down { color: #35e08d; }

.mac-sec { margin-top: 46px; }
.mac-sec__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.mac-sec__title { font-size: 31px; font-weight: 700; }
.mac-sec__sub { font-size: 15px; color: #86868b; }
.mac-sec__link {
  margin-left: auto;
  border: 0;
  background: none;
  color: #4da3ff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
}
.mac-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.mac-card {
  padding: 24px 24px 22px;
  border-radius: 20px;
  background: #16181d;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.mac-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.16); }
.mac-card--wide { grid-column: 1 / -1; }
.mac-card__label { font-size: 14.5px; color: #86868b; }
.mac-card__value { font-size: 34px; font-weight: 700; margin-top: 7px; }
.mac-card__value.up { color: #ff5a68; }
.mac-card__value.down { color: #35e08d; }
.mac-card__note { font-size: 14px; color: #86868b; margin-top: 9px; line-height: 1.65; }
.mac-rows { margin-top: 12px; }
.mac-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.mac-row:last-child { border-bottom: 0; }
.mac-row span { font-size: 15.5px; color: #a1a1a6; }
.mac-row b { font-size: 17px; font-weight: 600; }
.mac-row b.up { color: #ff5a68; }
.mac-row b.down { color: #35e08d; }
.mac-tag { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.mac-tag--blue { color: #9dc7fb; background: rgba(46, 139, 251, 0.16); }
.mac-tag--red { color: #ff9aa3; background: rgba(240, 68, 82, 0.16); }
.mac-tag--green { color: #7fe0b4; background: rgba(46, 208, 138, 0.16); }
.mac-tag--gray { color: #a1a1a6; background: rgba(255, 255, 255, 0.08); }
.mac-table { width: 100%; border-collapse: collapse; }
.mac-table th { font-size: 13.5px; color: #86868b; font-weight: 500; text-align: left; padding: 0 10px 12px; }
.mac-table td { font-size: 16px; padding: 16px 10px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.mac-table td b { font-weight: 600; }
.mac-table tr:hover td { background: rgba(255, 255, 255, 0.03); }
.mac-phone-frame {
  max-width: 430px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 46px;
  background: #1c1c1e;
  box-shadow: 0 40px 90px -40px #000, 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.mac-phone-screen {
  position: relative;
  height: 780px;
  overflow-y: auto;
  border-radius: 36px;
  background: var(--app-bg);
  scrollbar-width: none;
}
.mac-phone-screen::-webkit-scrollbar { display: none; }
.mac-nav__link { font-size: 14px; }
.mac-nav__brand { font-size: 16px; }
.mac-nav__right { font-size: 13px; }
.mac-foot { margin-top: 60px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13.5px; color: #6e6e73; display: flex; gap: 16px; flex-wrap: wrap; }

/* 打印 / 导出：按 A4 输出 */
@page { size: A4; margin: 12mm; }

.shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 68px;
  padding: 40px 32px;
}

.brand-panel {
  width: 330px;
  flex: 0 0 auto;
  display: none;
}

.brand-panel__logo { display: flex; align-items: center; gap: 12px; }
.brand-panel__name { font-size: 30px; font-weight: 800; letter-spacing: 2px; }
.brand-panel__sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.brand-panel__lead {
  margin-top: 34px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 1px;
}
.brand-panel__lead span {
  display: block;
  color: var(--text-2);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 3px;
  margin-top: 10px;
}

.screen-index { margin-top: 36px; display: grid; gap: 8px; }

.screen-index__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-align: left;
  color: var(--text-2);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  width: 100%;
}
.screen-index__item:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.screen-index__item.is-active {
  background: var(--blue-soft);
  border-color: var(--blue-line);
  color: var(--text);
}
.screen-index__no {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-2);
  font-variant-numeric: tabular-nums;
}
.screen-index__label { font-size: 14px; font-weight: 600; }
.screen-index__hint { font-size: 11px; color: var(--text-3); margin-left: auto; }

.brand-panel__foot { margin-top: 34px; font-size: 11px; letter-spacing: 1.6px; color: var(--text-3); }

/* ============================ 手机外框 ============================ */

.device {
  position: relative;
  width: 390px;
  height: 844px;
  flex: 0 0 auto;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(150deg, #2a3340 0%, #11161d 42%, #05080d 100%);
  box-shadow:
    0 42px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.device__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: var(--app-bg);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.device__notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 26px;
  border-radius: 0 0 16px 16px;
  background: #05080d;
  z-index: 30;
  pointer-events: none;
}

.device__notch::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #131a24;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* ============================ 状态栏 ============================ */

.status-bar {
  height: 46px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px 0 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #fff;
  z-index: 20;
}
.status-bar__icons { display: flex; align-items: center; gap: 6px; }

/* ============================ 屏幕容器 ============================ */

.screen {
  position: relative;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.screen::-webkit-scrollbar { width: 0; height: 0; }

.screen__body {
  flex: 1 1 auto;
  /* 手机上是「整页不滚动、内部滚动」：.screen__body 变成定高 flex 列后，
     里面 overflow:hidden 的卡片（持仓列表 .list 等）会被压扁到 0 高、整段看不见。
     禁止子元素被压缩，并让 body 至少和内容一样高，交给 .screen 滚动 */
  min-height: min-content;
  padding: 4px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.screen__body > * { flex-shrink: 0; }

/* 页面标题 */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px 0;
}
/* 标题 + 扁平图标（图标颜色跟着当前页面主色） */
.page-head__title-row { display: flex; align-items: center; gap: 9px; }
.page-head__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--accent, #6ea8ff);
  /* 只留彩色图标本身：去掉圆角矩形底框与描边，图标再放大一档 */
  background: none;
  border: 0;
  border-radius: 0;
}
.page-head__icon svg { display: block; width: 32px; height: 32px; }
.page-head__title { font-size: 25px; font-weight: 800; letter-spacing: 0.5px; line-height: 1.2; }
.page-head__sub { font-size: 12px; color: var(--text-2); margin-top: 4px; }
/* 副标题按行显示（例如投资宝典：第一行要闻+日期，第二行纪律心法） */
.page-head__sub-line { display: block; line-height: 1.6; }
.page-head__actions { display: flex; align-items: center; gap: 14px; padding-top: 6px; }
.header-edit {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  padding: 4px 2px;
  white-space: nowrap;
}
.header-edit:hover { color: #fff; }
.header-edit.is-active { color: var(--blue-2); }
.page-head__note {
  font-family: var(--font-hand);
  font-size: 15px;
  line-height: 1.5;
  color: #dbe2ea;
  text-align: right;
  transform: rotate(-4deg);
  letter-spacing: 1px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #e7edf4;
  position: relative;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.06); }
.icon-btn__dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 2px var(--app-bg);
}

/* ============================ 通用卡片 ============================ */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 15px;
}
.card--tight { padding: 12px 14px; }
.card--plain { background: var(--card-2); }
.card--tap { cursor: pointer; transition: border-color 0.16s ease; }
.card--tap:hover { border-color: var(--line-strong); }
.card__edit-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-2);
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.hero-card.is-editing { cursor: pointer; }
.hero-card.is-editing::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  border: 1px dashed var(--blue-line);
  pointer-events: none;
}
.tag {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  vertical-align: 1px;
}
.tag--auto { color: var(--text-3); background: rgba(255, 255, 255, 0.07); }
.tag--edit { color: var(--blue-2); background: var(--blue-soft); }
.stat--tap { cursor: pointer; }
.stat--tap:hover { border-color: var(--line-strong); }
.edit-tip {
  font-size: 11.5px;
  line-height: 1.55;
  color: #cfe3ff;
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-radius: 10px;
  padding: 8px 11px;
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
/* 上下分列版：标题一行，计数 / 操作一行（标题不再被挤到折行） */
.card__head--stack { display: grid; gap: 8px; align-items: start; }
.card__head--stack .card__title { white-space: nowrap; }
.card__head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card__title { font-size: 16px; font-weight: 700; }
/* 橙色标题（驾驶舱「今日重点任务」用） */
.card__title--orange {
  color: #ff9f45;
  text-shadow: 0 0 14px rgba(255, 159, 69, 0.35);
}
.card__link { font-size: 12px; color: var(--blue-2); display: inline-flex; align-items: center; gap: 3px; }

/* ============================ 按钮 / 徽标 ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  transition: filter 0.16s ease, transform 0.12s ease, background 0.16s ease;
}
.btn:active { transform: scale(0.985); }
/* label 当按钮用（文件选择必须走原生 label 激活，iOS 才认） */
label.btn { cursor: pointer; -webkit-user-select: none; user-select: none; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(46, 139, 251, 0.9); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--outline { border: 1px solid var(--blue-line); color: var(--blue-2); background: var(--blue-soft); }
.btn--outline:hover { background: rgba(46, 139, 251, 0.2); }
.btn--danger { border: 1px solid rgba(240, 68, 82, 0.45); color: #ff7180; background: rgba(240, 68, 82, 0.12); }
.btn--danger:hover { background: rgba(240, 68, 82, 0.2); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text-2); }
.btn--ghost:hover { color: #fff; }
.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 15px 20px; font-size: 16px; }

.danger-zone { margin-top: 10px; display: grid; gap: 9px; }
.danger-zone .btn--ghost { margin-top: 0; }
.danger-zone__note { font-size: 11px; color: var(--text-3); text-align: center; }
.sheet__danger { margin-top: 12px; padding: 10px 16px; font-size: 13px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill--blue { color: var(--blue-2); background: var(--blue-soft); border-color: var(--blue-line); }
.pill--ghost { color: var(--text-2); background: rgba(255, 255, 255, 0.05); border-color: var(--line-strong); }
/* AI 快捷标签：颜色跟上面那六张大卡一致 */
.pill--ai { color: var(--ai, var(--text-2)); background: var(--ai-soft, rgba(255, 255, 255, 0.05)); border-color: var(--ai, var(--line-strong)); }
.pill--ai:hover { filter: brightness(1.15); }
.pill--green { color: var(--down); background: var(--down-soft); border-color: rgba(46, 208, 138, 0.4); }
.pill--plain { color: var(--text-3); background: rgba(255, 255, 255, 0.04); }

.dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.dot--green { background: #38e790; box-shadow: 0 0 10px rgba(56, 231, 144, 0.55); }
.dot--amber { background: var(--warn); box-shadow: 0 0 10px rgba(249, 189, 21, 0.5); }
.dot--red { background: var(--up); box-shadow: 0 0 10px rgba(240, 68, 82, 0.5); }

.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }

/* ============================ 标签页 / 分段控件 ============================ */

.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r-md);
  padding: 4px;
}
.tab {
  flex: 1 1 0;
  padding: 9px 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
  transition: background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}
.tab.is-active { color: var(--blue-2); background: rgba(46, 139, 251, 0.13); }

.tabs--underline {
  background: none;
  padding: 0;
  gap: 0;
  border-radius: 0;
}
.tabs--underline .tab {
  position: relative;
  padding: 10px 4px 12px;
  border-radius: 0;
  background: none;
  font-size: 14px;
}
.tabs--underline .tab.is-active { background: none; color: var(--blue-2); }
.tabs--underline .tab.is-active::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

/* 作战页三个子页各用一个颜色：盘前=蓝 盘中=红 复盘=绿 */
.battle-tabs .tab { color: var(--text-3); }
.battle-tabs .tab:nth-child(1) { color: #7fb4f5; }
.battle-tabs .tab:nth-child(2) { color: #e0858d; }
.battle-tabs .tab:nth-child(3) { color: #6fd3a6; }
.battle-tabs .tab.is-active { color: #fff; }
.battle-tabs .tab:nth-child(1).is-active::after { background: #2e8bfb; }
.battle-tabs .tab:nth-child(2).is-active::after { background: #f04452; }
.battle-tabs .tab:nth-child(3).is-active::after { background: #2ed08a; }
.battle-tabs .tab:nth-child(1).is-active { text-shadow: 0 0 12px rgba(46, 139, 251, 0.45); }
.battle-tabs .tab:nth-child(2).is-active { text-shadow: 0 0 12px rgba(240, 68, 82, 0.45); }
.battle-tabs .tab:nth-child(3).is-active { text-shadow: 0 0 12px rgba(46, 208, 138, 0.45); }

/* 股票池分段 chips */
.chips { display: flex; gap: 10px; }
.chip {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.chip__no { font-weight: 700; }
.chip__count { font-weight: 600; font-size: 12px; }
/* 股票池三组各用一个颜色：进攻=红 / 观察=蓝 / 备用=绿（未选中也带色，便于一眼区分） */
.chip--up { border-color: rgba(240, 68, 82, 0.34); background: rgba(240, 68, 82, 0.07); color: #f0a6ac; }
.chip--up .chip__no, .chip--up .chip__count { color: rgba(240, 68, 82, 0.9); }
.chip--up.is-active { border-color: rgba(240, 68, 82, 0.8); color: #fff; background: rgba(240, 68, 82, 0.2); }
.chip--up.is-active .chip__no, .chip--up.is-active .chip__count { color: var(--up); }

.chip--blue { border-color: rgba(46, 139, 251, 0.34); background: rgba(46, 139, 251, 0.07); color: #9dc7fb; }
.chip--blue .chip__no, .chip--blue .chip__count { color: rgba(77, 163, 255, 0.9); }
.chip--blue.is-active { border-color: var(--blue-line); color: #fff; background: rgba(46, 139, 251, 0.2); }
.chip--blue.is-active .chip__no, .chip--blue.is-active .chip__count { color: var(--blue-2); }

.chip--down { border-color: rgba(46, 208, 138, 0.34); background: rgba(46, 208, 138, 0.07); color: #8fe6bd; }
.chip--down .chip__no, .chip--down .chip__count { color: rgba(46, 208, 138, 0.9); }
.chip--down.is-active { border-color: rgba(46, 208, 138, 0.8); color: #fff; background: rgba(46, 208, 138, 0.2); }
.chip--down.is-active .chip__no, .chip--down.is-active .chip__count { color: var(--down); }
.chip--over { border-color: rgba(240, 68, 82, 0.6); }
.chip--over .chip__count { color: #ff8f99; }

/* 3+5+3 上限提示 */
.op-hub { padding-bottom: 12px; }
.battle-sec__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 2px 8px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.battle-sec__title:first-of-type { margin-top: 10px; }
.battle-sec__sub { font-size: 10.5px; font-weight: 500; color: var(--text-3); }
.battle-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.battle-actions .btn { padding: 11px 12px; font-size: 12.5px; width: 100%; }
/* 主按钮占满一整行，其余两个一行，排布规整不出现"半宽+整行"的突兀 */
.battle-actions .btn--primary { grid-column: 1 / -1; }
.battle-actions .btn--row { grid-column: 1 / -1; }
.battle-actions .btn--lg-sm { padding: 14px 12px; font-size: 14px; font-weight: 700; }
.op-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #101a24;
  text-align: left;
  font-family: inherit;
}
.op-card__no {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.op-card__body { flex: 1 1 auto; min-width: 0; }
.op-card__body b { display: block; font-size: 13.5px; font-weight: 700; color: #eef3f8; }
.op-card__body i { display: block; font-style: normal; font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.op-card__state {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
}
.op-card.is-done { border-color: rgba(46, 139, 251, 0.45); background: rgba(46, 139, 251, 0.1); }
.op-card.is-done .op-card__no { background: var(--blue-soft); color: #9dc7fb; }
.op-card.is-done .op-card__state { color: #8cc4ff; border-color: rgba(46, 139, 251, 0.45); }

.pool-cap { margin-top: 10px; }
.pool-cap__row { display: flex; flex-wrap: wrap; gap: 6px; }
.pool-cap__item {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
}
.pool-cap__item.is-over { color: #ff8f99; border-color: rgba(240, 68, 82, 0.5); background: rgba(240, 68, 82, 0.12); }
.pool-cap__item--attack { color: #f0a6ac; border-color: rgba(240, 68, 82, 0.3); background: rgba(240, 68, 82, 0.08); }
.pool-cap__item--watch { color: #9dc7fb; border-color: rgba(46, 139, 251, 0.3); background: rgba(46, 139, 251, 0.08); }
.pool-cap__item--reserve { color: #8fe6bd; border-color: rgba(46, 208, 138, 0.3); background: rgba(46, 208, 138, 0.08); }
.pool-cap__item--attack.is-over { color: #ff8f99; border-color: rgba(240, 68, 82, 0.6); background: rgba(240, 68, 82, 0.16); }
.pool-cap__warn {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(240, 68, 82, 0.35);
  background: rgba(240, 68, 82, 0.1);
  color: #f2c0c5;
  font-size: 10.5px;
  line-height: 1.65;
}
.pool-cap__btn {
  display: block;
  margin-top: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(46, 139, 251, 0.45);
  background: var(--blue-soft);
  color: #9dc7fb;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
}
.pool-cap__hint { margin-top: 8px; font-size: 10.5px; color: var(--text-3); }
.pool-add--attack { color: #f0a6ac; border-color: rgba(240, 68, 82, 0.42); background: rgba(240, 68, 82, 0.08); }
.pool-add--watch { color: #9dc7fb; border-color: rgba(46, 139, 251, 0.42); background: rgba(46, 139, 251, 0.08); }
.pool-add--reserve { color: #8fe6bd; border-color: rgba(46, 208, 138, 0.42); background: rgba(46, 208, 138, 0.08); }
.cell-tag--over { color: #ff8f99; border-color: rgba(240, 68, 82, 0.5); background: rgba(240, 68, 82, 0.14); }
.chip--up:not(.is-active) .chip__no { color: rgba(240, 68, 82, 0.6); }
.chip--down:not(.is-active) .chip__no { color: rgba(46, 208, 138, 0.6); }
.chip--blue:not(.is-active) .chip__no { color: rgba(77, 163, 255, 0.6); }
.chip:not(.is-active) .chip__count { color: var(--text-3); }

/* ============================ 数据列表 ============================ */

.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }

.list__head, .list__row {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
}
.list__head {
  font-size: 12px;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}
.list__row { border-bottom: 1px solid rgba(255, 255, 255, 0.045); transition: background 0.14s ease; text-align: left; width: 100%; }
.list__head > span { white-space: nowrap; }
.list__row:last-child { border-bottom: 0; }
.list__row.is-tappable:hover { background: rgba(255, 255, 255, 0.035); }
.cell-main { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.cell-main--up { color: var(--up); }
.cell-sub { display: block; font-size: 11px; color: var(--text-3); margin-top: 3px; line-height: 1.35; }
.cell-sub--up { color: rgba(240, 68, 82, 0.78); }
.cell-sub--down { color: rgba(46, 208, 138, 0.8); }

.cols-holdings { grid-template-columns: 1.04fr 0.6fr 0.9fr 0.94fr 26px; }
.cols-pool { grid-template-columns: 1.15fr 0.75fr 0.85fr 1.1fr; }
.cols-pool-edit { grid-template-columns: 1.05fr 0.7fr 0.78fr 1fr 26px; }
.cols-history { grid-template-columns: 0.72fr 1.35fr 0.7fr 0.95fr; }

/* ============================ 首页 · 驾驶舱 ============================ */

.hero-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 168px;
  background: #12283c;
}
.hero-card__art { position: absolute; inset: 0; }
.hero-card__art svg { display: block; width: 100%; height: 100%; }
.hero-card__inner { position: relative; padding: 14px 16px 15px; display: flex; flex-direction: column; min-height: 168px; }
.hero-card__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hero-card__label { font-size: 12px; color: rgba(255, 255, 255, 0.75); display: flex; align-items: center; gap: 7px; }
.hero-card__total { font-size: 33px; font-weight: 800; letter-spacing: 0.5px; margin-top: 4px; line-height: 1.1; }
.hero-card__pnl-label { font-size: 12px; color: rgba(255, 255, 255, 0.75); margin-top: 14px; }
.hero-card__pnl { display: flex; align-items: baseline; gap: 10px; margin-top: 3px; }
.hero-card__pnl b { font-size: 24px; font-weight: 800; color: #ff5a68; }
.hero-card__pnl span { font-size: 15px; font-weight: 700; color: #ff5a68; }
.hero-card__pnl.is-down b, .hero-card__pnl.is-down span { color: #35e08d; }
.hero-card__quote {
  position: absolute;
  right: 14px;
  bottom: 22px;
  font-family: var(--font-hand);
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
  color: #f2f5f8;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
  transform: rotate(-5deg);
  letter-spacing: 1px;
}
.hero-card__eye { color: #9fc6f5; }

/* 图表 */
.chart-card { padding: 12px 12px 8px; }
.chart-legend { display: flex; gap: 13px; padding: 2px 4px 10px; }
.chart-legend button {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  padding: 4px 2px 7px;
  position: relative;
  white-space: nowrap;
}
.chart-legend button.is-active { color: var(--blue-2); }
.chart-legend button.is-active::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}
.chart-wrap { position: relative; }
.chart-wrap svg { display: block; width: 100%; height: auto; }

/* 两行显示：2 × 2，四个数字块不用左右滑 */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 9px 9px;
}
.stat__label { font-size: 11px; color: var(--text-2); white-space: nowrap; }
.stat__value { font-size: 16.5px; font-weight: 700; margin-top: 5px; }

.status-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
.status-card__beacon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2ee08a;
  animation: beacon 2.4s ease-in-out infinite;
}
.status-card__beacon--warn { background: var(--warn); animation: beacon-warn 2.4s ease-in-out infinite; }
.status-card__beacon--bad { background: var(--up); animation: beacon-bad 2.4s ease-in-out infinite; }
@keyframes beacon {
  0%, 100% { box-shadow: 0 0 0 6px rgba(46, 224, 138, 0.14), 0 0 18px rgba(46, 224, 138, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(46, 224, 138, 0.08), 0 0 28px rgba(46, 224, 138, 0.75); }
}
@keyframes beacon-warn {
  0%, 100% { box-shadow: 0 0 0 6px rgba(249, 189, 21, 0.14), 0 0 18px rgba(249, 189, 21, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(249, 189, 21, 0.08), 0 0 28px rgba(249, 189, 21, 0.75); }
}
@keyframes beacon-bad {
  0%, 100% { box-shadow: 0 0 0 6px rgba(240, 68, 82, 0.14), 0 0 18px rgba(240, 68, 82, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(240, 68, 82, 0.08), 0 0 28px rgba(240, 68, 82, 0.75); }
}
.status-card__label { font-size: 12px; color: var(--text-2); }
.status-card__value { font-size: 22px; font-weight: 800; color: #35e58c; margin-top: 2px; letter-spacing: 1px; }
.status-card__value--warn { color: var(--warn); }
.status-card__value--bad { color: var(--up); }
.status-card__desc { font-size: 12px; color: var(--text-2); margin-top: 6px; }

.task-list { display: grid; gap: 11px; }
.task-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; }
.task-item__text { flex: 1 1 auto; min-width: 0; }
.task-item.is-done .task-item__text { text-decoration: line-through; opacity: 0.5; }
/* 每行右边的「完成」圈 */
/* 回撤红线：每档一个颜色（左侧竖条 + 文字同色），状态正常=绿、已触发=该档颜色 */
.dd-row { position: relative; padding-left: 13px; }
.dd-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 3px;
  border-radius: 3px;
  background: var(--dd, #f0674f);
  box-shadow: 0 0 10px -2px var(--dd, #f0674f);
}
.crow.dd-row > span { color: var(--dd, var(--text-2)); font-weight: 700; }
.crow .dd-row__state { color: #2ed08a; }
.crow .dd-row__state.is-hit { color: var(--dd, var(--up)); }

.task-done {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-top: -3px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  transition: transform 0.12s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.task-done:active { transform: scale(0.92); }
.task-done.is-done {
  color: #06251a;
  background: linear-gradient(140deg, #4de3a4, #2ed08a);
  border-color: transparent;
  box-shadow: 0 8px 18px -10px rgba(46, 208, 138, 0.9);
}
.task-item { border-radius: 10px; }
.task-item--edit { align-items: center; }
.task-item__no--own { background: #2e8bfb; color: #fff; }
.cell-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #9aa7b6;
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}
.cell-tag--auto { color: #8cc4ff; border-color: rgba(46, 139, 251, 0.42); background: rgba(46, 139, 251, 0.14); }
.task-item__no {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  color: #0b1220;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

/* ============================ 持仓中心 ============================ */

.hold-stats { display: grid; grid-template-columns: 0.95fr 1.45fr 0.8fr; gap: 4px; }
.hold-stats__label { font-size: 11.5px; color: var(--text-2); }
.hold-stats__value { font-size: 19px; font-weight: 700; margin-top: 7px; white-space: nowrap; }
.hold-stats__sub { font-size: 11.5px; font-weight: 700; }

.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut { position: relative; width: 132px; height: 132px; flex: 0 0 auto; }
.donut svg { display: block; }
.donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 3px; }
.donut__value { font-size: 17px; font-weight: 700; }
.donut__label { font-size: 10.5px; color: var(--text-3); }
.legend { flex: 1 1 auto; display: grid; gap: 11px; }
.legend__row { display: grid; grid-template-columns: 10px 1fr auto; gap: 9px; align-items: center; font-size: 12.5px; }
.legend__name { color: var(--text); }
.legend__val { color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ============================ 今日作战 ============================ */

.progress-row { display: flex; align-items: center; gap: 12px; }
.progress-row__label { font-size: 14px; font-weight: 600; }
.progress-row__count { font-size: 15px; font-weight: 700; color: var(--blue-2); font-variant-numeric: tabular-nums; }
.progress-row__edit { font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; padding: 2px 0 2px 4px; }
.progress-row__edit.is-active { color: var(--blue-2); }
.progress { flex: 1 1 auto; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.progress__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2e8bfb, #4da3ff);
  box-shadow: 0 0 14px rgba(46, 139, 251, 0.6);
  transition: width 0.4s ease;
}

.timeline { position: relative; display: grid; gap: 10px; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, rgba(46, 208, 138, 0.6), rgba(46, 139, 251, 0.5), rgba(255, 255, 255, 0.09));
}
.step { position: relative; }
.step__node {
  position: absolute;
  left: -34px;
  top: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0d141d;
  border: 2px solid rgba(255, 255, 255, 0.22);
  color: var(--text-3);
  z-index: 1;
}
.step__node--done { background: #2ed08a; border-color: #2ed08a; color: #04140d; }
.step__node--doing { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 4px rgba(46, 139, 251, 0.2); }
.step__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.step__card--doing { border-color: var(--blue-line); }
.step__card--editing { border-color: var(--blue-line); cursor: pointer; }
.step__card--editing:hover { background: #18222e; }
.step__empty { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.step__head { display: flex; align-items: center; gap: 10px; }
.step__title { font-size: 15px; font-weight: 700; }
.step__time { font-size: 12px; color: var(--text-3); }
.step__badge { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.step__badge--done { color: var(--down); }
.step__badge--doing { color: var(--blue-2); background: var(--blue-soft); border-color: var(--blue-line); }
.step__badge--todo { color: var(--text-3); }
.step__list { margin: 9px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.step__list li { position: relative; padding-left: 12px; font-size: 12.5px; color: #cdd6e0; line-height: 1.45; }
.step__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

/* ============================ 个股作战卡 ============================ */

.stock-head { display: flex; align-items: center; gap: 10px; }
.stock-head__name { font-size: 24px; font-weight: 800; }
.stock-head__code { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.stock-price { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.stock-price__now { font-size: 30px; font-weight: 800; }
.stock-price__chg { font-size: 16px; font-weight: 700; }
.back-btn { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 13px; padding: 4px 8px 4px 0; }
.back-btn:hover { color: #fff; }

.kv-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.kv {
  display: grid;
  grid-template-columns: 26px 96px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.kv:last-child { border-bottom: 0; }
.kv__icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: #b8c4d2;
}
.kv__key { font-size: 13px; color: #c7d1dc; }
.kv__val { font-size: 14px; font-weight: 600; color: #eef3f8; }
.kv__val--muted { color: #cdd6e1; font-weight: 500; }

.sparkline { width: 100%; height: 158px; display: block; }

.feed { display: grid; gap: 10px; }
.feed__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.feed__title { font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.feed__meta { font-size: 11px; color: var(--text-3); margin-top: 8px; display: flex; gap: 10px; align-items: center; }

/* ============================ AI 副驾驶 ============================ */

.ai-head { display: flex; align-items: center; gap: 12px; }
.ai-head__logo {
  display: grid;
  place-items: center;
  /* 和其它页表头一致：只要彩色图标本身，不要底框 / 圆底 / 投影 */
  background: none;
  box-shadow: none;
}
.ai-head__logo svg { width: 42px; height: 42px; }
.ai-head__title { font-size: 20px; font-weight: 800; }
.ai-head__sub { font-size: 11.5px; color: var(--text-2); margin-top: 4px; letter-spacing: 0.5px; }

/* 在线模型选择 */
.ai-models {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 4px;
  margin-top: 4px;
}
.ai-models::-webkit-scrollbar { display: none; }
.ai-model {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.ai-model.is-on { color: #fff; border-color: var(--blue-line); background: var(--blue-soft); }
.ai-model--gear { color: var(--blue-2); border-color: var(--blue-line); background: transparent; }
.ai-model__dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.ai-model__dot--ok { background: #38e790; box-shadow: 0 0 8px rgba(56, 231, 144, 0.6); }
.ai-model__dot--local { background: #6b7686; }
.ai-picker { margin-top: 6px; }
.ai-picker__row { display: flex; align-items: stretch; gap: 8px; }
.ai-select {
  flex: 1 1 auto;
  min-width: 0;
  appearance: none;
  background: #101a24 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6.5 8 10.5 12 6.5' fill='none' stroke='%238fb6e8' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 30px 10px 12px;
}
.ai-select:focus { border-color: var(--blue-line); outline: none; }
.ai-picker__btn { flex: 0 0 auto; padding: 0 12px; font-size: 12px; }
.ai-picker__hint { margin-top: 7px; font-size: 10.5px; line-height: 1.6; color: var(--text-3); }
.ai-note {
  font-size: 11px;
  color: var(--blue-2);
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-radius: 10px;
  padding: 7px 10px;
  line-height: 1.5;
}
.ai-note--off { color: #f2c46b; background: rgba(249, 189, 21, 0.1); border-color: rgba(249, 189, 21, 0.35); }

/* 双模型共用：同一个问题，两个模型各答一遍 */
.ai-dual { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.ai-dual__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ai-dual__toggle span { font-size: 10.5px; font-weight: 500; color: var(--text-3); }
.ai-dual__switch { position: relative; width: 26px; height: 15px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); transition: background 0.16s ease; }
.ai-dual__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #8b97a6;
  transition: transform 0.16s ease, background 0.16s ease;
}
.ai-dual--on .ai-dual__toggle { color: #fff; border-color: var(--blue-line); background: var(--blue-soft); }
.ai-dual--on .ai-dual__switch { background: rgba(46, 139, 251, 0.35); }
.ai-dual--on .ai-dual__switch::after { transform: translateX(11px); background: var(--blue-2); }
.ai-dual__pair { flex: 1 1 170px; min-width: 148px; display: flex; align-items: center; gap: 6px; }
.ai-dual__plus { font-size: 14px; font-weight: 700; color: var(--blue-2); }
.ai-select--sm { padding: 8px 28px 8px 10px; font-size: 12px; border-radius: 10px; }

.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ai-card {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  text-align: left;
  padding: 13px 11px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
  transition: background 0.16s ease, transform 0.12s ease, border-color 0.16s ease;
}
.ai-card > span:last-child { display: block; min-width: 0; }
.ai-card:hover { background: #18222e; border-color: var(--line-strong); }
.ai-card:active { transform: scale(0.985); }
.ai-card__icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--ai, #4d8dff), rgba(0, 0, 0, 0.25));
  box-shadow: 0 8px 18px -10px var(--ai, rgba(46, 139, 251, 0.95));
}
.ai-card { border-color: rgba(255, 255, 255, 0.08); }
.ai-card:hover { border-color: var(--ai, var(--blue-line)); }
.ai-card__title { display: block; font-size: 14px; font-weight: 700; color: var(--ai, #eef3f8); }
.ai-card__desc { display: block; font-size: 10.5px; color: var(--text-2); margin-top: 5px; line-height: 1.4; }

.ai-chat { display: grid; gap: 10px; margin-top: 2px; }
.quick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-row .pill { padding: 7px 13px; font-size: 12px; }
.bubble { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 13px; line-height: 1.6; }
.bubble--me { margin-left: auto; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.bubble--ai { background: var(--card); border: 1px solid var(--line); color: #e4ebf3; border-bottom-left-radius: 4px; }
.bubble--ai b { color: #fff; }
.bubble__tagline { display: block; margin-top: 8px; font-size: 11px; color: var(--text-3); }
.bubble__label {
  display: inline-block;
  margin-bottom: 7px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--blue-line);
  background: var(--blue-soft);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--blue-2);
}

/* AI 气泡里的操作按钮（例如「让在线模型回答」） */
.bubble-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.bubble-btn {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
}
.bubble-btn:hover { color: #fff; border-color: var(--line-strong); background: rgba(255, 255, 255, 0.1); }
.bubble-btn--primary { color: var(--blue-2); border-color: var(--blue-line); background: var(--blue-soft); }
.bubble-btn--primary:hover { background: rgba(46, 139, 251, 0.22); }
.bubble--typing { display: inline-flex; gap: 4px; align-items: center; }
.bubble--typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite; }
.bubble--typing i:nth-child(2) { animation-delay: 0.2s; }
.bubble--typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

.ai-form { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; }
.ai-form__attach {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--line-strong);
  color: var(--blue-2);
}
.ai-form__attach:hover { border-color: var(--blue-line); color: #fff; }
/* iOS Safari 不会为 display:none 的文件框弹选择器，
   所以让 input 透明地铺满按钮，点按钮＝点原生文件输入 */
.ai-form__file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* AI 智驾：上传的附件条 */
.ai-files { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-files--empty {
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--text-3);
  background: var(--card-2, rgba(255, 255, 255, 0.02));
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 8px 10px;
}
.ai-files--empty b { color: var(--blue-2); }
.ai-file {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 8px 6px 6px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}
.ai-file__thumb { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.ai-file__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, #2f7ff2, #1c56b8);
}
.ai-file__text { display: grid; min-width: 0; }
.ai-file__text b {
  font-size: 11.5px;
  font-weight: 600;
  color: #e8eef6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.ai-file__state { font-size: 10px; color: var(--text-3); }
.ai-file__state--ok { color: #35d08a; }
.ai-file__state--bad { color: #f0764f; }
.ai-file__del {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.06);
}
.ai-file__del:hover { color: #fff; background: rgba(240, 118, 79, 0.3); }
.bubble__files { display: block; margin-top: 6px; font-size: 10.5px; color: var(--blue-2); }
.ai-form__field {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 11px 16px;
}
.ai-form__field input {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  min-width: 0;
}
.ai-form__field input::placeholder { color: var(--text-3); }
.ai-form__send {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(46, 139, 251, 1);
}
.ai-form__send:hover { filter: brightness(1.1); }
.disclaimer { font-size: 10.5px; color: var(--text-3); text-align: center; line-height: 1.5; padding: 2px 6px 0; }

/* ============================ 复盘报告 ============================ */

.review-stats { display: grid; grid-template-columns: 1.35fr 0.85fr 0.85fr; }
.review-stats__item { padding-right: 12px; border-right: 1px solid var(--line); }
.review-stats__item:last-child { border-right: 0; }
.review-stats__item:not(:first-child) { padding-left: 12px; }
.review-stats__label { font-size: 11.5px; color: var(--text-2); }
.review-stats__value { font-size: 20px; font-weight: 700; margin-top: 9px; display: flex; align-items: baseline; gap: 7px; }
.review-stats__sub { font-size: 12px; font-weight: 700; }

.number-list { display: grid; gap: 13px; margin-top: 4px; }
.number-list__item { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: #e2e8ef; }
.number-list__no {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: #cfd8e3;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

/* ============================ 启动页 ============================ */

.splash {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  background: #04070e;
  z-index: 40;
}
.splash__art {
  position: absolute;
  inset: 0;
  background-image: url("assets/lighthouse.svg");
  background-size: cover;
  background-position: center 44%;
}
.splash__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 7, 14, 0.88) 0%, rgba(3, 7, 14, 0.4) 26%, rgba(3, 7, 14, 0) 46%,
      rgba(3, 7, 14, 0.2) 64%, rgba(3, 7, 14, 0.82) 86%, rgba(3, 7, 14, 0.97) 100%);
}
.splash__content {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1 1 auto;
  padding: 6px 30px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.splash__logo { margin-top: 12px; filter: drop-shadow(0 14px 34px rgba(46, 139, 251, 0.45)); }
.splash__name { font-size: 52px; font-weight: 800; letter-spacing: 12px; margin: 20px 0 0 12px; }
.splash__slogan { font-size: 17px; font-weight: 600; color: #e8eef5; letter-spacing: 2px; margin-top: 14px; }
.splash__quote {
  margin: auto 0 0;
  font-family: var(--font-hand);
  font-size: 25px;
  line-height: 1.55;
  transform: rotate(-6deg);
  text-align: center;
  color: #fff;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.8);
  letter-spacing: 2px;
}
.splash__quote em { font-style: normal; display: block; }
.splash__quote u {
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.78);
  padding-bottom: 3px;
}
.splash__cta { margin-top: 30px; width: 100%; }
.splash__foot {
  margin-top: 22px;
  font-size: 10.5px;
  letter-spacing: 2.4px;
  color: rgba(226, 234, 244, 0.62);
  font-weight: 500;
}

/* ============================ 底部导航 ============================ */

.tabbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 6px 16px;
  background: linear-gradient(180deg, rgba(10, 15, 23, 0.8), #0a0f17 62%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 10;
}
.tabbar__item {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 4px 0 2px;
  color: var(--nav, var(--text-3));
  opacity: 0.62;
  transition: color 0.16s ease, opacity 0.16s ease, transform 0.14s ease;
}
.tabbar__item span { font-size: 10.5px; font-weight: 600; }
.tabbar__item.is-active { color: var(--nav, var(--blue-2)); opacity: 1; }
.tabbar__item.is-active span { font-weight: 800; }
.tabbar__item.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--nav, var(--blue));
  box-shadow: 0 0 10px -1px var(--nav, var(--blue));
}
.tabbar__item { position: relative; }
.tabbar__item:hover { opacity: 0.9; }
.tabbar__item.is-active:hover { opacity: 1; }

/* ============================ 提示条 ============================ */

.toast-host {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 96px;
  display: grid;
  justify-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 50;
}

/* ============================ 底部表单（添加持仓等） ============================ */

.sheet-host { position: absolute; inset: 0; z-index: 60; pointer-events: none; }
.sheet-host:empty { display: none; }

.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 14, 0.62);
  pointer-events: auto;
  animation: fade-in 0.2s ease both;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 86%;
  overflow-y: auto;
  background: #111a24;
  border-top: 1px solid var(--line-strong);
  border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -24px 60px -24px #000;
  pointer-events: auto;
  animation: sheet-up 0.28s cubic-bezier(0.22, 0.68, 0.32, 1) both;
}
@keyframes sheet-up { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

.sheet__grab { width: 38px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); margin: 0 auto 14px; }
.sheet__title { font-size: 17px; font-weight: 700; }
.sheet__hint { font-size: 11.5px; color: var(--text-3); line-height: 1.55; margin-top: 6px; white-space: pre-line; }
.sheet__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.sheet__error {
  margin-top: 10px;
  font-size: 12px;
  color: var(--up);
  background: var(--up-soft);
  border: 1px solid rgba(240, 68, 82, 0.35);
  border-radius: 10px;
  padding: 8px 11px;
  line-height: 1.5;
}
.sheet__error[hidden] { display: none; }
.sheet__actions { display: flex; gap: 10px; margin-top: 16px; }
.sheet__actions .btn--ghost { border: 1px solid var(--line-strong); padding: 11px 18px; }

.field { display: block; min-width: 0; }
.field--wide { grid-column: span 2; }
.field__label { display: block; font-size: 11.5px; color: var(--text-2); margin-bottom: 6px; }
.field__label i { font-style: normal; color: var(--up); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: #0c141d;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field textarea { resize: vertical; line-height: 1.6; min-height: 78px; }

/* 输入即列出 */
.suggest { position: relative; }
.suggest__list:empty { display: none; }
.suggest__list {
  margin-top: 8px;
  background: #0c141d;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  max-height: 208px;
  overflow-y: auto;
}
.suggest__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.suggest__item:last-child { border-bottom: 0; }
.suggest__item:hover { background: rgba(46, 139, 251, 0.14); }
.suggest__name { font-size: 13.5px; font-weight: 600; color: #fff; }
.suggest__meta { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.suggest__hint { font-size: 11.5px; color: var(--text-3); padding: 9px 12px; line-height: 1.5; }
.suggest__hint--ok { color: var(--down); }
.suggest__hint--off { color: #e5a13a; }
.field input::placeholder { color: #4d5866; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-line); box-shadow: 0 0 0 3px rgba(46, 139, 251, 0.14); }
.field select {
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7686' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9.5 12 15.5 18 9.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 14px 14px;
}

.row-remove {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--up-soft);
  color: var(--up);
  border: 1px solid rgba(240, 68, 82, 0.4);
  align-self: center;
}
.row-remove:hover { background: rgba(240, 68, 82, 0.24); }

/* ============================ 行情 ============================ */

.live-tag {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 700;
  color: #4da3ff;
  background: rgba(46, 139, 251, 0.16);
  border: 1px solid rgba(46, 139, 251, 0.35);
  vertical-align: 1px;
}
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38e790;
  margin-left: 5px;
  vertical-align: 2px;
}
.quote-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--text-3);
}
.quote-bar__text { flex: 1 1 auto; }
.quote-bar__live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38e790;
  box-shadow: 0 0 8px rgba(56, 231, 144, 0.7);
  animation: livePulse 2s ease-in-out infinite;
  flex: 0 0 auto;
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.card > .quote-bar:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.quote-bar__btn {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--blue-2);
  border: 1px solid var(--blue-line);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 3px 9px;
}
.quote-bar--off .quote-bar__text { color: #e5a13a; }

.import-row { margin-top: 10px; }
.import-row .btn { width: 100%; }
.warn-tip {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.55;
  color: #f2c46b;
  background: rgba(249, 189, 21, 0.12);
  border: 1px solid rgba(249, 189, 21, 0.35);
  border-radius: 10px;
  padding: 8px 11px;
}
.warn-tip__link {
  color: #ffd98a;
  text-decoration: underline;
  font-size: 11.5px;
  font-weight: 600;
  padding: 0 2px;
}

/* ============================ 对账单导入 ============================ */

.import-host:empty { display: none; }
.import-host { position: absolute; inset: 0; z-index: 70; }
.imp-mask { position: absolute; inset: 0; background: rgba(4, 8, 14, 0.72); }
.imp {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92%;
  overflow-y: auto;
  background: #111a24;
  border-top: 1px solid var(--line-strong);
  border-radius: 22px 22px 0 0;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -24px 60px -24px #000;
}
.imp__x {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  z-index: 2;
}
.imp__x:hover { border-color: var(--blue-line); color: #fff; }
.imp__title { font-size: 17px; font-weight: 700; }
.imp__hint { font-size: 11.5px; color: var(--text-3); line-height: 1.55; margin-top: 6px; }
.imp__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.imp__actions .btn { padding: 9px 14px; font-size: 12.5px; }
.imp__busy { margin-top: 12px; font-size: 12px; color: var(--blue-2); }
.imp__note { margin-top: 10px; font-size: 11.5px; color: var(--text-2); }
.imp__text {
  width: 100%;
  min-height: 108px;
  margin-top: 12px;
  background: #0c141d;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  line-height: 1.5;
  outline: none;
}
.imp__drop {
  position: relative;
  margin-top: 14px;
  padding: 16px 14px;
  text-align: center;
  border: 1px dashed rgba(46, 139, 251, 0.45);
  border-radius: 14px;
  background: rgba(46, 139, 251, 0.08);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.imp__notice {
  margin-top: 12px;
  padding: 12px 13px;
  border-radius: 12px;
  background: rgba(249, 189, 21, 0.1);
  border: 1px solid rgba(249, 189, 21, 0.35);
  color: #f3d79b;
  font-size: 11.5px;
  line-height: 1.6;
}
.imp__notice b { color: #ffd98a; }
.imp__cmd {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0c141d;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  color: #cfe3ff;
  word-break: break-all;
}
.imp__copy {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--blue-2);
  border: 1px solid var(--blue-line);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 3px 9px;
  font-family: inherit;
}
.imp__notice-sub { margin-top: 8px; color: var(--text-3); }

/* ============================ 每日执行表 ============================ */

/* 打印 / 导出：只打印文档本身，白底黑字 */
.print-host { display: none; }
.doc { color: #111; background: #fff; font-size: 12.5pt; line-height: 1.75; max-width: 186mm; margin: 0 auto; }
.doc h1 { font-size: 22pt; margin: 0 0 8px; }
.doc .doc__meta { color: #555; font-size: 11pt; margin-bottom: 16px; }
.doc h2 { font-size: 15pt; margin: 20px 0 10px; padding-bottom: 5px; border-bottom: 1px solid #999; }
.doc table { width: 100%; border-collapse: collapse; }
.doc th, .doc td { border: 1px solid #bbb; padding: 7px 10px; text-align: left; vertical-align: top; font-size: 11.5pt; }
.doc th { width: 34%; background: #f2f4f7; font-weight: 600; }
.doc .doc__foot { margin-top: 16px; color: #666; font-size: 9.5pt; }

@media print {
  body { background: #fff; }
  body > .shell > .brand-panel,
  body > .shell > .device { display: none !important; }
  .print-host { display: block !important; padding: 0 6mm; }
  .doc h2 { break-after: avoid; page-break-after: avoid; }
  .doc table { break-inside: auto; page-break-inside: auto; }
}

.exec-hist { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.exec-hist .btn { flex: 0 0 auto; white-space: nowrap; }
.exec-hist select {
  flex: 1 1 auto;
  min-width: 0;
  background: #101a24;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  padding: 8px 9px;
}

.exec-panel { max-height: 94%; }
.exec-bar { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.exec-bar .btn { padding: 9px 11px; font-size: 12px; white-space: nowrap; }
.exec-sec {
  background: #0c141d;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-top: 12px;
}
.exec-sec__title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.exec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.exec-row2 { display: grid; grid-template-columns: 1.3fr 0.9fr 0.9fr; gap: 8px; margin-bottom: 8px; }
.allow-row { grid-template-columns: 1.5fr 0.8fr 0.7fr auto; align-items: end; }
.allow-row .row-remove { align-self: center; }
.allow-del { width: 24px; height: 24px; }
select.exec-in { appearance: none; }
.exec-f { display: block; min-width: 0; }
.exec-f--wide { grid-column: span 2; }
.exec-f > span { display: block; font-size: 10.5px; color: var(--text-3); margin-bottom: 4px; }
.exec-in {
  width: 100%;
  min-width: 0;
  background: #101a24;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 8px 9px;
  color: #fff;
  font-size: 12.5px;
  font-family: inherit;
  line-height: 1.5;
  outline: none;
  resize: vertical;
}
.exec-in:focus { border-color: var(--blue-line); }
.exec-in--mini { width: 70px; text-align: center; }
.exec-label { font-size: 10.5px; color: var(--text-3); margin: 10px 0 6px; }
.auto-flag {
  font-style: normal;
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 999px;
  color: var(--blue-2);
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  vertical-align: middle;
}
/* 输入框 + 转轮按钮 并排（总控台的百分比字段）
   注意 .exec-f > span 会把 span 变成块级标签样式，这里要压过去 */
/* ============ 五大板块（计划 · 执行 · 风控 · 复盘 · 长期） ============ */
/* ============ AI 智驾 · 投资宝典 ============ */
/* AI 页上的宝典入口按钮 */
/* 黄金质感字：金属渐变 + 细拉丝高光（用于「投资宝典」这几个字） */
.gold-text {
  color: #f3c75a;
  background:
    repeating-linear-gradient(104deg, rgba(255, 255, 255, 0.16) 0 1.5px, rgba(255, 255, 255, 0) 1.5px 4px),
    linear-gradient(180deg, #fff8d8 0%, #ffe49b 20%, #f0bd4a 42%, #b8860b 58%, #dbab35 72%, #fff2c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 7px rgba(255, 197, 80, 0.4));
}

/* 页面内阅读原文（底部大面板） */
.sheet--reader {
  max-height: 92dvh;
  height: 92dvh;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reader__head { display: flex; align-items: flex-start; gap: 10px; }
.reader__head b { flex: 1 1 auto; font-size: 16.5px; font-weight: 800; line-height: 1.45; color: #eef3f8; }
.sheet__x {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.06);
}
.reader__meta { font-size: 11.5px; color: var(--text-3); }
.reader__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 14px;
  line-height: 1.85;
  color: #dbe4ee;
  padding: 2px 2px 8px;
}

.bible-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 198, 92, 0.35);
  background: linear-gradient(120deg, rgba(255, 198, 92, 0.14), rgba(255, 255, 255, 0.02));
  color: var(--text);
}
.bible-entry:hover { border-color: #ffc65c; }
.bible-entry__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: linear-gradient(140deg, rgba(255, 198, 92, 0.9), rgba(160, 100, 20, 0.75));
}
.bible-entry__body { flex: 1 1 auto; display: grid; min-width: 0; }
.bible-entry__body b { font-size: 14.5px; font-weight: 800; color: #ffc65c; }
.bible-entry__body i { font-style: normal; font-size: 10.5px; color: var(--text-3); margin-top: 2px; }

.card__title--gold { color: #ffc65c; text-shadow: 0 0 14px rgba(255, 198, 92, 0.32); }
.news-list { display: grid; gap: 8px; margin-top: 10px; }
.news-item {
  display: grid;
  gap: 3px;
  width: 100%;
  text-align: left;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  transition: border-color 0.16s ease, background 0.16s ease;
}
.news-item:hover { border-color: var(--blue-line); background: rgba(46, 139, 251, 0.08); }
.news-item__meta { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--text-3); }
.news-item__meta b { color: var(--blue-2); font-weight: 700; }
.news-item__meta i { font-style: normal; }
.news-item__title { font-size: 13px; line-height: 1.5; color: #e4ebf3; }
.bible-wrap { display: grid; gap: 10px; margin-top: 10px; }
.bible-group {
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--tone, var(--blue));
  background: rgba(255, 255, 255, 0.025);
  padding: 9px 11px;
}
.bible-group__title { font-size: 13.5px; font-weight: 800; color: var(--tone, #fff); margin-bottom: 4px; }
.bible-rule { font-size: 12.5px; line-height: 1.6; color: var(--text-2); }
.bible-rule::before { content: "· "; color: var(--tone, var(--blue)); }

/* 交易流程步骤条：① 计划 → ② 执行 → ③ 风控 → ④ 复盘 → ⑤ 长期 */
/* 五步各自的颜色：整站统一（步骤条 + 对应页面主色） */
:root,
body {
  --accent: #2f7ff2;
  --accent-soft: rgba(47, 127, 242, 0.24);
  --accent-wash: rgba(47, 127, 242, 0.09);
}
body[data-step="plan"] { --accent: #4d8dff; --accent-soft: rgba(77, 141, 255, 0.30); --accent-wash: rgba(77, 141, 255, 0.12); }
body[data-step="exec"] { --accent: #f0674f; --accent-soft: rgba(240, 103, 79, 0.30); --accent-wash: rgba(240, 103, 79, 0.12); }
body[data-step="risk"] { --accent: #f9bd15; --accent-soft: rgba(249, 189, 21, 0.30); --accent-wash: rgba(249, 189, 21, 0.11); }
body[data-step="review"] { --accent: #a06ef0; --accent-soft: rgba(160, 110, 240, 0.30); --accent-wash: rgba(160, 110, 240, 0.12); }
body[data-step="longterm"] { --accent: #2ed08a; --accent-soft: rgba(46, 208, 138, 0.28); --accent-wash: rgba(46, 208, 138, 0.11); }

/* 页面主色：标题下面一条色条 + 卡片标题前的圆点 */
.page-head__title::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 7px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
body[data-step] .card__title::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px -1px var(--accent);
}
body[data-step] .back-btn { color: var(--accent); }

/* 页面底色也跟着统一：顶部一层很淡的同色渐变，往下过渡回原本底色 */
body[data-step] .device__screen {
  background:
    radial-gradient(120% 42% at 18% -6%, var(--accent-soft) 0%, rgba(0, 0, 0, 0) 58%),
    linear-gradient(180deg, var(--accent-wash) 0%, rgba(0, 0, 0, 0) 460px),
    var(--app-bg);
}
body[data-step] .tabbar {
  border-top: 1px solid var(--accent-wash);
}
body[data-step] .mac {
  background:
    radial-gradient(90% 46% at 50% -10%, var(--accent-soft) 0%, rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, var(--accent-wash) 0%, rgba(0, 0, 0, 0) 520px),
    #0b0c0f;
}
body[data-step] .mac-nav { border-bottom: 1px solid var(--accent-soft); }

.flowbar {
  position: sticky;
  top: 0;
  z-index: 4;
  margin: 0 -18px;
  padding: 8px 18px 10px;
  background: linear-gradient(180deg, var(--app-bg) 62%, rgba(11, 15, 20, 0.86) 88%, rgba(11, 15, 20, 0));
  backdrop-filter: blur(6px);
}
.flowbar--home { margin: 0; padding: 0; position: static; background: none; backdrop-filter: none; }
.flowbar__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
.flowbar__head b { font-size: 13px; font-weight: 700; letter-spacing: 0.3px; }
.flowbar__head span { font-size: 10.5px; color: var(--text-3); }
.flowbar__track {
  /* 一行放不下就左右滑动（不再折成两行）；滑动提示见 .flowbar__hint / .flowbar__dots */
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 6px;
  scrollbar-width: none;
}
.flowbar__track::-webkit-scrollbar { display: none; }
.flowbar__track .step { flex: 0 0 auto; width: 150px; scroll-snap-align: start; }

/* 左右滑动提示 + 步骤圆点（当前步是一个小胶囊，点圆点也能跳） */
.flowbar__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 0 7px;
  padding: 4px 0;
  border-radius: 999px;
  background: rgba(110, 168, 255, 0.1);
  border: 1px solid rgba(110, 168, 255, 0.26);
  font-size: 10.5px;
  color: #9fc6f5;
  letter-spacing: 0.3px;
}
.flowbar__hint i {
  font-style: normal;
  font-size: 13px;
  line-height: 1;
  color: var(--accent, #6ea8ff);
}
.flowbar__dots { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; }
.flowbar__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: width 0.16s ease, background 0.16s ease;
}
.flowbar__dot.is-done { background: rgba(46, 208, 138, 0.55); }
.flowbar__dot.is-on { width: 20px; border-radius: 999px; background: var(--accent, #6ea8ff); }

/* 鼠标也能滑：两侧箭头（只在能滑的时候出现）+ 按住拖动的手型 */
.flowbar__scrollwrap { position: relative; }
.flowbar__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  display: none;
  place-items: center;
  background: rgba(16, 26, 36, 0.94);
  border: 1px solid var(--line-strong);
  color: #cfe2ff;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.flowbar__nav:hover { border-color: var(--blue-line); color: #fff; }
.flowbar__scrollwrap.is-scrollable .flowbar__nav { display: grid; }
.flowbar__nav--prev { left: -6px; }
.flowbar__nav--next { right: -6px; }
.flowbar__scrollwrap.is-start .flowbar__nav--prev { opacity: 0.28; }
.flowbar__scrollwrap.is-end .flowbar__nav--next { opacity: 0.28; }
.flowbar__track { cursor: grab; user-select: none; -webkit-user-select: none; }
.flowbar__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.flowbar__arrow {
  display: none;
}
/* 宽屏（Mac）五个刚好排满一行，不用滑 */
.mac .mac-card .flowbar__track .step,
.mac .flowbar--home .flowbar__track .step { flex: 1 1 0; width: auto; }
/* Mac 页面里内嵌的手机预览还是横向滑动 */
.mac .mac-phone-screen .flowbar__track .step { flex: 0 0 auto; width: 150px; }
.step {
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 9px 10px 10px 13px;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: transform 0.12s ease, border-color 0.16s ease, background 0.16s ease;
}
.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--step-accent, var(--accent));
}
.step[data-step="plan"] { --step-accent: #4d8dff; --step-soft: rgba(77, 141, 255, 0.2); }
.step[data-step="exec"] { --step-accent: #f0674f; --step-soft: rgba(240, 103, 79, 0.2); }
.step[data-step="risk"] { --step-accent: #f9bd15; --step-soft: rgba(249, 189, 21, 0.2); }
.step[data-step="review"] { --step-accent: #a06ef0; --step-soft: rgba(160, 110, 240, 0.2); }
.step[data-step="longterm"] { --step-accent: #2ed08a; --step-soft: rgba(46, 208, 138, 0.2); }
.step:active { transform: scale(0.98); }
.step__top { display: flex; align-items: center; gap: 6px; }
.step__no {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--step-accent, var(--accent));
  background: var(--step-soft, rgba(255, 255, 255, 0.08));
  border: 1px solid var(--step-accent, rgba(255, 255, 255, 0.18));
}
.step__label { font-size: 12.5px; font-weight: 700; }
.step__metric { font-size: 13.5px; font-weight: 800; color: var(--step-accent, #fff); margin-top: 3px; white-space: nowrap; }
.step__hint { font-size: 9.5px; color: var(--text-3); white-space: nowrap; }
.step__metric, .step__hint { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.step.is-done .step__no { background: var(--step-accent, rgba(46, 208, 138, 0.22)); border-color: transparent; color: #06121f; }
.step.is-on {
  background: linear-gradient(150deg, var(--step-soft, rgba(46, 139, 251, 0.28)), rgba(255, 255, 255, 0.02));
  border-color: var(--step-accent, rgba(77, 163, 255, 0.7));
  box-shadow: 0 10px 24px -16px var(--step-accent, rgba(46, 139, 251, 0.9));
}
.step.is-on .step__no { background: var(--step-accent, var(--blue)); border-color: transparent; color: #06121f; }
.step.is-on .step__metric { color: #fff; }

.pillar-grid { display: grid; gap: 8px; }
.pillar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(46, 139, 251, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.pillar:hover { border-color: var(--blue-line); }
.pillar__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, #2f7ff2, #1c56b8);
}
.pillar__body { flex: 1 1 auto; display: grid; min-width: 0; }
.pillar__body b { font-size: 14px; font-weight: 700; }
.pillar__body i { font-style: normal; font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
/* 可点击的明细行（计划板块里的周期列表等） */
.crow--btn { width: 100%; text-align: left; background: none; border: 0; color: inherit; padding: 8px 0; }
.crow--btn:hover { color: var(--blue-2); }

.exec-f > .exec-in-row { display: flex; align-items: center; gap: 5px; width: 100%; font-size: 12.5px; color: #fff; }
/* 手机上输入框字号是 16px（防 iOS 自动放大），窄格子里要给够宽度，否则「10」会被裁成「1」 */
.exec-f > .exec-in-row .exec-in { flex: 1 1 auto; width: auto; min-width: 54px; }
.exec-f > .exec-in-row .wheel-btn { flex: 0 0 auto; min-height: 34px; padding: 0 7px; }
.exec-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.exec-chip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
}
.exec-chip.is-on { color: #fff; border-color: var(--blue-line); background: var(--blue-soft); }

/* 带颜色的模式按钮：未点亮是灰色，点亮后显示自己的颜色 */
.exec-chip[data-tone] {
  color: var(--text-3);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
.exec-chip[data-tone="green"].is-on { color: #7bf0bd; border-color: rgba(46, 208, 138, 0.62); background: rgba(46, 208, 138, 0.18); }
.exec-chip[data-tone="blue"].is-on { color: #8cc4ff; border-color: rgba(46, 139, 251, 0.66); background: rgba(46, 139, 251, 0.2); }
.exec-chip[data-tone="yellow"].is-on { color: #f8d67a; border-color: rgba(245, 196, 81, 0.62); background: rgba(245, 196, 81, 0.18); }
.exec-chip[data-tone="orange"].is-on { color: #ffb877; border-color: rgba(245, 158, 66, 0.66); background: rgba(245, 158, 66, 0.19); }
.exec-chip[data-tone="red"].is-on { color: #ff8f99; border-color: rgba(240, 68, 82, 0.66); background: rgba(240, 68, 82, 0.19); }
.exec-chip[data-tone="purple"].is-on { color: #c8a8ff; border-color: rgba(160, 110, 240, 0.62); background: rgba(160, 110, 240, 0.19); }
.exec-chip[data-tone="gray"].is-on { color: #e6ecf3; border-color: rgba(220, 230, 240, 0.4); background: rgba(220, 230, 240, 0.12); }
.exec-chip.is-hit { border-color: rgba(240, 68, 82, 0.6); }
.exec-chip.is-hit::after {
  content: "已触发";
  margin-left: 6px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(240, 68, 82, 0.22);
  color: #ff8f99;
  font-size: 8.5px;
  font-weight: 700;
}
.exec-block {
  border-top: 1px dashed rgba(255, 255, 255, 0.09);
  padding-top: 10px;
  margin-top: 10px;
}
.exec-block:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.exec-block__title { font-size: 12.5px; font-weight: 700; margin-bottom: 8px; color: #e8eef5; }
.exec-check { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.exec-check > span { font-size: 12px; color: #cdd6e0; }
.exec-total {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  font-size: 12.5px;
  color: #cfe3ff;
}
.exec-total b { font-size: 16px; color: #fff; }
.exec-up { color: var(--up); font-size: 11px; }
.exec-down { color: var(--down); font-size: 11px; }
.exec-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 6px; }
.exec-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #9aa7b6;
  font-size: 10px;
  font-weight: 600;
  vertical-align: middle;
}
.exec-badge:empty { display: none; }
.exec-badge--up { color: #ff8f99; border-color: rgba(240, 68, 82, 0.45); background: rgba(240, 68, 82, 0.14); }
.exec-badge--down { color: #6fe0ac; border-color: rgba(46, 208, 138, 0.45); background: rgba(46, 208, 138, 0.14); }
.exec-badges .exec-badge { margin-left: 0; }

/* 驾驶舱「自动汇总」说明 */
.console-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: var(--r-md);
  border: 1px solid rgba(46, 139, 251, 0.32);
  background: linear-gradient(100deg, rgba(46, 139, 251, 0.18), rgba(46, 139, 251, 0.06));
  text-align: left;
}
.console-strip:hover { border-color: var(--blue-line); background: rgba(46, 139, 251, 0.22); }
.console-strip__left { display: flex; align-items: center; gap: 9px; color: var(--blue-2); flex: 0 0 auto; }
.console-strip__left span { display: block; }
.console-strip__left b { display: block; font-size: 13.5px; font-weight: 700; color: #fff; }
.console-strip__left i { display: block; font-style: normal; font-size: 10px; color: #8fb6e8; margin-top: 2px; }
.console-strip__right { display: flex; align-items: center; gap: 10px; color: var(--text-3); }
.console-strip__item { display: grid; justify-items: end; }
.console-strip__item em { font-style: normal; font-size: 9.5px; color: var(--text-3); }
.console-strip__item b { font-size: 11.5px; font-weight: 700; color: #e8eef5; white-space: nowrap; }
.console-strip__item b.up { color: var(--up); }
.console-strip__item b.down { color: var(--down); }

.crow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}
.crow:last-child { border-bottom: 0; }
.crow > span { font-size: 12px; color: var(--text-2); }
.crow > b { font-size: 13.5px; font-weight: 700; color: #eef3f8; }
.crow > b.up { color: var(--up); }
.crow > b.down { color: var(--down); }

.exec-note {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(46, 139, 251, 0.08);
  border: 1px solid rgba(46, 139, 251, 0.25);
  color: #a9c6e8;
  font-size: 10.5px;
  line-height: 1.6;
}

/* 执行表：实时联动数据条 */
.exec-live {
  margin-bottom: 10px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(46, 139, 251, 0.3);
  background: linear-gradient(100deg, rgba(46, 139, 251, 0.16), rgba(46, 139, 251, 0.04));
}
.exec-live__head { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: #9dc0ea; }
.exec-live__dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 999px; background: #5b6b7d; }
.exec-live__dot.is-live { background: #2ed08a; box-shadow: 0 0 0 3px rgba(46, 208, 138, 0.16); }
.exec-live__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  margin-top: 9px;
}
.exec-live__item { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.exec-live__item em { font-style: normal; font-size: 10px; color: var(--text-3); white-space: nowrap; }
.exec-live__item b { font-size: 12.5px; font-weight: 700; color: #eef3f8; white-space: nowrap; }
.exec-live__item b.up { color: var(--up); }
.exec-live__item b.down { color: var(--down); }
.exec-live__bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.exec-live__btn {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
}
.exec-live__btn.is-on { color: #fff; border-color: var(--blue-line); background: var(--blue-soft); }
.exec-live__hint { margin-top: 8px; font-size: 9.5px; line-height: 1.65; color: #8fb6e8; }

/* 带转轮的输入行 / 总控台转轮行 */
.idx-wrap { margin-top: 4px; }
.idx-line { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--text-3); }
.idx-dot { width: 6px; height: 6px; border-radius: 999px; background: #5b6b7d; }
.idx-dot.is-live { background: #2ed08a; box-shadow: 0 0 0 3px rgba(46, 208, 138, 0.14); }
.idx-bar {
  /* 单行横向滑动：A 股 / 港股 / 美股全部指数一排放，左右滑看 */
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.idx-bar::-webkit-scrollbar { display: none; }
.idx {
  flex: 0 0 auto;
  min-width: 92px;
  scroll-snap-align: start;
  padding: 8px 9px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #101a24;
}
.idx em { display: block; font-style: normal; font-size: 10px; color: var(--text-3); }
.idx b { display: block; font-size: 13.5px; font-weight: 700; margin-top: 3px; color: #eef3f8; }
.idx i { display: block; font-style: normal; font-size: 10.5px; margin-top: 1px; color: var(--text-3); }
.idx b.up, .idx i.up { color: var(--up); }
.idx b.down, .idx i.down { color: var(--down); }
.idx--sm { min-width: 74px; padding: 6px 8px; }
.idx--sm b { font-size: 12.5px; }
.exec-live + .idx-wrap .idx-bar { margin-top: 6px; }

.exec-row { display: flex; align-items: stretch; gap: 6px; }
.exec-row .exec-in { flex: 1 1 auto; min-width: 0; }
.wheel-btn {
  flex: 0 0 auto;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--blue-line);
  background: var(--blue-soft);
  color: #9dc7fb;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
}
.exec-f--wheel {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #101a24;
  font-family: inherit;
}
.exec-f--wheel > span { font-size: 10.5px; color: var(--text-3); }
.exec-f--wheel > b { display: block; font-size: 13px; color: #fff; margin-top: 3px; }
.exec-f--wheel > i { display: block; font-style: normal; font-size: 9.5px; color: #6f9fd8; margin-top: 3px; }

/* iPhone 风格转轮选择器 */
.wheel-host:empty { display: none; }
.wheel-host { position: absolute; inset: 0; z-index: 90; }
.wheel-mask { position: absolute; inset: 0; background: rgba(4, 8, 13, 0.62); }
.wheel-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  border-top: 1px solid var(--line-strong);
  background: #0d1722;
  animation: wheelUp 0.22s ease;
}
@keyframes wheelUp {
  from { transform: translateY(20px); opacity: 0.5; }
  to { transform: none; opacity: 1; }
}
.wheel-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wheel-sheet__head b { font-size: 14px; }
.wheel-sheet__btn {
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--text-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}
.wheel-sheet__btn--ok { color: #6cb0ff; }
.wheel-heads { display: flex; gap: 8px; margin-top: 10px; }
.wheel-heads span { flex: 1 1 0; text-align: center; font-size: 10px; color: var(--text-3); }
.wheel-cols { position: relative; display: flex; gap: 8px; height: 170px; margin-top: 2px; }
.wheel-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 68px;
  height: 34px;
  border-radius: 10px;
  border-top: 1px solid var(--blue-line);
  border-bottom: 1px solid var(--blue-line);
  background: rgba(46, 139, 251, 0.08);
  pointer-events: none;
}
.wheel-col { position: relative; flex: 1 1 0; min-width: 0; }
.wheel-col__win {
  height: 170px;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.wheel-col__win::-webkit-scrollbar { display: none; }
.wheel-col__pad { height: 68px; }
.wheel-item {
  height: 34px;
  line-height: 34px;
  text-align: center;
  font-size: 16px;
  color: #cdd6e0;
  opacity: 0.42;
  scroll-snap-align: center;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.wheel-item.is-on { color: #fff; font-weight: 700; opacity: 1; }
.wheel-sheet__hint { margin-top: 6px; font-size: 10.5px; line-height: 1.65; color: var(--text-3); }
.imp__drop--on { background: rgba(46, 139, 251, 0.2); border-color: #4da3ff; }
.imp__drop-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue-2);
}
.imp__drop-text { font-size: 12px; color: #dbe6f5; line-height: 1.6; }
.imp__drop-text b { color: #fff; }
.imp__drop-sub { font-size: 10.5px; color: var(--text-3); margin-top: 5px; }
.imp__thumb {
  display: block;
  width: 100%;
  max-height: 132px;
  object-fit: contain;
  border-radius: 10px;
  background: #0b1219;
}
.imp__file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  font-size: 0;
}
.imp__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.imp-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #dbe3ec;
}
.imp-check input { width: 15px; height: 15px; accent-color: #2e8bfb; }
.imp-group {
  flex: 0 0 auto;
  background: #0c141d;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #fff;
  font-size: 12.5px;
  padding: 6px 8px;
}
.imp__rows { margin-top: 14px; display: grid; gap: 10px; }
.imp-item {
  background: #0c141d;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 10px;
}
.imp-item__top {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 24px;
  gap: 6px;
  align-items: center;
}
.imp-item__bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 7px;
}
.imp-cell { display: block; }
.imp-cell span { display: block; font-size: 9.5px; color: var(--text-3); margin-bottom: 3px; }
.imp-in {
  width: 100%;
  min-width: 0;
  background: #0c141d;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 8px;
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  outline: none;
}
.imp-item .imp-in { background: #101a24; }
.imp-in:focus { border-color: var(--blue-line); }
.imp-del {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--up-soft);
  color: var(--up);
}
.imp__foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.imp__foot .btn { flex: 1 1 auto; padding: 11px 12px; font-size: 12.5px; }
.toast {
  background: rgba(20, 28, 38, 0.96);
  border: 1px solid var(--line-strong);
  color: #eaf1f8;
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 1);
  animation: toast-in 0.22s ease;
  max-width: 300px;
  text-align: center;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ============================ 动画 ============================ */

.screen__body > * { animation: rise 0.34s cubic-bezier(0.22, 0.68, 0.32, 1) both; }
.screen__body > *:nth-child(2) { animation-delay: 0.03s; }
.screen__body > *:nth-child(3) { animation-delay: 0.06s; }
.screen__body > *:nth-child(4) { animation-delay: 0.09s; }
.screen__body > *:nth-child(5) { animation-delay: 0.12s; }
.screen__body > *:nth-child(6) { animation-delay: 0.15s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============================ 响应式 ============================ */

@media (min-width: 1000px) {
  .brand-panel { display: block; }
}

/* ============================ 手机（iPhone）：铺满全屏 + 安全区 ============================ */

/* 真机：整页不滚动，由 .screen 内部滚动；高度用 dvh 跟着 Safari 工具栏变化 */
body.is-mobile { height: 100vh; height: 100dvh; overflow: hidden; }
.is-mobile .shell { padding: 0; gap: 0; display: block; min-height: 0; height: 100%; }
.is-mobile .brand-panel { display: none !important; }
.is-mobile .device {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--app-bg);
  transform: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.is-mobile .device__screen { border-radius: 0; }
.is-mobile .device__notch { display: none; }

/* 真机有系统状态栏，隐藏模拟状态栏，改成安全区留白 */
.is-mobile .status-bar { display: none; }
.is-mobile .screen__body { padding-top: calc(10px + env(safe-area-inset-top)); }
.is-mobile .splash__content { padding-top: calc(10px + env(safe-area-inset-top)); }
.is-mobile .tabbar { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.is-mobile .toast-host { bottom: calc(100px + env(safe-area-inset-bottom)); }

/* iOS 聚焦输入框会放大页面，改成 16px 以上即可避免 */
.is-mobile .field input,
.is-mobile .field select,
.is-mobile .field textarea,
.is-mobile .imp-in,
.is-mobile .imp-group,
.is-mobile .imp__text,
.is-mobile .exec-in,
.is-mobile .ai-select,
.is-mobile .ai-form__field input { font-size: 16px; }

/* 手机上把触控目标做大一点 */
.is-mobile .ai-form {
  position: sticky;
  bottom: 0;
  z-index: 6;
  max-width: 100%;
  padding: 10px 0 calc(8px + env(safe-area-inset-bottom));
  margin-bottom: calc(-10px - env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(11, 15, 20, 0) 0%, rgba(11, 15, 20, 0.94) 34%, var(--app-bg) 78%);
}
/* iOS 上 input 默认按 size=20 撑出最小宽度，会让整行溢出屏幕；
   手机上一律允许压缩，右边永远留给发送键 */
.is-mobile .ai-form__field,
.is-mobile .ai-form__field input,
.is-mobile .screen__body label,
.is-mobile .screen__body form { min-width: 0; }
/* 用 clip 而不是 hidden：hidden 会把 overflow-y 变成 auto，
   让 .screen__body 自己变成滚动容器，和 .screen 打架 */
.is-mobile .screen__body { max-width: 100%; overflow-x: clip; }
.is-mobile .ai-grid { gap: 8px; }
.is-mobile .ai-card { padding: 11px 10px; }
.is-mobile .ai-files--empty { font-size: 10px; padding: 7px 9px; }
.is-mobile .icon-btn { width: 36px; height: 36px; }
.is-mobile .tabbar__item span { font-size: 11px; }
.is-mobile .list__row { padding-top: 12px; padding-bottom: 12px; }
.is-mobile .exec-chip { padding: 7px 12px; font-size: 12.5px; }
.is-mobile .exec-live__btn { padding: 9px 13px; font-size: 12px; }
.is-mobile .wheel-btn { padding: 0 12px; font-size: 12px; }
.is-mobile .card__link { padding: 6px 2px; }
.is-mobile .btn { min-height: 42px; }
.is-mobile .row-remove { width: 30px; height: 30px; }
.is-mobile .imp__x { width: 36px; height: 36px; }
.is-mobile .exec-bar { flex-wrap: wrap; }
.is-mobile .exec-bar .exec-in { flex: 1 1 100%; }
.is-mobile .exec-bar .btn { flex: 1 1 calc(50% - 4px); }
.is-mobile .imp { max-height: 88dvh; }
.is-mobile .imp__foot {
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding-top: 8px;
  background: #111a24;
}
.is-mobile .pool-cap__btn { padding: 9px 13px; font-size: 12px; }
.is-mobile .step__head { align-items: flex-start; }

@media (max-width: 599px) {
  .brand-panel { display: none !important; }
}

/* ============================ 平板 / 小窗：等比缩放整机 ============================ */

.is-tablet .shell { gap: 28px; padding: 20px; }

/* ===== Mac 桌面端：执行表 / 复盘表 / 计划面板 = 居中的 A4 大字文档 ===== */
body.is-mac .imp-mask { background: rgba(0, 0, 0, 0.66); }
body.is-mac .imp {
  left: 50%;
  right: auto;
  bottom: auto;
  top: 22px;
  transform: translateX(-50%);
  width: min(880px, 94vw);
  max-height: calc(100vh - 44px);
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  padding: 26px 30px 30px;
  box-shadow: 0 40px 90px -40px #000;
}
body.is-mac .imp__title { font-size: 22px; }
body.is-mac .imp__hint { font-size: 13.5px; line-height: 1.6; }
body.is-mac .imp__note { font-size: 13px; }
body.is-mac .imp__x { top: 18px; right: 20px; width: 36px; height: 36px; }
body.is-mac .exec-panel { max-height: calc(100vh - 44px); }
body.is-mac .exec-sec { padding: 18px 20px; border-radius: 16px; margin-top: 16px; }
body.is-mac .exec-sec__title { font-size: 18px; margin-bottom: 14px; }
body.is-mac .exec-label { font-size: 13px; margin: 12px 0 7px; }
body.is-mac .exec-f > span { font-size: 13px; }
body.is-mac .exec-in { font-size: 15px; padding: 11px 12px; border-radius: 10px; }
body.is-mac .exec-in--mini { width: 96px; }
body.is-mac .exec-grid { gap: 12px; }
body.is-mac .exec-row2 { gap: 12px; }
body.is-mac .exec-chip { font-size: 13px; padding: 7px 13px; }
body.is-mac .exec-live { padding: 14px 16px; border-radius: 16px; }
body.is-mac .exec-live__head { font-size: 12.5px; }
body.is-mac .exec-live__grid { gap: 10px 22px; margin-top: 12px; }
body.is-mac .exec-live__item em { font-size: 12.5px; }
body.is-mac .exec-live__item b { font-size: 15.5px; }
body.is-mac .exec-live__hint { font-size: 12px; }
body.is-mac .exec-live__btn { font-size: 13.5px; padding: 9px 14px; }
body.is-mac .exec-bar { gap: 10px; margin-top: 14px; }
body.is-mac .exec-bar .btn { font-size: 13.5px; padding: 11px 14px; }
body.is-mac .exec-bar .exec-in { font-size: 15px; }
body.is-mac .exec-hist select { font-size: 14px; padding: 10px 12px; }
body.is-mac .imp__foot { position: sticky; bottom: 0; background: #111a24; padding: 12px 0 0; }
body.is-mac .imp__foot .btn { font-size: 14px; padding: 12px 14px; }
body.is-mac .exec-badge { font-size: 12px; padding: 2px 9px; }
body.is-mac .exec-block__title { font-size: 15px; }
body.is-mac .exec-total { font-size: 14.5px; }
body.is-mac .exec-check > span { font-size: 15px; }
body.is-mac .exec-row .exec-in { font-size: 15px; }
body.is-mac .allow-row { grid-template-columns: 1.6fr 0.8fr 0.7fr auto; }

/* 桌面端页面很长，弹层改成视口定位，避免被顶到屏幕外 */
body.is-mac .import-host,
body.is-mac .sheet-host { position: fixed; inset: 0; }
body.is-mac .import-host { z-index: 90; }
body.is-mac .sheet-host { z-index: 80; }
body.is-mac .wheel-host { position: fixed; inset: 0; }

/* 表单里带转轮的输入行 */
.field-row { display: flex; align-items: stretch; gap: 8px; }
.field-row .field__input { flex: 1 1 auto; min-width: 0; }

/* 「导出」选择面板 */
.action-list { display: grid; gap: 10px; margin-top: 14px; }
.action-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #101a24;
  font-family: inherit;
}
.action-item:hover { border-color: var(--blue-line); background: rgba(46, 139, 251, 0.1); }
.action-item b { display: block; font-size: 15px; font-weight: 600; color: #eef3f8; }
.action-item i { display: block; font-style: normal; font-size: 12px; color: var(--text-3); margin-top: 4px; line-height: 1.5; }

/* ============================ 字号整体放大（手机 / 桌面通用） ============================ */
/* 需求：字要大一些、页面底色更明显。这里统一把主要文字放大一档，
   数字类（页面主色值、卡片数值）放得更明显，输入框保持 ≥16px 以免 iOS 放大页面。 */
.page-head__title { font-size: 29px; }
.page-head__sub { font-size: 13.5px; }
/* 表头图标：没有底框了，可以比标题更大一点 */
.page-head__icon svg { width: 32px; height: 32px; }
.card__title { font-size: 17.5px; }
.card__link { font-size: 13px; }
.crow > span { font-size: 13.5px; }
.crow > b { font-size: 15.5px; }
.cell-main { font-size: 15.5px; }
.cell-sub { font-size: 12.5px; }
.exec-note { font-size: 12.5px; line-height: 1.7; }
.exec-label { font-size: 12px; }
.exec-in { font-size: 14.5px; }
.exec-chip { font-size: 13px; }
.step__label { font-size: 14px; }
.step__metric { font-size: 15.5px; }
.step__hint { font-size: 10.5px; }
.flowbar__head b { font-size: 15px; }
.flowbar__head span { font-size: 12px; }
.pillar__body b { font-size: 16px; }
.pillar__body i { font-size: 11.5px; }
.tag { font-size: 11.5px; }
.btn { font-size: 15px; }
.pill { font-size: 13px; }
.quote-bar__text { font-size: 12.5px; }
.quote-bar__btn { font-size: 12.5px; }
.disclaimer { font-size: 11.5px; }
.exec-live__item em { font-size: 11.5px; }
.exec-live__item b { font-size: 15.5px; }
.exec-live__hint { font-size: 12px; line-height: 1.7; }
.bubble { font-size: 14.5px; }
.field__label > span { font-size: 13px; }
.list__head { font-size: 13px; }
.hold-link, .header-edit { font-size: 14px; }
.tabbar__item span { font-size: 12px; }
.list__row { padding-top: 13px; padding-bottom: 13px; }
.crow { padding: 11px 0; }

/* 手机：输入框一律 16px 起步（防 iOS 自动放大），其它再放大一点 */
.is-mobile .exec-in,
.is-mobile .field input,
.is-mobile .field select,
.is-mobile .field textarea,
.is-mobile .imp-in,
.is-mobile .ai-form__field input { font-size: 16px; }
.is-mobile .crow > span { font-size: 14px; }
.is-mobile .crow > b { font-size: 16.5px; }
.is-mobile .card__title { font-size: 18px; }
.is-mobile .page-head__title { font-size: 30px; }
.is-mobile .page-head__icon svg { width: 38px; height: 38px; }
.is-mobile .exec-note { font-size: 13px; }
.is-mobile .cell-main { font-size: 16px; }
.is-mobile .cell-sub { font-size: 13px; }
.is-mobile .step__label { font-size: 14.5px; }
.is-mobile .step__metric { font-size: 16px; }
.is-mobile .step { min-width: 104px; padding: 10px 11px 11px 14px; }

/* 交易流程步骤条在手机上变成两行，卡片窄一点 → 数值字号略收 */
@media (max-width: 480px) {
  .flowbar__track .step__label { font-size: 13.5px; }
  .flowbar__track .step__metric { font-size: 14px; }
  .flowbar__track .step { padding: 9px 9px 10px 12px; }
}

/* ========================= 手机版：每页顶端吸顶 =========================
   滚动容器是 .screen，页头 .page-head 是 .screen__body 的第一个子元素。
   吸顶后铺一层同色渐变 + 毛玻璃，避免下面的内容从页头底下透出来。
   桌面版不受影响：那边 body.is-mac 用的是 .mac-nav（本来就是 sticky）。 */
.screen__body > .page-head {
  position: sticky;
  top: 0;
  z-index: 6;
  margin: 0 -18px;
  padding: 10px 18px 12px;
  background: linear-gradient(
    180deg,
    var(--app-bg, #0b0c0f) 0%,
    var(--app-bg, #0b0c0f) 76%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* 今日作战：标题 + 日期 + 交易流程整块吸顶（页头再高也只让下面内容滚） */
.screen__body > .sticky-top {
  position: sticky;
  top: 0;
  z-index: 6;
  margin: 0 -18px;
  padding: 10px 18px 12px;
  background: linear-gradient(
    180deg,
    var(--app-bg, #0b0c0f) 0%,
    var(--app-bg, #0b0c0f) 84%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.screen__body > .sticky-top > .page-head {
  padding: 0 2px;
}
