/* ============================================================
   番薯采集器 · 高端商务风
   设计语言：深炭侧栏 + 暖白界面 + 蜜薯橙点睛 + 精致层叠阴影
   ============================================================ */
:root {
  --primary: #F2622E;        /* 蜜薯橙 */
  --primary-deep: #D9531E;
  --primary-soft: #FDEEE5;
  --primary-glow: rgba(242,98,46,.35);
  --leaf: #3E8E62;
  --leaf-soft: #E9F4ED;
  --sidebar: #211B14;        /* 深炭侧栏 */
  --sidebar-2: #2C241B;
  --bg: #F6F3EE;             /* 暖白底 */
  --card: #FFFFFF;
  --line: #EAE4D9;
  --ink: #2B241C;
  --ink-2: #5C5346;
  --muted: #A2968A;

  --font-body: "HarmonyOS Sans SC", "MiSans", "PingFang SC",
               "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;

  /* Element Plus 主色 → 蜜薯橙 */
  --el-color-primary: #F2622E;
  --el-color-primary-light-3: #F58154;
  --el-color-primary-light-5: #F8A07A;
  --el-color-primary-light-7: #FBC0A0;
  --el-color-primary-light-8: #FDD3BC;
  --el-color-primary-light-9: #FEE8DC;
  --el-color-primary-dark-2: #D9531E;
  --el-border-radius-base: 8px;
  --el-font-family: var(--font-body);

  --shadow-card: 0 1px 2px rgba(43,36,28,.04), 0 10px 30px rgba(43,36,28,.07);
  --shadow-hover: 0 2px 6px rgba(43,36,28,.06), 0 16px 40px rgba(242,98,46,.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 品牌记号（渐变方块 + 图标） ---------- */
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #FF7A3E, #E24E1E);
  color: #FFF7F0;
  border-radius: 12px;
  box-shadow: 0 4px 14px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,.35);
  user-select: none;
}

/* ---------- 登录 / 注册页 ---------- */
.login-wrap { display: flex; min-height: 100vh; }
.login-brand {
  flex: 1.15; min-width: 380px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 80% 10%, rgba(242,98,46,.10), transparent 62%),
    radial-gradient(ellipse 55% 45% at 8% 92%, rgba(242,98,46,.06), transparent 60%),
    linear-gradient(160deg, #FFFDF9 0%, #FBF3E8 100%);
  color: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: 8vh 6vw;
  border-right: 1px solid var(--line);
}
.eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 6px;
  color: var(--primary-deep);
  margin-bottom: 18px;
}
.login-brand .brand-mark { width: 56px; height: 56px; font-size: 26px; }
.brand-name {
  font-size: 48px; font-weight: 800;
  margin: 22px 0 12px; color: var(--ink);
  letter-spacing: 1px;
}
.brand-sub { font-size: 15px; color: var(--ink-2); letter-spacing: .5px; }
.brand-points { list-style: none; margin-top: 48px; max-width: 440px; }
.brand-points li {
  padding: 13px 0 13px 30px; font-size: 14.5px;
  color: var(--ink-2);
  position: relative;
  border-bottom: 1px solid rgba(51,41,31,.07);
}
.brand-points li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 9px; height: 9px; margin-top: -4.5px;
  border-radius: 3px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  transform: rotate(45deg);
}
.brand-foot {
  margin-top: 48px; font-size: 12px;
  color: var(--muted);
  letter-spacing: .5px;
}
.login-panel {
  flex: 1; min-width: 420px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card);
  padding: 40px;
  border-left: 1px solid var(--line);
}
.login-panel .el-tabs { width: 100%; max-width: 410px; background: transparent;
  padding: 34px 38px 30px; border-radius: 18px; }
.block-btn { width: 100%; margin-top: 4px; letter-spacing: 2px; }
.reg-note { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 14px; }

@media (max-width: 860px) {
  .login-brand { display: none; }
  .login-panel { min-width: 0; }
}

/* ---------- 主布局 ---------- */
.layout { height: 100vh; }
.aside { background: var(--card); border-right: 1px solid var(--line); }
.logo {
  height: 62px; display: flex; align-items: center; gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}
.logo .brand-mark { width: 32px; height: 32px; font-size: 15px; border-radius: 9px; }
.logo-name { font-size: 15.5px; font-weight: 800; color: var(--ink); letter-spacing: .5px; }
.aside .el-menu { border-right: none; padding: 10px; }
.aside .el-menu-item {
  border-radius: 9px; margin: 4px 0; height: 45px;
}
.aside .el-menu-item:hover { background: #FAF6F0; }
.aside .el-menu-item.is-active {
  background: var(--primary-soft);
  box-shadow: inset 3px 0 0 var(--primary);
  font-weight: 600;
}
.header {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
}
.header .title { font-size: 17px; font-weight: 800; letter-spacing: 1px; }
.main { padding: 22px; overflow-y: auto; background: var(--bg); }

/* ---------- 仪表盘 ---------- */
.quota-strip {
  background: var(--card);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 18px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 18px; font-size: 13px;
  box-shadow: var(--shadow-card);
  border-left: 3px solid var(--primary);
}
.quota-label { font-weight: 700; color: var(--primary-deep); }
.quota-item b { color: var(--primary-deep); }
.quota-zero { color: var(--muted); }
.quota-hint { color: var(--muted); font-size: 12px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: var(--card); border-radius: 14px;
  padding: 22px 24px; display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.stat-icon {
  width: 50px; height: 50px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.stat-num { font-size: 28px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.stat-label { font-size: 13px; color: var(--muted); }

/* ---------- 卡片与表格 ---------- */
.page-card {
  background: var(--card); border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar b { font-size: 15px; }
.toolbar .grow { flex: 1; }

.el-table { font-variant-numeric: tabular-nums; }
.el-table th.el-table__cell { background: #FAF7F2 !important; color: var(--ink-2); font-weight: 600; }
.el-table td.el-table__cell, .el-table th.el-table__cell.is-leaf { border-bottom-color: #F0EBE2; }

/* ---------- 配额进度 ---------- */
.quota-row { display: flex; align-items: center; gap: 14px; padding: 7px 0; }
.quota-row-label { width: 90px; color: var(--ink-2); font-size: 13px; }
.quota-row-num { width: 50px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* ---------- 评论 ---------- */
.comment-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid #F3EEE6; }
.comment-item:last-child { border-bottom: none; }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; background: #EFE8DD; }
.comment-meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 10px; }
.comment-content { font-size: 14px; line-height: 1.55; }
.sub-comments { margin-left: 46px; }

/* ---------- 图片 ---------- */
.img-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.img-grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 6px; cursor: pointer; }

.qr-box { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 0; }
.qr-box img { width: 220px; height: 220px; border-radius: 8px; }
.el-table .el-link { font-size: 13px; }

@media (max-width: 900px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
