:root {
  /* 网赚暖色：橙主色 + 金点缀 */
  --bg: #fff6ee;
  --ink: #2a1f14;
  --muted: #8a7460;
  --card: #ffffff;
  --line: #f0e0d0;
  --accent: #ff6a00;
  --accent-deep: #e85d04;
  --gold: #f5a623;
  --danger: #e11d48;
  --ok: #d97706;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "PingFang SC", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -8%, #ffe4c4 0%, transparent 55%),
    radial-gradient(720px 380px at 100% 0%, #ffd6a8 0%, transparent 48%),
    var(--bg);
  min-height: 100vh;
}
a { color: var(--accent-deep); text-decoration: none; }
.wrap { max-width: 480px; margin: 0 auto; padding: 16px 14px 88px; }
.wrap-wide { max-width: 960px; margin: 0 auto; padding: 20px 16px 40px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.brand {
  font-size: 20px; font-weight: 700; letter-spacing: .02em;
  color: var(--accent-deep); min-width: 0;
}
.user-chip {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 46%;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(232, 93, 4, 0.06);
  color: var(--ink) !important;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.user-chip:active { background: #fff8f0; }
.user-chip-ico {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffb347 0%, #ff6a00 100%);
  color: #fff;
}
.user-chip-ico svg { width: 15px; height: 15px; display: block; }
.user-chip-name {
  font-size: 13px; font-weight: 600; line-height: 1.2;
  color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 14px; margin-bottom: 12px;
}
.card h3 { margin: 0 0 6px; font-size: 16px; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.5; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat {
  background: linear-gradient(145deg, #fff 0%, #fff8f0 100%);
  border-color: #f5d9b8;
}
.stat .num {
  font-size: 22px; font-weight: 700;
  color: var(--accent);
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .lbl { font-size: 12px; color: var(--muted); }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
input, select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 15px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: #ffb366;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
}
textarea { min-height: 88px; resize: vertical; }
.btn {
  display: inline-block; width: 100%; text-align: center;
  background: linear-gradient(135deg, #ff8a1f 0%, #ff6a00 55%, #e85d04 100%);
  color: #fff !important; border: none;
  border-radius: 12px; padding: 12px 14px; font-size: 15px; font-weight: 600;
  cursor: pointer; margin-top: 12px;
}
.btn.ghost {
  background: transparent; color: var(--accent-deep) !important;
  border: 1px solid #ffc48a;
}
.btn.sm { width: auto; padding: 8px 12px; font-size: 13px; margin: 0; }
.btn.danger { background: var(--danger); }
.flash {
  padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 14px;
}
.flash.ok { background: #fff4e0; color: #b45309; }
.flash.err { background: #ffe4e6; color: var(--danger); }
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255, 252, 248, .97); border-top: 1px solid var(--line);
  display: flex; justify-content: space-around;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  backdrop-filter: blur(8px);
}
.nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-align: center; color: var(--muted);
  font-size: 11px; line-height: 1.2; padding: 4px 0 2px;
  text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.nav a .nav-ico {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; color: inherit;
}
.nav a .nav-ico svg { width: 22px; height: 22px; display: block; }
.nav a span { display: block; }
.nav a.on { color: var(--accent); font-weight: 700; }
.nav a.on .nav-ico { color: var(--accent); }
.tag {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: #fff0e0; color: var(--accent-deep);
}
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }
.qr { display: block; width: 180px; height: 180px; margin: 10px auto; border-radius: 8px; }
.side-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.side-nav a {
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-size: 13px;
}
.side-nav a.on {
  background: linear-gradient(135deg, #ff8a1f, #ff6a00);
  color: #fff; border-color: transparent;
}
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.field-block { margin: 12px 0; }
.field-block > label {
  display: block; margin: 0 0 8px; font-size: 13px; color: var(--muted);
}
.field-block .link-input {
  display: block; width: 100%; margin: 0;
  padding: 12px 12px; font-size: 13px; line-height: 1.45;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fffaf5; color: #9a3412;
  word-break: break-all;
}
.task-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin: 0 0 6px;
}
.task-head h3 {
  margin: 0; flex: 1; min-width: 0;
  font-size: 16px; line-height: 1.35;
}
.earn-price {
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.earn-price .unit {
  margin-left: 1px;
  font-size: 13px;
  font-weight: 400;
  color: var(--accent-deep);
  opacity: 0.85;
}
code {
  font-size: 12px; background: #fff4e8; padding: 2px 6px; border-radius: 4px;
  word-break: break-all; color: #9a3412;
}
