/* ============================================================
   console.css —— 控制台（dashboard）
   暖米色 + 墨绿，与 landing 同一套语言；覆盖 style.css 的旧样式
   ============================================================ */

:root {
  --bg: #f7f3ea;
  --ink: #15261d;
  --ink-2: #33443a;
  --muted: #5f6b62;
  --dim: #8d978e;
  --line: #e4dccd;
  --matcha: #6b8f4e;
  --serif: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
}

html, body { background: var(--bg); }

body {
  color: var(--ink);
  font-family: "Inter", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 旧装饰关掉 */
.cyber-grid, .ambient-glow { display: none; }

/* ---------- 顶栏 ---------- */
.topbar-wrap { padding: 0; margin: 0; background: transparent; border: 0; }

.topbar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 74px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(247, 243, 234, 0.84);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.topbar .brand { display: flex; align-items: center; gap: 9px; }
.topbar .brand-icon { width: 26px; height: 26px; display: grid; place-items: center; background: transparent; border: 0; }
.topbar .brand-logo-img { width: 22px; height: 22px; filter: brightness(0); opacity: 0.85; }
.topbar .brand-text { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.topbar .brand-gradient { color: var(--matcha); }
.topbar .brand-tag {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
}

.topbar .pills { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.topbar .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.topbar .pill:hover { background: rgba(21, 38, 29, 0.05); border-color: #d3c9b6; }
.topbar .pill.is-active { background: #15261d; border-color: #15261d; color: #f7f3ea; }
.topbar .pill svg { opacity: 0.75; }

/* ---------- 主容器：两列 ---------- */
main.stack {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px) 24px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 16px;
  align-items: start;
}

main.stack > section { margin: 0; }

/* 两列自然排列：账号 / 卡密 一行，HWID / 退出 一行 */
main.stack > section:nth-child(2) { grid-column: 1; }
main.stack > section:nth-child(3) { grid-column: 2; }
main.stack > section:nth-child(4) { grid-column: 1; }
main.stack > section:nth-child(5) { grid-column: 2; align-self: end; }

/* ---------- 卡片 ---------- */
.card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(20px, 2.6vw, 28px);
  box-shadow: 0 2px 8px rgba(21, 38, 29, 0.04);
}

.card:first-child { grid-column: 1 / -1; }

.card-header { margin: 0 0 18px; }

.header-title-wrap { display: flex; align-items: center; gap: 10px; }

.header-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef5e4;
  border: 1px solid #dbe7cb;
  color: #4f7038;
}

.header-icon svg { width: 17px; height: 17px; }

.card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.card .hint {
  margin: 0 0 16px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

.card .hint strong { color: var(--ink-2); }

.prose { color: var(--muted); font-size: 13.5px; line-height: 1.75; }

/* ---------- 账号信息表 → 两列大数字 ---------- */
dl.info {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0;
  margin: 0;
}

/* 账号卡顶部的状态条（纯装饰，不参与数据） */
main.stack > section:nth-child(2)::before {
  content: "";
  display: block;
  height: 3px;
  width: 68px;
  border-radius: 999px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #6b8f4e, #cfe0b6);
}

dl.info dt,
dl.info dd {
  padding: 13px 0;
  border-bottom: 1px solid #f0eadd;
  margin: 0;
  display: flex;
  align-items: center;
}

dl.info dt {
  grid-column: 1;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.02em;
}

dl.info dd {
  grid-column: 2;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  word-break: break-all;
}

dl.info dt:nth-last-of-type(1),
dl.info dd:nth-last-of-type(1) { border-bottom: 0; padding-bottom: 2px; }

/* ---------- 表单 ---------- */
.fields { display: grid; gap: 10px; margin-bottom: 14px; }

.fields label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-2);
}

.fields input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbf9f3;
  color: var(--ink);
  padding: 12px 14px;
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.fields input::placeholder { color: #aeb5a8; }

.fields input:focus {
  outline: none;
  background: #fff;
  border-color: #8fae6f;
  box-shadow: 0 0 0 3px rgba(107, 143, 78, 0.14);
}

/* ---------- 按钮 ---------- */
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #15261d;
  border-radius: 999px;
  background: #15261d;
  color: #f7f3ea;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  transition: background 0.16s ease, opacity 0.16s ease;
}

.primary:hover { background: #1d3527; }
.primary:disabled { opacity: 0.5; cursor: not-allowed; }

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  padding: 11px 20px;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.ghost:hover { background: rgba(21, 38, 29, 0.05); border-color: #d3c9b6; }

/* ---------- 提示消息 ---------- */
.msg { margin: 12px 0 0; font-size: 12.5px; color: var(--dim); min-height: 18px; }
.msg.ok { color: #4f7038; }
.msg.err { color: #b4453c; }

/* 需要登录的卡：居中一点 */
.card[data-requires-guest] { text-align: center; }
.card[data-requires-guest] h2 { margin-bottom: 8px; }
.card[data-requires-guest] .primary { margin-top: 16px; }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: clamp(40px, 6vw, 72px);
  padding: 40px 0 36px;
  background: #15261d;
  border-top: 0;
  color: #e9e4d6;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: #f6f3ea; }
.footer-logo .brand-gradient { color: #a9c48a; }
.footer-slogan { margin: 8px 0 0; font-size: 12.5px; color: rgba(233, 228, 214, 0.6); }

.footer-meta p { margin: 0 0 6px; font-size: 12px; color: rgba(233, 228, 214, 0.55); }
.footer-meta .muted { color: rgba(233, 228, 214, 0.4); }
.footer-meta .foot-link { color: rgba(233, 228, 214, 0.72); }
.footer-meta .foot-link:hover { color: #f6f3ea; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  main.stack { grid-template-columns: minmax(0, 1fr); }
  main.stack > section:nth-child(2),
  main.stack > section:nth-child(3),
  main.stack > section:nth-child(4),
  main.stack > section:nth-child(5) { grid-column: 1; grid-row: auto; }
  dl.info { grid-template-columns: minmax(0, 1fr); }
  .topbar { height: 64px; padding: 0 16px; }
  .topbar .brand-tag { display: none; }
  .topbar .pill span { display: none; }
  .topbar .pill { padding: 9px 12px; }
}
