/* 任务大厅前台 - 明亮现代移动端 */
:root{
  --bg:#f3f6fb;
  --bg2:#eef3ff;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --primary:#2563eb;
  --primary2:#1d4ed8;
  --primary-soft:#dbeafe;
  --ok:#059669;
  --warn:#d97706;
  --bad:#dc2626;
  --line:#e5eaf2;
  --shadow:0 10px 30px rgba(15,23,42,.06);
  --radius:18px;
}
*{box-sizing:border-box}
html,body{
  margin:0;padding:0;background:
    radial-gradient(1200px 500px at 10% -10%, #dbeafe 0%, transparent 50%),
    radial-gradient(900px 400px at 100% 0%, #fce7f3 0%, transparent 40%),
    var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--primary);text-decoration:none}
.wrap{max-width:480px;margin:0 auto;min-height:100vh;padding:12px 14px 88px}

/* top */
.topbar{
  position:sticky;top:0;z-index:20;
  margin:0 -14px 14px;padding:12px 14px 10px;
  background:rgba(243,246,251,.82);backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(229,234,242,.8);
  display:flex;justify-content:space-between;align-items:center
}
.brand{display:flex;align-items:center;gap:10px}
.brand-logo{
  width:38px;height:38px;border-radius:12px;
  background:linear-gradient(135deg,#2563eb,#60a5fa);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:800;box-shadow:0 8px 18px rgba(37,99,235,.28)
}
.topbar h1{font-size:17px;margin:0;font-weight:800;letter-spacing:.2px}
.topbar .sub{font-size:12px;color:var(--muted);margin-top:2px}
.chip{
  display:inline-flex;align-items:center;gap:6px;
  background:#fff;border:1px solid var(--line);border-radius:999px;
  padding:7px 10px;font-size:12px;color:var(--text);box-shadow:var(--shadow);text-decoration:none
}
.chip b{color:#ea580c}
.chip-kefu{background:linear-gradient(135deg,#2563eb,#60a5fa);color:#fff;border-color:transparent}
.chip-kefu:active{transform:scale(.98)}
.top-user-link{color:inherit;text-decoration:none}
.top-user-link:active{opacity:.75}
.account-box{
  margin-top:8px;background:linear-gradient(180deg,#f8fbff,#fff);
  border:1px solid var(--line);border-radius:14px;padding:12px;
  display:grid;grid-template-columns:90px 1fr;gap:8px 10px
}
.account-box .k{color:var(--muted);font-size:12px;align-self:center}
.account-box .v{font-size:15px;font-weight:800;color:#0f172a}
.account-box .reward{color:#ea580c}

/* hero */
.hero{
  background:linear-gradient(135deg,#1d4ed8 0%, #2563eb 50%, #60a5fa 100%);
  border-radius:22px;padding:18px 16px;color:#fff;margin-bottom:14px;
  box-shadow:0 16px 36px rgba(37,99,235,.25);position:relative;overflow:hidden
}
.hero:after{
  content:"";position:absolute;right:-24px;top:-28px;width:140px;height:140px;border-radius:50%;
  background:rgba(255,255,255,.14)
}
.hero h2{margin:0 0 6px;font-size:20px;font-weight:800}
.hero p{margin:0;opacity:.92;font-size:13px;line-height:1.55}
.hero-stats{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:14px}
.hero-stat{
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.16);
  border-radius:14px;padding:10px 8px;text-align:center
}
.hero-stat .k{font-size:11px;opacity:.9}
.hero-stat .v{margin-top:4px;font-size:15px;font-weight:800}

/* card */
.card{
  background:var(--card);border:1px solid rgba(229,234,242,.95);
  border-radius:var(--radius);padding:14px;margin-bottom:12px;box-shadow:var(--shadow)
}
.card h3{margin:0;font-size:16px;font-weight:800;line-height:1.35;color:#0f172a}
.muted{color:var(--muted);font-size:13px;line-height:1.55}
.row{display:flex;gap:10px;align-items:center}
.space{justify-content:space-between}
.reward{
  color:#ea580c;font-weight:900;font-size:18px;
  background:linear-gradient(180deg,#fff7ed,#ffedd5);
  border:1px solid #fed7aa;border-radius:12px;padding:6px 10px;white-space:nowrap
}
.tag{
  display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;
  font-size:12px;font-weight:700;background:#eff6ff;color:#1d4ed8
}
.tag.ok{background:rgba(5,150,105,.12);color:var(--ok)}
.tag.warn{background:rgba(217,119,6,.12);color:var(--warn)}
.tag.bad{background:rgba(220,38,38,.12);color:var(--bad)}
.tag.ing{background:rgba(37,99,235,.12);color:var(--primary)}
.tag.gray{background:#f3f4f6;color:#6b7280}

/* buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  border:0;border-radius:12px;padding:11px 14px;
  background:linear-gradient(180deg,var(--primary),var(--primary2));
  color:#fff;font-size:14px;font-weight:700;cursor:pointer;
  box-shadow:0 10px 18px rgba(37,99,235,.22)
}
.btn.block{width:100%}
.btn.ghost{
  background:#fff;border:1px solid var(--line);color:var(--text);
  box-shadow:none
}
.btn.soft{background:var(--primary-soft);color:var(--primary2);box-shadow:none}
.btn.ok{background:linear-gradient(180deg,#10b981,#059669)}
.btn.bad{background:linear-gradient(180deg,#f87171,#dc2626)}
.btn:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
.btn:active{transform:scale(.98)}

/* form */
.input,select,textarea{
  width:100%;background:#f8fafc;border:1px solid #dbe3ef;color:var(--text);
  border-radius:12px;padding:12px 12px;font-size:14px;outline:none
}
.input:focus,select:focus,textarea:focus{
  border-color:#93c5fd;background:#fff;box-shadow:0 0 0 4px rgba(37,99,235,.10)
}
.label{display:block;margin:0 0 6px;color:#475569;font-size:13px;font-weight:600}
.field{margin-bottom:12px}

/* tabs */
.tabs{display:flex;gap:8px;overflow:auto;padding:2px 0 8px;margin-bottom:4px}
.tabs button{
  flex:0 0 auto;border:1px solid var(--line);background:#fff;color:var(--muted);
  border-radius:999px;padding:8px 12px;font-size:13px;font-weight:600
}
.tabs button.on{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}

/* nav */
.nav{
  position:fixed;left:50%;transform:translateX(-50%);bottom:12px;
  width:min(452px, calc(100% - 20px));
  background:rgba(255,255,255,.92);backdrop-filter:blur(16px);
  border:1px solid rgba(229,234,242,.95);border-radius:20px;
  display:flex;z-index:30;box-shadow:0 16px 40px rgba(15,23,42,.12);
  padding:6px
}
.nav a{
  flex:1;text-align:center;padding:8px 4px;color:var(--muted);font-size:11px;font-weight:600;
  border-radius:14px
}
.nav a.on{color:var(--primary);background:#eff6ff}
.nav a span{display:block;font-size:16px;margin-bottom:2px}

.empty{
  text-align:center;padding:42px 14px;color:var(--muted);
  background:#fff;border:1px dashed #dbe3ef;border-radius:18px
}
.empty .icon{font-size:34px;margin-bottom:8px}
.content{font-size:14px;line-height:1.75;color:#334155}
.content img{max-width:100%;border-radius:12px}
.file-list{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.file-item{
  background:#f8fafc;border:1px solid var(--line);border-radius:12px;
  padding:10px 12px;font-size:12px;color:var(--muted);
  display:flex;justify-content:space-between;gap:8px;align-items:center
}
.toast{
  position:fixed;left:50%;top:14%;transform:translateX(-50%);
  background:rgba(17,24,39,.92);color:#fff;padding:11px 16px;border-radius:12px;
  z-index:99;font-size:13px;max-width:80%;text-align:center;display:none;
  box-shadow:0 12px 30px rgba(0,0,0,.2)
}
.balance{font-size:32px;font-weight:900;letter-spacing:.3px;color:#0f172a}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hidden{display:none!important}
.small{font-size:12px;color:var(--muted)}
.hr{height:1px;background:var(--line);margin:12px 0}

.card.clickable{cursor:pointer;transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease}
.card.clickable:hover{border-color:#bfdbfe;box-shadow:0 14px 34px rgba(37,99,235,.10)}
.card.clickable:active{transform:scale(.99)}

.meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.meta-item{
  background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid var(--line);
  border-radius:14px;padding:12px
}
.meta-item .k{font-size:12px;color:var(--muted)}
.meta-item .v{margin-top:5px;font-size:16px;font-weight:800;color:#0f172a}

.cover{
  width:100%;border-radius:14px;overflow:hidden;margin-bottom:12px;
  background:linear-gradient(135deg,#eff6ff,#f8fafc);aspect-ratio:16/9;max-height:180px
}
.cover img{width:100%;height:100%;display:block;object-fit:cover}
.detail-head{display:flex;flex-direction:column;gap:8px}
.detail-actions{
  position:sticky;bottom:86px;margin-top:14px;padding-top:10px;
  background:linear-gradient(180deg,rgba(243,246,251,0),rgba(243,246,251,.95) 28%,#f3f6fb);
  padding-bottom:4px
}
.list-arrow{color:#94a3b8;font-size:20px;margin-left:4px;font-weight:700}
.list-foot{display:flex;align-items:center;justify-content:space-between;margin-top:12px}
.section-title{font-size:14px;font-weight:800;margin:0 0 8px;color:#0f172a}
.wallet-hero{
  background:linear-gradient(135deg,#0f172a,#1e3a8a 60%,#2563eb);
  color:#fff;border:0
}
.wallet-hero .muted,.wallet-hero .small{color:rgba(255,255,255,.8)}
.wallet-hero .balance{color:#fff}
.auth-wrap{padding-top:18px}
.auth-card .brand-line{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.auth-card h3{margin:0 0 4px}
.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.back-link{
  display:inline-flex;align-items:center;gap:4px;color:#475569;font-size:13px;font-weight:600
}

/* upload */
.upload-box{
  margin-top:14px;border:1.5px dashed #93c5fd;background:
    linear-gradient(180deg,rgba(239,246,255,.9),rgba(248,250,252,.95));
  border-radius:18px;padding:22px 16px;text-align:center;position:relative;
  transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease
}
.upload-box.dragover{
  border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.12);transform:scale(1.01)
}
.upload-box.uploading{opacity:.92}
.upload-input{
  position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:2
}
.upload-icon{
  width:54px;height:54px;margin:0 auto 10px;border-radius:16px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#2563eb,#60a5fa);color:#fff;font-size:24px;font-weight:800;
  box-shadow:0 10px 20px rgba(37,99,235,.25)
}
.upload-title{font-size:15px;font-weight:800;color:#0f172a}
.upload-sub{margin-top:6px;font-size:12px;color:var(--muted);line-height:1.5}
.upload-actions{margin-top:12px;position:relative;z-index:3}
.upload-progress{margin-top:14px}
.upload-progress .bar{
  height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin-bottom:6px
}
.upload-progress .bar i{
  display:block;height:100%;width:0%;
  background:linear-gradient(90deg,#2563eb,#60a5fa);border-radius:999px;transition:width .2s ease
}
.file-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.file-item{
  background:#fff;border:1px solid var(--line);border-radius:14px;
  padding:10px 12px;font-size:13px;color:#334155;
  display:flex;justify-content:space-between;gap:10px;align-items:center;
  box-shadow:0 4px 14px rgba(15,23,42,.04)
}
.file-item .left{display:flex;align-items:center;gap:10px;min-width:0}
.file-thumb{
  width:42px;height:42px;border-radius:10px;background:#eff6ff;object-fit:cover;flex:0 0 auto
}
.file-thumb.icon{
  display:flex;align-items:center;justify-content:center;color:#2563eb;font-weight:800;font-size:12px
}
.file-meta{min-width:0}
.file-meta .name{
  font-weight:700;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px
}
.file-meta .sub{font-size:12px;color:var(--muted);margin-top:2px}
.file-item .rm{
  color:#dc2626;font-size:12px;font-weight:700;white-space:nowrap
}

/* modal */
.modal-mask{
  position:fixed;inset:0;z-index:80;background:rgba(15,23,42,.55);
  display:flex;align-items:center;justify-content:center;padding:18px
}
.modal-mask.hidden{display:none!important}
.modal-card{
  width:min(420px,100%);background:#fff;border-radius:18px;padding:18px 16px;
  box-shadow:0 20px 50px rgba(15,23,42,.25);max-height:80vh;overflow:auto
}
.modal-title{font-size:18px;font-weight:800;color:#0f172a;margin-bottom:10px}
.modal-body{font-size:14px;color:#334155;line-height:1.7;margin-bottom:14px}
.modal-body img{max-width:100%;border-radius:10px}

/* floating kefu */
.kefu-float{
  position:fixed;right:14px;bottom:90px;z-index:40;border:0;cursor:pointer;
  display:flex;align-items:center;gap:6px;padding:12px 14px;border-radius:999px;
  background:linear-gradient(135deg,#2563eb,#60a5fa);color:#fff;font-weight:800;
  box-shadow:0 12px 28px rgba(37,99,235,.35)
}
.kefu-float .kf-ico{font-size:16px}
.kefu-float .kf-txt{font-size:13px}
.chip-checkin{
  border:0;cursor:pointer;background:linear-gradient(135deg,#f59e0b,#fbbf24);color:#fff
}
.chip-checkin:disabled{opacity:.55}
.qr-preview{margin-top:8px}
.qr-preview img{max-width:160px;border-radius:12px;border:1px solid var(--line);display:block}

