/* ─────────────────────────────────────────────────────────
   淘金币组队 · 口令池  v0.1（第一版样式稿）
   设计口径：暖橙 + 深棕文字 + 奶油白底，卡片化，移动端优先
   ───────────────────────────────────────────────────────── */
:root{
  --orange:#ff7138;
  --orange-deep:#f45f22;
  --orange-soft:#fff0e6;
  --ink:#42241a;
  --ink-2:#6b4a3c;
  --muted:#9b8e85;
  --muted-2:#b9a99d;
  --page:#fff9f2;
  --hero:#ffeddb;
  --card:#ffffff;
  --line:#ffeadb;
  --line-cool:#eaf0f7;
  --green:#22c55e;
  --warn:#b45309;
  --warn-bg:#fff7ed;
  --radius-lg:20px;
  --radius-md:15px;
  --radius-sm:12px;
  --shadow:0 6px 20px rgba(255,113,56,.08);
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{
  background:var(--page);
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  font-size:14px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input,textarea{font-family:inherit;font-size:14px;color:var(--ink)}
::selection{background:#ffd9c2}

.wrap{max-width:620px;margin:0 auto;padding:0 16px 32px}

/* ── 顶部导航 ── */
.nav{
  height:72px;display:flex;align-items:center;justify-content:space-between;
  max-width:620px;margin:0 auto;padding:0 16px;
}
.nav__brand{display:flex;align-items:center;gap:9px;font-weight:900;font-size:17px;letter-spacing:.3px}
.nav__logo{
  width:30px;height:30px;border-radius:10px;display:grid;place-items:center;
  background:linear-gradient(140deg,#ff8a4f,#ff5f1f);color:#fff;font-size:15px;font-weight:900;
  box-shadow:0 4px 10px rgba(255,113,56,.35);
}
.nav__link{
  display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 12px;border-radius:999px;
  background:#fff;border:1px solid var(--line);color:var(--ink-2);font-size:12.5px;font-weight:700;
}
.nav__link:hover{border-color:#ffc7a3;color:var(--orange-deep)}

/* ── Hero ── */
.hero{
  position:relative;overflow:hidden;border-radius:var(--radius-lg);
  background:linear-gradient(135deg,#ffeddb 0%,#ffe3c9 55%,#ffd9b8 100%);
  padding:24px;min-height:172px;box-shadow:var(--shadow);
}
.hero__copy{position:relative;z-index:2;max-width:64%}
.hero__kicker{
  display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;
  background:rgba(255,255,255,.72);color:var(--orange-deep);font-size:11.5px;font-weight:800;letter-spacing:.4px;
}
.hero h1{
  margin:12px 0 8px;font-size:clamp(28px,8vw,38px);line-height:1.25;font-weight:900;letter-spacing:-.5px;
}
.hero h1 em{font-style:normal;color:var(--orange-deep)}
.hero p{margin:0;font-size:12.5px;color:var(--ink-2);font-weight:600}
.hero__art{position:absolute;right:-14px;bottom:-10px;width:52%;max-width:230px;z-index:1}
.hero__stats{
  position:relative;z-index:2;display:flex;gap:8px;margin-top:16px;flex-wrap:wrap;
}
.hero__stat{
  background:rgba(255,255,255,.8);border-radius:12px;padding:7px 11px;min-width:84px;
  backdrop-filter:blur(4px);
}
.hero__stat b{display:block;font-size:17px;font-weight:900;line-height:1.2;color:var(--orange-deep)}
.hero__stat span{font-size:11px;color:var(--muted);font-weight:700}

/* ── 公告 ── */
.announce{
  display:flex;gap:9px;align-items:flex-start;margin-top:14px;padding:11px 13px;
  background:var(--orange-soft);border:1px solid #ffe0cb;border-radius:14px;
  font-size:12px;color:var(--warn);font-weight:600;line-height:1.5;
}
.announce svg{flex:0 0 16px;margin-top:1px}
.announce+.announce{margin-top:8px}
.announce--soft{background:#fff;border-color:var(--line);color:var(--ink-2)}

/* 操作反馈条 */
.toast{
  margin-top:10px;padding:10px 13px;border-radius:12px;font-size:12.5px;font-weight:700;
  background:#fff5ed;color:var(--orange-deep);border:1px solid #ffdcc4;
  display:none;
}
.toast.show{display:block}
.toast.err{background:#fff1f0;border-color:#ffd4cf;color:#c2410c}

/* ── 卡片 ── */
.card{
  background:var(--card);border-radius:var(--radius-lg);padding:18px;margin-top:16px;
  border:1px solid rgba(255,234,219,.9);box-shadow:var(--shadow);
}
.card__head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.card__head h2{margin:0;font-size:16px;font-weight:900;display:flex;align-items:center;gap:7px}
.card__head h2 i{
  width:4px;height:16px;border-radius:2px;background:linear-gradient(#ffa163,#ff5f1f);display:inline-block;
}
.card__action{
  font-size:12px;font-weight:800;color:var(--orange-deep);display:inline-flex;align-items:center;gap:4px;
  padding:5px 9px;border-radius:9px;background:var(--orange-soft);
}
.card__action:hover{background:#ffe6d6}

/* ── 发布区 ── */
.pub__box{position:relative}
.pub__textarea{
  width:100%;min-height:92px;resize:vertical;border-radius:14px;border:1.5px dashed #ffcfb0;
  background:#fffaf5;padding:12px 13px 34px;outline:none;line-height:1.6;font-size:13.5px;
  transition:border-color .18s,background .18s;
}
.pub__textarea::placeholder{color:var(--muted-2)}
.pub__textarea:focus{border-color:var(--orange);background:#fff;box-shadow:0 0 0 4px rgba(255,113,56,.08)}
.pub__paste{
  position:absolute;right:10px;bottom:10px;height:28px;padding:0 11px;border-radius:9px;
  background:#fff;border:1px solid var(--line);font-size:12px;font-weight:800;color:var(--ink-2);
  display:inline-flex;align-items:center;gap:4px;
}
.pub__paste:hover{color:var(--orange-deep);border-color:#ffc7a3}
.pub__count{position:absolute;left:13px;bottom:12px;font-size:11px;color:var(--muted-2);font-weight:700}

.pub__label{font-size:12px;font-weight:800;color:var(--muted);margin:14px 0 8px;display:flex;align-items:center;gap:6px}
.pub__label span{color:#e05a1c}

.types{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.type{
  border:1.5px solid var(--line-cool);border-radius:13px;padding:9px 6px;text-align:center;background:#fff;
  transition:all .18s;
}
.type b{display:block;font-size:12.5px;font-weight:900;line-height:1.3}
.type span{display:block;font-size:10.5px;color:var(--muted-2);font-weight:700;margin-top:2px}
.type[aria-pressed="true"]{
  border-color:var(--orange);background:var(--orange-soft);
}
.type[aria-pressed="true"] b{color:var(--orange-deep)}
.type[aria-pressed="true"] span{color:#c2683a}

.pub__limit{
  margin-top:12px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;
  font-size:11.5px;color:var(--muted);font-weight:700;
}
.pub__limit em{font-style:normal;color:var(--ink-2)}
.dot{width:3px;height:3px;border-radius:50%;background:#e2cfc2;display:inline-block}

.btn{
  width:100%;min-height:48px;border-radius:12px;font-weight:900;font-size:15px;letter-spacing:.5px;
  background:linear-gradient(180deg,#ff8a4f,#ff5f1f);color:#fff;
  box-shadow:0 8px 18px rgba(255,95,31,.28);
  transition:transform .12s,box-shadow .18s,opacity .18s;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
}
.btn:active{transform:translateY(1px);box-shadow:0 4px 10px rgba(255,95,31,.24)}
.btn[disabled]{opacity:.55;box-shadow:none;cursor:not-allowed}
.btn--ghost{
  background:#fff;color:var(--orange-deep);border:1.5px solid #ffc7a3;box-shadow:none;
}
.btn--sm{min-height:40px;font-size:13.5px;border-radius:11px}
.mt12{margin-top:12px}

/* ── 工具栏 ── */
.toolbar{
  display:flex;gap:6px;overflow-x:auto;padding:3px;background:#f8fbff;border-radius:12px;
  scrollbar-width:none;
}
.toolbar::-webkit-scrollbar{display:none}
.chip{
  flex:0 0 auto;height:32px;padding:0 12px;border-radius:9px;font-size:12.5px;font-weight:800;
  color:#7d8b9c;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;
}
.chip[aria-selected="true"]{
  background:#fff;color:var(--ink);border:1px solid #e6eef7;box-shadow:0 2px 6px rgba(30,58,95,.06);
}
.chip b{font-size:10.5px;background:#eef4fb;color:#5b7189;border-radius:6px;padding:1px 5px}
.chip[aria-selected="true"] b{background:#fff1e6;color:#e05a1c}

.pool__tools{
  display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;
  padding:10px 12px;border-radius:12px;background:linear-gradient(100deg,#fff6ef,#fff);
  border:1px solid #ffe7d6;
}
.pool__tools p{margin:0;font-size:11.5px;color:var(--muted);font-weight:700}
.pool__tools p b{color:var(--ink-2)}
.pool__smart{
  flex:0 0 auto;height:34px;padding:0 13px;border-radius:10px;background:var(--ink);color:#fff;
  font-size:12.5px;font-weight:900;display:inline-flex;align-items:center;gap:5px;
  box-shadow:0 6px 14px rgba(66,36,26,.18);
}
.pool__smart:hover{background:#3a1f16}

/* ── 口令条目 ── */
.list{margin-top:12px;display:flex;flex-direction:column;gap:10px}
.entry{
  display:flex;align-items:center;gap:12px;min-height:76px;padding:12px;
  border:1px solid var(--line-cool);border-radius:var(--radius-md);background:#fff;
  transition:border-color .18s,box-shadow .18s;
}
.entry:hover{border-color:#ffd9c2;box-shadow:0 4px 14px rgba(255,113,56,.07)}
.entry--mine{background:#fffdfa;border-color:#ffe1c9}
.entry__main{min-width:0;flex:1}
.entry__top{display:flex;align-items:center;gap:6px;margin-bottom:4px}
.entry h3{
  margin:0;font-size:15px;font-weight:900;letter-spacing:.2px;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums;
}
.entry__meta{margin:0;font-size:11.5px;color:var(--muted);font-weight:700;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.entry__meta b{color:var(--ink-2)}
.entry__sub{margin:2px 0 0;font-size:11px;color:var(--muted-2);font-weight:700}
.entry__sub i{font-style:normal;color:var(--orange-deep)}
.entry__btn{
  flex:0 0 auto;width:76px;height:48px;border-radius:12px;font-size:13.5px;font-weight:900;color:#fff;
  background:linear-gradient(180deg,#ff8a4f,#ff5f1f);display:grid;place-items:center;
  box-shadow:0 6px 14px rgba(255,95,31,.24);
}
.entry__btn:active{transform:translateY(1px)}
.entry__btn[disabled]{background:#f2ece7;color:#b9a99d;box-shadow:none;cursor:not-allowed}
.entry__btn--done{background:#eefaf1;color:#15803d;box-shadow:none}

.badge{
  display:inline-flex;align-items:center;height:19px;padding:0 7px;border-radius:6px;
  font-size:10.5px;font-weight:900;letter-spacing:.2px;white-space:nowrap;
}
.badge--assist{background:#eef6ff;color:#2563eb}
.badge--team{background:#f3ecff;color:#7c3aed}
.badge--coin{background:#fff3e0;color:#b45309}
.badge--mine{background:#eef2ff;color:#4338ca}
.badge--hot{background:#fff1ef;color:#dc2626}

/* 骨架 & 空态 */
.skel{height:76px;border-radius:var(--radius-md);background:linear-gradient(90deg,#faf4ee 25%,#f3e9e1 37%,#faf4ee 63%);background-size:400% 100%;animation:sh 1.4s ease infinite}
@keyframes sh{0%{background-position:100% 0}100%{background-position:0 0}}
.empty{text-align:center;padding:26px 10px 12px;color:var(--muted)}
.empty__ico{
  width:62px;height:62px;margin:0 auto 10px;border-radius:20px;display:grid;place-items:center;
  background:#fff3e9;font-size:26px;
}
.empty p{margin:0 0 4px;font-size:13px;font-weight:800;color:var(--ink-2)}
.empty span{font-size:11.5px;color:var(--muted-2);font-weight:600}
.endhint{text-align:center;font-size:11.5px;color:var(--muted-2);font-weight:700;padding:14px 0 2px}
.endhint::before,.endhint::after{content:"";display:inline-block;width:22px;height:1px;background:#eddfd4;vertical-align:middle;margin:0 8px}

/* ── 底部 ── */
.footer{text-align:center;padding:26px 0 6px;color:var(--muted-2);font-size:11.5px;font-weight:700;line-height:1.9}
.footer a{color:var(--muted);text-decoration:none;border-bottom:1px dashed #e3d3c6}

/* ── 弹层 ── */
.mask{
  position:fixed;inset:0;background:rgba(15,23,42,.5);display:none;z-index:60;
  align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(2px);
}
.mask.show{display:flex}
.sheet{
  width:100%;max-width:345px;background:#fff;border-radius:17px;padding:22px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow:0 24px 60px rgba(15,23,42,.28);animation:pop .2s ease;
}
@keyframes pop{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.sheet h3{margin:0 0 4px;font-size:16.5px;font-weight:900;text-align:center}
.sheet__sub{margin:0 0 16px;font-size:11.5px;color:var(--muted);font-weight:700;text-align:center}
.sheet__code{
  background:#faf6f2;border:1px dashed #ffcfb0;border-radius:12px;padding:11px 12px;
  font-size:12.5px;line-height:1.5;word-break:break-all;color:var(--ink);font-weight:700;
  max-height:104px;overflow:auto;
}
.sheet__timer{
  margin:10px 0 0;text-align:center;font-size:11.5px;font-weight:800;color:var(--warn);
  background:var(--warn-bg);border-radius:10px;padding:7px 10px;
}
.sheet__grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.sheet__grid .btn--sm{width:100%}
.sheet__link{
  display:block;width:100%;text-align:center;margin-top:12px;font-size:12px;font-weight:800;color:var(--muted);
}
.sheet__close{
  position:absolute;top:10px;right:12px;width:28px;height:28px;border-radius:50%;background:#f5f0eb;
  color:#8d7f76;font-size:16px;line-height:1;display:grid;place-items:center;
}
.sheet-wrap{position:relative;width:100%;max-width:345px}

/* 我发布的 / 待使用 / 已使用 抽屉 */
.drawer{
  position:fixed;left:0;right:0;bottom:0;z-index:61;background:#fff;border-radius:20px 20px 0 0;
  max-height:78vh;display:none;flex-direction:column;box-shadow:0 -12px 40px rgba(15,23,42,.2);
  padding-bottom:env(safe-area-inset-bottom);
}
.drawer.show{display:flex}
.drawer__head{
  display:flex;align-items:center;justify-content:space-between;padding:16px 18px 10px;
}
.drawer__head h3{margin:0;font-size:16px;font-weight:900}
.drawer__tabs{display:flex;gap:6px;padding:0 18px 12px}
.drawer__body{padding:0 18px 20px;overflow:auto;-webkit-overflow-scrolling:touch}
.rec{
  display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #f6eee8;
}
.rec:last-child{border-bottom:none}
.rec__main{flex:1;min-width:0}
.rec__main b{display:block;font-size:13px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rec__main span{font-size:11px;color:var(--muted);font-weight:700}
.rec__tag{font-size:10.5px;font-weight:900;padding:3px 7px;border-radius:6px;background:#f4f4f5;color:#71717a}
.rec__tag--used{background:#eefaf1;color:#15803d}
.rec__tag--claimed{background:#fff3e0;color:#b45309}

/* 玩法说明 */
.guide__item{display:flex;gap:10px;margin-bottom:12px}
.guide__n{
  flex:0 0 20px;height:20px;border-radius:7px;background:var(--orange-soft);color:var(--orange-deep);
  font-size:11.5px;font-weight:900;display:grid;place-items:center;
}
.guide__item p{margin:0;font-size:12.5px;color:var(--ink-2);font-weight:600;line-height:1.55}

@media (min-width:640px){
  .nav{height:84px}
  .hero{min-height:220px;padding:32px}
  .card{padding:24px}
  .wrap{padding:0 20px 40px}
  .nav{padding:0 20px}
}
