/* ============================================================
   六月是只猫外联网盘 — 前台样式 v3
   设计语言：渐变品牌色 · 玻璃拟态 · 大圆角卡片 · 明暗双主题
   ============================================================ */

:root {
  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --primary-3: #d946ef;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #d946ef 100%);
  --grad-soft: linear-gradient(135deg, rgba(99,102,241,.12), rgba(217,70,239,.10));
  --bg: #f4f5fa;
  --bg-2: #eceef7;
  --card: #ffffff;
  --card-2: #f7f8fc;
  --text: #1b2032;
  --muted: #7a8199;
  --line: #e7e9f2;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --shadow-sm: 0 1px 2px rgba(23,28,55,.05), 0 2px 8px rgba(23,28,55,.04);
  --shadow-md: 0 4px 14px rgba(23,28,55,.07), 0 1px 3px rgba(23,28,55,.05);
  --shadow-lg: 0 18px 44px rgba(45,55,120,.14), 0 4px 12px rgba(45,55,120,.06);
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px;
}
[data-theme="dark"] {
  --bg: #0d1020;
  --bg-2: #12162a;
  --card: #171b30;
  --card-2: #1e2340;
  --text: #e8eaf5;
  --muted: #8f96b2;
  --line: #2a3052;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.35);
  --shadow-md: 0 6px 18px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 48px rgba(0,0,0,.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 14.5px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }
::selection { background: rgba(99,102,241,.25); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.page { min-height: calc(100vh - 210px); padding-bottom: 56px; }
.muted { color: var(--muted); }

/* ---------- 背景装饰 ---------- */
.bg-deco { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-deco i {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .16;
  animation: float 16s ease-in-out infinite;
}
.bg-deco i:nth-child(1) { width: 480px; height: 480px; background: #6366f1; top: -160px; left: -120px; }
.bg-deco i:nth-child(2) { width: 420px; height: 420px; background: #d946ef; top: 18%; right: -160px; animation-delay: -6s; }
.bg-deco i:nth-child(3) { width: 380px; height: 380px; background: #22d3ee; bottom: -140px; left: 30%; animation-delay: -11s; }
[data-theme="dark"] .bg-deco i { opacity: .13; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,-30px); } }

/* ---------- 顶部导航 ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; height: 66px; gap: 26px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 17px; }
.brand-name { letter-spacing: .3px; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a {
  padding: 8px 16px; border-radius: 99px; font-weight: 600; color: var(--muted);
  transition: all .2s; font-size: 14.5px;
}
.nav-links a:hover { color: var(--text); background: var(--card-2); }
.nav-links a.on { color: #fff; background: var(--grad); box-shadow: 0 4px 14px rgba(99,102,241,.35); }
.nav-links .admin-link { color: var(--warn); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: all .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--primary); }
.i-moon { display: none; }
[data-theme="dark"] .i-moon { display: block; }
[data-theme="dark"] .i-sun { display: none; }

.user-menu { position: relative; }
.user-chip {
  display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px;
  border: 1px solid var(--line); background: var(--card); border-radius: 99px;
  cursor: pointer; transition: all .2s; color: var(--text);
}
.user-chip:hover { border-color: var(--primary); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
  flex-shrink: 0;
}
.uname { font-weight: 700; font-size: 13.5px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vip-dot {
  font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 99px; letter-spacing: .5px;
  background: linear-gradient(135deg,#f59e0b,#f97316); color: #fff;
}
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 110;
}
.user-menu.open .user-dropdown { display: block; animation: dropIn .18s ease; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } }
.user-dropdown a { display: block; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 13.5px; transition: background .15s; }
.user-dropdown a:hover { background: var(--card-2); }
.user-dropdown a.danger {
  display: flex; align-items: center; gap: 8px; margin: 6px 8px 8px; padding: 10px 12px;
  border-top: 1px dashed var(--line); border-radius: 10px;
  color: var(--muted); font-weight: 700; transition: color .15s, background .15s;
}
.user-dropdown a.danger::before { content: ''; width: 15px; height: 15px; flex: none;
  background: currentColor; -webkit-mask: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E") no-repeat center / contain;
}
.user-dropdown a.danger:hover { color: var(--danger); background: rgba(239,68,68,.08); }
.ud-head { padding: 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.ud-head b { display: block; }
.ud-head small { color: var(--muted); font-size: 12px; }
.menu-btn { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 22px; border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 14px; cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(99,102,241,.32); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(99,102,241,.4); }
.btn.ghost { background: var(--card); border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { transform: translateY(-2px); }
.btn.sm { padding: 7px 15px; font-size: 12.5px; border-radius: 10px; }
.btn.lg { padding: 13px 30px; font-size: 15.5px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- 卡片 / 标签 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 24px;
}
.tag {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px;
  font-size: 11.5px; font-weight: 700;
}
.tag.ok { background: rgba(22,163,74,.12); color: var(--ok); }
.tag.warn { background: rgba(217,119,6,.12); color: var(--warn); }
.tag.danger { background: rgba(220,38,38,.12); color: var(--danger); }
.tag.muted { background: var(--card-2); color: var(--muted); }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 7px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--card-2); color: var(--text); font-size: 14px; outline: none; transition: border .2s, box-shadow .2s;
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99,102,241,.13); background: var(--card);
}

/* ---------- Toast / Modal ---------- */
#toastBox { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  padding: 12px 24px; border-radius: 99px; font-weight: 600; font-size: 13.5px; color: #fff;
  background: #334155; box-shadow: var(--shadow-lg); animation: toastIn .25s ease; max-width: 86vw;
}
.toast.ok { background: linear-gradient(135deg,#16a34a,#22c55e); }
.toast.err { background: linear-gradient(135deg,#dc2626,#ef4444); }
.toast.warn { background: linear-gradient(135deg,#d97706,#f59e0b); }
.toast.info { background: linear-gradient(135deg,#6366f1,#8b5cf6); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } }

.modal-root { position: relative; z-index: 500; }
.modal-mask {
  position: fixed; inset: 0; z-index: 600; background: rgba(13,16,32,.55); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal-box {
  background: var(--card); border-radius: var(--r-lg); width: min(500px, 100%);
  max-height: 88vh; overflow: auto; box-shadow: var(--shadow-lg); animation: popIn .22s cubic-bezier(.34,1.4,.64,1);
}
@keyframes popIn { from { opacity: 0; transform: scale(.92) translateY(12px); } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 14px; border-bottom: 1px solid var(--line); font-size: 16px;
}
.modal-close {
  width: 32px; height: 32px; border-radius: 10px; border: none; background: var(--card-2);
  color: var(--muted); font-size: 18px; cursor: pointer; transition: all .2s;
}
.modal-close:hover { background: var(--danger); color: #fff; }
.modal-body { padding: 20px 24px 24px; }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; padding: 84px 0 40px; text-align: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 50% -8%, rgba(99,102,241,.18), transparent),
    radial-gradient(ellipse 40% 35% at 82% 20%, rgba(217,70,239,.12), transparent);
}
.hero-chip {
  display: inline-flex; padding: 7px 18px; border-radius: 99px; font-size: 13px; font-weight: 700;
  color: var(--primary); background: var(--grad-soft); border: 1px solid rgba(99,102,241,.25);
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 900; letter-spacing: -.5px; line-height: 1.25; }
.hero .grad, .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { color: var(--muted); font-size: 16px; margin: 18px auto 30px; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 统计卡 ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px 0; }
.stat-card {
  display: flex; align-items: center; gap: 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-ico {
  width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px;
  flex-shrink: 0;
}
.si-1 { background: rgba(99,102,241,.13); }
.si-2 { background: rgba(34,211,238,.13); }
.si-3 { background: rgba(217,70,239,.13); }
.si-4 { background: rgba(245,158,11,.13); }
.stat-card b { font-size: 21px; display: block; line-height: 1.3; }
.stat-card span { color: var(--muted); font-size: 12.5px; }

/* ---------- 热门排行 ---------- */
.rank-card { padding: 20px 24px; margin-bottom: 26px; }
.rank-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.rank-title { font-weight: 800; font-size: 16px; }
.rank-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; }
.rank-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; transition: background .15s;
}
.rank-item:hover { background: var(--card-2); }
.rk {
  width: 24px; height: 24px; border-radius: 8px; background: var(--card-2); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12.5px; flex-shrink: 0;
}
.rk.no-1 { background: linear-gradient(135deg,#f59e0b,#f97316); color: #fff; }
.rk.no-2 { background: linear-gradient(135deg,#64748b,#94a3b8); color: #fff; }
.rk.no-3 { background: linear-gradient(135deg,#b45309,#d97706); color: #fff; }
.rk-name { flex: 1; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-meta { color: var(--muted); font-size: 12px; flex-shrink: 0; }

/* ---------- 搜索 / 列表 ---------- */
.search-bar {
  display: flex; align-items: center; gap: 12px; background: var(--card);
  border: 1.5px solid var(--line); border-radius: 99px; padding: 8px 8px 8px 22px;
  box-shadow: var(--shadow-sm); margin-bottom: 28px; transition: border .2s, box-shadow .2s;
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99,102,241,.12); }
.search-bar svg { color: var(--muted); flex-shrink: 0; }
.search-bar input { flex: 1; border: none; outline: none; background: transparent; color: var(--text); font-size: 15px; }
.search-bar .btn { border-radius: 99px; }
.list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.section-title { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.section-title.center { text-align: center; margin: 46px 0 10px; font-size: 26px; }

.file-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.file-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px; transition: all .22s; box-shadow: var(--shadow-sm);
}
.file-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(99,102,241,.4); }
.fc-top { display: flex; gap: 13px; margin-bottom: 15px; }
.fc-icon {
  width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; color: #fff; flex-shrink: 0; letter-spacing: .3px;
}
.cat-image { background: linear-gradient(135deg,#06b6d4,#3b82f6); }
.cat-video { background: linear-gradient(135deg,#f43f5e,#d946ef); }
.cat-audio { background: linear-gradient(135deg,#8b5cf6,#6366f1); }
.cat-doc { background: linear-gradient(135deg,#f59e0b,#f97316); }
.cat-archive { background: linear-gradient(135deg,#64748b,#475569); }
.cat-code { background: linear-gradient(135deg,#10b981,#059669); }
.cat-app { background: linear-gradient(135deg,#e11d48,#be123c); }
.cat-font { background: linear-gradient(135deg,#14b8a6,#0d9488); }
.cat-other { background: linear-gradient(135deg,#6366f1,#8b5cf6); }
.fc-info { flex: 1; min-width: 0; }
.fc-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-meta { display: flex; gap: 10px; color: var(--muted); font-size: 12px; margin-top: 4px; flex-wrap: wrap; }
.fc-foot { display: flex; gap: 8px; align-items: center; }
.fc-dl { margin-left: auto; color: var(--muted); font-size: 12px; }

.pager { display: flex; justify-content: center; gap: 8px; margin: 34px 0 10px; flex-wrap: wrap; }
.pager a, .pager .cur, .pager .dis {
  min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; font-weight: 700; border: 1.5px solid var(--line); background: var(--card); transition: all .18s;
}
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager .cur { background: var(--grad); color: #fff; border-color: transparent; }
.pager .dis { opacity: .4; cursor: default; }

/* ---------- 上传页 ---------- */
.upload-head { text-align: center; padding: 40px 0 26px; }
.upload-head h1 { font-size: 30px; font-weight: 900; letter-spacing: -.4px; }
.upload-head p { color: var(--muted); margin-top: 8px; }
.upload-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.upload-main { min-width: 0; }

.dropzone {
  position: relative; background: var(--card); border: 2px dashed var(--line); border-radius: var(--r-lg);
  padding: 52px 30px; text-align: center; cursor: pointer; transition: all .22s; overflow: hidden;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--primary); background: var(--grad-soft); }
.dropzone.dragover { transform: scale(1.01); }
.dz-glow {
  position: absolute; inset: -60%; background: conic-gradient(from 0deg, transparent 70%, rgba(99,102,241,.14), transparent);
  opacity: 0; transition: opacity .3s; animation: spin 5s linear infinite; pointer-events: none;
}
.dropzone:hover .dz-glow, .dropzone.dragover .dz-glow { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.dz-icon {
  width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 22px; background: var(--grad);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(99,102,241,.35);
}
.dropzone h2 { font-size: 18px; font-weight: 800; }
.dropzone .hint { color: var(--muted); margin-top: 9px; font-size: 13.5px; }
kbd {
  background: var(--card-2); border: 1px solid var(--line); border-bottom-width: 2.5px;
  border-radius: 6px; padding: 1px 7px; font-size: 12px; font-family: inherit; font-weight: 700;
}
.upload-options { display: flex; gap: 22px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.check-line { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--muted); }
.check-line input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.check-line:has(input:checked) { color: var(--text); }
.pwd-input { margin-top: 14px; }
.pwd-input input {
  width: min(320px, 90%); padding: 11px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--card-2); color: var(--text); outline: none; text-align: center; transition: border .2s;
}
.pwd-input input:focus { border-color: var(--primary); }

.upload-steps { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 22px 0 8px; }
.ustep { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: 13px; transition: color .2s; }
.ustep i {
  width: 26px; height: 26px; border-radius: 50%; background: var(--card-2); border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12.5px; transition: all .2s;
}
.ustep.on { color: var(--primary); }
.ustep.on i { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(99,102,241,.4); }
.ustep.done { color: var(--ok); }
.ustep.done i { background: var(--ok); color: #fff; border-color: transparent; }
.ustep-line { width: 44px; height: 2px; background: var(--line); border-radius: 2px; }

.upload-prog { display: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 22px; margin-top: 14px; }
.upload-prog.on { display: block; animation: fadeIn .25s; }
.prog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }
.prog-head b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog-head span { color: var(--muted); font-size: 12.5px; flex-shrink: 0; }
.prog-track { height: 9px; background: var(--card-2); border-radius: 99px; overflow: hidden; }
.prog-fill {
  height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width .25s ease;
  position: relative; overflow: hidden;
}
.prog-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: shine 1.4s linear infinite;
}
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.upload-result { display: none; margin-top: 16px; }
.upload-result.on { display: block; animation: popIn .3s cubic-bezier(.34,1.4,.64,1); }
.ur-head { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.ok-ring {
  width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg,#16a34a,#22c55e);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(22,163,74,.35);
}
.ur-acts { display: flex; gap: 12px; justify-content: center; margin-top: 18px; padding-top: 4px; }

.link-row {
  display: flex; align-items: center; gap: 10px; background: var(--card-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 9px;
}
.link-row .lb { font-weight: 700; font-size: 12.5px; color: var(--muted); flex-shrink: 0; width: 64px; }
.link-row .lv { flex: 1; font-size: 12.5px; font-family: ui-monospace, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: rtl; text-align: left; }
.copy-btn {
  flex-shrink: 0; border: none; background: var(--grad); color: #fff; font-weight: 700; font-size: 12px;
  padding: 6px 14px; border-radius: 8px; cursor: pointer; transition: transform .15s;
}
.copy-btn:hover { transform: scale(1.06); }

.upload-aside { display: flex; flex-direction: column; gap: 16px; }
.tip-card h4 { font-size: 15px; margin-bottom: 15px; }
.tip-line { display: flex; gap: 9px; font-size: 13px; color: var(--muted); margin-bottom: 11px; line-height: 1.6; }
.tip-line .ic { flex-shrink: 0; }
.quota-bar { margin-bottom: 13px; }
.quota-bar .qt { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.quota-bar .qt span { color: var(--muted); }
.quota-bar .qt b { font-weight: 700; }
.quota-track { height: 8px; background: var(--card-2); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.quota-fill { height: 100%; background: var(--grad); border-radius: 99px; min-width: 6px; transition: width .4s; }

/* ---------- 认证页 ---------- */
.auth-shell { display: flex; align-items: flex-start; justify-content: center; padding: 60px 0 40px; }
.auth-card { width: min(430px, 100%); padding: 34px 32px; }
.auth-card h2 { font-size: 23px; font-weight: 800; }
.auth-card .sub { color: var(--muted); margin: 8px 0 22px; font-size: 13.5px; }
.auth-foot { text-align: center; margin-top: 20px; color: var(--muted); font-size: 13.5px; }
.auth-foot a { color: var(--primary); font-weight: 700; }
.auth-done { text-align: center; padding: 12px 0; }
.auth-done .ok-ring { margin-bottom: 18px; }
.auth-done h2 { margin-bottom: 8px; }

/* ---------- 会员宣传页 ---------- */
.promo-hero {
  position: relative; padding: 74px 0 30px; text-align: center; overflow: hidden;
}
.promo-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 55% 50% at 50% -10%, rgba(139,92,246,.16), transparent);
}
.promo-chip {
  display: inline-flex; padding: 7px 18px; border-radius: 99px; font-size: 13px; font-weight: 700;
  color: var(--primary-2); background: var(--grad-soft); border: 1px solid rgba(139,92,246,.25); margin-bottom: 20px;
}
.promo-hero h1 { font-size: clamp(28px, 4.6vw, 44px); font-weight: 900; letter-spacing: -.5px; }
.promo-sub { color: var(--muted); max-width: 680px; margin: 16px auto 28px; font-size: 15px; }
.promo-trust { display: flex; gap: 26px; justify-content: center; margin-top: 30px; color: var(--muted); font-weight: 600; font-size: 13.5px; flex-wrap: wrap; }
.promo-center-sub { text-align: center; color: var(--muted); margin-bottom: 30px; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1060px; margin: 26px auto 0; }
.feat-card { transition: all .22s; }
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feat-card .fi { font-size: 30px; margin-bottom: 12px; }
.feat-card b { font-size: 15.5px; display: block; margin-bottom: 7px; }
.feat-card p { color: var(--muted); font-size: 13px; line-height: 1.7; }

/* ---------- 会员套餐卡 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.plan-card {
  position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 24px 24px; text-align: center; transition: all .25s; overflow: hidden;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan-card.hot { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; }
.plan-t1 { border-top: 4px solid #3b82f6; }
.plan-t2 { border-top: 4px solid #10b981; }
.plan-t3 { border-top: 4px solid #f59e0b; }
.plan-t4 { border-top: 4px solid #111827; }
.hot-tag {
  position: absolute; top: 14px; right: -32px; transform: rotate(38deg);
  background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 38px;
  letter-spacing: 1px; box-shadow: 0 4px 12px rgba(99,102,241,.4);
}
.plan-ico { font-size: 34px; margin-bottom: 8px; }
.plan-name { font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.plan-price { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 4px; }
.plan-price .cur { color: var(--danger); font-weight: 800; font-size: 16px; }
.plan-price .now { font-size: 38px; font-weight: 900; color: var(--danger); letter-spacing: -1px; font-family: 'DIN Alternate', 'Segoe UI', sans-serif; }
.plan-price .old { color: var(--muted); font-size: 14px; text-decoration: line-through; }
.plan-days { color: var(--muted); font-size: 12.5px; margin-bottom: 18px; }
.plan-feats { list-style: none; text-align: left; margin: 0 6px 22px; }
.plan-feats li {
  padding: 7px 0 7px 26px; position: relative; font-size: 13px; color: var(--muted);
  border-bottom: 1px dashed var(--line);
}
.plan-feats li:last-child { border-bottom: none; }
.plan-feats li::before {
  content: '✓'; position: absolute; left: 2px; color: var(--ok); font-weight: 900;
}

/* ---------- 权限对比 / FAQ ---------- */
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cmp-table th, .cmp-table td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp-table th { background: var(--card-2); font-weight: 800; }
.cmp-table td:first-child { text-align: left; font-weight: 600; }
.cmp-table .hl { background: var(--grad-soft); }
.cmp-table tr:last-child td { border-bottom: none; }

.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.faq-item { padding: 0; cursor: pointer; }
.faq-item summary {
  padding: 17px 22px; font-weight: 700; font-size: 14.5px; list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 20px; font-size: 20px; color: var(--muted); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 18px; color: var(--muted); font-size: 13.5px; line-height: 1.8; }

.promo-cta {
  text-align: center; margin: 50px 0 20px; padding: 44px 24px;
  background: var(--grad); border-radius: var(--r-lg); color: #fff;
}
.promo-cta h2 { font-size: 24px; margin-bottom: 8px; }
.promo-cta p { opacity: .85; margin-bottom: 20px; }
.promo-cta .btn { background: #fff; color: var(--primary); }

/* ---------- 用户中心 ---------- */
.uc-shell { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; padding: 30px 0; }
.uc-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 86px; }
.uc-user { text-align: center; }
.uc-user .avatar { width: 62px; height: 62px; font-size: 26px; margin: 0 auto 12px; box-shadow: 0 10px 26px rgba(99,102,241,.35); }
.uc-user h3 { font-size: 17px; }
.uc-user .mail { color: var(--muted); font-size: 12.5px; margin: 3px 0 14px; }
.uc-mini { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 16px 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
.uc-mini div b { display: block; font-size: 15px; }
.uc-mini div span { color: var(--muted); font-size: 11px; }
.uc-nav { padding: 10px; }
.uc-nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px;
  font-weight: 600; font-size: 13.5px; color: var(--muted); transition: all .18s; margin-bottom: 2px;
}
.uc-nav a:hover { background: var(--card-2); color: var(--text); }
.uc-nav a.on { background: var(--grad); color: #fff; box-shadow: 0 5px 14px rgba(99,102,241,.3); }
.uc-nav .uc-exit { color: var(--danger); }
.uc-main { min-width: 0; }
.pane { display: none; }
.pane.on { display: block; animation: fadeIn .25s; }
.uc-panel { margin-bottom: 18px; }
.uc-panel h3 { font-size: 16.5px; margin-bottom: 16px; }
.uc-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.uc-panel-head h3 { margin-bottom: 0; }

.myfile-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 6px;
  border-bottom: 1px solid var(--line); transition: background .15s; border-radius: 10px;
}
.myfile-row:hover { background: var(--card-2); }
.myfile-row:last-child { border-bottom: none; }
.myfile-row .fc-icon { width: 42px; height: 42px; font-size: 11px; border-radius: 11px; }
.myfile-row .info { flex: 1; min-width: 0; }
.myfile-row .nm { font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.myfile-row .mt { color: var(--muted); font-size: 12px; margin-top: 2px; }
.row-acts { display: flex; gap: 7px; flex-shrink: 0; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; padding: 11px 12px; color: var(--muted); font-size: 12.5px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--card-2); }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty .ei { font-size: 44px; margin-bottom: 12px; }

/* ---------- 会员铭牌 ---------- */
.nameplate {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 14px; padding: 12px 16px; color: #fff; font-weight: 800;
  position: relative; overflow: hidden; box-shadow: var(--shadow-md); margin-top: 4px;
}
.nameplate::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  animation: npShine 3.2s ease-in-out infinite;
}
@keyframes npShine { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(120%); } }
.np-crown { font-size: 16px; }
.np-name { letter-spacing: 1px; }
.np-exp { font-size: 11.5px; opacity: .85; font-weight: 600; }
.np-1 { background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
.np-2 { background: linear-gradient(135deg, #059669, #34d399); }
.np-3 { background: linear-gradient(135deg, #b45309, #f59e0b 55%, #fbbf24); }
.np-4 {
  background: linear-gradient(135deg, #0f172a, #334155 45%, #0f172a);
  border: 1px solid rgba(251,191,36,.6);
}
.np-4 .np-name, .np-4 .np-exp { color: #fbbf24; }
.nameplate.np-none {
  background: var(--card-2); color: var(--muted); box-shadow: none; border: 1.5px dashed var(--line);
  cursor: pointer; transition: all .2s;
}
.nameplate.np-none::after { display: none; }
.nameplate.np-none:hover { border-color: var(--primary); color: var(--primary); }
.nameplate.big { padding: 18px 24px; font-size: 16px; }
.vip-status-card { background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(217,70,239,.06)); }

/* ---------- 签到 ---------- */
.signin-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.signin-left h3 { margin-bottom: 6px !important; }
.signin-left .muted { font-size: 13px; }
.week-dots { display: flex; gap: 8px; margin-top: 14px; }
.wdot {
  width: 30px; height: 30px; border-radius: 50%; background: var(--card-2); border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; color: var(--muted); font-weight: 800;
}
.wdot.on { background: var(--grad); color: #fff; border-color: transparent; }
.signin-right { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.points-num b { font-size: 34px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; line-height: 1.2; }
.points-num span { color: var(--muted); font-size: 12px; }
.streak-tag { font-size: 12px; color: var(--warn); font-weight: 700; }
.exchange-card h3 { margin-bottom: 14px; }
.custom-buy { margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 12px; }
.custom-buy b { font-size: 14.5px; }
.custom-buy input { padding: 11px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card-2); color: var(--text); outline: none; width: 170px; }
.custom-buy input:focus { border-color: var(--primary); }
.redeem-row { display: flex; gap: 12px; flex-wrap: wrap; }
.redeem-row input {
  flex: 1; min-width: 220px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--card-2); color: var(--text); font-family: ui-monospace, monospace; outline: none;
}
.redeem-row input:focus { border-color: var(--primary); }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.set-grid .uc-panel { margin-bottom: 0; }
.set-grid .uc-panel:last-child { grid-column: 1 / -1; }

.kv-list { display: flex; flex-direction: column; }
.kv { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; text-align: right; }

/* 支付弹窗 */
.pay-info { background: var(--card-2); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 18px; }
.pay-row { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 14px; }
.pay-row:last-child { margin-bottom: 0; }
.pay-row span { color: var(--muted); }
.pay-qrs { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.pay-qr { width: 180px; border-radius: 12px; border: 1px solid var(--line); }
.pay-qr-label { font-size: 13px; margin-bottom: 8px; font-weight: 700; }
.pay-note { margin-top: 14px; line-height: 1.7; font-size: 13px; }
.pay-state { margin-top: 12px; text-align: center; font-size: 12.5px; }

/* ---------- 文件详情页 ---------- */
.detail-shell { padding: 30px 0; }
.detail-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.detail-hero .fc-icon { width: 64px; height: 64px; font-size: 15px; border-radius: 17px; }
.detail-title { font-size: 19px; font-weight: 800; word-break: break-all; }
.detail-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.detail-actions { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.preview-frame { margin-top: 18px; text-align: center; }
.preview-frame img { max-height: 70vh; border-radius: 12px; }
.player-shell { width: 100%; }
.tabs { display: flex; gap: 8px; margin: 22px 0 14px; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 20px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card);
  font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; transition: all .18s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 5px 14px rgba(99,102,241,.3); }
.tab-pane { display: none; }
.tab-pane.on { display: block; animation: fadeIn .22s; }
.code-block {
  display: flex; align-items: center; gap: 12px; background: var(--card-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 15px; margin-bottom: 12px;
}
.code-block span { flex: 1; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-share { text-align: center; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.qr-share img { border-radius: 10px; border: 1px solid var(--line); }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--card); margin-top: 30px; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; padding: 30px 22px; gap: 20px; flex-wrap: wrap; }
.foot-brand b { font-size: 15.5px; }
.foot-brand p { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.foot-links { display: flex; gap: 22px; font-size: 13.5px; }
.foot-links a { color: var(--muted); font-weight: 600; transition: color .15s; }
.foot-links a:hover { color: var(--primary); }
.foot-copy { color: var(--muted); font-size: 12.5px; width: 100%; text-align: center; border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .file-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .upload-grid { grid-template-columns: 1fr; }
  .uc-shell { grid-template-columns: 1fr; }
  .uc-side { position: static; }
  .rank-list { grid-template-columns: 1fr; }
  .set-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .file-grid, .feat-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 12px 18px; gap: 6px; box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: inline-flex; }
  .uname { display: none; }
  .hero { padding: 50px 0 26px; }
  .myfile-row { flex-wrap: wrap; }
  .row-acts { width: 100%; justify-content: flex-end; }
  .foot-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   v3.1 追加：SVG 会员徽章 / 上传页重设计 / 详情页分区重设计
   ============================================================ */

/* ---------- SVG 会员徽章 ---------- */
.vip-svg-badge { display: inline-block; vertical-align: -4px; border-radius: 999px; box-shadow: 0 2px 8px rgba(30,30,60,.22); }
.vip-svg-badge.big { display: block; }
.nameplate-wrap { display: flex; justify-content: center; margin: 14px 0 6px; filter: drop-shadow(0 6px 16px rgba(99,102,241,.35)); }
.np-exp-line { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }

/* ---------- 用户菜单层级修复 ---------- */
.user-dropdown { z-index: 220; }
.site-nav { z-index: 200; }

/* ---------- 上传页 v3.1 ---------- */
.upload-hero { text-align: center; padding: 46px 0 30px; }
.uh-badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800;
  color: var(--primary); background: var(--grad-soft); border: 1px solid rgba(99,102,241,.25);
  padding: 7px 16px; border-radius: 999px; letter-spacing: .5px;
}
.upload-hero h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; letter-spacing: -.5px; margin-top: 16px; }
.upload-hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.upload-hero p { color: var(--muted); margin-top: 10px; font-size: 14.5px; }
.uh-chips { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.uh-chips span {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: 12.5px; color: var(--muted); font-weight: 600;
  box-shadow: 0 2px 10px rgba(30,40,80,.05);
}
.uh-chips b { color: var(--text); margin-left: 3px; }

.dropzone { padding: 0; border: 2px dashed var(--line); }
.dropzone:hover, .dropzone.dragover { border-color: var(--primary); background: var(--grad-soft); }
.dz-inner { display: flex; align-items: center; gap: 22px; padding: 34px 34px; text-align: left; flex-wrap: wrap; }
.dz-icon { width: 64px; height: 64px; margin: 0; flex-shrink: 0; border-radius: 19px; }
.dz-txt { flex: 1; min-width: 200px; }
.dz-txt h2 { font-size: 17.5px; font-weight: 800; }
.dz-txt .hint { margin-top: 7px; }
.dz-pick { flex-shrink: 0; }
.dropzone.dragover .dz-icon { transform: translateY(-3px); transition: transform .2s; }
.upload-options { gap: 12px; justify-content: stretch; margin: 0; padding: 0 34px 8px; flex-wrap: wrap; }
.opt-item {
  flex: 1; min-width: 230px; display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: var(--card-2); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 16px;
  transition: border-color .18s, box-shadow .18s;
}
.opt-item:hover { border-color: var(--primary); }
.opt-item input { display: none; }
.opt-box {
  width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; transition: all .18s; background: var(--card);
}
.opt-box svg { opacity: 0; transform: scale(.4); transition: all .18s; }
.opt-item input:checked ~ .opt-box { background: var(--grad); border-color: transparent; }
.opt-item input:checked ~ .opt-box svg { opacity: 1; transform: scale(1); }
.opt-item:has(input:checked) { border-color: var(--primary); box-shadow: 0 4px 14px rgba(99,102,241,.14); }
.opt-txt { display: flex; flex-direction: column; gap: 2px; }
.opt-txt b { font-size: 13.5px; }
.opt-txt small { color: var(--muted); font-size: 12px; }
.pwd-input { padding: 4px 34px 26px; }
.pwd-input input { width: 100%; max-width: 340px; }

.quota-line { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.quota-line:last-of-type { border-bottom: none; }
.quota-line span { color: var(--muted); }
.quota-line b { font-weight: 700; }
.quota-track { height: 8px; background: var(--card-2); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.quota-track .quota-fill { height: 100%; background: var(--grad); border-radius: 99px; transition: width .3s; }
.tip-card h4 { display: flex; align-items: center; gap: 8px; }
.tip-card h4 svg { color: var(--primary); }
.tip-line.danger { color: var(--danger); }

/* ---------- 详情页 v3.1：分区卡片 ---------- */
.detail-head { flex: 1; min-width: 220px; }
.detail-meta { align-items: center; }
.detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
.detail-meta svg { opacity: .75; }
.meta-user b, .meta-user .vip-svg-badge { vertical-align: -3px; }
.detail-sec {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  margin-top: 18px; overflow: hidden; box-shadow: var(--shadow-sm, 0 2px 12px rgba(30,40,80,.05));
}
.sec-head {
  display: flex; align-items: center; gap: 13px; padding: 17px 22px;
  border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(99,102,241,.045), transparent);
}
.sec-ico {
  width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 5px 14px rgba(99,102,241,.3);
}
.sec-txt b { font-size: 15.5px; display: block; }
.sec-txt small { color: var(--muted); font-size: 12.5px; }
.sec-body { padding: 20px 22px; }

.share-grid { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: start; }
.share-links .link-row { flex-wrap: wrap; padding: 11px 14px; }
.share-links .lr-info { width: 100%; display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.share-links .lr-info .lb { font-weight: 800; font-size: 13px; color: var(--text); }
.share-links .lr-info small { color: var(--muted); font-size: 11.5px; }
.share-links .lv { width: 100%; direction: ltr; }
.share-qr {
  text-align: center; padding: 14px; border: 1.5px dashed var(--line); border-radius: 14px;
  background: var(--card-2);
}
.share-qr img, .share-qr canvas, .share-qr table { border-radius: 10px; }
.share-qr small { display: block; margin-top: 9px; color: var(--muted); font-size: 11.5px; line-height: 1.6; }

.snippet-item { margin-bottom: 14px; }
.si-label { font-size: 12.5px; font-weight: 800; color: var(--muted); margin-bottom: 6px; letter-spacing: .3px; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ig-item { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; }
.ig-item.wide { grid-column: 1 / -1; }
.ig-item .k { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; margin-bottom: 5px; letter-spacing: .4px; }
.ig-item .v { font-weight: 650; font-size: 13.5px; word-break: break-all; }
.ig-item .v.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; letter-spacing: .5px; }

@media (max-width: 860px) {
  .share-grid { grid-template-columns: 1fr; }
  .share-qr { justify-self: center; min-width: 200px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .dz-inner { padding: 26px 22px; }
  .upload-options { padding: 0 22px 8px; }
  .pwd-input { padding: 4px 22px 24px; }
}

/* ================= v3.2 私信 / 头像 / Tab 详情面板 / 密码门禁 ================= */

/* 顶栏私信铃铛 */
.msg-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.bell-dot {
  position: absolute; top: -4px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: linear-gradient(135deg, #f43f5e, #ef4444); color: #fff;
  font-size: 10.5px; font-weight: 800; line-height: 17px; text-align: center;
  box-shadow: 0 2px 6px rgba(239,68,68,.4); animation: bellPulse 2s ease-in-out infinite;
}
@keyframes bellPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.ud-badge {
  display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 6px; border-radius: 9px;
  background: linear-gradient(135deg, #f43f5e, #ef4444); color: #fff; font-size: 11px; font-weight: 800; text-align: center;
}

/* 用户中心导航未读徽标 */
.uc-nav-badge { margin-left: auto; min-width: 19px; padding: 1px 6px; border-radius: 9px; background: linear-gradient(135deg, #f43f5e, #ef4444); color: #fff; font-size: 11px; font-weight: 800; text-align: center; }
.uc-nav a[data-tab] { display: flex; align-items: center; gap: 8px; }

/* 头像 */
.avatar-wrap { position: relative; width: 84px; margin: 0 auto 12px; }
.avatar-wrap .av-img, .avatar-wrap .avatar {
  width: 84px !important; height: 84px !important; border-radius: 50% !important;
  object-fit: cover; display: inline-flex; align-items: center; justify-content: center;
  border: 3px solid #fff; box-shadow: 0 6px 18px rgba(45,55,120,.18);
}
.avatar-edit {
  position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer;
  border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(99,102,241,.4); transition: .2s;
}
.avatar-edit:hover { transform: scale(1.1); }
.user-chip .av-img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: none; box-shadow: none; }
.uc-user > .avatar-wrap .av-img { display: block; }
.av-mini { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; vertical-align: -5px; margin-right: 6px; border: 1px solid var(--line); }
.up-cell { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.up-cell .vip-svg-badge { margin-left: 2px; }
.avatar-set-row { display: flex; gap: 18px; align-items: flex-start; }
.avatar-set-row .av-img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(45,55,120,.16); }

/* 私信列表 */
.msg-item { display: flex; gap: 14px; padding: 16px 6px; border-bottom: 1px dashed var(--line); }
.msg-item:last-child { border-bottom: none; }
.msg-item.unread { background: linear-gradient(90deg, rgba(99,102,241,.06), transparent 70%); border-radius: 12px; }
.msg-ico {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); color: var(--primary);
}
.msg-item.unread .msg-ico { background: var(--grad); color: #fff; }
.msg-body { flex: 1; min-width: 0; }
.msg-t { font-weight: 800; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.msg-dot { width: 8px; height: 8px; border-radius: 50%; background: #f43f5e; box-shadow: 0 0 6px rgba(244,63,94,.6); }
.msg-c { margin-top: 5px; color: var(--muted); font-size: 13.5px; line-height: 1.75; word-break: break-word; }
.msg-meta { margin-top: 7px; color: var(--muted); font-size: 11.5px; opacity: .8; }

/* 详情页 Tab 面板：三个标题并排，单显内容 */
.tab-panel { padding: 0; overflow: hidden; }
.tab-nav {
  display: flex; border-bottom: 1.5px solid var(--line); background: var(--card-2);
}
.tab-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 10px; border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 14.5px; font-weight: 750; color: var(--muted);
  position: relative; transition: color .2s;
}
.tab-btn:hover { color: var(--text); }
/*.tab-btn.on { color: var(--primary); } 详情页tab面板文字颜色*/
.tab-btn.on::after {
  content: ''; position: absolute; left: 20%; right: 20%; bottom: -1.5px; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--grad);
}
.tab-btn svg { flex: none; }
.tab-body { display: none; padding: 22px 24px 24px; }
.tab-body.on { display: block; animation: tabIn .25s ease; }
@keyframes tabIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.linkish { cursor: pointer; transition: color .15s; }
.linkish:hover { color: var(--primary); }

/* 密码门禁 */
.pwd-gate { max-width: 460px; margin: 6vh auto 0; text-align: center; padding: 44px 38px; }
.pg-icon {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 22px;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(99,102,241,.35);
}
.pwd-gate h2 { font-size: 21px; }
.pg-form { display: flex; flex-direction: column; gap: 13px; margin-top: 6px; }
.pg-form input {
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 15px;
  text-align: center; outline: none; transition: .2s; font-family: inherit; letter-spacing: 2px;
}
.pg-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.14); }
.pg-err {
  background: rgba(239,68,68,.1); color: var(--danger); border-radius: 10px;
  padding: 10px 14px; font-size: 13.5px; font-weight: 700; margin-bottom: 12px;
}
.pg-tip { font-size: 12px; margin-top: 16px; }

/* VIP 铭牌特效（大铭牌光晕呼吸） */
.vip-svg-badge.big {
  filter: drop-shadow(0 4px 14px rgba(99,102,241,.35));
  animation: badgeGlow 3.2s ease-in-out infinite;
}
@keyframes badgeGlow {
  0%, 100% { filter: drop-shadow(0 4px 14px rgba(99,102,241,.3)); }
  50% { filter: drop-shadow(0 6px 22px rgba(168,85,247,.55)); }
}
.vip-svg-badge.vt4.big { animation: badgeGlowGold 3.2s ease-in-out infinite; }
@keyframes badgeGlowGold {
  0%, 100% { filter: drop-shadow(0 4px 14px rgba(167,139,250,.4)); }
  50% { filter: drop-shadow(0 6px 24px rgba(240,171,252,.65)); }
}

@media (max-width: 860px) {
  .tab-nav { flex-direction: row; }
  .tab-btn { padding: 13px 4px; font-size: 13px; }
  .avatar-set-row { flex-direction: column; align-items: center; text-align: center; }
  .avatar-set-txt { text-align: center; }
}

/* ================= v3.3 验证码行 / 协议 / 广告位 / Tab 指示条 ================= */

/* 注册页验证码：按钮与输入框同行 */
.code-row { display: flex; gap: 10px; align-items: stretch; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn { flex: none; white-space: nowrap; padding: 0 16px; font-size: 13.5px; }

/* 注册协议复选框 */
.agree-row {
  display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 16px;
  cursor: pointer; -webkit-user-select: none; user-select: none;
}
.agree-row input { display: none; }
.agree-box {
  flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 6px;
  border: 1.8px solid var(--line); display: flex; align-items: center; justify-content: center;
  transition: .18s; background: #fff;
}
.agree-box svg { opacity: 0; transform: scale(.4); transition: .18s; }
.agree-row input:checked + .agree-box { background: var(--grad); border-color: transparent; box-shadow: 0 2px 8px rgba(99,102,241,.35); }
.agree-row input:checked + .agree-box svg { opacity: 1; transform: scale(1); }
.agree-txt { font-size: 13px; color: var(--muted); line-height: 1.6; }
.agree-link { color: var(--primary); font-weight: 700; cursor: pointer; text-decoration: none; }
.agree-link:hover { text-decoration: underline; }

/* 协议弹窗 */
.doc-mask {
  position: fixed; inset: 0; z-index: 1200; background: rgba(15,18,35,.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(4px); animation: fadeIn .2s ease;
}
.doc-dialog {
  background: var(--card); border-radius: 18px; width: min(620px, 100%);
  max-height: 84vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 70px rgba(20,25,60,.35); animation: docIn .28s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes docIn { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.doc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1.5px solid var(--line); font-size: 16.5px;
}
.doc-close { border: none; background: var(--card-2); width: 30px; height: 30px; border-radius: 9px; cursor: pointer; color: var(--muted); font-size: 13px; transition: .2s; }
.doc-close:hover { background: var(--danger); color: #fff; }
.doc-body { padding: 20px 24px; overflow-y: auto; font-size: 13.8px; line-height: 1.9; color: var(--text); }
.doc-body p { margin: 0 0 14px; }
.doc-body b { color: var(--primary); }
.doc-foot { padding: 14px 24px; border-top: 1.5px solid var(--line); display: flex; justify-content: flex-end; }

/* 广告位：融入页面留白，不突兀 */
.ad-slot {
  margin: 18px auto; max-width: 1100px; text-align: center;
  min-height: 0; border-radius: 14px; overflow: hidden;
}
.ad-slot ins, .ad-slot .adsbygoogle { display: block; margin: 0 auto; }
.ad-head { margin-top: 10px; }
.ad-home { margin-top: 6px; }
.ad-detail { margin: 18px 0; }
.ad-upload { margin: 16px 0 0; }
.ad-foot { margin-bottom: 18px; }

/* Tab 面板：滑动指示条 + 方向感过渡 */
.tab-panel { position: relative; }
.tab-nav { position: relative; }
.tab-ind {
  position: absolute; left: 0; bottom: -1.5px; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--grad); transition: transform .32s cubic-bezier(.4,0,.2,1), width .32s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -2px 10px rgba(99,102,241,.4); z-index: 1;
}
.tab-btn { position: relative; z-index: 2; transition: color .22s ease, transform .18s ease; }
.tab-btn:not(.on):hover { transform: translateY(-1px); }
.tab-btn:active { transform: scale(.96); }
.tab-body { display: none; padding: 22px 24px 24px; }
.tab-body.on { display: block; }
.tab-body.slide-l { animation: tabSlideL .34s cubic-bezier(.25,.8,.3,1); }
.tab-body.slide-r { animation: tabSlideR .34s cubic-bezier(.25,.8,.3,1); }
@keyframes tabSlideL { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes tabSlideR { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }

/* 文件详情信息栏：上传者行紧凑置于首行 */
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.ig-item { padding: 11px 14px; background: var(--card-2); border-radius: 11px; border: 1px solid transparent; transition: .2s; }
.ig-item:hover { border-color: var(--line); }
.ig-item .k { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.ig-item .v { font-size: 13.8px; font-weight: 600; word-break: break-all; }
.ig-item.wide { grid-column: 1 / -1; }
.up-first { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: linear-gradient(120deg, rgba(99,102,241,.06), transparent 70%), var(--card-2); }
.up-first .k { margin: 0; flex: none; }
.up-first .up-cell { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.up-cell .vip-svg-badge { transform-origin: left center; }
.up-lock { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--card); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }

/* 用户中心侧栏铭牌：稍微小一点 */
.uc-user .nameplate-wrap svg { width: 128px; height: auto; }
.uc-user .nameplate-wrap { margin: 10px 0 4px; }
@media (max-width: 640px) {
  .info-grid { grid-template-columns: 1fr; }
  .up-lock { margin-left: 0; }
}

/* ================= v3.4 上传区加大 / 404 页 ---------------- */
.upload-grid .dropzone { min-height: 320px; display: flex; flex-direction: column; }
.upload-grid .dropzone .dz-inner { padding: 62px 44px 30px; flex: 1; align-content: center; }
.upload-grid .dropzone .dz-icon { width: 84px; height: 84px; }
.upload-grid .dropzone .dz-txt h2 { font-size: 19px; }
.upload-grid .dropzone .dz-txt .hint { font-size: 14px; }
.upload-grid .dropzone .dz-pick { padding: 12px 30px; font-size: 15px; }
.upload-grid .upload-options { padding: 0 44px 10px; }
.upload-grid .pwd-input { padding: 4px 44px 28px; }

/* ================= v3.5 多文件上传任务列表 ---------------- */
.upload-tasks { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.utask { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; box-shadow: var(--shadow-sm); animation: popIn .28s cubic-bezier(.34,1.3,.64,1); }
.ut-head { display: flex; align-items: center; gap: 12px; }
.ut-ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 800; color: #fff; flex-shrink: 0; }
.ut-ico.cat-image { background: linear-gradient(135deg, #10b981, #059669); }
.ut-ico.cat-video { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.ut-ico.cat-audio { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.ut-ico.cat-other { background: linear-gradient(135deg, #64748b, #475569); }
.ut-nm { flex: 1; min-width: 0; }
.ut-nm b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ut-nm i { font-style: normal; color: var(--muted); font-size: 12px; }
.ut-state { flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.utask.running .ut-state { color: var(--primary); }
.utask.done .ut-state { color: var(--ok); }
.utask.dup .ut-state { color: var(--warn); }
.utask.failed .ut-state { color: var(--danger); }
.ut-track { height: 7px; background: var(--card-2); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.ut-fill { height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width .25s ease; }
.utask.done .ut-fill { background: var(--ok); }
.utask.dup .ut-fill { background: linear-gradient(90deg, #f59e0b, #f97316); }
.utask.failed .ut-fill { background: var(--danger); }
.ut-extra { margin-top: 10px; }
.utask.done .ut-extra, .utask.dup .ut-extra { animation: popIn .3s cubic-bezier(.34,1.4,.64,1); }
.utask .link-row { padding: 8px 10px; }
.ut-dup { font-size: 13px; line-height: 1.7; padding: 10px 14px; border-radius: 10px; background: rgba(217,119,6,.08); color: var(--warn); border: 1px dashed rgba(217,119,6,.4); }
.ut-dup a { color: var(--primary); font-weight: 700; text-decoration: underline; }
.ut-dup.err { background: rgba(220,38,38,.06); color: var(--danger); border-color: rgba(220,38,38,.35); }
.utask .ur-acts { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

/* ================= v3.5 我的文件：分类 + 缩略图 ---------------- */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cat-tab-wrap { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); overflow: hidden; }
.cat-tab { border: none; background: transparent; padding: 7px 14px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; border-radius: 999px; transition: all .15s; display: inline-flex; align-items: center; gap: 5px; }
.cat-tab-wrap .cat-tab { border-radius: 999px 0 0 999px; }
.cat-tab i { font-style: normal; font-size: 11px; opacity: .75; }
.cat-tab.on { background: var(--grad); color: #fff; box-shadow: 0 3px 10px rgba(99,102,241,.35); }
.cat-tab:not(.on):hover { color: var(--text); }
.cat-ren { border: none; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; padding: 7px 9px 7px 2px; }
.cat-ren:hover { color: var(--primary); }
.cat-tab-wrap .cat-ren { padding-right: 8px; }
.cat-tag { margin-left: 8px; font-size: 10.5px; padding: 2px 8px; vertical-align: 1px; background: var(--grad-soft); color: var(--primary); }
.fc-thumb { width: 42px; height: 42px; border-radius: 11px; overflow: hidden; flex-shrink: 0; background: var(--card-2); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.fc-thumb:empty::after { content: attr(data-fb); font-size: 9.5px; font-weight: 800; color: var(--muted); }
.fc-thumb .fthumb { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ================= v3.5 意见反馈页 ---------------- */
.fb-shell { max-width: 1080px; margin: 0 auto; padding: 34px 20px 60px; }
.fb-hero { text-align: center; margin-bottom: 26px; }
.fb-hero h1 { font-size: 27px; font-weight: 900; letter-spacing: .5px; }
.fb-hero p { margin-top: 8px; font-size: 14px; }
.fb-login-card { max-width: 460px; margin: 40px auto; text-align: center; padding: 46px 34px; }
.fb-login-card h2 { margin-top: 10px; font-size: 20px; }
.fb-login-card p { margin-top: 8px; line-height: 1.7; }
.fb-grid { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .fb-grid { grid-template-columns: 1fr; } }
.fb-card { padding: 22px; }
.fb-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.fb-card .field { margin-bottom: 14px; }
.fb-card .field label { font-size: 13px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 6px; }
.fb-card .field input, .fb-card .field textarea { width: 100%; }
.fb-list-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.fb-list-head h3 { font-size: 16.5px; font-weight: 800; }
.fb-thread { margin-bottom: 14px; }
.fb-thread-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fb-thread-head .avatar, .fb-thread-head .av-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.fb-thread-head .avatar { display: flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; }
.fb-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.fb-who b { font-size: 13.5px; }
.fb-who i { font-style: normal; font-size: 12px; }
.fb-badge { display: inline-flex; }
.fb-badge svg { height: 18px; width: auto; }
.fb-title { font-size: 14.5px; font-weight: 800; margin-bottom: 6px; }
.fb-content { font-size: 13.5px; line-height: 1.75; color: var(--text); opacity: .92; }
.fb-replies { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.fb-reply { border-radius: 13px; padding: 11px 14px; font-size: 13px; line-height: 1.65; }
.fb-reply .fr-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.fb-reply .fr-head b { font-size: 12.5px; }
.fb-reply .fr-head i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.fb-reply.admin { background: var(--grad-soft); border: 1px solid rgba(99,102,241,.18); }
.fb-reply.admin .fr-head b { color: var(--primary); }
.fb-reply.me { background: var(--card-2); border: 1px solid var(--line); }
.fb-reply-row { display: flex; gap: 10px; margin-top: 12px; }
.fb-reply-row input { flex: 1; }

/* ================= v3.5.1 精选反馈卡片墙 ---------------- */
.fb-show-sec { margin-top: 34px; }
.fb-show-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.fb-show-head h3 { font-size: 18px; font-weight: 900; }
.fb-show-head span { font-size: 12.5px; }
.fb-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 760px) { .fb-wall { grid-template-columns: 1fr; } }
.fb-show-card { padding: 20px; position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.fb-show-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); opacity: .85; }
.fb-show-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.fb-show-card .fb-thread-head { margin-bottom: 10px; }
.fb-show-card .fb-replies { margin-top: 12px; }
.fb-shell .fb-login-card { margin: 26px auto 8px; }

/* ================= v3.6 精选反馈：固定三列 + 参与卡片 + 翻页 ---------------- */
.fb-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 960px) { .fb-wall { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .fb-wall { grid-template-columns: 1fr; } }
.fb-join-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 26px 20px; border: 1.6px dashed rgba(99,102,241,.45); background: linear-gradient(160deg, rgba(99,102,241,.05), rgba(217,70,239,.04)); box-shadow: none; }
.fb-join-card::before { display: none; }
.fb-join-card:hover { transform: none; box-shadow: none; border-color: rgba(99,102,241,.75); }
.fb-join-card .fj-emoji { font-size: 40px; line-height: 1; }
.fb-join-card .fj-title { font-size: 15.5px; font-weight: 800; margin-top: 10px; }
.fb-join-card .fj-text { font-size: 12.5px; line-height: 1.7; margin-top: 8px; max-width: 250px; }
.fb-join-card .fj-btns { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.fb-join-card .btn { margin-top: 4px; }
.fb-pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; }
.fb-pager a, .fb-pager .cur { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-size: 13px; font-weight: 700; color: var(--text); transition: all .15s; }
.fb-pager a:hover { border-color: var(--primary); color: var(--primary); }
.fb-pager .cur { background: var(--grad); color: #fff; border-color: transparent; }

/* ================= v3.6.1 积分兑换卡（左右分区） ---------------- */
.exchange-card { display: grid; grid-template-columns: 1fr 220px; gap: 22px; align-items: center; }
@media (max-width: 760px) { .exchange-card { grid-template-columns: 1fr; } }
.exchange-card .ex-left h3 { font-size: 16.5px; font-weight: 800; }
.exchange-card .ex-tip { font-size: 12.5px; margin-top: 6px; }
.ex-form { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.ex-form select { min-width: 200px; }
.ex-right { background: var(--grad-soft, rgba(99,102,241,.08)); border: 1px solid rgba(99,102,241,.16); border-radius: 16px; padding: 16px 18px; text-align: center; }
.ex-points b { display: block; font-size: 30px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.15; }
.ex-points span { font-size: 12px; color: var(--muted); }
.ex-max { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.ex-max b { color: var(--primary); }
.ex-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 11px; }
.ex-chip { border: 1.5px solid rgba(99,102,241,.35); background: var(--card); color: var(--primary); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.ex-chip:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-1px); }
.ex-chip-max { border-style: dashed; }

/* ================= v3.6.1 会员问候卡 ---------------- */
.greet-card { background: linear-gradient(135deg, rgba(99,102,241,.10), rgba(217,70,239,.08)), var(--card); border: 1px solid rgba(99,102,241,.18); }
.greet-main { padding: 4px 2px; }
.greet-line { font-size: 18px; font-weight: 600; line-height: 1.65; }
.greet-line .greet-tier { font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin: 0 2px; }
.greet-line .greet-text { font-weight: 900; color: var(--text); }
.greet-exp { margin-top: 10px; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.greet-exp b { color: var(--text); font-weight: 800; }

/* ================= v3.6.1 用户中心手机端：菜单折叠 + 顶栏精简 ---------------- */
.uc-menu-toggle {
  display: none; align-items: center; justify-content: space-between;
  width: 100%; padding: 13px 16px; font-size: 14px; font-weight: 800; color: var(--text);
  cursor: pointer; border: none; text-align: left;
}
.uc-menu-toggle .uc-menu-arrow { color: var(--muted); font-size: 13px; transition: transform .2s; }
@media (max-width: 680px) {
  /* 顶栏只留 logo 图标，隐藏文字，避免挤压 */
  .brand-name { display: none; }
  .brand { gap: 0; }
  /* 用户中心菜单折叠 */
  .uc-menu-toggle { display: flex; }
  .uc-nav { display: none; padding: 8px; }
  .uc-nav.open { display: block; animation: popIn .22s cubic-bezier(.34,1.3,.64,1); }
  /* 文件详情页适配 */
  .detail-hero { gap: 13px; }
  .detail-hero .fc-icon { width: 46px; height: 46px; font-size: 11px; border-radius: 13px; }
  .detail-title { font-size: 15.5px; }
  .detail-meta { gap: 9px; font-size: 11.5px; margin-top: 6px; }
  .detail-actions { width: 100%; margin-left: 0; }
  .detail-actions .btn { flex: 1; justify-content: center; padding: 11px 0; font-size: 14px; }
  /* 外链栏适配 */
  .share-links .link-row { padding: 9px 10px; border-radius: 10px; gap: 8px; }
  .share-links .lr-info { gap: 7px; }
  .share-links .lr-info .lb { font-size: 12px; }
  .share-links .lr-info small { display: none; }
  .share-links .lv { font-size: 11px; }
  .copy-btn { padding: 5px 12px; font-size: 11.5px; }
  /* 上传结果任务卡 */
  .ut-ico { width: 30px; height: 30px; font-size: 8.5px; }
  .ut-nm b { font-size: 12.5px; }
}

/* ================= v2.2.0 积分兑换：下拉美化 + 说明移到按钮下方 ---------------- */
.ex-form select {
  appearance: none; -webkit-appearance: none;
  border: 1.5px solid var(--line); background: var(--card-2); color: var(--text);
  font-size: 13.5px; font-weight: 700; border-radius: 12px; padding: 11px 40px 11px 15px;
  outline: none; cursor: pointer; min-width: 210px; transition: border-color .15s, box-shadow .15s;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.ex-form select:hover { border-color: #c7d2fe; }
.ex-form select:focus { border-color: var(--primary); box-shadow: 0 0 0 3.5px rgba(99,102,241,.14); }
.exchange-card .ex-tip { margin-top: 12px; font-size: 12.5px; }
.ex-form .btn { align-self: stretch; }

/* ================= v2.2.0 退出登录：独立隔断 + 中性色 hover 变红 ---------------- */
.uc-nav .uc-exit {
  display: flex; align-items: center; gap: 9px;
  margin: 10px 8px 2px; padding: 11px 14px; border-top: 1px dashed var(--line);
  color: var(--muted); font-weight: 700; border-radius: 12px;
  transition: color .15s, background .15s;
}
.uc-nav .uc-exit:hover { color: var(--danger); background: rgba(239,68,68,.07); }

/* ================= v2.2.0 签到圆点：今天在最左，微调尺寸 ---------------- */
.week-dots { flex-wrap: wrap; }
.wdot { width: 32px; height: 32px; }

/* ================= v2.3.1 站内私信：正式通知信风格 ---------------- */
#pane-msg .msg-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 17px 13px 15px; margin-bottom: 10px;
  transition: border-color .15s, box-shadow .15s;
}
#pane-msg .msg-item:hover { border-color: rgba(99,102,241,.32); box-shadow: 0 2px 10px rgba(15,23,42,.05); }
#pane-msg .msg-item.unread { border-color: rgba(99,102,241,.38); background: linear-gradient(90deg, rgba(99,102,241,.045), transparent 42%), var(--card); box-shadow: inset 3px 0 0 0 #6366f1; }
#pane-msg .msg-ico {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
#pane-msg .msg-ico.ico-admin { background: #eef2ff; color: #6366f1; }
#pane-msg .msg-ico.ico-sys { background: #ecfdf5; color: #10b981; }
#pane-msg .msg-ico.ico-gift { background: #fff7ed; color: #f97316; }
#pane-msg .msg-ico.ico-notice { background: #f1f5f9; color: #64748b; }
#pane-msg .msg-body { flex: 1; min-width: 0; }
#pane-msg .msg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
#pane-msg .msg-t { font-weight: 800; font-size: 14.5px; line-height: 1.5; word-break: break-word; }
#pane-msg .msg-item.unread .msg-t { color: var(--text); }
#pane-msg .msg-time { flex: none; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
#pane-msg .msg-c { margin-top: 6px; color: var(--muted); font-size: 13.5px; line-height: 1.8; word-break: break-word; }
#pane-msg .msg-c b { color: var(--text); }
#pane-msg .msg-c a { color: var(--primary); }
#pane-msg .msg-meta { margin-top: 10px; display: flex; align-items: center; gap: 10px; }
#pane-msg .msg-sender { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; }
#pane-msg .msg-sender::before { content: ''; width: 7px; height: 7px; border-radius: 50%; flex: none; }
#pane-msg .msg-sender.s-admin { color: #6366f1; }
#pane-msg .msg-sender.s-admin::before { background: #6366f1; }
#pane-msg .msg-sender.s-sys { color: #059669; }
#pane-msg .msg-sender.s-sys::before { background: #10b981; }
#pane-msg .msg-state { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
#pane-msg .msg-state.st-unread { background: rgba(244,63,94,.1); color: #e11d48; }
#pane-msg .msg-state.st-read { background: var(--card-2); color: var(--muted); }
@media (max-width: 560px) {
  #pane-msg .msg-item { padding: 13px 13px 11px 11px; gap: 11px; }
  #pane-msg .msg-ico { width: 32px; height: 32px; }
  #pane-msg .msg-ico svg { width: 16px; height: 16px; }
  #pane-msg .msg-t { font-size: 13.5px; }
  #pane-msg .msg-c { font-size: 12.5px; }
}
