/* ============ 活动引擎 · 克隆版 控制台样式 ============ */
:root {
  --blue: #2f7bf6;
  --blue-dark: #1c62d6;
  --blue-soft: #eef4ff;
  --bg: #f5f7fa;
  --text: #1f2329;
  --text-2: #4e5969;
  --muted: #78838f;
  --line: #e5e6eb;
  --card: #fff;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(29, 41, 57, .05);
  --shadow-lg: 0 18px 50px rgba(29, 41, 57, .14);
  --green: #12b886;
  --orange: #ff9f1c;
  --red: #ff5a5f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; }
p { margin: 0; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.right { text-align: right; }

/* ---------- 顶栏 ---------- */
.topbar {
  height: 60px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; position: sticky; top: 0; z-index: 60;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%; position: relative; display: inline-block;
  background: conic-gradient(from 210deg, #ff7ac3, #8b5cf6 30%, #38bdf8 60%, #ffd166 85%, #ff7ac3);
  box-shadow: 0 4px 10px rgba(99, 102, 241, .28);
}
.brand-mark i {
  position: absolute; inset: 7px; background: #fff; border-radius: 50%;
}
.brand-mark i::after {
  content: ""; position: absolute; left: 2px; top: 3px; width: 9px; height: 5px;
  border-radius: 0 0 8px 8px; background: var(--blue);
  transform: rotate(-12deg);
}
.brand-mark.small { width: 26px; height: 26px; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: .2px; }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.vip { color: #8a6d3b; font-size: 13px; background: linear-gradient(135deg, #fff5d6, #ffe9b0); padding: 3px 10px; border-radius: 20px; }
.top-link { color: var(--text-2); font-size: 13px; }
.user-chip { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.user-chip .avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; font-weight: 600;
}
.user-chip .caret { color: var(--muted); font-size: 11px; }
.user-menu {
  position: absolute; right: 0; top: 38px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: var(--shadow-lg); min-width: 132px; padding: 6px;
  display: none; z-index: 80;
}
.user-chip.open .user-menu { display: block; }
.user-menu a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--text-2); }
.user-menu a:hover { background: var(--bg); color: var(--blue); }

/* ---------- 布局 ---------- */
.layout { display: flex; align-items: flex-start; max-width: 1480px; margin: 0 auto; }
.sidebar {
  scrollbar-width: none; -ms-overflow-style: none;
  width: 212px; flex: 0 0 212px; background: #fff; border-right: 1px solid var(--line);
  padding: 14px 10px 24px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 0; height: 0; }
.nav-item, .nav-parent {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 6px; color: var(--text-2); font-size: 14px;
  background: none; border: 0; cursor: pointer; font-family: inherit; text-align: left;
}
.nav-item:hover, .nav-parent:hover { background: var(--bg); color: var(--blue); }
.nav-item.on { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.nav-item .ico, .nav-parent .ico { color: inherit; }
.nav-parent .arrow { margin-left: auto; font-size: 11px; color: var(--muted); transition: transform .2s; }
.nav-group.collapsed .arrow { transform: rotate(180deg); }
.nav-group.collapsed .nav-children { display: none; }
.nav-children { padding: 2px 0 2px 0; }
.nav-child {
  display: block; padding: 8px 12px 8px 40px; color: var(--text-2); font-size: 13px;
  border-radius: 6px;
}
.nav-child:hover { background: var(--bg); color: var(--blue); }
.nav-child.on { color: var(--blue); background: var(--blue-soft); }
.badge-new {
  font-size: 10px; color: #fff; background: linear-gradient(135deg, #ff7ac3, #ff5a5f);
  border-radius: 8px 8px 8px 2px; padding: 0 5px; font-style: normal; margin-left: 4px;
}
.sidebar-foot { margin-top: 18px; padding: 12px; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.sidebar-foot a { font-size: 12px; color: var(--muted); }

.main { flex: 1; min-width: 0; padding: 22px 26px 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; gap: 16px; }
.page-head h1 { font-size: 22px; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--blue); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  height: 36px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; color: var(--text-2); font-size: 14px; cursor: pointer;
  font-family: inherit; transition: .15s;
}
.btn:hover { border-color: #c9d5e8; color: var(--blue); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; }
.btn-light { background: rgba(255,255,255,.92); color: var(--text); border-color: transparent; }
.btn-light:hover { background: #fff; color: var(--blue); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; height: 42px; font-size: 15px; }

/* ---------- 工具条 ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.tabs { display: flex; gap: 6px; background: #fff; padding: 4px; border-radius: 8px; border: 1px solid var(--line); }
.tab {
  border: 0; background: none; padding: 6px 14px; border-radius: 6px; cursor: pointer;
  color: var(--text-2); font-size: 13px; font-family: inherit;
}
.tab em { font-style: normal; color: var(--muted); font-size: 12px; }
.tab.on { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.tab.on em { color: var(--blue); }
.search-box {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 0 12px; height: 36px; min-width: 260px;
}
.search-box .ico { color: var(--muted); width: 16px; height: 16px; }
.search-box input { border: 0; outline: none; flex: 1; font-family: inherit; font-size: 13px; }

/* ---------- 活动卡片 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(306px, 1fr)); gap: 16px; }
.act-card {
  background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  transition: .18s; display: flex; flex-direction: column;
}
.act-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: #d8e3f5; }
.act-cover { height: 122px; position: relative; padding: 14px; color: #fff; overflow: hidden; }
.act-cover h3 { font-size: 16px; line-height: 1.4; position: relative; z-index: 2; max-height: 46px; overflow: hidden; }
.act-cover .type { position: relative; z-index: 2; font-size: 12px; opacity: .9; margin-top: 4px; }
.act-cover::after {
  content: ""; position: absolute; right: -30px; bottom: -50px; width: 150px; height: 150px;
  border-radius: 50%; background: rgba(255,255,255,.16);
}
.act-cover::before {
  content: ""; position: absolute; left: -20px; top: -40px; width: 110px; height: 110px;
  border-radius: 50%; background: rgba(255,255,255,.12);
}
.cover-c1 { background: linear-gradient(135deg, #2f7bf6, #6f5bff); }
.cover-c2 { background: linear-gradient(135deg, #ff7a59, #ff4d8d); }
.cover-c3 { background: linear-gradient(135deg, #12b886, #0ea5e9); }
.cover-c4 { background: linear-gradient(135deg, #f59f00, #ff6b6b); }
.cover-c5 { background: linear-gradient(135deg, #343a40, #495057 60%, #6c757d); }
.status-pill {
  position: absolute; right: 12px; top: 12px; z-index: 3; font-size: 12px;
  padding: 2px 10px; border-radius: 20px; background: rgba(0,0,0,.22); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.35);
}
.status-pill.ongoing { background: #12b886; border-color: transparent; box-shadow: 0 2px 8px rgba(18,184,134,.35); }
.status-pill.upcoming { background: #2f7bf6; border-color: transparent; box-shadow: 0 2px 8px rgba(47,123,246,.35); }
.status-pill.ended { background: rgba(0,0,0,.35); }
.act-body { padding: 14px 14px 6px; flex: 1; }
.act-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }
.act-line .dot { width: 5px; height: 5px; border-radius: 50%; background: #c9d5e8; }
.act-foot {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 12px;
  border-top: 1px solid #f2f3f5; margin-top: 8px;
}
.act-stats { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.act-stats b { color: var(--text); font-size: 14px; margin-right: 3px; }
.act-actions { display: flex; gap: 6px; align-items: center; }
.icon-btn {
  width: 28px; height: 28px; border-radius: 6px; border: 0; background: var(--bg); color: var(--text-2);
  cursor: pointer; display: grid; place-items: center; font-size: 13px;
}
.icon-btn:hover { background: var(--blue-soft); color: var(--blue); }
.card-menu { position: relative; }
.card-menu-list {
  position: absolute; right: 0; top: 32px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: var(--shadow-lg); min-width: 120px; padding: 5px; display: none; z-index: 30;
}
.card-menu.open .card-menu-list { display: block; }
.card-menu-list button {
  display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px;
  border-radius: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; font-family: inherit;
}
.card-menu-list button:hover { background: var(--bg); color: var(--blue); }
.card-menu-list button.danger:hover { background: #fff1f0; color: var(--red); }

/* ---------- 空状态 ---------- */
.empty-state { text-align: center; padding: 64px 20px 72px; }
.empty-state h3 { font-size: 17px; margin: 18px 0 6px; }
.empty-state p { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.empty-art { width: 150px; height: 116px; margin: 0 auto; position: relative; }
.art-win {
  position: absolute; left: 10px; top: 14px; width: 118px; height: 84px; border: 2px solid #c9d5e8;
  border-radius: 10px; background: #fff;
}
.art-win span { display: block; height: 2px; background: #e3ebf7; margin: 12px 12px 0; }
.art-win span:nth-child(2) { width: 60%; }
.art-lock {
  position: absolute; left: 52px; top: 44px; width: 34px; height: 26px; border-radius: 4px;
  border: 2px solid #9db6d8;
}
.art-lock::before {
  content: ""; position: absolute; left: 7px; top: -14px; width: 16px; height: 16px;
  border: 2px solid #9db6d8; border-bottom: 0; border-radius: 10px 10px 0 0;
}
.art-key {
  position: absolute; right: 2px; top: 6px; width: 24px; height: 8px; border-radius: 6px;
  border: 2px solid #ffb703; transform: rotate(-24deg);
}
.art-key::after { content: ""; position: absolute; right: -12px; top: -4px; width: 8px; height: 8px; border: 2px solid #ffb703; border-radius: 50%; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(17, 24, 39, .45); display: grid; place-items: center;
  z-index: 200; padding: 20px;
}
.modal-mask[hidden] { display: none; }
.modal {
  background: #fff; width: 560px; max-width: 100%; border-radius: 12px; box-shadow: var(--shadow-lg);
  animation: pop .18s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; }
.modal-close { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal form { padding: 18px 20px 4px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 0 4px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px;
  font-family: inherit; font-size: 14px; color: var(--text); outline: none; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,123,246,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cover-picker { display: flex; gap: 10px; }
.cover-dot { width: 46px; height: 30px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; }
.cover-dot.c1 { background: linear-gradient(135deg, #2f7bf6, #6f5bff); }
.cover-dot.c2 { background: linear-gradient(135deg, #ff7a59, #ff4d8d); }
.cover-dot.c3 { background: linear-gradient(135deg, #12b886, #0ea5e9); }
.cover-dot.c4 { background: linear-gradient(135deg, #f59f00, #ff6b6b); }
.cover-dot.c5 { background: linear-gradient(135deg, #343a40, #6c757d); }
.cover-dot.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,123,246,.16); }

/* ---------- 活动详情 ---------- */
.act-hero {
  border-radius: 12px; padding: 22px 24px; color: #fff; display: flex; justify-content: space-between;
  align-items: center; gap: 20px; margin-bottom: 18px; position: relative; overflow: hidden;
}
.act-hero::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255,255,255,.12);
}
.act-hero-main { position: relative; z-index: 2; }
.act-hero h1 { font-size: 22px; margin: 6px 0 8px; }
.act-meta { display: flex; gap: 18px; font-size: 13px; opacity: .92; flex-wrap: wrap; }
.act-hero-actions { display: flex; gap: 10px; position: relative; z-index: 2; flex-wrap: wrap; }
.pill { font-size: 12px; padding: 2px 10px; border-radius: 20px; background: rgba(255,255,255,.24); }
.pill-ongoing { background: #12b886; }
.pill-upcoming { background: #2f7bf6; }
.pill-ended { background: rgba(0,0,0,.3); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.detail-main { display: grid; gap: 16px; min-width: 0; }
.detail-side { display: grid; gap: 16px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h3 { font-size: 15px; }
.panel-head .hint { font-size: 12px; color: var(--muted); }
.panel-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mini-input {
  height: 30px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px;
  font-family: inherit; font-size: 13px; width: 110px; outline: none;
}
.mini-input:focus { border-color: var(--blue); }

.addon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.addon-card {
  display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line);
  border-radius: 10px; padding: 12px; transition: .15s; background: #fff;
}
.addon-card.on { border-color: #cfe0ff; background: #fbfdff; box-shadow: 0 4px 14px rgba(47,123,246,.07); }
.addon-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 38px; }
.addon-ico .ico { width: 20px; height: 20px; }
.addon-body { flex: 1; min-width: 0; }
.addon-body h4 { font-size: 14px; margin-bottom: 2px; }
.addon-body p { font-size: 12px; color: var(--muted); line-height: 1.5; }
.addon-cat { display: inline-block; margin-top: 6px; font-size: 11px; color: var(--blue); background: var(--blue-soft); padding: 1px 7px; border-radius: 10px; }
.switch { width: 40px; height: 22px; border-radius: 20px; background: #dfe4ec; border: 0; position: relative; cursor: pointer; flex: 0 0 40px; margin-top: 4px; transition: .18s; }
.switch i { position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .18s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--blue); }
.switch.on i { left: 21px; }

.people-summary { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px 10px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 9px 10px; border-bottom: 1px solid #f2f3f5; color: var(--text-2); }
.table tr:hover td { background: #fbfcfe; }
.tag { font-size: 12px; padding: 1px 8px; border-radius: 10px; background: #f2f3f5; color: var(--muted); }
.tag.ok { background: #e7f8f1; color: var(--green); }

.qr-panel { text-align: center; padding: 4px 0 10px; }
.qr-box { width: 132px; height: 132px; margin: 0 auto 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; padding: 6px; }
.qr-box img, .qr-box canvas { width: 100%; height: 100%; display: block; }
.qr-url { font-size: 12px; color: var(--muted); word-break: break-all; margin-bottom: 10px; }
.link-list { border-top: 1px dashed var(--line); padding-top: 10px; display: grid; gap: 8px; }
.link-list div { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.link-list span { color: var(--muted); flex: 0 0 62px; }
.link-list a { word-break: break-all; text-align: right; }

.info-list { margin: 0; display: grid; gap: 10px; }
.info-list div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.info-list dt { color: var(--muted); margin: 0; }
.info-list dd { margin: 0; color: var(--text-2); text-align: right; }

.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 320px; overflow: auto; }
.feed li { font-size: 12.5px; color: var(--text-2); padding-left: 14px; position: relative; line-height: 1.5; }
.feed li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: #cfe0ff; }
.feed li time { display: block; color: var(--muted); font-size: 11px; }

/* ---------- 统计 ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.kpi-card span { font-size: 12px; color: var(--muted); }
.kpi-card b { display: block; font-size: 26px; margin-top: 4px; letter-spacing: -.5px; }
.kpi-card em { font-style: normal; font-size: 12px; color: var(--green); }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 10px; }
.chart .bar { flex: 1; background: linear-gradient(180deg, #6ea8ff, #2f7bf6); border-radius: 4px 4px 0 0; min-height: 4px; position: relative; }
.chart .bar span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); white-space: nowrap; }

/* ---------- 工具 / 方案页 ---------- */
.tool-hero {
  border-radius: 14px; background: linear-gradient(120deg, #1d4ed8, #3b82f6 45%, #06b6d4);
  color: #fff; padding: 34px 32px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; margin-bottom: 16px; overflow: hidden; position: relative;
}
.tool-hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.12); }
.tool-hero .eyebrow { font-size: 12px; letter-spacing: 2px; opacity: .8; }
.tool-hero h1 { font-size: 26px; margin: 10px 0 10px; max-width: 560px; line-height: 1.4; }
.tool-hero p { opacity: .88; font-size: 13px; }
.tool-hero-actions { display: flex; gap: 10px; margin-top: 18px; }
.art-screen { width: 240px; height: 150px; border-radius: 12px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); padding: 14px; position: relative; z-index: 2; }
.art-screen b { font-size: 14px; }
.art-screen span { display: block; height: 8px; border-radius: 6px; background: rgba(255,255,255,.35); margin-top: 10px; }
.art-screen span:nth-child(3) { width: 70%; }
.art-screen span:nth-child(4) { width: 45%; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.feature-item { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--text-2); }
.feature-item i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.steps b { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: 0 0 26px; font-size: 13px; }
.steps h4 { font-size: 14px; }
.steps p { font-size: 12px; color: var(--muted); }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.plan-cover { height: 104px; color: #fff; display: flex; align-items: flex-end; padding: 12px 14px; font-size: 13px; letter-spacing: 1px; }
.plan-cover.g1 { background: linear-gradient(135deg, #2f7bf6, #6f5bff); }
.plan-cover.g2 { background: linear-gradient(135deg, #ff7a59, #ff4d8d); }
.plan-cover.g3 { background: linear-gradient(135deg, #12b886, #0ea5e9); }
.plan-cover.g4 { background: linear-gradient(135deg, #f59f00, #ff6b6b); }
.plan-body { padding: 14px; }
.plan-body h3 { font-size: 15px; margin-bottom: 6px; }
.plan-body p { font-size: 12.5px; color: var(--muted); min-height: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.chips span { font-size: 11px; color: var(--blue); background: var(--blue-soft); border-radius: 10px; padding: 1px 8px; }
.prose p { font-size: 14px; color: var(--text-2); line-height: 1.9; }
.form-narrow { max-width: 380px; }

/* ---------- 页脚 ---------- */
.foot { margin-top: 32px; border-top: 1px solid var(--line); padding: 24px 0 30px; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 120px; gap: 18px; }
.foot-cols h5 { font-size: 13px; margin-bottom: 8px; }
.foot-cols a { display: block; font-size: 12px; color: var(--muted); line-height: 2; }
.foot-cols a:hover { color: var(--blue); }
.foot-brand { display: flex; gap: 10px; align-items: flex-start; }
.foot-brand strong { font-size: 14px; }
.foot-brand p { font-size: 12px; color: var(--muted); }
.foot-qr { text-align: center; }
.foot-qr .qr-box { width: 92px; height: 92px; }
.foot-qr span { font-size: 11px; color: var(--muted); }
.foot-bottom { margin-top: 20px; font-size: 12px; color: var(--muted); }

/* ---------- 悬浮工具 ---------- */
.float-tool { position: fixed; right: 10px; bottom: 28px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); display: grid; overflow: hidden; z-index: 90; }
.float-tool button { width: 40px; height: 40px; border: 0; background: none; color: var(--text-2); font-size: 16px; cursor: pointer; position: relative; }
.float-tool button + button { border-top: 1px solid var(--line); }
.float-tool button:hover { background: var(--blue-soft); color: var(--blue); }
.float-tool button::after {
  content: attr(data-tip); position: absolute; right: 48px; top: 50%; transform: translateY(-50%);
  background: rgba(31,35,41,.9); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 4px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: .15s;
}
.float-tool button:hover::after { opacity: 1; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 50%; top: 24px; transform: translateX(-50%); z-index: 400; display: grid; gap: 8px; }
.toast {
  background: rgba(31,35,41,.92); color: #fff; font-size: 13px; padding: 9px 18px; border-radius: 8px;
  animation: toastIn .2s ease-out; box-shadow: var(--shadow-lg);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- 登录页 ---------- */
.auth-page { background: #f5f7fa; min-height: 100vh; display: flex; flex-direction: column; }
.auth-top { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; }
.auth-top-link { font-size: 13px; color: var(--text-2); }
.auth-wrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 60px; max-width: 1180px; width: 100%; margin: 0 auto; padding: 24px 32px 40px; align-items: center; }
.auth-hero h1 { font-size: 38px; line-height: 1.25; letter-spacing: -1px; }
.auth-hero > p { color: var(--text-2); font-size: 15px; margin: 16px 0 22px; max-width: 460px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.hero-points li { font-size: 13.5px; color: var(--text-2); }
.hero-points b { color: var(--blue); font-size: 16px; margin-right: 4px; }
.hero-mock { max-width: 460px; }
.mock-screen { background: linear-gradient(135deg, #1e3a8a, #2f7bf6 60%, #06b6d4); border-radius: 14px; padding: 20px 22px; color: #fff; box-shadow: 0 22px 50px rgba(47,123,246,.35); }
.mock-title { font-size: 15px; font-weight: 600; opacity: .92; }
.mock-names { display: flex; gap: 10px; margin: 18px 0; }
.mock-names span { flex: 1; text-align: center; background: rgba(255,255,255,.16); border-radius: 8px; padding: 12px 0; font-size: 17px; font-weight: 600; animation: glow 2.4s infinite alternate; }
.mock-names span:nth-child(2) { animation-delay: .4s; }
.mock-names span:nth-child(3) { animation-delay: .8s; }
@keyframes glow { to { background: rgba(255,255,255,.34); } }
.mock-bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.22); overflow: hidden; }
.mock-bar i { display: block; height: 100%; background: #ffd166; border-radius: 4px; }
.auth-card { background: #fff; border-radius: 14px; padding: 26px 28px 22px; box-shadow: 0 18px 50px rgba(29,41,57,.1); }
.auth-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.auth-tabs a { padding-bottom: 10px; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; }
.auth-tabs a.on { color: var(--text); border-color: var(--blue); font-weight: 600; }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 16px; font-size: 12.5px; }
.check { color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.link { font-size: 12.5px; }
.auth-tip { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }
.auth-tip code { background: var(--bg); padding: 1px 6px; border-radius: 4px; }
.auth-other { margin-top: 20px; border-top: 1px dashed var(--line); padding-top: 14px; text-align: center; }
.auth-other > span { font-size: 12px; color: var(--muted); }
.auth-oauth { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
.auth-oauth button { border: 1px solid var(--line); background: #fff; border-radius: 8px; height: 34px; padding: 0 16px; font-size: 12.5px; color: var(--text-2); cursor: pointer; font-family: inherit; }
.auth-oauth button:hover { border-color: var(--blue); color: var(--blue); }
.auth-foot { text-align: center; font-size: 12px; color: var(--muted); padding: 18px; }

@media (max-width: 1200px) {
  .detail-grid { grid-template-columns: 1fr; }
  .addon-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

/* 推荐方案（方案包） */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.plan-card { background: #fff; border: 1px solid #e5e6eb; border-radius: 6px; overflow: hidden;
  transition: box-shadow .18s, transform .18s; }
.plan-card:hover { box-shadow: 0 8px 24px rgba(16,35,63,.1); transform: translateY(-2px); }
.plan-cover { height: 96px; position: relative; display: flex; align-items: flex-end; padding: 12px;
  color: #fff; font-size: 13px; letter-spacing: 2px; font-weight: 600; }
.plan-cover.s1 { background: linear-gradient(120deg, #2f7bf6, #6f5bff); }
.plan-cover.s3 { background: linear-gradient(120deg, #12b886, #0ea5e9); }
.plan-cover.s5 { background: linear-gradient(120deg, #f59f00, #ff6b6b); }
.plan-cover.s9 { background: linear-gradient(120deg, #0f4c81, #13c2c2); }
.plan-badge { position: absolute; right: 10px; top: 10px; font-style: normal; font-size: 11px;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.4);
  padding: 2px 8px; border-radius: 10px; letter-spacing: 0; }
.plan-body { padding: 14px 16px 16px; }
.plan-head { display: flex; align-items: baseline; gap: 8px; }
.plan-head h3 { margin: 0; font-size: 15.5px; flex: 1; }
.plan-price { color: #f53f3f; font-weight: 700; font-size: 15px; }
.plan-price small { font-weight: 400; font-size: 11px; color: var(--ink-3); }
.plan-body p { font-size: 12.5px; color: var(--ink-2); line-height: 1.8; margin: 8px 0 10px; }
.plan-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }

/* 品牌 LOGO（活动引擎） */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-logo { width: 30px; height: 30px; border-radius: 9px; flex: 0 0 30px;
  box-shadow: 0 4px 12px rgba(22,93,255,.28); }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: .5px;
  background: linear-gradient(96deg, #12203a, #165DFF 70%, #7B5CFF);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tag { font-size: 9.5px; letter-spacing: .9px; color: #4e5969; font-weight: 700;
  border: 1px solid #d5dbe6; border-radius: 4px; padding: 1px 5px; margin-left: 2px;
  background: #f2f5fa; }
.auth-top .brand-logo { width: 32px; height: 32px; }
