/* LIFE BUG 共享样式 —— 深色科技风 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0b0f17; --panel: #131a26; --panel2: #0f1622; --line: #1f2a3d;
  --txt: #e6edf5; --muted: #8fa0b5; --acc: #4da3ff; --cyan: #35e0c0;
  --green: #2ecc8f; --amber: #f5b041; --red: #e05c5c; --purple: #a78bfa;
}
body {
  background: radial-gradient(1200px 500px at 70% -10%, #12233d 0%, var(--bg) 55%);
  color: var(--txt);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  min-height: 100vh; font-size: 14px;
}
a { color: var(--acc); }

/* 顶栏 */
.top { display: flex; justify-content: space-between; align-items: center;
  padding: 14px 26px; border-bottom: 1px solid var(--line);
  background: rgba(15, 22, 34, .85); position: sticky; top: 100px; z-index: 20; backdrop-filter: blur(6px); }
.brand { font-size: 20px; font-weight: 700; letter-spacing: 1px; color: var(--cyan); }
.brand .sub { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 10px; letter-spacing: 0; }
.status { display: flex; gap: 10px; align-items: center; }
.chip { font-size: 12px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.chip.ok { color: var(--green); border-color: rgba(46, 204, 143, .4); }
.chip.acc { color: var(--cyan); border-color: rgba(53, 224, 192, .4); }

/* 标签页 */
.tabs { display: flex; gap: 6px; padding: 14px 26px 0; }
.tab { background: transparent; border: 1px solid var(--line); color: var(--muted);
  padding: 8px 18px; border-radius: 10px 10px 0 0; cursor: pointer; font-size: 14px; }
.tab.active { background: var(--panel); color: var(--cyan); border-bottom-color: var(--panel); }
.tab-body { display: none; padding: 22px 26px 40px; max-width: 1150px; margin: 0 auto; }
.tab-body.active { display: block; }

/* 卡片 */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.card h2 { font-size: 15px; margin-bottom: 12px; color: var(--acc); }
.card h2 .tag { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }

/* 按钮 */
.btn { background: var(--acc); color: #fff; border: none; border-radius: 10px;
  padding: 9px 20px; cursor: pointer; font-size: 14px; font-family: inherit; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--txt); }
.btn.small { padding: 5px 12px; font-size: 12px; border-radius: 8px; }
.btn.danger { background: transparent; border: 1px solid rgba(224, 92, 92, .5); color: var(--red); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* 输入 */
input[type=text], select, textarea { background: var(--panel2); border: 1px solid var(--line);
  color: var(--txt); border-radius: 10px; padding: 9px 12px; font-size: 14px; font-family: inherit; outline: none; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--acc); }

/* 徽章 */
.badge { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.badge.on { color: var(--green); border: 1px solid rgba(46, 204, 143, .5); }
.badge.dev { color: var(--amber); border: 1px solid rgba(245, 176, 65, .5); }
.badge.plan { color: var(--purple); border: 1px solid rgba(167, 139, 250, .5); }
.badge.sen { color: var(--red); border: 1px solid rgba(224, 92, 92, .5); }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--muted); font-weight: 400; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:hover td { background: rgba(77, 163, 255, .05); }
.mono { font-family: Consolas, monospace; font-size: 12px; color: var(--cyan); }

/* 提示条 */
.banner { border: 1px solid rgba(77, 163, 255, .35); background: rgba(77, 163, 255, .08);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; line-height: 1.7; }
.banner b { color: var(--acc); }

/* 开关 */
.switch-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.switch-row:last-child { border-bottom: none; }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; margin-top: 2px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--panel2); border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer; transition: .2s; }
.slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: var(--muted); border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: rgba(53, 224, 192, .25); border-color: var(--cyan); }
.switch input:checked + .slider::before { transform: translateX(20px); background: var(--cyan); }
.sw-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.sw-benefit { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.6; }

/* 任务与列表 */
.task-item { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--panel2); }
.task-item.done { opacity: .55; }
.task-title { font-weight: 600; }
.task-merchant { color: var(--muted); font-size: 12px; margin-top: 3px; }
.task-reward { color: var(--cyan); font-weight: 700; white-space: nowrap; }

/* 大数字 */
.big-num { font-size: 34px; font-weight: 800; color: var(--cyan); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi .label { color: var(--muted); font-size: 12px; margin-top: 6px; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; }

/* 聊天 */
.chat-box { height: 380px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel2); padding: 16px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; line-height: 1.6; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--acc); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chips { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.chips button { background: var(--panel); border: 1px solid var(--line); color: var(--txt);
  padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; font-family: inherit; }
.chips button:hover { border-color: var(--acc); color: var(--acc); }
.chat-input { display: flex; gap: 10px; }
.chat-input input { flex: 1; }

/* 步骤 */
.step { display: flex; gap: 14px; margin-bottom: 16px; }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: rgba(53, 224, 192, .15);
  color: var(--cyan); border: 1px solid rgba(53, 224, 192, .4); display: flex; align-items: center;
  justify-content: center; font-weight: 700; flex-shrink: 0; }
.step h3 { font-size: 14px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 13px; line-height: 1.7; }

/* 弹出提示 */
#toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: var(--panel); border: 1px solid var(--cyan); color: var(--txt);
  padding: 10px 22px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; }
#toast.show { opacity: 1; }

.section-title { font-size: 16px; margin: 26px 0 12px; color: var(--txt); display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; width: 4px; height: 16px; background: var(--cyan); border-radius: 2px; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.7; }
.rule-list { color: var(--muted); font-size: 12px; line-height: 2; }
.wallet-row { display: flex; justify-content: space-between; align-items: baseline; }
