/* X-DUCK 用户中心 · 与下载中心同一套配色（深底 + 金色强调） */
:root {
  --brand: #454c55;
  --bg: #131722;
  --surface: #1e222d;
  --surface-2: #171b26;
  --border: #2a2e39;
  --fg: #d1d4dc;
  --muted: #8b8f9a;
  --gold: #d8b26a;
  --up: #f23645;
  --ok: #26a69a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 50% -10%, #1b2130 0%, var(--bg) 60%);
  color: var(--fg);
  font: 14px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ---------- 顶栏 ---------- */
.top {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #1a1f2b 0%, rgba(19, 23, 34, 0.6) 100%);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(6px);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.logo {
  font-weight: 800; letter-spacing: 0.16em; font-size: 17px;
  background: linear-gradient(120deg, #f0d9a8, var(--gold) 55%, #b8914e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tag { color: var(--muted); font-size: 12.5px; letter-spacing: 0.08em; }
.nav { display: flex; align-items: center; gap: 16px; font-size: 13px; }

/* ---------- 主体 ---------- */
.main { flex: 1; padding: 34px 20px 48px; display: flex; flex-direction: column; gap: 18px; }
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}
.view#view-login, .view#view-register { max-width: 520px; width: 100%; margin: 0 auto; }
h1 { font-size: 21px; margin: 0 0 6px; font-weight: 650; letter-spacing: 0.01em; }
h2 { font-size: 16px; margin: 0 0 6px; font-weight: 600; }
.sub { color: var(--muted); font-size: 13px; margin: 0 0 18px; }

/* ---------- 表单 ---------- */
.field { display: block; margin-bottom: 14px; }
.label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.02em; }
.input {
  width: 100%; height: 40px; padding: 0 12px;
  background: #10141d; color: var(--fg);
  border: 1px solid var(--border); border-radius: 9px;
  font: inherit; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216, 178, 106, 0.13); }
.input.small { width: 92px; height: 36px; text-align: center; flex: none; }
.input::placeholder { color: #5d626d; }
.hint { display: block; color: #71767f; font-size: 12px; margin-top: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

.submit {
  width: 100%; height: 42px; margin-top: 4px;
  border: 0; border-radius: 9px; cursor: pointer;
  background: linear-gradient(120deg, #e8cd95, var(--gold) 60%, #bd9450);
  color: #1b1a17; font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
  transition: filter 0.15s, transform 0.06s;
}
.submit:hover { filter: brightness(1.06); }
.submit:active { transform: translateY(1px); }
.submit:disabled { opacity: 0.55; cursor: default; filter: none; }

.link {
  background: none; border: 0; color: var(--gold); cursor: pointer;
  font: inherit; font-size: 13px; padding: 0;
}
.link:hover { text-decoration: underline; }
.link.block { display: block; margin: 16px auto 0; text-align: center; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 14px;
  background: transparent; color: var(--fg);
  border: 1px solid var(--border); border-radius: 9px;
  font: inherit; font-size: 13px; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

.msg { min-height: 20px; font-size: 13px; margin: 6px 0 10px; }
.msg.err { color: var(--up); }
.msg.ok { color: var(--ok); }

/* ---------- 验证码 ---------- */
.captcha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha .q {
  min-width: 112px; height: 36px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #10141d; border: 1px dashed #3a3f4b; border-radius: 9px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 16px; letter-spacing: 0.12em; color: #e6dcc6;
  user-select: none;
}

/* ---------- 可选资料折叠 ---------- */
.optional {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 0 14px; margin: 4px 0 14px; background: #161a24;
}
.optional > summary {
  cursor: pointer; list-style: none; padding: 12px 0;
  font-size: 13px; color: #b9bdc7;
}
.optional > summary::-webkit-details-marker { display: none; }
.optional > summary::before { content: "▸ "; color: var(--gold); }
.optional[open] > summary::before { content: "▾ "; }
.optional > *:not(summary) { margin-bottom: 12px; }

/* ---------- 我的资料 ---------- */
.me-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.me-head h1 { font-size: 24px; margin-bottom: 2px; }
.badge {
  flex: none; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.06em;
  border: 1px solid rgba(216, 178, 106, 0.45);
  color: var(--gold); background: rgba(216, 178, 106, 0.1);
}
.badge.warn { border-color: rgba(242, 54, 69, 0.5); color: var(--up); background: rgba(242, 54, 69, 0.1); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }
.stat {
  background: #151a24; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 3px;
}
.stat .k { color: var(--muted); font-size: 12px; }
.stat .v { font-size: 15px; font-weight: 600; }
.notice {
  margin-top: 16px; padding: 11px 14px; border-radius: 10px;
  background: rgba(242, 54, 69, 0.09);
  border: 1px solid rgba(242, 54, 69, 0.32);
  color: #ffb3ba; font-size: 13px;
}

/* 提示型（非故障）：登记信息未完善 —— 用金色，不用红色。
 * 红色留给「席位已到期」这种真的挡住使用的情况。 */
.notice.soft {
  margin: 0 0 16px;
  background: rgba(216, 178, 106, 0.1);
  border-color: rgba(216, 178, 106, 0.36);
  color: #e6d3a8;
}

/* 登记信息标记（实名 / 电话 / 微信名） */
.req { color: var(--gold); font-weight: 700; }

/* ---------- 下载 ---------- */
.dl { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 16px; }
.dl-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #151a24; border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 16px;
  transition: border-color 0.15s;
}
.dl-item:hover { border-color: rgba(216, 178, 106, 0.5); }
.dl-item .nm { font-weight: 600; font-size: 14px; }
.dl-item .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.dl-item .go {
  flex: none; height: 32px; padding: 0 16px; border-radius: 8px;
  display: inline-flex; align-items: center;
  background: rgba(216, 178, 106, 0.13); color: var(--gold);
  border: 1px solid rgba(216, 178, 106, 0.42);
  font-size: 13px; font-weight: 600;
}
.dl-item .go:hover { background: rgba(216, 178, 106, 0.2); text-decoration: none; }

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--border);
  color: #6b707a; font-size: 12.5px; padding: 18px 0;
}
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
