/* ============ 基础 ============ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --red: #ff2e4d;
  --red-dark: #e01f3c;
  --ink: #1e1e24;
  --ink-2: #4a4a55;
  --muted: #8d8d99;
  --line: #ededf2;
  --bg: #f4f4f7;
  --card: #ffffff;
  --green: #10b981;
  --green-soft: #e7f8f0;
  --amber: #f79009;
  --amber-soft: #fff4e5;
  --blue: #3b82f6;
  --blue-soft: #eaf2ff;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(24, 24, 32, .08);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--red); text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* ============ 通用 ============ */
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.strong { font-weight: 600; }
.row { display: flex; align-items: center; gap: 8px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.sp { flex: 1; }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  font-size: 15px; font-weight: 600; transition: .15s;
  background: #f2f2f6; color: var(--ink-2);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 18px rgba(255, 46, 77, .24); }
.btn-primary:disabled { background: #f3c3cb; box-shadow: none; color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.btn-green { background: var(--green); color: #fff; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-link { color: var(--red); font-size: 13px; font-weight: 600; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: #f2f2f6; color: var(--ink-2); white-space: nowrap;
}
.chip-red { background: #ffe9ed; color: var(--red); }
.chip-green { background: var(--green-soft); color: #0b8f63; }
.chip-amber { background: var(--amber-soft); color: #b25c00; }
.chip-blue { background: var(--blue-soft); color: #1d5fd0; }
.chip-gray { background: #f1f1f5; color: var(--muted); }

.card {
  background: var(--card); border-radius: var(--radius); padding: 16px;
  box-shadow: 0 1px 2px rgba(24,24,32,.04);
}

/* ============ 入口 ============ */
.entry {
  min-height: 100vh; max-width: 560px; margin: 0 auto; padding: 48px 22px 32px;
  background:
    radial-gradient(120% 60% at 80% 0%, #ffe3e8 0%, rgba(255,227,232,0) 60%),
    radial-gradient(90% 50% at 0% 20%, #fff1e6 0%, rgba(255,241,230,0) 55%),
    #fff;
  display: flex; flex-direction: column;
}
.entry-logo {
  width: 62px; height: 62px; border-radius: 18px;
  background: linear-gradient(135deg, var(--red), #ff7a45);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 27px; font-weight: 800;
  box-shadow: 0 14px 30px rgba(255, 46, 77, .28);
}
.entry h1 { font-size: 27px; letter-spacing: -.5px; margin-top: 20px; }
.entry .sub { color: var(--muted); margin-top: 8px; font-size: 14px; }
.role-card {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 16px; text-align: left; margin-top: 14px; box-shadow: var(--shadow);
  transition: .15s;
}
.role-card:active { transform: scale(.99); }
.role-ico {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.role-card b { display: block; font-size: 16px; }
.role-card span { color: var(--muted); font-size: 12.5px; }
.role-arrow { color: #c9c9d2; font-size: 20px; }
.entry-foot { margin-top: auto; padding-top: 28px; color: #b3b3bd; font-size: 11.5px; line-height: 1.7; }

/* ============ 表单 ============ */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.input, .select, .textarea {
  width: 100%; height: 46px; border: 1px solid var(--line); background: #fafafc;
  border-radius: 12px; padding: 0 14px; outline: none; transition: .15s;
  font-size: 15px;
}
.textarea { height: auto; min-height: 92px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(255,46,77,.08); }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%238d8d99' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.geo-box {
  border: 1px dashed #dcdce4; border-radius: 12px; padding: 12px 14px;
  display: flex; align-items: center; gap: 10px; background: #fbfbfd;
}
.geo-box.ok { border-style: solid; border-color: #bfe9d6; background: var(--green-soft); }
.geo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.geo-box.ok .geo-dot { background: var(--green); }

/* ============ 兼职端 ============ */
.wapp { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #f6f6f9; padding-bottom: 84px; }
.wtop {
  background: linear-gradient(135deg, #ff3d59, #ff6a3d);
  color: #fff; padding: 22px 18px 56px; border-radius: 0 0 24px 24px;
}
.wtop .hello { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.wtop .sub { opacity: .82; font-size: 12.5px; margin-top: 4px; }
.wallet {
  display: flex; gap: 22px; margin-top: 16px;
}
.wallet .num { font-size: 22px; font-weight: 700; letter-spacing: -.5px; }
.wallet .lbl { font-size: 11px; opacity: .8; }
.wmain { padding: 0 14px; margin-top: -40px; }
.wstats { display: flex; gap: 10px; }
.wstat {
  flex: 1; background: #fff; border-radius: 14px; padding: 12px 10px; text-align: center;
  box-shadow: 0 6px 18px rgba(24,24,32,.06);
}
.wstat b { display: block; font-size: 19px; letter-spacing: -.4px; }
.wstat span { font-size: 11px; color: var(--muted); }

.wtabs {
  display: flex; gap: 6px; background: #fff; border-radius: 14px; padding: 5px; margin-top: 14px;
  position: sticky; top: 8px; z-index: 8; box-shadow: 0 4px 14px rgba(24,24,32,.05);
}
.wtab { flex: 1; height: 36px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.wtab.on { background: var(--ink); color: #fff; }

.feed { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pcard {
  background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(24,24,32,.05);
  display: flex; flex-direction: column;
}
.pcover { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #ddd; }
.pcover img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcover .veil { position: absolute; inset: 0; }
.pcover .txt { position: absolute; inset: 0; padding: 10px; display: flex; flex-direction: column; color: #fff; }
.pcover .ttl { font-size: 15px; font-weight: 800; line-height: 1.25; text-shadow: 0 2px 8px rgba(0,0,0,.35); letter-spacing: -.2px; }
.pcover .pay { font-size: 19px; font-weight: 800; letter-spacing: -.6px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.pcover .pay em { font-style: normal; font-size: 11px; font-weight: 600; margin-left: 2px; opacity: .9; }
.pcover .mini { margin-top: auto; font-size: 9.5px; opacity: .92; letter-spacing: .2px; }
.pcover .bdg {
  position: absolute; top: 8px; right: 8px; background: var(--accent, #ff2e4d); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
}
/* 封面版式 */
.c-l1 .veil { background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.72) 100%); }
.c-l1 .txt { justify-content: flex-end; }
.c-l1 .ttl { font-size: 16px; }
.c-l2 .veil { background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55)); }
.c-l2 .txt { justify-content: flex-start; align-items: center; text-align: center; padding-top: 20%; }
.c-l2 .cardtxt {
  background: rgba(255,255,255,.94); color: #1e1e24; border-radius: 10px; padding: 10px 8px; width: 100%;
  box-shadow: 0 6px 16px rgba(0,0,0,.16);
}
.c-l2 .cardtxt .ttl { color: #1e1e24; text-shadow: none; font-size: 14px; }
.c-l2 .cardtxt .pay { color: var(--accent, #ff2e4d); text-shadow: none; font-size: 20px; }
.c-l3 .veil { background: linear-gradient(200deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.6) 100%); }
.c-l3 .ttl { font-size: 17px; }
.c-l3 .pay { margin-top: 6px; }
.c-l4 .veil { background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 62%, rgba(0,0,0,.05) 100%); }
.c-l4 .txt { justify-content: center; }
.c-l4 .ttl { font-size: 17px; line-height: 1.3; }

.pmeta { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.pmeta .ttl2 { font-size: 12.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pmeta .foot { display: flex; align-items: center; gap: 6px; }
.pmeta .foot .city { font-size: 11px; color: var(--muted); }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty .ico { font-size: 34px; margin-bottom: 8px; opacity: .5; }

.tlist { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.tcard { background: #fff; border-radius: 14px; padding: 13px; display: flex; gap: 11px; }
.tcard .thumb { width: 62px; height: 82px; border-radius: 9px; overflow: hidden; position: relative; flex: none; background: #ddd; }
.tcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tcard .body { flex: 1; min-width: 0; }
.tcard .t { font-size: 13px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard .desc { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.tcard .ops { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }

.cd { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--red); }
.cd.gray { color: var(--muted); }

/* 详情 sheet */
.sheet-mask, .modal-mask {
  position: fixed; inset: 0; background: rgba(15,15,20,.45); z-index: 60;
  display: flex; align-items: flex-end; justify-content: center; animation: fade .18s;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 480px; max-height: 92vh; overflow: auto;
  background: #fff; border-radius: 20px 20px 0 0; animation: up .22s ease-out;
  padding-bottom: env(safe-area-inset-bottom);
}
@keyframes up { from { transform: translateY(30px); opacity: .6; } }
.modal-mask { align-items: center; padding: 20px; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 380px; padding: 20px; animation: pop .18s; }
@keyframes pop { from { transform: scale(.95); opacity: .4; } }
.sheet-head {
  position: sticky; top: 0; z-index: 2; background: #fff; padding: 14px 16px 10px;
  display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line);
}
.sheet-head b { font-size: 15px; }
.sheet-body { padding: 14px 16px 22px; }
.sheet-close { margin-left: auto; color: var(--muted); font-size: 20px; line-height: 1; }

.note-view .cover { border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: 3/4; max-height: 360px; }
.note-view .cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.note-view .cover .txt { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.note-view .cover .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.06) 30%, rgba(0,0,0,.75)); }
.note-view .cover .ttl { font-size: 21px; font-weight: 800; line-height: 1.28; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.note-view .cover .pay { font-size: 26px; font-weight: 800; margin-top: 6px; }
.note-view .cover .mini { margin-top: 10px; font-size: 10px; opacity: .9; }
.note-title { font-size: 17px; font-weight: 700; margin-top: 14px; line-height: 1.4; }
.note-body { white-space: pre-wrap; margin-top: 8px; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.note-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.note-tags span { color: #2b6cb0; font-size: 12.5px; }

.copy-box {
  background: #fafafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  font-size: 12.5px; color: var(--ink-2); white-space: pre-wrap; max-height: 150px; overflow: auto;
  line-height: 1.65;
}

.upload {
  border: 1.5px dashed #d8d8e2; border-radius: 14px; padding: 22px; text-align: center;
  background: #fbfbfd; color: var(--muted); font-size: 12.5px; cursor: pointer;
}
.upload.has { border-style: solid; border-color: #bfe9d6; background: var(--green-soft); padding: 8px; }
.upload img { max-height: 220px; margin: 0 auto; border-radius: 9px; }

/* 小红书主页截图：示例条 + 审核缩略图 */
.shot-guide {
  display: flex; align-items: center; gap: 10px; padding: 8px;
  border: 1px solid #f0f0f4; border-radius: 12px; background: #fafafc;
  margin-bottom: 10px; cursor: pointer;
}
.shot-guide img { width: 42px; height: 56px; object-fit: cover; border-radius: 7px; }
.shot-thumb {
  width: 32px; height: 42px; object-fit: cover; border-radius: 6px;
  border: 1px solid #eee; cursor: zoom-in; vertical-align: middle;
}

/* 底部导航 */
.wnav {
  position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); display: flex; z-index: 20;
  padding-bottom: env(safe-area-inset-bottom);
}
.wnav button { flex: 1; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; color: var(--muted); }
.wnav button .i { font-size: 18px; line-height: 1; }
.wnav button.on { color: var(--red); font-weight: 600; }

/* ============ 后台 ============ */
.ashell { display: flex; min-height: 100vh; }
.aside {
  width: 214px; background: #17171d; color: #fff; padding: 20px 14px; flex: none;
  display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh;
}
.aside .brand { display: flex; align-items: center; gap: 9px; padding: 0 8px 18px; }
.aside .brand .lg { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--red), #ff7a45); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.aside .brand b { font-size: 14px; }
.aside .brand span { display: block; font-size: 10px; color: #8f8f9c; }
.anav button {
  display: flex; align-items: center; gap: 9px; width: 100%; height: 40px; padding: 0 10px;
  border-radius: 9px; color: #b9b9c6; font-size: 13px; text-align: left;
}
.anav button.on { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.anav button .dot { margin-left: auto; background: var(--red); color: #fff; font-size: 10px; border-radius: 999px; padding: 0 6px; line-height: 16px; }
.aside .back { margin-top: auto; color: #8f8f9c; font-size: 12px; padding: 10px; }

.amain { flex: 1; min-width: 0; padding: 22px 26px 50px; background: #f5f5f8; }
.ahead { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.ahead h2 { font-size: 20px; letter-spacing: -.3px; }
.ahead .sub { color: var(--muted); font-size: 12.5px; }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.kpi { background: #fff; border-radius: 14px; padding: 14px; }
.kpi .k { font-size: 11.5px; color: var(--muted); }
.kpi .v { font-size: 23px; font-weight: 700; letter-spacing: -.6px; margin-top: 3px; }
.kpi .v small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 2px; }

.panel { background: #fff; border-radius: 16px; padding: 16px; margin-top: 14px; }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head b { font-size: 15px; }
.seg { display: inline-flex; background: #f2f2f6; border-radius: 9px; padding: 3px; }
.seg button { height: 28px; padding: 0 11px; border-radius: 7px; font-size: 12px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.atable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.atable th { text-align: left; color: var(--muted); font-weight: 500; font-size: 11.5px; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.atable td { padding: 11px 8px; border-bottom: 1px solid #f6f6f9; vertical-align: middle; }
.atable tr:last-child td { border-bottom: none; }
.atable .tmain { font-weight: 600; }
.atable .tsub { color: var(--muted); font-size: 11px; }

.pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.pitem { border: 1px solid #f0f0f4; border-radius: 12px; overflow: hidden; background: #fff; }
.pitem .cov { position: relative; aspect-ratio: 3/4; }
.pitem .cov img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pitem .cov .vt { position: absolute; inset: 0; padding: 8px; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.25; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.7)); }
.pitem .inf { padding: 8px; }
.pitem .inf .ti { font-size: 11.5px; font-weight: 600; line-height: 1.35; height: 31px; overflow: hidden; }
.pitem .inf .mt { display: flex; align-items: center; gap: 4px; margin-top: 6px; flex-wrap: wrap; }

.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.95);
  background: rgba(24,24,30,.92); color: #fff; padding: 11px 18px; border-radius: 11px;
  font-size: 13px; z-index: 99; opacity: 0; pointer-events: none; transition: .2s; max-width: 76vw; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* 移动端后台 */
.amobile-tabs { display: none; }
@media (max-width: 880px) {
  .aside { display: none; }
  .amain { padding: 14px 12px 70px; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .amobile-tabs {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #fff;
    border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom);
  }
  .amobile-tabs button { flex: 1; height: 56px; font-size: 10.5px; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
  .amobile-tabs button.on { color: var(--red); font-weight: 600; }
  .amobile-tabs .i { font-size: 17px; }
  .atable { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (min-width: 881px) {
  .wapp { box-shadow: 0 0 0 1px rgba(0,0,0,.04); }
}

/* 任务步骤条 */
.steps { display: flex; align-items: center; gap: 6px; margin: 4px 0 12px; }
.step { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.step .n { width: 16px; height: 16px; border-radius: 50%; background: #eeeef3; display: flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 700; }
.step.done { color: var(--ink); }
.step.done .n { background: var(--green); color: #fff; }
.step.now .n { background: var(--red); color: #fff; }
.step.now { color: var(--red); font-weight: 600; }
.step-line { flex: 1; height: 1px; background: #eeeef3; min-width: 8px; }

.banner {
  background: #fff8e8; border: 1px solid #ffe6b8; color: #8a5b00; border-radius: 12px;
  padding: 10px 12px; font-size: 12px; line-height: 1.6;
}
.banner b { color: #b25c00; }

/* 发布/回传截图示例 */
.example-link{margin-top:8px;background:none;border:0;padding:0;font:inherit;font-size:12px;font-weight:600;color:#ff2442;cursor:pointer}
.example-link:active{opacity:.7}
.example-img{width:100%;border-radius:12px;margin-top:10px;border:1px solid #f0f0f4;display:block}
