/* ===== 凤凰职教学培课堂AI论坛 · 白→淡紫 高级感主题 ===== */
:root {
  --ink: #1b1830;
  --ink-2: #403a5c;
  --muted: #6f6a85;
  --muted-2: #9c97ae;

  --line: rgba(76, 58, 140, 0.10);
  --line-2: rgba(76, 58, 140, 0.17);

  --accent: #6d4fd0;
  --accent-2: #8a6ee2;
  --accent-deep: #4f319f;
  --accent-soft: #f2eefc;
  --accent-soft-2: #e7e0f8;

  --gold: #b98a2e;
  --gold-soft: #fbf5e6;

  --glass: rgba(255, 255, 255, 0.76);
  --glass-brd: rgba(255, 255, 255, 0.9);

  --shadow-xs: 0 1px 2px rgba(28, 18, 70, 0.05);
  --shadow: 0 1px 2px rgba(28, 18, 70, 0.04), 0 10px 26px rgba(84, 60, 170, 0.06);
  --shadow-md: 0 2px 6px rgba(28, 18, 70, 0.05), 0 16px 36px rgba(84, 60, 170, 0.09);
  --shadow-lg: 0 4px 10px rgba(28, 18, 70, 0.06), 0 28px 60px rgba(84, 60, 170, 0.14);

  --r: 16px;
  --r-sm: 11px;
  --tab-h: 64px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.62;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1000px 520px at 6% -10%, #f8f4ff 0%, rgba(248, 244, 255, 0) 62%),
    radial-gradient(860px 480px at 104% -2%, #f4f2fc 0%, rgba(244, 242, 252, 0) 58%),
    linear-gradient(180deg, #ffffff 0%, #fefdff 24%, #fbf8fe 56%, #f4f0fb 100%);
  background-attachment: fixed;
  min-height: 100%;
}

[v-cloak] { display: none; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: 0; }
h2 { font-size: 17.5px; }
h3 { font-size: 16px; }

/* ---------- 卡片 ---------- */
.glass {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(76, 58, 140, 0.09);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

/* ---------- 启动 ---------- */
.boot { display: flex; align-items: center; justify-content: center; height: 100vh; }
.spin {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2.5px solid var(--accent-soft-2); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 登录 ---------- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 18px; }
.auth-card { width: 100%; max-width: 404px; padding: 34px 30px 24px; }
.brand { text-align: center; margin-bottom: 24px; }
.brand-logo {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 25px; font-weight: 600; color: #fff;
  background: linear-gradient(140deg, var(--accent-2), var(--accent-deep));
  box-shadow: 0 10px 24px rgba(109, 79, 208, 0.28);
}
.brand h1 { font-size: 20px; letter-spacing: .2px; margin-bottom: 7px; }
.brand .muted { font-size: 12.5px; letter-spacing: .3px; }

.seg {
  display: flex; gap: 3px; padding: 3px; margin-bottom: 20px;
  background: #f4f2fa; border-radius: 12px; border: 1px solid var(--line);
}
.seg button {
  flex: 1; border: 0; background: transparent; color: var(--muted);
  padding: 9px 0; border-radius: 9px; font-size: 14px; font-family: inherit; cursor: pointer;
  transition: .18s;
}
.seg button.on {
  background: #fff; color: var(--accent-deep); font-weight: 600;
  box-shadow: var(--shadow-xs); border: 1px solid var(--line);
}
.seg.small button { padding: 6px 15px; font-size: 13px; }
.seg.admin-seg { flex-wrap: wrap; }
.seg.admin-seg button { flex: 0 0 auto; padding: 7px 17px; font-size: 13.5px; }

.field { display: block; margin-bottom: 15px; }
.field > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; letter-spacing: .2px; }
input, textarea, select {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 11px 13px; outline: none; transition: .16s;
}
textarea { resize: vertical; line-height: 1.65; }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3.5px rgba(138, 110, 226, 0.13);
}
select {
  appearance: none; padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}

.btn-primary {
  border: 0; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600; color: #fff;
  padding: 12px 24px; border-radius: var(--r-sm); letter-spacing: .3px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-deep));
  box-shadow: 0 8px 20px rgba(109, 79, 208, 0.24);
  transition: .18s;
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(109, 79, 208, 0.3); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-primary.block { width: 100%; }
.btn-primary.sm { padding: 9px 18px; font-size: 14px; }

.ghost {
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
  font-family: inherit; font-size: 14px; padding: 9px 16px; border-radius: var(--r-sm); cursor: pointer; transition: .16s;
}
.ghost:hover { border-color: var(--accent-2); color: var(--accent-deep); }
.ghost.tiny { padding: 5px 11px; font-size: 12.5px; border-radius: 8px; }
.ghost.danger { color: #b03a52; border-color: rgba(176, 58, 82, .22); }
.ghost.danger:hover { background: #fdf3f5; border-color: #e0a8b4; }

.err { color: #b03a52; font-size: 13px; margin: 0 0 13px; }
.tip { text-align: center; font-size: 12.5px; color: var(--muted-2); margin: 18px 0 0; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; letter-spacing: .1px; }
.logo-dot {
  width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 600;
  background: linear-gradient(140deg, var(--accent-2), var(--accent-deep));
  box-shadow: 0 5px 14px rgba(109, 79, 208, 0.26);
}
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  padding: 8px 15px; border-radius: 9px; font-size: 14.5px; color: var(--muted);
  cursor: pointer; transition: .16s; user-select: none;
}
.nav a:hover { color: var(--accent-deep); background: var(--accent-soft); }
.nav a.on { color: var(--accent-deep); font-weight: 600; background: var(--accent-soft); }
.userchip { display: flex; align-items: center; gap: 10px; }
.uc-info { display: flex; flex-direction: column; line-height: 1.25; }
.uc-info b { font-size: 13.5px; }
.uc-info i { font-style: normal; font-size: 11.5px; color: var(--muted-2); }

/* ---------- 头像 ---------- */
.avatar {
  width: 42px; height: 42px; flex: none; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: #fff; font-size: 15px;
  background: linear-gradient(140deg, #a892ea, #6d4fd0);
  box-shadow: 0 4px 12px rgba(109, 79, 208, 0.2);
}
.avatar.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 13.5px; }
.avatar.lg { width: 70px; height: 70px; border-radius: 22px; font-size: 26px; }

/* ---------- 主体 ---------- */
.main { padding-top: 22px; padding-bottom: calc(var(--tab-h) + 28px); }
.view { animation: fadeUp .34s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 大奖悬挂框 ---------- */
.prize-hang { position: relative; margin: 30px 0 18px; }
.prize-hang .hang-line {
  position: absolute; top: -22px; width: 1px; height: 22px;
  background: linear-gradient(180deg, rgba(109, 79, 208, 0), rgba(109, 79, 208, 0.3));
}
.prize-hang .hang-line.l { left: 31%; transform: rotate(10deg); transform-origin: bottom center; }
.prize-hang .hang-line.r { right: 31%; transform: rotate(-10deg); transform-origin: bottom center; }
.prize-hang .hang-pin {
  position: absolute; top: -6px; left: 50%; margin-left: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 1px solid rgba(109, 79, 208, 0.32); box-shadow: 0 1px 4px rgba(109, 79, 208, 0.22);
}
.prize-card {
  position: relative; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 20px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(118deg, #ffffff 0%, #fcfaff 48%, #f5f0fd 100%);
  border: 1px solid rgba(109, 79, 208, 0.13);
  box-shadow: 0 2px 6px rgba(28, 18, 70, 0.04), 0 18px 42px rgba(84, 60, 170, 0.10);
}
.prize-card::after {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, #e3d8ff 0%, #c9b4f5 45%, #eadfbc 100%);
}
.prize-badge {
  width: 46px; height: 46px; flex: none; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 600; color: #8a6420;
  background: linear-gradient(140deg, #fdf3d9, #f2e2b6);
  border: 1px solid rgba(185, 138, 46, 0.28);
  box-shadow: 0 4px 12px rgba(185, 138, 46, 0.16);
}
.prize-main { flex: 1 1 220px; min-width: 0; }
.prize-label {
  font-size: 11.5px; letter-spacing: .6px; color: var(--gold);
  font-weight: 600; margin-bottom: 3px;
}
.prize-title { font-size: 17px; font-weight: 600; letter-spacing: .2px; }
.prize-desc { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.prize-count { flex: none; text-align: right; }
.pc-label { font-size: 11.5px; color: var(--muted-2); margin-bottom: 6px; letter-spacing: .4px; }
.pc-blocks { display: flex; gap: 6px; }
.pc-b {
  min-width: 44px; padding: 5px 6px 4px; border-radius: 10px; text-align: center;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.pc-b b { display: block; font-size: 17px; font-weight: 600; color: var(--accent-deep); font-variant-numeric: tabular-nums; line-height: 1.15; }
.pc-b span { font-size: 10.5px; color: var(--muted-2); }
.pc-b.urgent b { color: #c0392b; }

/* ---------- 发帖框 ---------- */
.composer { padding: 18px; margin-bottom: 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  border: 1px solid var(--line-2); background: #fff; color: var(--muted);
  font-family: inherit; font-size: 13.5px; padding: 7px 15px; border-radius: 999px; cursor: pointer; transition: .16s;
}
.chip:hover { color: var(--accent-deep); border-color: var(--accent-2); }
.chip.on { font-weight: 600; }
.chip.on.checkin { background: var(--accent-soft); color: var(--accent-deep); border-color: var(--accent-soft-2); }
.chip.on.chat { background: #eef5fd; color: #1d5b91; border-color: #d5e6f7; }
.chip.on.help { background: #fdf6e8; color: #8a6420; border-color: #f3e4c2; }
.chip.on.rant { background: #fdf0f3; color: #a8384f; border-color: #f4d7de; }

.composer textarea { border: 0; background: transparent; padding: 6px 2px; font-size: 15.5px; }
.composer textarea:focus { box-shadow: none; }

.preview { position: relative; margin-top: 10px; width: fit-content; max-width: 100%; }
.preview img { max-height: 220px; max-width: 100%; border-radius: 13px; display: block; }
.preview .rm {
  position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: rgba(27, 24, 48, .68); color: #fff; font-size: 17px; line-height: 1; cursor: pointer;
}

.composer-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 13px; border-top: 1px solid var(--line); }
.composer-foot .btn-primary { margin-left: auto; }
.file-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 13.5px; color: var(--accent-deep); padding: 8px 15px; border-radius: var(--r-sm);
  border: 1px dashed var(--accent-soft-2); background: #fbfaff; transition: .16s;
}
.file-btn:hover { background: var(--accent-soft); border-color: var(--accent-2); }

/* ---------- 筛选 ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

/* ---------- 帖子 ---------- */
.feed { display: flex; flex-direction: column; gap: 14px; }
.post { padding: 18px; }
.post-head { display: flex; align-items: center; gap: 12px; }
.post-meta { flex: 1; min-width: 0; }
.pm-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pm-line b { font-size: 15px; font-weight: 600; }
.tag { font-size: 11.5px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); border: 1px solid var(--accent-soft-2); }
.tag.chat { background: #eef5fd; color: #1d5b91; border-color: #d5e6f7; }
.tag.help { background: #fdf6e8; color: #8a6420; border-color: #f3e4c2; }
.tag.rant { background: #fdf0f3; color: #a8384f; border-color: #f4d7de; }
.post-content { margin: 13px 0 0; white-space: pre-wrap; word-break: break-word; font-size: 15.5px; color: var(--ink-2); }
.post-img { margin-top: 13px; max-width: 100%; max-height: 520px; width: auto; height: auto; border-radius: 13px; cursor: zoom-in; display: block; border: 1px solid var(--line); }
.post-foot { display: flex; align-items: center; gap: 12px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.like {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-family: inherit;
  border: 1px solid var(--line-2); background: #fff; color: var(--muted);
  font-size: 14px; padding: 7px 16px; border-radius: 999px; transition: .16s;
}
.like svg { width: 17px; height: 17px; }
.like:hover { border-color: #e6a8b6; color: #c04a63; }
.like.on { background: #fdf0f3; color: #c04a63; border-color: #f0cbd5; font-weight: 600; }
.like.on svg { fill: currentColor; }

/* ---------- 面板 ---------- */
.panel { padding: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.empty { text-align: center; color: var(--muted-2); padding: 44px 0; font-size: 14px; }

.reward {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 14px 0 4px; padding: 12px 15px; border-radius: var(--r-sm);
  background: linear-gradient(120deg, #fdfaf1, #faf6ff);
  border: 1px solid rgba(185, 138, 46, 0.18);
}
.reward-badge { font-size: 11.5px; font-weight: 600; color: #8a6420; background: var(--gold-soft); padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(185, 138, 46, 0.2); }

/* ---------- 榜单 ---------- */
.board { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.board-row {
  display: flex; align-items: center; gap: 13px; padding: 13px 15px;
  border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line);
  transition: .16s;
}
.board-row:hover { border-color: var(--line-2); box-shadow: var(--shadow-xs); }
.board-row.top1 {
  background: linear-gradient(120deg, #fffdf6, #faf6ff);
  border-color: rgba(185, 138, 46, 0.28);
  box-shadow: 0 6px 20px rgba(185, 138, 46, 0.10);
}
.rank {
  width: 30px; height: 30px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13.5px; color: var(--muted-2); background: #f5f4f9;
}
.rank.r1 { background: linear-gradient(140deg, #e8c97a, #c39a35); color: #fff; }
.rank.r2 { background: linear-gradient(140deg, #d3d6de, #a5aab6); color: #fff; }
.rank.r3 { background: linear-gradient(140deg, #e3b48b, #c07f4d); color: #fff; }
.b-info { flex: 1; min-width: 0; }
.bar { height: 6px; border-radius: 999px; background: #f1eff7; margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #c3b0f0, var(--accent)); transition: width .5s ease; }
.b-score { text-align: right; flex: none; }
.b-score b { display: block; font-size: 18px; font-weight: 600; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.b-score .small { display: block; white-space: nowrap; color: var(--muted-2); }

/* ---------- 评选 ---------- */
.scope-tip {
  margin: 14px 0; padding: 11px 15px; border-radius: var(--r-sm); font-size: 13.5px;
  background: var(--accent-soft); border: 1px solid var(--accent-soft-2); color: var(--accent-deep);
}
.voted-tip { margin: 12px 0; padding: 11px 15px; border-radius: var(--r-sm); background: #f1f8f2; border: 1px solid #d8ebdc; color: #2f6b3f; font-size: 13.5px; }
.vote-group { margin-top: 18px; }
.vg-title { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 9px; letter-spacing: .3px; }
.cand-list { display: flex; flex-direction: column; gap: 9px; }
.cand {
  display: flex; align-items: center; gap: 12px; padding: 12px 15px; cursor: pointer;
  border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); transition: .16s;
}
.cand:hover { border-color: var(--accent-2); }
.cand.on { border-color: var(--accent); background: #fbfaff; box-shadow: 0 6px 18px rgba(109, 79, 208, 0.10); }
.cand input { width: auto; margin: 0; accent-color: var(--accent); }
.c-info { display: flex; flex-direction: column; line-height: 1.3; }

/* ---------- 我的 ---------- */
.profile { text-align: center; padding: 34px 22px; }
.profile .avatar.lg { margin: 0 auto 15px; }
.profile h2 { font-size: 19px; margin-bottom: 5px; }
.stat-row { display: flex; gap: 12px; margin: 24px 0; }
.stat { flex: 1; padding: 15px 8px; border-radius: var(--r-sm); background: #fbfaff; border: 1px solid var(--line); }
.stat b { display: block; font-size: 21px; font-weight: 600; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--muted-2); }
.me-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- 后台 ---------- */
.add-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
.add-row input, .add-row select { width: auto; flex: 1 1 130px; min-width: 110px; }
.add-row .btn-primary { flex: none; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { min-width: 850px; }
.tr {
  display: grid; grid-template-columns: 1fr 1.15fr 0.78fr 1fr 1.3fr 0.8fr 1.42fr;
  gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.tr.th { color: var(--muted-2); font-size: 12.5px; }
.tr select, .tr .cell { padding: 6px 9px; font-size: 13px; border-radius: 8px; }
.ops { display: flex; gap: 6px; flex-wrap: wrap; }
.scope-cell { display: flex; align-items: center; gap: 7px; min-width: 0; }
.scope-txt {
  flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.scope-txt.none { color: var(--muted-2); }

.simple-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.simple-list li {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 15px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line);
}
.simple-list li b { flex: none; font-weight: 600; }
.simple-list li .muted { flex: 1; min-width: 0; }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.switch input { width: auto; margin: 0; accent-color: var(--accent); }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin: 18px 0 10px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 80; padding: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(30, 24, 58, 0.34);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal-card {
  width: 100%; max-width: 460px; padding: 24px; border-radius: 18px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: fadeUp .24s ease both;
}
.modal-head { margin-bottom: 8px; }
.modal-card .muted { margin: 0 0 16px; }
.scope-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 9px; margin-bottom: 20px; }
.scope-item {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 10px 13px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff;
  font-size: 13.5px; transition: .16s;
}
.scope-item:hover { border-color: var(--accent-2); }
.scope-item.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.scope-item input { width: auto; margin: 0; accent-color: var(--accent); }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-top: 1px solid var(--line);
}
.tabbar a {
  flex: 1; height: var(--tab-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted-2); font-size: 11.5px; cursor: pointer; user-select: none; transition: .16s;
}
.tabbar a.on { color: var(--accent-deep); font-weight: 600; }
.tb-ico { display: block; width: 22px; height: 22px; }
.tb-ico svg { width: 22px; height: 22px; }

/* ---------- 灯箱 / 提示 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(24, 18, 46, 0.76);
  display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 13px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + 26px); transform: translateX(-50%);
  z-index: 95; padding: 11px 22px; border-radius: 999px; font-size: 14px; color: #fff;
  background: rgba(46, 36, 88, 0.94); box-shadow: var(--shadow-lg); max-width: 88vw; text-align: center;
}
.toast.err { background: rgba(176, 58, 82, 0.95); }
.toast.ok { background: rgba(47, 107, 63, 0.95); }

.fade-enter-active, .fade-leave-active { transition: opacity .22s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .nav { display: none; }
  .uc-info { display: none; }
  .tabbar { display: flex; }
  .main { padding-top: 16px; }
  .topbar-inner { height: 58px; gap: 10px; }
  .logo-text { font-size: 14.5px; }
  .panel { padding: 18px; }
  .post { padding: 16px; }
  .auth-card { padding: 28px 22px 20px; }
  .composer textarea { font-size: 16px; }
  .b-score b { font-size: 16.5px; }
  .toast { bottom: calc(var(--tab-h) + 20px); }
  .prize-card { padding: 16px; gap: 13px; }
  .prize-count { text-align: left; }
  .prize-hang .hang-line.l { left: 26%; }
  .prize-hang .hang-line.r { right: 26%; }
  .pc-b { min-width: 40px; }
  .pc-b b { font-size: 16px; }
  .modal-mask { padding: 16px; align-items: flex-end; }
  .modal-card { max-width: none; }
}

@media (min-width: 761px) {
  .main { padding-bottom: 44px; }
}

/* ============ 布局：顶栏 + 左侧网站栏 + 主区 ============ */
.shell { display: block; }

/* ---------- 公司网站导航 ---------- */
.sidenav {
  display: none;
  padding: 13px 11px 11px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(76, 58, 140, 0.09);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.sidenav-title {
  font-size: 11.5px; letter-spacing: .6px; color: var(--muted-2); font-weight: 600;
  padding: 0 8px 9px; margin-bottom: 5px; border-bottom: 1px solid var(--line);
}
.site-link {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink-2); font-size: 13.5px; transition: .16s;
}
.site-link:hover { background: var(--accent-soft); color: var(--accent-deep); }
.site-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 站点图标：抓不到 favicon 时回退为网站名首字 */
.site-ico {
  width: 26px; height: 26px; flex: none; border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line);
}
.site-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }
.site-ico i {
  font-style: normal; font-size: 12.5px; font-weight: 600; color: #fff;
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #a892ea, #6d4fd0);
}
.site-ico.lg { width: 42px; height: 42px; border-radius: 12px; }
.site-ico.lg i { font-size: 17px; }

/* 手机端「网站导航」页 */
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 11px; margin-top: 16px; }
.site-card {
  display: flex; align-items: center; gap: 11px; padding: 13px;
  border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: .16s;
}
.site-card:hover { border-color: var(--accent-2); box-shadow: var(--shadow-xs); }
.sc-info { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.sc-info b {
  font-size: 13.5px; font-weight: 600; word-break: break-all;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sc-info .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 技能分享 ---------- */
.skill-upload {
  margin: 16px 0 6px; padding: 16px 16px 4px; border-radius: var(--r-sm);
  background: #fbfaff; border: 1px solid var(--line);
}
.skill-file-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.skill-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skill-file-row .btn-primary { margin-left: auto; }

.skill-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.skill-item {
  display: flex; align-items: center; gap: 13px; padding: 13px 15px;
  border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); transition: .16s;
}
.skill-item:hover { border-color: var(--line-2); box-shadow: var(--shadow-xs); }
.skill-ext {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  color: var(--accent-deep); background: var(--accent-soft); border: 1px solid var(--accent-soft-2);
}
.sk-info { flex: 1; min-width: 0; }
.sk-info b { font-size: 14.5px; font-weight: 600; word-break: break-word; }
.sk-desc { margin: 4px 0; font-size: 13px; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.sk-ops { display: flex; gap: 7px; flex: none; }

/* ---------- 后台：网站导航列表 ---------- */
.site-admin-list li { gap: 10px; }
.site-admin-list .cell { width: auto; flex: 1 1 120px; min-width: 100px; padding: 7px 10px; font-size: 13px; border-radius: 8px; }
.site-admin-list .cell.url { flex: 2 1 200px; }

/* ---------- 桌面端：左侧栏常驻，主区自适应 ---------- */
@media (min-width: 1080px) {
  .shell {
    display: flex; gap: 22px; align-items: flex-start;
    max-width: 1240px; margin: 0 auto; padding: 0 18px;
  }
  .sidenav {
    display: block; flex: 0 0 198px;
    position: sticky; top: 80px;
    max-height: calc(100vh - 104px); overflow-y: auto;
  }
  .shell > .main { flex: 1 1 auto; min-width: 0; max-width: none; margin: 0; padding-left: 0; padding-right: 0; }
}

/* 底部 Tab 数量较多时收紧一点 */
@media (max-width: 760px) {
  .tabbar a { font-size: 11px; gap: 2px; }
  .tb-ico, .tb-ico svg { width: 21px; height: 21px; }
  .skill-item { flex-wrap: wrap; }
  .sk-ops { width: 100%; justify-content: flex-end; }
}
