/* 星光推广拉新平台 · 深蓝 + 星金 */
:root {
  --navy: #0a1630;
  --navy2: #132847;
  --navy-soft: #eef2f8;
  --gold: #c9a227;
  --gold2: #e8c547;
  --gold-soft: #fff8e7;
  --gold-glow: rgba(232, 197, 71, 0.28);
  /* 兼容旧变量名（原 --green* 已映射为品牌色） */
  --green: #0a1630;
  --green2: #c9a227;
  --green-deep: #071022;
  --green-soft: #eef2f8;
  --green-bar: #e2e8f2;
  --tab-idle: #94a3b8;
  --text: #0f172a;
  --muted: #64748b;
  --label: #475569;
  --bg: #f3f5f9;
  --card: #ffffff;
  --line: #e2e8f0;
  --card-shadow: 0 4px 18px rgba(10, 22, 48, 0.07);
  --radius: 14px;
  --accent: #c9a227;
  --accent2: #e8c547;
  --ink: #0a1630;
  --stone: #f3f5f9;
  --danger: #dc2626;
  --ok: #059669;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  overflow: hidden;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--navy);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
/* 仅 App：不要氛围背景，全屏纯色；网页电脑端仍可用底图 */
html.xingguang-app #pc-ambient,
html.jinfeng-app #pc-ambient {
  display: none !important;
  background-image: none !important;
}
html.xingguang-app,
html.jinfeng-app,
html.xingguang-app body,
html.jinfeng-app body { background: var(--bg) !important; }
html.xingguang-app #app,
html.jinfeng-app #app {
  max-width: none !important;
  width: 100% !important;
  box-shadow: none !important;
  border: 0 !important;
  height: 100%;
  max-height: none;
  background: var(--bg);
}
html.xingguang-app .page,
html.jinfeng-app .page { animation: none !important; }
html.xingguang-app .brand-mark,
html.jinfeng-app .brand-mark { box-shadow: none; }
body {
  position: relative;
}

/* 网页氛围底（仅宽屏显示；App 由上面规则强制隐藏） */
#pc-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: none;
  background-color: #071022;
  background-image: url('/assets/bg-ambient.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#pc-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 16, 34, 0.55) 0%, rgba(7, 16, 34, 0.78) 50%, rgba(7, 16, 34, 0.88) 100%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 162, 39, 0.22), transparent 60%);
}

/* 电脑端左右热门图栏 */
.pc-rail {
  display: none;
  position: relative;
  z-index: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px 14px;
  min-height: 100vh;
  overflow: hidden;
}
.pc-rail-card {
  flex: 1;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1e293b center/cover no-repeat;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pc-rail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.pc-rail-card::after {
  content: attr(data-cap);
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 12px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  letter-spacing: 0.02em;
}

#app {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.page {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  animation: pageIn .22s ease;
}
.page.active { display: block; }
#page-data.active {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}
@keyframes pageIn {
  from { opacity: 0.86; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 960px) {
  body {
    display: flex;
    justify-content: center;
    align-items: stretch;
  }
  #pc-ambient { display: block; }
  .pc-rail { display: none !important; }
  #app {
    margin: 0;
    max-width: 430px;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
    background: var(--bg);
  }
  /* App 打开网页时仍不要背景 */
  html.xingguang-app #pc-ambient,
  html.jinfeng-app #pc-ambient { display: none !important; }
}
@media (max-width: 959px) {
  .pc-rail { display: none !important; }
  #app {
    box-shadow: none;
    background: var(--bg);
  }
}
.page.auth-pages { display: none; padding-bottom: 0; min-height: 0; }
.page.auth-pages.active {
  display: flex;
  flex-direction: column;
  padding: 0 15px;
  background:
    radial-gradient(ellipse 120% 55% at 50% -8%, rgba(201, 162, 39, 0.2), transparent 55%),
    linear-gradient(180deg, #eef2f8 0%, #ffffff 40%, var(--bg) 100%);
}

/* ===== 登录 / 注册 ===== */
.top-section { display: flex; flex-direction: column; align-items: center; padding: 44px 0 24px; }
.brand-mark {
  width: 68px; height: 68px; border-radius: 18px;
  background:
    center / cover no-repeat url('/assets/app-icon.png'),
    linear-gradient(145deg, var(--navy2), var(--navy));
  color: transparent; display: flex; align-items: center; justify-content: center;
  font-size: 0; box-shadow: 0 10px 28px rgba(10, 22, 48, 0.35);
  margin-bottom: 14px;
  border: 1px solid rgba(232, 197, 71, 0.35);
  overflow: hidden;
}
.title-text {
  font-size: 22px; font-weight: 800; color: var(--navy);
  letter-spacing: 0.04em; text-align: center; line-height: 1.35;
  padding: 0 8px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.title-text .brand-main {
  font-size: 30px; letter-spacing: 0.12em; line-height: 1.1;
}
.title-text .brand-subline {
  font-size: 13px; font-weight: 700; color: var(--label);
  letter-spacing: 0.18em;
}
.top-sub { margin-top: 8px; font-size: 12px; color: var(--label); text-align: center; }
.login-section {
  display: flex; flex-direction: column; background: #fff; border-radius: 16px;
  padding: 22px 16px; box-shadow: var(--card-shadow); margin-bottom: 40px;
  border: 1px solid rgba(10, 22, 48, 0.06);
}
.login-title { font-size: 20px; font-weight: 700; color: var(--navy); }
.login-desc { margin-top: 8px; font-size: 12px; color: var(--muted); }
.input-wrapper { margin-top: 20px; position: relative; }
.input-label {
  position: absolute; top: -8px; left: 14px; background: #fff; padding: 0 6px;
  font-size: 12px; color: var(--label); z-index: 2;
}
.input-item {
  display: flex; align-items: center; border: 1.5px solid #cbd5e1; border-radius: 12px;
  padding: 0 12px; height: 48px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input-item:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.reg-form .input-item { border-width: 1.5px; border-color: #cbd5e1; }
.input-item .ico { width: 22px; height: 22px; margin-right: 6px; flex-shrink: 0; }
.input-item .ico svg { width: 100%; height: 100%; fill: #64748b; }
.input-item input { flex: 1; border: 0; outline: 0; font-size: 15px; background: transparent; }
.login-btn {
  width: 100%; height: 48px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy2), var(--navy));
  color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 20px rgba(10, 22, 48, 0.22);
  transition: transform .12s ease, opacity .12s ease, filter .12s ease;
}
.login-btn:active { transform: scale(0.98); }
.login-btn:disabled {
  opacity: .72;
  filter: grayscale(0.15);
  cursor: wait;
}
.btn-group { margin-top: 16px; display: flex; justify-content: flex-end; }
.operate-btn {
  border: 0; background: var(--navy-soft); color: var(--navy); padding: 8px 12px;
  border-radius: 8px; font-size: 13px; cursor: pointer; font-weight: 600;
}
.operate-btn.on { background: var(--navy); color: #fff; }
.operate-btn.muted { background: #f1f5f9; color: #64748b; }
.app-dl-btn {
  margin-top: 18px;
  width: 100%;
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #132847, #0a1630);
  color: #e8c547;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.app-dl-btn:active { transform: scale(0.98); opacity: 0.92; }
html.xingguang-app .app-dl-btn,
html.jinfeng-app .app-dl-btn { display: none !important; }
.task-loading::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px; margin-left: 8px;
  border: 2px solid #cbd5e1; border-top-color: var(--green);
  border-radius: 50%;
  vertical-align: -2px;
  animation: spinSoft .7s linear infinite;
}
@keyframes spinSoft {
  to { transform: rotate(360deg); }
}
.tabbar .tab {
  transition: color .15s ease, transform .12s ease;
}
.tabbar .tab:active { transform: scale(0.96); }

/* ===== Tabbar：流式贴底，不跟 viewport fixed（缩放不再飘中间） ===== */
.tabbar {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  height: calc(56px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid #e2e8f0;
  display: flex;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.04);
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  box-sizing: border-box;
}
.tabbar[hidden] { display: none !important; }
.tabbar button {
  flex: 1; border: 0; background: transparent; color: var(--tab-idle);
  font-size: 10px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; cursor: pointer;
  height: 56px;
  padding: 0 2px;
  min-width: 0;
  line-height: 1.15;
}
.tabbar button .ti {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 15px; line-height: 1;
}
.tabbar button .ti svg { display: block; }
.tabbar button.active { color: var(--navy); font-weight: 700; }
.tabbar button.active .ti {
  background: linear-gradient(145deg, #fff8e7, #eef2f8);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.28);
}

/* ===== 首页 ===== */
.home-wrap { padding: 12px 12px 20px; background: var(--bg); min-height: 100%; }
.home-hero {
  background: linear-gradient(160deg, #ffffff 0%, #eef2f8 100%);
  border-radius: 16px;
  padding: 14px 14px 12px;
  position: relative;
  border: 1px solid rgba(10, 22, 48, 0.06);
  box-shadow: var(--card-shadow);
}
.home-hero-top { display: flex; align-items: center; gap: 10px; }
.home-hero-txt { min-width: 0; flex: 1; }
.home-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; display: block;
  background: var(--navy-soft);
  border: 0;
  box-shadow: none;
}
.home-hi {
  font-size: 15px; font-weight: 800; line-height: 1.35;
  word-break: break-word;
}
.home-hi .hi-purple { color: var(--gold); }
.home-hi .hi-brand { color: var(--navy); }
.home-hello { margin-top: 4px; font-size: 13px; color: #8a8a8a; font-weight: 400; }
.home-bubble {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 12px;
  line-height: 1.7;
  color: #666;
  word-break: break-word;
}
.home-bubble .hb-ico {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1.55;
  margin-top: 1px;
}
.home-bubble .hb-txt { flex: 1; min-width: 0; white-space: pre-wrap; }
.notice-card {
  margin-top: 12px; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: none;
}
.notice-head {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--navy-soft); padding: 12px 12px;
  gap: 8px;
}
.notice-head .t {
  font-size: 14px; font-weight: 700; color: #111;
  display: flex; align-items: center; gap: 6px;
}
.notice-ico { font-size: 14px; }
.kefu-btn {
  border: 0; background: var(--navy); color: var(--gold2); border-radius: 999px;
  padding: 7px 12px; font-size: 12px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(10, 22, 48, 0.22);
  font-weight: 700;
}
.notice-list { padding: 2px 6px 6px; }
.notice-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 10px; border-bottom: 1px dashed #e2e8f0; font-size: 13px;
  color: #333; cursor: pointer; gap: 8px;
  transition: background .15s ease;
}
.notice-item:active { background: #fffbeb; }
.notice-item > span:first-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.notice-item:last-child { border-bottom: 0; }
.notice-item .arr { color: #bbb; flex-shrink: 0; font-size: 16px; }

/* 公告详情 */
.article-page {
  padding: 12px 14px 28px;
  margin: -16px -16px -32px;
  min-height: calc(100% + 48px);
  background: #f5f5f4;
}
.article-card {
  background: #fff; border-radius: 14px; padding: 18px 16px 22px;
  box-shadow: var(--card-shadow);
}
.article-h {
  font-size: 18px; font-weight: 800; color: #0f172a; line-height: 1.45;
  margin-bottom: 8px; word-break: break-word;
}
.article-meta {
  font-size: 12px; color: var(--muted); margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid #f1f5f9;
}
.article-body {
  font-size: 14px; line-height: 1.85; color: #334155;
  white-space: pre-wrap; word-break: break-word;
}

/* ===== 做单 ===== */
.task-wrap {
  padding: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.zone-tabs {
  display: flex; gap: 0; margin-bottom: 12px; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(10, 22, 48, 0.1); background: #fff;
  box-shadow: 0 2px 8px rgba(10, 22, 48, 0.04);
}
.zone-tab {
  flex: 1; border: 0; background: transparent; padding: 10px 6px 9px;
  font-weight: 700; color: #64748b; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; line-height: 1.2;
}
.zone-tab-title {
  font-size: 12px; font-weight: 800; letter-spacing: 0.02em;
}
.zone-tab-sub {
  font-size: 10px; font-weight: 600; opacity: 0.78;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.zone-tab.on { background: var(--navy); color: #fff; }
.zone-tab.on .zone-tab-sub { opacity: 0.92; color: #fde68a; }
.task-marquee {
  overflow: hidden;
  margin: 0 0 10px;
  padding: 8px 0;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  white-space: nowrap;
  position: relative;
}
.task-marquee-track {
  display: flex;
  width: max-content;
  gap: 64px;
  animation: taskMarquee 16s linear infinite;
  will-change: transform;
}
.task-marquee-track span {
  display: inline-block;
  color: #e11d48;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  padding: 0 16px;
  flex-shrink: 0;
}
@keyframes taskMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.task-marquee:hover .task-marquee-track {
  animation-play-state: paused;
}
.task-tools { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.task-tools button {
  flex: 1; min-width: 28%; border: 0; border-radius: 999px; padding: 10px 0; font-size: 12px;
  font-weight: 600; cursor: pointer;
}
.btn-select { background: var(--navy); color: #fff; }
.btn-refresh-results {
  background: var(--navy-soft);
  color: var(--navy);
  border: 1px solid #cbd5e1 !important;
}
.btn-refresh-results:disabled { opacity: .7; cursor: wait; }
.btn-pause-task {
  background: #fff;
  color: #64748b;
  border: 1px solid #e2e8f0 !important;
}
.btn-pause-task:disabled { opacity: .7; cursor: wait; }
.task-panel {
  background: linear-gradient(145deg, var(--navy2), var(--navy));
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 4px;
  box-shadow: 0 8px 22px rgba(10, 22, 48, 0.18);
}
.task-box {
  display: flex; align-items: center; border: 0; border-radius: 10px;
  overflow: hidden; background: #fff;
}
.task-box input {
  flex: 1; border: 0; outline: 0; height: 46px; padding: 0 12px; font-size: 14px;
  min-width: 0;
}
.task-start {
  border: 0; background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #0a1630;
  height: 46px; padding: 0 16px; font-size: 15px; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.task-warn {
  margin-top: 8px; background: transparent; color: #fff; border-radius: 0;
  padding: 2px 4px; font-size: 11px; line-height: 1.45;
}
.task-active,
.task-list {
  margin-top: 12px;
  scroll-margin-top: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.task-sel-tip {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  padding: 0 2px;
  word-break: break-word;
}
.task-list.flash .task-item { animation: pulseSel .9s ease; }
@keyframes pulseSel {
  0%, 100% { box-shadow: none; }
  40% { box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.4); }
}
.task-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #fff; border-radius: 12px; padding: 14px 12px; margin: 0;
  cursor: pointer; border: 1.5px solid var(--line);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(10, 22, 48, 0.03);
}
.task-item > div:first-child { min-width: 0; flex: 1; }
.task-item.sel { border-color: var(--gold); background: var(--gold-soft); }
.task-item .name { font-size: 14px; font-weight: 700; color: #111; word-break: break-word; }
.task-item .sub { margin-top: 6px; font-size: 12px; color: #888; }
.task-item .pts { font-size: 15px; font-weight: 700; color: var(--gold); flex-shrink: 0; }
.task-item.task-running {
  display: block;
  cursor: default;
  padding: 12px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.task-item.task-running .task-main { width: 100%; }
.task-item.task-running .task-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.task-item.task-running .task-head .name {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.task-item.task-running .task-badge {
  display: inline-flex; align-items: center;
  height: 20px; padding: 0 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}
.task-item.task-running .task-badge.wait {
  background: #fff7ed; color: #c2410c; border: 1px solid #fdba74;
}
.task-item.task-running .task-badge.code {
  background: #fff7ed; color: #b45309; border: 1px solid #fbbf24;
}
.task-item.task-running .task-badge.busy {
  background: #fffbeb; color: #b45309; border: 1px solid #fcd34d;
}
.task-item.task-running .task-badge.review {
  background: #fffbeb; color: #1d4ed8; border: 1px solid #fbbf24;
}
.task-item.task-running .task-badge.ok {
  background: #fff7ed; color: #b45309; border: 1px solid #f59e0b;
}
.task-item.task-running .task-badge.fail {
  background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1;
}
.task-item.task-running .sub {
  margin-top: 8px;
  display: flex; align-items: center; gap: 6px;
}
.task-item.task-running .task-action {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px;
}
.task-item.task-running .task-code-row {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; width: 100%;
}
.task-item.task-running .task-code-row.task-end-only {
  justify-content: flex-end;
}
.task-item.task-running .task-code-row input {
  flex: 1; height: 42px; border: 1.5px solid #fbbf24; border-radius: 10px;
  padding: 0 12px; font-size: 15px; font-weight: 600; letter-spacing: 0.12em;
  min-width: 0; background: #fffbeb; color: #92400e;
  outline: none; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.task-item.task-running .task-code-row input::placeholder {
  color: #d97706; font-weight: 500; letter-spacing: 0; opacity: .75;
}
.task-item.task-running .task-code-row input:focus {
  border-color: #f59e0b;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
.task-item.task-running .task-code-row .go {
  border: 0; background: linear-gradient(180deg, #d97706, #b45309); color: #fff;
  border-radius: 10px; padding: 0 14px; height: 42px;
  font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.28);
}
.task-item.task-running .task-code-row .go:active { transform: scale(0.98); }
.task-item.task-running .task-code-row .go:disabled {
  opacity: .55; cursor: not-allowed; box-shadow: none;
}
.task-item.task-running .task-end {
  flex-shrink: 0; border: 0; border-radius: 10px; height: 42px; padding: 0 14px;
  min-width: 76px;
  background: #fee2e2; color: #b91c1c; font-size: 13px; font-weight: 700; cursor: pointer;
}
.task-item.task-running .task-end:active { transform: scale(0.98); }
.task-item.task-running .task-msg {
  margin-top: 10px; font-size: 12px; color: var(--green); line-height: 1.55;
  background: #fff7ed; border-radius: 10px; padding: 10px 12px;
  border: 1px solid #fbbf24;
}
.task-item.task-running .task-msg.review {
  color: #1e40af;
  background: linear-gradient(90deg, #fffbeb, #f8fafc);
  border-color: #fbbf24;
  font-weight: 600;
}
.task-item.task-running .task-msg.review::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: #3b82f6;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
  animation: reviewPulse 1.4s ease-out infinite;
}
@keyframes reviewPulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}
.task-item.task-running .task-msg.ok {
  color: #b45309;
  background: #fff7ed;
  border-color: #f59e0b;
  font-weight: 700;
}
.task-item.task-running.task-done {
  border-color: #f59e0b !important;
  background: #fffbeb;
}
.task-item.task-running .task-end.task-end-ok {
  background: #ffedd5;
  color: #b45309;
}
.task-item.task-running .task-msg.busy {
  color: #b45309;
  background: #fff7ed;
  border-color: #fcd34d;
  font-weight: 700;
}
.task-item.task-running.task-review {
  border-color: #f59e0b !important;
  background: #f8fbff;
}
.task-item.task-running.task-code-ready {
  border-color: #f59e0b !important;
}
.task-item.task-running.task-old {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  opacity: 0.95;
}
.task-item.task-running.task-old .name,
.task-item.task-running.task-old .pts,
.task-item.task-running.task-old .sub {
  color: #94a3b8 !important;
}
.task-item.task-running.task-busy {
  border-color: #fbbf24 !important;
  background: #fffbeb;
}
.task-item.task-running .task-remain {
  color: #b45309;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.task-item.task-running .task-wait-tip {
  flex: 1;
  min-width: 0;
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px dashed #fbbf24;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
}
.task-item .sub .st-green { color: #92400e; font-weight: 700; }
.task-item .sub .st-gray { color: #64748b; font-weight: 600; }
.task-item .sub .st-red { color: #b91c1c; font-weight: 700; }

/* ===== 数据 ===== */
.data-wrap { display: flex; flex-direction: column; flex: 1; min-height: 0; height: auto; background: #fff; }
.data-top { padding: 10px 12px 0; background: #fff; flex-shrink: 0; }
.data-body { display: flex; flex: 1; min-height: 0; }
.data-side {
  width: 38%; background: #f5f5f4; overflow-y: auto; border-right: 1px solid #eee;
}
.data-side .di {
  padding: 14px 10px; font-size: 12px; color: #666; border-left: 3px solid transparent;
  cursor: pointer; line-height: 1.4;
}
.data-side .di.on { color: var(--green); border-left-color: var(--green); background: #fff; font-weight: 600; }
.data-main {
  flex: 1; display: flex; flex-direction: column; align-items: stretch;
  justify-content: flex-start; color: #aaa; font-size: 13px; padding: 12px;
  overflow-y: auto; min-height: 0;
}
.data-main:empty,
.data-main.has-empty {
  align-items: center; justify-content: center;
}
#page-data { padding-bottom: 0; }
#page-data .data-wrap { height: calc(100vh - 56px); }
.data-empty-ico {
  width: 90px; height: 90px; border-radius: 16px; background: #f3f4f6;
  display: flex; align-items: center; justify-content: center; font-size: 40px;
  margin-bottom: 12px; color: #cbd5e1;
}

/* ===== 我的 ===== */
.mine-wrap { padding: 16px 12px 24px; }
.mine-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; position: relative; }
.mine-av {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(145deg, var(--green2), var(--green-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
}
.mine-name { font-size: 16px; font-weight: 700; }
.mine-id {
  display: inline-block; margin-top: 6px; background: var(--green-soft); color: var(--green-deep);
  font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600;
}
.mine-bell {
  margin-left: auto; font-size: 22px; color: #64748b; cursor: pointer;
  position: relative; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
}
.mine-bell .badge {
  position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding: 0 4px;
  background: #ef4444; color: #fff; border-radius: 999px; font-size: 10px;
  line-height: 16px; text-align: center; font-weight: 700;
  display: none;
}
.mine-bell .badge.show { display: block; }
.asset-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 55%, #1a3a66 100%);
  border-radius: var(--radius); padding: 16px; box-shadow: 0 10px 28px rgba(10, 22, 48, 0.22);
  border: 1px solid rgba(232, 197, 71, 0.22);
  color: #f8fafc;
}
.asset-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; color: #e2e8f0; }
.asset-row {
  margin-top: 12px; background: rgba(255,255,255,0.08); border-radius: 12px; padding: 12px;
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid rgba(255,255,255,0.08);
}
.asset-bal { font-size: 28px; font-weight: 800; color: var(--gold2); }
.asset-bal span { font-size: 14px; color: #e2e8f0; font-weight: 600; margin-left: 4px; }
.wd-mini {
  border: 0; background: linear-gradient(135deg, var(--gold2), var(--gold)); color: var(--navy); border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 800; cursor: pointer;
}
.asset-links {
  margin-top: 12px; display: flex; justify-content: space-between; gap: 6px;
}
.asset-links button {
  flex: 1; border: 0; background: transparent; font-size: 12px; color: #cbd5e1;
  cursor: pointer; padding: 6px 0; font-weight: 600;
}
.invite-banner {
  margin-top: 12px;
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(115deg, #132847 0%, #0a1630 55%, #1a3a66 100%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(10, 22, 48, 0.25);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 72px;
  border: 1px solid rgba(232, 197, 71, 0.28);
}
.invite-banner::before,
.invite-banner::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 230, 80, 0.85);
  pointer-events: none;
}
.invite-banner::before { top: 12px; left: 42%; }
.invite-banner::after { bottom: 14px; right: 38%; width: 4px; height: 4px; }
.ib-left { width: 56px; flex-shrink: 0; display: flex; justify-content: center; }
.ib-wallet {
  width: 48px; height: 44px; border-radius: 10px 10px 12px 12px;
  background: linear-gradient(160deg, #ffe566, #f5b400 70%, #e89a00);
  position: relative; box-shadow: 0 3px 0 #d48900;
}
.ib-wallet::before {
  content: ''; position: absolute; top: -6px; left: 8px; right: 8px; height: 10px;
  border-radius: 6px 6px 0 0; background: #f0c020; border: 2px solid #e0a800; border-bottom: 0;
}
.ib-yen {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  font-size: 18px; font-weight: 900; color: #c0392b; text-shadow: 0 1px 0 rgba(255,255,255,.4);
}
.ib-coin {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe566, #f0b429 60%, #d49200);
  border: 1px solid #e0a000; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}
.ib-coin.c1 { top: -4px; right: 4px; }
.ib-coin.c2 { top: 2px; right: -2px; width: 9px; height: 9px; }
.ib-coin.c3 { top: -6px; right: 2px; }
.ib-mid { flex: 1; min-width: 0; padding-left: 2px; }
.ib-title { font-size: 15px; font-weight: 800; letter-spacing: 0.5px; text-shadow: 0 1px 1px rgba(0,0,0,.12); }
.ib-sub { margin-top: 2px; font-size: 12px; font-weight: 600; }
.ib-sub em {
  font-style: italic; font-size: 22px; font-weight: 900; color: #ffe600;
  margin-left: 2px; text-shadow: 0 1px 0 rgba(180, 120, 0, 0.35); vertical-align: -2px;
}
.ib-right {
  position: relative; display: flex; align-items: center; padding-right: 28px; flex-shrink: 0;
}
.ib-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(180deg, #ffe566 0%, #ffb300 100%);
  color: #c0392b; font-size: 12px; font-weight: 800;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  box-shadow: 0 2px 0 #e09200; white-space: nowrap;
}
.ib-qr {
  width: 14px; height: 14px; border: 2px solid #c0392b; border-radius: 2px;
  background:
    linear-gradient(#c0392b,#c0392b) 2px 2px/4px 4px no-repeat,
    linear-gradient(#c0392b,#c0392b) 8px 2px/4px 4px no-repeat,
    linear-gradient(#c0392b,#c0392b) 2px 8px/4px 4px no-repeat,
    linear-gradient(#c0392b,#c0392b) 8px 8px/2px 2px no-repeat;
  box-sizing: border-box;
}
.ib-gift {
  position: absolute; right: -2px; bottom: -6px; width: 36px; height: 34px; pointer-events: none;
}
.ib-box {
  display: block; width: 28px; height: 22px; margin-top: 10px; margin-left: 4px;
  background: linear-gradient(180deg, #ff6b5b, #e23a2e); border-radius: 3px;
  position: relative; box-shadow: 0 2px 0 #b91c1c;
}
.ib-box::before {
  content: ''; position: absolute; left: -2px; right: -2px; top: -8px; height: 10px;
  background: #ff8578; border-radius: 3px 3px 0 0;
}
.ib-box::after {
  content: ''; position: absolute; left: 50%; top: -10px; width: 6px; height: 28px;
  transform: translateX(-50%); background: #ffe566; border-radius: 1px;
}
.set-card {
  margin-top: 12px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--card-shadow); overflow: hidden;
}
.set-title {
  padding: 12px 14px 6px; font-size: 14px; font-weight: 700; display: flex; gap: 6px;
}
.cell {
  width: 100%; border: 0; background: #fff; display: flex; align-items: center;
  padding: 14px; font-size: 14px; color: #222; cursor: pointer; text-align: left;
  border-top: 1px solid #f3f4f6; gap: 10px;
}
.cell .ico { width: 22px; text-align: center; color: #333; }
.cell .lab { flex: 1; }
.cell .tip { color: #999; font-size: 12px; margin-right: 4px; }
.cell .more { color: #bbb; }
.logout-card { margin-top: 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); }
.logout-card .cell { border-top: 0; color: #dc2626; }

/* ===== Sheet ===== */
.sheet-mask {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 80; align-items: flex-end; justify-content: center;
}
.sheet-mask.show { display: flex; }
.sheet {
  width: 100%; max-width: 414px; background: #fff; border-radius: 16px 16px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 85vh; overflow-y: auto;
}
.sheet h3 { font-size: 16px; margin-bottom: 10px; }
.sheet .hint { font-size: 12px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.sheet .input-item { margin-bottom: 10px; border: 1px solid #ddd; border-radius: 8px; height: 44px; padding: 0 12px; display: flex; align-items: center; }
.sheet .input-item input { border: 0; outline: 0; width: 100%; font-size: 14px; }
.sheet .primary {
  width: 100%; height: 44px; border: 0; border-radius: 10px; background: var(--green);
  color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 8px;
}
.sheet .ghost {
  width: 100%; height: 42px; border: 0; border-radius: 10px; background: #f3f4f6;
  color: #666; font-size: 14px; cursor: pointer; margin-top: 8px;
}
.wd-list { font-size: 13px; color: #555; line-height: 1.7; min-height: 40px; }
.msg-item { padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.msg-item.unread .msg-title { color: var(--green-deep); font-weight: 700; }
.msg-title { font-size: 14px; }
.msg-body { font-size: 12px; color: #64748b; margin-top: 4px; white-space: pre-wrap; }
#ali-preview { max-width: 160px; max-height: 160px; display: none; margin: 8px 0; border-radius: 8px; }

#toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(8px);
  background: rgba(15, 23, 42, .88); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-size: 13px; z-index: 99; opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  max-width: 80%; text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== 子页（独立全屏 · 滑动无刷） ===== */
.subpage {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #f5f5f5;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  transform: translate3d(100%, 0, 0);
  visibility: hidden;
  pointer-events: none;
  transition: transform .28s cubic-bezier(.22, .9, .32, 1), visibility 0s linear .28s;
  will-change: transform;
  overflow: hidden;
}
.subpage.show {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
  transition: transform .28s cubic-bezier(.22, .9, .32, 1), visibility 0s;
}
@media (min-width: 960px) {
  .subpage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
  }
}
.sub-bar {
  height: 48px; background: #fff; border-bottom: 1px solid #eee;
  display: flex; align-items: center; padding: 0 8px; flex-shrink: 0;
  position: relative;
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
}
.sub-back {
  border: 0; background: transparent; font-size: 28px; line-height: 1;
  color: #333; width: 40px; height: 40px; cursor: pointer;
}
.sub-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 16px; font-weight: 600; color: #222;
}
.sub-action {
  margin-left: auto; border: 0; background: transparent; color: var(--green);
  font-size: 13px; padding: 8px; cursor: pointer;
}
.sub-body {
  flex: 1; overflow-y: auto; padding: 16px 16px 32px; background: #fff;
}
.sub-body .hint { font-size: 12px; color: #888; margin-bottom: 12px; line-height: 1.5; }
.sub-body .input-item {
  margin-bottom: 10px; border: 1px solid #ddd; border-radius: 8px; height: 44px;
  padding: 0 12px; display: flex; align-items: center; background: #fff;
}
.sub-body .input-item input { border: 0; outline: 0; width: 100%; font-size: 14px; }
.sub-body .primary {
  width: 100%; height: 46px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--green2), var(--green));
  color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 10px;
  box-shadow: 0 6px 16px rgba(180, 83, 9, 0.28);
}
.sub-body .primary:active { transform: scale(.99); }

/* 悬浮标签表单 / 提示盒 / 空态 */
.form-sec {
  font-size: 14px; font-weight: 700; color: #0f172a; margin: 4px 0 12px;
}
.ffield {
  position: relative; margin: 18px 0 14px; border: 1px solid #cbd5e1;
  border-radius: 10px; background: #fff; min-height: 48px;
  display: flex; align-items: center; padding: 10px 12px;
}
.ffield .flab {
  position: absolute; left: 12px; top: -9px; background: #fff;
  padding: 0 6px; font-size: 12px; color: #64748b; font-weight: 600;
}
.ffield input {
  border: 0; outline: 0; width: 100%; font-size: 14px; background: transparent; color: #0f172a;
}
.ffield-pct { padding-right: 36px; }
.ffield-pct .fpct {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: #64748b; font-weight: 700; font-size: 14px;
}
.ffield-file { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 14px; }
.file-pick {
  display: block; border: 1px dashed #94a3b8; border-radius: 8px;
  padding: 12px; text-align: center; font-size: 13px; color: #64748b; cursor: pointer;
  background: #f8fafc;
}
.tip-box {
  margin-top: 14px; padding: 12px 12px 12px 36px; position: relative;
  background: #fffbeb; border: 1px solid #fbbf24; border-radius: 10px;
  font-size: 12px; line-height: 1.7; color: #92400e;
}
.tip-box::before {
  content: "i"; position: absolute; left: 12px; top: 13px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #f59e0b; color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-style: italic; font-family: Georgia, serif;
}
.pay-method {
  border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 14px;
  background: #f8fafc; margin-bottom: 8px; position: relative;
}
.pay-method.on {
  background: #fff7ed; border-color: #f59e0b;
}
.pm-top { display: flex; align-items: center; justify-content: space-between; }
.pm-name { font-size: 15px; font-weight: 800; color: #0f172a; }
.pm-check {
  width: 22px; height: 22px; border-radius: 50%; background: #10b981; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.pm-meta { margin-top: 8px; font-size: 12px; color: #64748b; line-height: 1.55; }
.wd-summary {
  background: #fffbeb; border: 1px solid #bbf7d0; border-radius: 10px;
  padding: 12px; font-size: 12px; line-height: 1.65; color: #92400e; margin-bottom: 8px;
}
.empty-state {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px 12px;
}
.empty-illu {
  width: 140px; height: 120px; margin-bottom: 12px;
  background:
    radial-gradient(circle at 30% 40%, #e2e8f0 0 18%, transparent 19%),
    radial-gradient(circle at 70% 35%, #e2e8f0 0 10%, transparent 11%),
    linear-gradient(180deg, transparent 45%, #e2e8f0 45% 70%, transparent 70%),
    radial-gradient(ellipse at 50% 70%, #cbd5e1 0 40%, transparent 41%);
  background-repeat: no-repeat;
  opacity: .85; position: relative;
}
.empty-illu::after {
  content: "☹"; position: absolute; left: 50%; top: 28%;
  transform: translateX(-50%); font-size: 28px; color: #94a3b8;
}
.empty-txt { color: #94a3b8; font-size: 14px; margin-bottom: 28px; }
.bound-card {
  background: #fffbeb; border: 1px solid #bbf7d0; border-radius: 14px;
  padding: 16px; margin-bottom: 16px;
}
.bound-tag {
  display: inline-block; background: #10b981; color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}
.bound-row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13px; color: #64748b; padding: 6px 0;
}
.bound-row b { color: #0f172a; font-weight: 700; word-break: break-all; text-align: right; }
.bound-qr {
  display: block; width: 120px; height: 120px; object-fit: cover;
  border-radius: 8px; margin: 10px auto 0; border: 1px solid #ffedd5;
}
.coin-page { background: #fff; }
.coin-cols {
  display: flex; justify-content: space-between; padding: 4px 4px 12px;
  font-size: 13px; font-weight: 700; color: #f59e0b; border-bottom: 1px solid #fef3c7;
}
.coin-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; padding: 14px 4px; border-bottom: 1px solid #f1f5f9; font-size: 13px;
}
.coin-row .src { color: #334155; flex: 1; min-width: 0; }
.coin-row .src .coin-phone {
  display: block;
  color: #57534e;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.4;
}
.coin-row .src small { display: block; color: #94a3b8; font-size: 11px; margin-top: 4px; }
.coin-row .amt { font-weight: 700; white-space: nowrap; }
.coin-row .amt.up { color: #d97706; }
.coin-row .amt.down { color: #dc2626; }
.pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
.pick-row input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--green); margin: 0; }
.pick-row .pick-name { flex: 1; min-width: 0; }
.pick-row .pick-pts { color: var(--green); font-weight: 700; flex-shrink: 0; }
.pick-actions { display: flex; gap: 8px; margin-bottom: 8px; }
.pick-actions .ghost {
  flex: 1; height: 36px; margin-top: 0; font-size: 13px;
}
.task-sel-tip {
  font-size: 12px; color: #64748b; padding: 4px 2px 10px; line-height: 1.4;
}
.task-sel-tip b { color: var(--green); }
.task-item .task-badge {
  display: inline-flex; align-items: center;
  height: 20px; padding: 0 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  vertical-align: middle;
}
.task-item .task-badge.wait {
  background: #fff7ed; color: #c2410c; border: 1px solid #fdba74;
}
.task-tick { color: var(--green); font-weight: 800; }
.tu-edit {
  display: flex; gap: 8px; margin-top: 10px; align-items: center;
}
.tu-input {
  flex: 1; height: 36px; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 0 10px; font-size: 13px; outline: 0; background: #fff;
}
.tu-save {
  border: 0; border-radius: 8px; padding: 0 12px; height: 36px;
  background: var(--green); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.sub-body .ghost {
  width: 100%; height: 42px; border: 0; border-radius: 10px; background: #fff;
  color: #666; font-size: 14px; cursor: pointer; margin-top: 8px; border: 1px solid #e5e7eb;
}
.qr-preview { max-width: 160px; max-height: 160px; display: none; margin: 8px 0; border-radius: 8px; }
.team-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.team-tabs button { flex: 1; }

.asset-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 55%, #1a3a66 100%) !important;
  border: 1px solid rgba(232, 197, 71, 0.22) !important;
}
.asset-bal { color: var(--gold2) !important; }

.task-active { margin-top: 12px; width: 100%; max-width: 100%; box-sizing: border-box; }
.active-card {
  background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 10px;
  box-shadow: var(--card-shadow); border: 1px solid #eef2f0;
  width: 100%; max-width: 100%; box-sizing: border-box;
}
.active-card .ac-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.active-card .ac-name { font-size: 15px; font-weight: 700; color: #111; }
.active-card .ac-pts { color: var(--green); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.active-card .ac-sub { margin-top: 6px; font-size: 12px; color: #888; }
.active-card .ac-action {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
}
.active-card .ac-row-spacer { flex: 1; }
.active-card .ac-msg {
  margin-top: 10px; font-size: 12px; color: var(--navy); line-height: 1.5;
  background: var(--navy-soft); border-radius: 8px; padding: 8px 10px;
}
.active-card .ac-msg.err { color: #c2410c; background: #fff7ed; }
.active-card .ac-row { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 0; }
.active-card .ac-row input {
  flex: 1; height: 40px; border: 1px solid #ddd; border-radius: 8px; padding: 0 10px; font-size: 14px; min-width: 0;
}
.active-card .ac-row .go {
  border: 0; background: var(--green); color: #fff; border-radius: 8px;
  padding: 0 12px; height: 40px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.active-card .ac-end {
  flex-shrink: 0; border: 0; border-radius: 8px; height: 40px; padding: 0 12px;
  background: #fee2e2; color: #b91c1c; font-size: 13px; font-weight: 600; cursor: pointer;
}
.active-card .ac-ops { display: none; }

.data-list {
  width: 100%;
  padding: 0;
  overflow: auto;
  align-self: stretch;
}
.data-card {
  width: 100%; text-align: left; border-bottom: 1px solid #eee;
  padding: 12px 10px; font-size: 13px; line-height: 1.85;
  background: #fff;
}
.data-card.report { background: #fffbeb; }
.data-card .dc-row { display: flex; align-items: baseline; gap: 0; }
.data-card .dc-k { color: #333; flex-shrink: 0; }
.data-card .dc-v { color: #333; word-break: break-all; }
.data-card .dc-time { color: #666; }
.data-card .st-green { color: #d97706; font-weight: 700; }
.data-card .st-red { color: #dc2626; font-weight: 700; }
.data-card .st-gray { color: #64748b; }
.data-card .vc { color: #2563eb; font-weight: 600; }

.share-box { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.share-rate { font-size: 28px; color: #2563eb; font-weight: 800; padding: 0 6px; }
.share-link {
  display: flex; align-items: center; gap: 8px; background: #f8fafc; border-radius: 8px;
  padding: 10px; margin-top: 10px; word-break: break-all; font-size: 12px;
}
.share-link button { border: 0; background: var(--green); color: #fff; border-radius: 6px; padding: 6px 10px; cursor: pointer; white-space: nowrap; }
.invite-code-big {
  font-size: 28px; font-weight: 800; letter-spacing: 2px; padding: 16px;
  background: #f8fafc; border-radius: 10px; text-align: center; margin: 10px 0;
}
.qr-wrap { text-align: center; margin-top: 8px; }
.qr-wrap img { width: 160px; height: 160px; background: #fff; }

/* 邀请好友页（向日葵一比一） */
.share-page { background: #f2f3f5; margin: -14px -14px -28px; padding: 14px 14px 28px; min-height: calc(100% + 42px); }
.share-lock-tip {
  background: #fffbeb; color: #1d4ed8; border-radius: 10px; padding: 10px 12px;
  font-size: 12px; line-height: 1.6; margin-bottom: 12px;
}
.share-card {
  background: #eef6f2; border-radius: 12px; padding: 18px 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04); margin-bottom: 12px;
}
.share-card.white { background: #fff; }
.share-lead { font-size: 15px; font-weight: 600; color: #222; line-height: 1.6; }
.share-lead b { color: #04845e; font-size: 28px; font-weight: 800; padding: 0 3px; vertical-align: -2px; }
.share-desc { margin-top: 10px; font-size: 12px; color: #8a8a8a; line-height: 1.65; }
.share-link-row {
  margin-top: 14px; display: flex; align-items: stretch; gap: 0;
  background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden;
}
.share-link-row input {
  flex: 1; border: 0; outline: 0; padding: 12px; font-size: 12px; color: #333; min-width: 0;
  background: transparent;
}
.share-copy-btn {
  width: 46px; border: 0; border-left: 1px solid #f0f0f0; background: #fff;
  color: #04845e; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.share-copy-btn svg { width: 20px; height: 20px; stroke-width: 2.2; }
.share-sec-title {
  display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #222;
  padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; margin-bottom: 16px;
}
.share-sec-title .ico-user {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid #333; position: relative; display: inline-block; flex-shrink: 0;
}
.share-sec-title .ico-user::after {
  content: '+'; position: absolute; right: -6px; bottom: -5px; font-size: 12px; font-weight: 800; color: #333; line-height: 1;
  background: #fff; border-radius: 50%; width: 12px; height: 12px; text-align: center;
}
.share-grid { display: flex; gap: 12px; }
.share-col { flex: 1; text-align: center; min-width: 0; }
.share-col .lab { font-size: 12px; color: #999; margin-bottom: 10px; }
.share-code-box, .share-qr-box {
  background: #f7f8fa; border-radius: 8px; height: 118px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
  width: 100%; max-width: 140px;
}
.share-code-box { font-size: 22px; font-weight: 800; letter-spacing: 1px; color: #111; }
.share-qr-box img, .share-qr-box canvas { width: 100px !important; height: 100px !important; display: block; }
.share-qr-box table { margin: 0 auto; transform: scale(0.85); transform-origin: center; }
.share-act {
  margin-top: 12px; border: 0; background: transparent; color: #04845e;
  font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.share-act svg { width: 15px; height: 15px; }
.share-sec-title .ico-poster {
  width: 18px; height: 18px; border-radius: 4px;
  background: linear-gradient(145deg, #0a1630, #c9a227);
  display: inline-block; flex-shrink: 0;
}
.share-poster-card .share-lead b { color: #c9a227; }
.poster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.poster-item {
  background: #f7f8fa;
  border-radius: 10px;
  padding: 8px;
  border: 1px solid #e8e8e8;
}
.poster-item:last-child {
  grid-column: 1 / -1;
  max-width: 52%;
  justify-self: center;
  width: 100%;
}
.poster-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #0a1630;
}
.poster-name {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0a1630;
  text-align: center;
}
.poster-save-btn {
  margin-top: 8px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 8px 0;
  background: #0a1630;
  color: #e8c547;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.poster-save-btn:active { opacity: 0.88; }

/* 在线客服留言：占满子页剩余高度，勿用 100vh（会在 #app 内撑破） */
.sub-body.chat-page,
.chat-page {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  background: #eef2f0;
  max-width: 100%;
  overflow: hidden;
}
#sub-chat {
  background: #eef2f0;
}
#sub-chat .sub-body {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.chat-head-tip {
  flex-shrink: 0;
  padding: 10px 14px; font-size: 12px; color: #64748b; background: #fff;
  border-bottom: 1px solid #eef2f7; text-align: center;
}
.chat-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 12px;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.chat-empty {
  text-align: center; color: #94a3b8; padding: 48px 16px; font-size: 13px; line-height: 1.6;
}
.chat-bubble {
  max-width: 78%; margin-bottom: 12px; padding: 10px 12px; border-radius: 14px;
  background: #fff; box-shadow: 0 2px 8px rgba(15,23,42,.05);
  word-break: break-word;
}
.chat-bubble.mine {
  margin-left: auto; background: linear-gradient(135deg, #ffedd5, #fbbf24);
  border-bottom-right-radius: 4px;
}
.chat-bubble.staff {
  margin-right: auto; border-bottom-left-radius: 4px;
}
.chat-meta { font-size: 11px; color: #94a3b8; margin-bottom: 4px; }
.chat-txt { font-size: 14px; color: #0f172a; line-height: 1.55; white-space: pre-wrap; }
.chat-input-row {
  flex-shrink: 0;
  display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid #eef2f7;
}
.chat-input-row input {
  flex: 1; min-width: 0; height: 42px; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 0 12px; outline: 0; background: #f8fafc; font-size: 14px;
}
.chat-input-row button {
  flex-shrink: 0; border: 0; border-radius: 12px; padding: 0 18px; height: 42px;
  background: linear-gradient(135deg, var(--green2), var(--green));
  color: #fff; font-weight: 700; cursor: pointer; font-size: 14px;
}

.popup-box-ann { max-height: min(78vh, 560px); }
.ann-meta {
  text-align: center; font-size: 12px; color: #94a3b8; padding: 0 16px 6px;
}
.fx-demo {
  margin-top: 4px; background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 12px; overflow: hidden;
}
.fx-demo-title { font-size: 14px; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.fx-demo-tip { font-size: 12px; color: #64748b; line-height: 1.6; margin-bottom: 10px; }
.fx-demo-list { display: flex; flex-direction: column; gap: 8px; }
.fx-demo-row {
  background: #fff; border: 1px solid #eef2f7; border-radius: 10px; padding: 10px 12px;
}
.fx-demo-row .fx-no {
  display: inline-block; font-size: 11px; font-weight: 700; color: #b45309;
  background: #fff7ed; border-radius: 999px; padding: 2px 8px; margin-bottom: 6px;
}
.fx-demo-row .fx-main {
  display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: #0f172a;
}
.fx-demo-row .fx-main span { color: #d97706; font-weight: 700; }
.fx-demo-row .fx-note { margin-top: 4px; font-size: 11px; color: #94a3b8; line-height: 1.45; }

/* 我的下线空态 */
.team-page .team-tabs { margin-bottom: 8px; }
.empty-state {
  padding: 48px 20px 60px; text-align: center; color: #b0b8c4;
}
.empty-state .empty-illu {
  width: 140px; height: 120px; margin: 0 auto 16px; position: relative;
}
.empty-state .empty-box {
  width: 88px; height: 72px; margin: 0 auto; background: #e8ecf1; border-radius: 14px;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.empty-state .empty-face {
  width: 36px; height: 28px; border: 3px solid #c5ced8; border-radius: 40%;
  position: relative; box-sizing: border-box;
}
.empty-state .empty-face::before,
.empty-state .empty-face::after {
  content: ''; position: absolute; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: #c5ced8;
}
.empty-state .empty-face::before { left: 6px; }
.empty-state .empty-face::after { right: 6px; }
.empty-state .empty-mouth {
  position: absolute; bottom: 5px; left: 50%; width: 12px; height: 6px;
  border: 2px solid #c5ced8; border-top: 0; border-radius: 0 0 10px 10px;
  transform: translateX(-50%);
}
.empty-state .empty-cloud {
  width: 120px; height: 28px; margin: -8px auto 0; background: #eef1f5;
  border-radius: 40% 40% 30% 30%; opacity: 0.95;
}
.empty-state .empty-deco {
  position: absolute; color: #d5dbe3; font-size: 12px; font-weight: 700;
}
.empty-state .d1 { top: 8px; left: 18px; }
.empty-state .d2 { top: 0; right: 22px; }
.empty-state .d3 { top: 28px; right: 12px; font-size: 10px; }
.empty-state .empty-txt { font-size: 14px; color: #b0b8c4; }
.team-user-card {
  background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 10px;
  font-size: 13px; line-height: 1.6; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.team-user-card .tu-name { font-weight: 700; color: #222; }
.team-user-card .tu-meta { color: #888; font-size: 12px; }

.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-mask.hidden { display: none !important; }
.modal-box {
  width: 100%; max-width: 340px; background: #fff; border-radius: 12px;
  max-height: 70vh; overflow: hidden; display: flex; flex-direction: column;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid #eee; font-weight: 700;
}
.modal-head button { border: 0; background: transparent; font-size: 22px; cursor: pointer; color: #999; }
.modal-body { padding: 14px; overflow-y: auto; font-size: 13px; line-height: 1.7; white-space: pre-wrap; color: #333; }

/* 进站弹窗公告 */
.popup-mask {
  background: rgba(15, 26, 22, 0.55);
  backdrop-filter: blur(2px);
  animation: popupFadeIn .22s ease;
}
.popup-box {
  width: 100%; max-width: 340px; background: #fff;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(234, 179, 8, 0.18);
  display: flex; flex-direction: column; max-height: min(72vh, 520px);
  animation: popupPop .28s cubic-bezier(.2,.8,.2,1);
}
.popup-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 0;
}
.popup-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #fff7ed, #fff6e8);
  color: var(--green-deep); font-size: 11px; font-weight: 700;
  border: 1px solid #ffedd5;
}
.popup-x {
  border: 0; background: #f1f5f9; width: 28px; height: 28px; border-radius: 50%;
  font-size: 18px; line-height: 1; color: #94a3b8; cursor: pointer;
}
.popup-title {
  padding: 12px 18px 6px; font-size: 17px; font-weight: 800;
  color: #0f172a; line-height: 1.4; text-align: center;
}
.popup-body {
  padding: 8px 18px 4px; overflow-y: auto; flex: 1;
  font-size: 13px; line-height: 1.75; color: #475569;
  white-space: pre-wrap; word-break: break-word;
  text-align: left;
}
.popup-btn {
  margin: 14px 16px 16px; border: 0; border-radius: 999px;
  padding: 12px 0; font-size: 15px; font-weight: 700; cursor: pointer;
  color: #fff; background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 6px 16px rgba(180, 83, 9, 0.28);
}
.popup-btn:active { transform: scale(.98); }
@keyframes popupFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes popupPop {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pick-item {
  display: flex; align-items: center; gap: 10px; padding: 12px; background: #fff;
  border-radius: 10px; margin-bottom: 8px; font-size: 13px;
}
.pick-item input { width: 18px; height: 18px; }
.wd-card {
  background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 10px;
  font-size: 12px; line-height: 1.7; color: #444;
}
.wd-card button {
  margin-top: 8px; border: 0; background: #fff7ed; color: #c2410c;
  border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: 12px;
}
.mine-meta { flex: 1; min-width: 0; }
.hidden { display: none !important; }



/* 首页头像 / Logo */
.home-avatar-mark {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  display: grid; place-items: center;
  background:
    center / cover no-repeat url('/assets/app-icon.png'),
    linear-gradient(145deg, var(--navy2), var(--navy));
  color: transparent; font-size: 0; font-weight: 900;
  box-shadow: 0 8px 20px rgba(10, 22, 48, 0.28);
  border: 1px solid rgba(232, 197, 71, 0.35);
  overflow: hidden;
}
.home-avatar { display: none; }

/* 优势条 */
.adv-strip {
  margin-top: 12px; padding: 14px 14px 12px;
  background: linear-gradient(145deg, #071022, #0a1630 45%, #132847);
  border-radius: 16px; color: #fafaf9;
  box-shadow: 0 10px 28px rgba(10, 22, 48, 0.22);
  border: 1px solid rgba(232, 197, 71, 0.16);
}
.adv-title {
  font-size: 13px; font-weight: 800; letter-spacing: 0.08em;
  color: #fde68a; margin-bottom: 10px;
}
.adv-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.adv-item {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(251,191,36,0.18);
  border-radius: 12px; padding: 10px 10px 9px;
}
.adv-item b {
  display: block; font-size: 13px; color: #fde68a; margin-bottom: 4px;
}
.adv-item span {
  display: block; font-size: 11px; line-height: 1.45; color: #a8a29e;
}

.home-hi .hi-purple { color: var(--gold); }
.home-hi .hi-brand { color: var(--navy); }
.brand-mark {
  background:
    center / cover no-repeat url('/assets/app-icon.png'),
    linear-gradient(145deg, var(--navy2), var(--navy)) !important;
  color: transparent !important;
  font-size: 0 !important;
  border: 1px solid rgba(232, 197, 71, 0.35);
}
.popup-btn {
  background: linear-gradient(135deg, var(--navy2), var(--navy)) !important;
  box-shadow: 0 6px 16px rgba(10, 22, 48, 0.28) !important;
  color: #fff !important;
}
.kefu-btn {
  background: var(--navy) !important;
  color: var(--gold2) !important;
}
.tabbar button.active { color: var(--navy) !important; }
.tabbar button.active .ti {
  background: linear-gradient(145deg, #fff8e7, #eef2f8) !important;
  color: var(--gold) !important;
}

/* ===== 广告大厅（用户投放） ===== */
.ads-wrap {
  padding: 12px 12px 28px;
  background:
    radial-gradient(120% 70% at 8% -10%, rgba(201, 162, 39, 0.16), transparent 55%),
    radial-gradient(90% 50% at 100% 0%, rgba(10, 22, 48, 0.08), transparent 52%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 40%, var(--bg) 100%);
  min-height: 100%;
}
.ads-hero {
  background: linear-gradient(145deg, #071022 0%, #0a1630 48%, #132847 100%);
  border-radius: 18px;
  padding: 20px 16px 16px;
  color: #fafaf9;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(10, 22, 48, 0.22);
  border: 1px solid rgba(232, 197, 71, 0.2);
  animation: adsHeroIn 0.55s ease both;
}
@keyframes adsHeroIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.ads-hero-glow {
  position: absolute;
  right: -30px;
  top: -36px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.42), transparent 68%);
  pointer-events: none;
  animation: adsGlow 4.5s ease-in-out infinite alternate;
}
@keyframes adsGlow {
  from { transform: scale(1); opacity: 0.85; }
  to { transform: scale(1.15); opacity: 1; }
}
.ads-hero-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fbbf24;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.ads-hero-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.ads-hero-desc {
  font-size: 12px;
  color: #a8a29e;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.ads-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}
.ads-stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}
.ads-stat em {
  display: block;
  font-style: normal;
  font-size: 16px;
  font-weight: 800;
  color: #fde68a;
  line-height: 1.2;
}
.ads-stat span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: #a8a29e;
}
.ads-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}
.ads-cta {
  border: 0;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #1c1917;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.28);
}
.ads-cta:active { transform: scale(0.97); }
.ads-cta.ghost {
  background: transparent;
  color: #fafaf9;
  border: 1px solid rgba(250, 250, 249, 0.32);
  font-weight: 700;
  box-shadow: none;
}
.ads-price-tip {
  margin-top: 12px;
  font-size: 11px;
  color: #fde68a;
  position: relative;
  z-index: 1;
  opacity: 0.92;
}
.ads-toolbar {
  margin: 14px 0 10px;
}
.ads-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ads-tabs::-webkit-scrollbar { display: none; }
.ads-tab {
  flex: 0 0 auto;
  border: 1px solid #e7e5e4;
  background: #fff;
  color: #78716c;
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ads-tab.on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.ads-search {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.ads-search input {
  flex: 1;
  border: 1px solid #e7e5e4;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
}
.ads-search input:focus { border-color: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18); }
.ads-search button {
  border: 0;
  background: #1c1917;
  color: #fafaf9;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ads-mine-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.ads-mine-stats.hidden { display: none; }
.ads-ms {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}
.ads-ms b {
  display: block;
  font-size: 15px;
  color: #1c1917;
}
.ads-ms span {
  font-size: 10px;
  color: #a8a29e;
}
.ads-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ads-card {
  display: block;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(28, 25, 23, 0.05);
  animation: adsCardIn 0.4s ease both;
  position: relative;
}
@keyframes adsCardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.ads-card--feed .ads-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #1c1917 0%, #44403c 45%, #b45309 100%);
  overflow: hidden;
}
.ads-card--feed .ads-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ads-cover-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: #fef3c7;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.ads-pin-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  font-size: 11px;
  font-weight: 800;
  color: #1c1917;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  border-radius: 8px;
  padding: 4px 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}
.ads-card-body { padding: 12px 14px 14px; }
.ads-desc {
  font-size: 14px;
  font-weight: 700;
  color: #1c1917;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.ads-desc .ads-desc-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #78716c;
  line-height: 1.45;
}
.ads-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f5f5f4;
}
.ads-pub {
  font-size: 12px;
  color: #a8a29e;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ads-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.ads-stat-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 12px;
  color: #a8a29e;
  cursor: default;
}
.ads-stat-btn.can-like {
  cursor: pointer;
}
.ads-stat-btn.liked {
  color: #b45309;
  font-weight: 700;
}
.ads-stat-btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.ads-card--mine {
  display: flex;
  gap: 0;
}
.ads-card--mine .ads-mine-thumb {
  flex: 0 0 88px;
  width: 88px;
  align-self: stretch;
  min-height: 88px;
  background: linear-gradient(145deg, #1c1917, #b45309);
  position: relative;
  overflow: hidden;
}
.ads-card--mine .ads-mine-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}
.ads-card--mine .ads-card-inner {
  flex: 1;
  min-width: 0;
  padding: 12px 12px 12px 12px;
}
.ads-card-inner { padding: 14px 14px 14px 16px; }
.ads-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.ads-name {
  font-size: 15px;
  font-weight: 780;
  color: #1c1917;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}
.ads-status {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 3px 9px;
}
.ads-status.ok { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.ads-status.wait { color: #a16207; background: #fefce8; border-color: #fde68a; }
.ads-status.bad { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.ads-status.off { color: #78716c; background: #f5f5f4; border-color: #e7e5e4; }
.ads-content {
  font-size: 13px;
  color: #44403c;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.ads-content.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ads-remain {
  margin-top: 10px;
}
.ads-remain-bar {
  height: 4px;
  border-radius: 999px;
  background: #f5f5f4;
  overflow: hidden;
}
.ads-remain-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbbf24, #d97706);
}
.ads-remain-txt {
  margin-top: 5px;
  font-size: 11px;
  color: #a8a29e;
}
.ads-meta {
  margin-top: 10px;
  font-size: 11px;
  color: #a8a29e;
  line-height: 1.55;
}
.ads-meta a { color: #b45309; font-weight: 600; word-break: break-all; }
.ads-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
  font-size: 11px;
  color: #a8a29e;
}
.ads-card-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ad-cover-up { position: relative; }
.ad-cover-pick {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 1.5px dashed #d6d3d1;
  border-radius: 12px;
  background: #fafaf9;
  color: #78716c;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ad-cover-preview {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 8px;
}
.ad-cover-preview.hidden { display: none; }
.ad-cover-pick.has-cover {
  min-height: 40px;
  border-style: solid;
  border-color: #a8a29e;
  color: var(--green);
}
.ads-go {
  border: 0;
  background: linear-gradient(135deg, var(--green2), var(--green));
  color: #fff;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.22);
}
.ads-go.ghost {
  background: #fff;
  color: #57534e;
  border: 1px solid #e7e5e4;
  box-shadow: none;
}
.ads-go.soft {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  box-shadow: none;
}
.ads-empty {
  text-align: center;
  padding: 52px 16px;
  color: #a8a29e;
  font-size: 13px;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed #d6d3d1;
  line-height: 1.6;
}
.ads-empty .ads-go { margin-top: 14px; }

/* 投放 / 续费表单 */
.ad-place-body { padding-bottom: 28px; }
.ad-place-banner {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 14px;
}
.ad-renew-title {
  font-size: 16px;
  font-weight: 800;
  color: #1c1917;
  margin-bottom: 12px;
}
.ad-field {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.ad-field-lab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #57534e;
}
.ad-field-lab em {
  font-style: normal;
  font-weight: 600;
  color: #a8a29e;
  font-size: 11px;
}
.ad-field input,
.ad-field textarea {
  width: 100%;
  border: 0;
  outline: none;
  resize: vertical;
  font: inherit;
  font-size: 14px;
  color: #1c1917;
  background: transparent;
  padding: 0;
}
.ad-field textarea { min-height: 110px; line-height: 1.5; }
.ad-day-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.ad-day-chip {
  border: 1px solid #e7e5e4;
  background: #fafaf9;
  color: #57534e;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.ad-day-chip.on {
  background: #fff7ed;
  border-color: #fbbf24;
  color: #b45309;
}
.ad-days-input {
  width: 100%;
  border: 1px dashed #d6d3d1 !important;
  border-radius: 10px !important;
  padding: 8px 10px !important;
  background: #fafaf9 !important;
}
.ads-cost-box {
  margin: 6px 0 14px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, #1c1917, #44403c);
  color: #fafaf9;
}
.ads-cost-main {
  font-size: 14px;
  font-weight: 700;
}
.ads-cost-main b {
  font-size: 22px;
  color: #fbbf24;
  margin: 0 4px;
}
.ads-cost-sub {
  margin-top: 6px;
  font-size: 11px;
  color: #a8a29e;
}
.ad-submit-btn {
  width: 100%;
  border-radius: 14px !important;
  padding: 14px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

/* ===== 星光统一扫尾：残留蜜琥珀色 → 深蓝/星金 ===== */
.task-badge.wait,
.task-badge.review,
.badge-amber,
.pick-tag,
.chip-on {
  background: var(--navy-soft) !important;
  color: var(--navy) !important;
  border-color: #cbd5e1 !important;
}
.task-badge.ok,
.st-green {
  color: var(--ok) !important;
}
.task-running .ac-msg,
.active-card .ac-msg:not(.err) {
  background: var(--navy-soft) !important;
  color: var(--navy) !important;
}
.review-btn,
.btn-amber,
.tu-save,
.primary,
.popup-btn.ok,
.ads-go:not(.ghost),
.day-chip.on {
  background: linear-gradient(135deg, var(--navy2), var(--navy)) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 16px rgba(10, 22, 48, 0.2) !important;
}
.day-chip {
  background: #fff !important;
  border-color: #e2e8f0 !important;
  color: var(--navy) !important;
}
.ads-tab.on,
.team-tabs button.on,
.ads-status.ok {
  background: var(--navy) !important;
  color: #fff !important;
}
.ads-meta a,
.pick-pts,
.task-tick,
.data-card .vc {
  color: var(--gold) !important;
}
.ads-cost-box,
.mine-av {
  background: linear-gradient(145deg, var(--navy2), var(--navy)) !important;
}
.wd-card button,
.sub-body .ghost:hover {
  background: var(--navy-soft) !important;
  color: var(--navy) !important;
  border-color: #cbd5e1 !important;
}
.task-marquee {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
.task-marquee-track span {
  color: #64748b !important;
}
.set-card,
.notice-card,
.cell {
  border-color: rgba(10, 22, 48, 0.06) !important;
}
.cell:active {
  background: var(--navy-soft) !important;
}
