/* ============================================================
   星云盘 · 登录注册 + 网盘主界面
   ============================================================ */

/* ── 登录 / 注册 ────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}
.auth-aside {
  position: relative; overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  display: flex; flex-direction: column; gap: 26px;
  background: linear-gradient(150deg, rgba(109,140,255,.18), rgba(34,211,238,.10) 60%, transparent);
  border-right: 1px solid var(--border);
}
.auth-aside::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(109,140,255,.35), transparent 68%);
  top: -180px; right: -140px; filter: blur(10px);
}
.auth-aside::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.28), transparent 68%);
  bottom: -160px; left: -120px;
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-points { display: grid; gap: 18px; margin-top: auto; }
.auth-point { display: flex; gap: 13px; align-items: flex-start; }
.auth-point .pi {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: grid; place-items: center; color: var(--brand);
  background: var(--surface-2); border: 1px solid var(--border);
}
.auth-point b { font-size: 14px; display: block; }
.auth-point span { font-size: 12.5px; color: var(--text-2); line-height: 1.65; }
.auth-quote { font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }

.auth-main { display: grid; place-items: center; padding: clamp(24px, 5vw, 56px) 20px; }
.auth-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 20px; }
.auth-head { display: flex; flex-direction: column; gap: 7px; }
.auth-head h2 { font-size: 25px; letter-spacing: -.02em; }
.auth-head p { color: var(--text-2); font-size: 13.5px; }
.auth-tabs { display: flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.auth-tab { flex: 1; height: 34px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: .18s; }
.auth-tab.active { background: var(--solid); color: var(--text); box-shadow: var(--shadow-sm); }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-alt { text-align: center; font-size: 13px; color: var(--muted); }
.auth-alt a { color: var(--brand); font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }
.strength { display: flex; gap: 5px; align-items: center; }
.strength i { height: 4px; flex: 1; border-radius: 99px; background: var(--surface-3); transition: background .2s; }
.strength.s1 i:nth-child(1) { background: var(--danger); }
.strength.s2 i:nth-child(-n+2) { background: var(--warn); }
.strength.s3 i:nth-child(-n+3) { background: var(--success); }
.strength.s4 i { background: var(--success); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.demo-hint {
  padding: 11px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.7;
  background: var(--grad-soft); border: 1px solid rgba(109,140,255,.26); color: var(--text-2);
}
.auth-back { position: fixed; top: 18px; left: 18px; z-index: 10; }

@media (max-width: 900px) {
  .auth-page { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
}

/* 兑换成功提示 */
.redeem-ok {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(61,220,151,.10);
  border: 1px solid rgba(61,220,151,.34);
  animation: pop .26s var(--ease);
}
.redeem-ok .ro-ico { color: var(--success); display: grid; place-items: center; }
.redeem-ok b { display: block; font-size: 13.5px; }
.redeem-ok span { font-size: 12px; color: var(--text-2); }

/* 会员卡 */
.plan-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(109,140,255,.16), rgba(34,211,238,.12));
  border: 1px solid rgba(109,140,255,.3);
}
.plan-card .pc-ico {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(109,140,255,.9);
}
.plan-card b { font-size: 15px; display: block; }
.plan-card .pc-sub { font-size: 12.5px; color: var(--text-2); }
.plan-card .pc-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ── 网盘外壳 ───────────────────────────────────────────── */
.drive {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}
.sidebar {
  border-right: 1px solid var(--border);
  background: color-mix(in srgb, var(--solid) 72%, transparent);
  backdrop-filter: blur(14px);
  display: flex; flex-direction: column;
  padding: 14px 12px;
  gap: 6px;
  overflow-y: auto;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; font-weight: 800; font-size: 15.5px; }
.side-group { padding: 12px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.side-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  transition: background .16s, color .16s;
  width: 100%; text-align: left;
}
.side-item:hover { background: var(--hover); color: var(--text); }
.side-item.active { background: var(--active); color: var(--brand); font-weight: 600; }
.side-item .count { margin-left: auto; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.side-item.active .count { color: var(--brand); }
.side-spacer { flex: 1; }
.storage-card { padding: 13px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); display: grid; gap: 9px; }
.storage-card .between { font-size: 12.5px; }
.storage-bar { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; display: flex; }
.storage-bar i { display: block; height: 100%; }
.storage-bar .used { background: var(--grad); }
.storage-bar .trash { background: var(--warn); opacity: .7; }
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 12px; width: 100%; text-align: left;
  transition: background .16s;
}
.user-chip:hover { background: var(--hover); }
.avatar {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--grad);
  background-size: cover; background-position: center;
  color: #fff; font-weight: 700; font-size: 13px;
  text-shadow: 0 1px 3px rgba(6,10,26,.55);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  overflow: hidden; user-select: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 52px; height: 52px; border-radius: 15px; font-size: 19px; }
.user-chip b { font-size: 13px; display: block; line-height: 1.3; }
.user-chip span { font-size: 11.5px; color: var(--muted); }

.main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }

/* ── 顶栏 ───────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  backdrop-filter: blur(14px);
  min-height: 60px;
  flex-wrap: wrap;
}
.search-box { position: relative; flex: 1; max-width: 420px; min-width: 150px; }
.search-box .input { height: 38px; padding-left: 38px; border-radius: 11px; }
.search-box > .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.seg { display: flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.seg button { width: 30px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); transition: .15s; }
.seg button.active { background: var(--solid); color: var(--brand); box-shadow: var(--shadow-sm); }

/* ── 内容区 ─────────────────────────────────────────────── */
.content { flex: 1; overflow-y: auto; padding: 16px 18px 90px; position: relative; }
.content-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.crumbs { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; font-size: 13.5px; min-width: 0; }
.crumb { padding: 5px 9px; border-radius: 8px; color: var(--text-2); font-weight: 500; transition: .15s; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb:hover { background: var(--hover); color: var(--text); }
.crumb.current { color: var(--text); font-weight: 700; }
.crumb-sep { color: var(--muted); display: grid; place-items: center; }

/* 选择工具条 */
.selbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 14px; margin-bottom: 12px;
  border-radius: 13px;
  background: var(--grad-soft); border: 1px solid rgba(109,140,255,.3);
  animation: pop .18s var(--ease);
}
.selbar b { font-size: 13px; }

/* ── 文件列表 ───────────────────────────────────────────── */
.filelist { display: flex; flex-direction: column; gap: 2px; }
.list-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 110px 118px 92px 44px;
  gap: 8px; align-items: center;
  padding: 8px 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--border);
}
.list-head button { display: flex; align-items: center; gap: 5px; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.list-head button:hover { color: var(--text); }
.list-head .active { color: var(--brand); }

.file-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 110px 118px 92px 44px;
  gap: 8px; align-items: center;
  padding: 8px 12px; border-radius: 11px;
  cursor: pointer; position: relative;
  transition: background .14s, box-shadow .14s;
  user-select: none;
}
.file-row:hover { background: var(--hover); }
.file-row.selected { background: var(--active); box-shadow: inset 0 0 0 1px rgba(109,140,255,.35); }
.file-row.dragging { opacity: .45; }
.file-row.drop-target { background: rgba(109,140,255,.2); box-shadow: inset 0 0 0 1.5px var(--brand); }
.file-cell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text-2); }
.file-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.file-name .ico { color: var(--brand); }
.file-name .label { font-size: 13.5px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name .star { color: var(--warn); font-size: 12px; }
.file-check { width: 17px; height: 17px; }
.file-actions { display: flex; justify-content: flex-end; opacity: 0; transition: opacity .15s; }
.file-row:hover .file-actions, .file-row.selected .file-actions { opacity: 1; }
.file-actions button { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.file-actions button:hover { background: var(--surface-3); color: var(--text); }

/* 网格视图 */
.filegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.tile {
  border-radius: 15px; border: 1px solid var(--border);
  background: var(--surface); overflow: hidden;
  cursor: pointer; transition: transform .18s var(--ease), border-color .18s, box-shadow .18s;
  position: relative; user-select: none;
}
.tile:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.tile.selected { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(109,140,255,.35); }
.tile.drop-target { border-color: var(--brand); background: rgba(109,140,255,.16); }
.tile-thumb {
  height: 104px; display: grid; place-items: center;
  background: var(--surface-2); position: relative; overflow: hidden;
}
.tile-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tile-thumb .ico { font-size: 34px; }
.tile-body { padding: 9px 11px 11px; display: grid; gap: 3px; }
.tile-body .label { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-body .meta { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; }
.tile-check { position: absolute; top: 8px; left: 8px; z-index: 2; opacity: 0; transition: opacity .15s; }
.tile:hover .tile-check, .tile.selected .tile-check { opacity: 1; }
.tile.selected .tile-check { opacity: 1; }
.tile-menu { position: absolute; top: 6px; right: 6px; z-index: 2; opacity: 0; transition: opacity .15s; }
.tile:hover .tile-menu { opacity: 1; }
.tile-menu button { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--solid) 80%, transparent); color: var(--text); backdrop-filter: blur(6px); }

/* 拖拽上传遮罩 */
.dropzone {
  position: absolute; inset: 10px; z-index: 30;
  border: 2px dashed var(--brand); border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(4px);
  display: grid; place-items: center; gap: 10px;
  pointer-events: none;
  animation: fade .15s;
}

/* ── 上传面板 ───────────────────────────────────────────── */
.upload-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: min(94vw, 372px);
  background: var(--solid); border: 1px solid var(--border);
  border-radius: 17px; box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: pop .24s var(--ease);
}
.upload-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13.5px; font-weight: 600; }
.upload-list { max-height: 268px; overflow-y: auto; padding: 8px; display: grid; gap: 6px; }
.upload-item { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 10px; background: var(--surface-2); }
.upload-item .uinfo { flex: 1; min-width: 0; }
.upload-item .uname { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item .umeta { font-size: 11px; color: var(--muted); display: flex; gap: 8px; }
.upload-item.done .umeta { color: var(--success); }
.upload-item.error .umeta { color: var(--danger); }
.upload-item .cancel { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); flex: none; }
.upload-item .cancel:hover { background: var(--hover); color: var(--text); }

/* ── 预览 ───────────────────────────────────────────────── */
.preview-mask {
  position: fixed; inset: 0; z-index: 350;
  background: rgba(3,6,14,.92);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column;
  animation: fade .2s;
}
.preview-top { display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: #e9edf9; }
.preview-top .ptitle { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-top .pmeta { font-size: 12px; opacity: .6; }
.preview-top .btn { color: #e9edf9; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.07); }
.preview-top .btn:hover { background: rgba(255,255,255,.14); }
.preview-stage { flex: 1; display: grid; place-items: center; padding: 0 18px 24px; min-height: 0; }
.preview-stage img, .preview-stage video { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); }
.preview-stage audio { width: min(560px, 90vw); }
.preview-stage iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; background: #fff; }
.preview-text {
  width: min(1000px, 94vw); height: 100%; max-height: 100%;
  overflow: auto; padding: 20px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  color: #dfe6f5; font-family: var(--mono); font-size: 12.5px; line-height: 1.75;
  white-space: pre-wrap; word-break: break-word;
}
.preview-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.preview-nav:hover { background: rgba(255,255,255,.2); }
.preview-nav.prev { left: 16px; }
.preview-nav.next { right: 16px; }

/* ── 分享页 ─────────────────────────────────────────────── */
.share-page { min-height: 100vh; display: flex; flex-direction: column; }
.share-wrap { flex: 1; display: grid; place-items: center; padding: clamp(24px, 5vw, 60px) 18px; }
.share-card { width: 100%; max-width: 620px; display: flex; flex-direction: column; gap: 18px; }
.share-hero { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); }
.share-hero .si { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; background: var(--grad-soft); color: var(--brand); flex: none; }
.share-hero h2 { font-size: 19px; word-break: break-all; }
.share-lock { display: flex; flex-direction: column; gap: 13px; padding: 22px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); }
.share-list { display: grid; gap: 3px; padding: 10px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); }
.share-file { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; font-size: 13px; transition: background .15s; }
.share-file:hover { background: var(--hover); }
.share-file .ico { color: var(--brand); }

/* ── 设置页 ─────────────────────────────────────────────── */
.settings { display: grid; gap: 18px; max-width: 860px; }
.set-card { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 16px; }
.set-card h3 { font-size: 15px; }
.set-card > p { font-size: 13px; color: var(--text-2); }
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.stat-tile { padding: 15px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); display: grid; gap: 4px; }
.stat-tile b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-tile span { font-size: 12px; color: var(--muted); }
.bar-row { display: grid; gap: 6px; }
.bar-row .between { font-size: 12.5px; }
.bar-row .bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; border-radius: 99px; }
.timeline { display: grid; gap: 2px; }
.timeline-item { display: flex; gap: 11px; padding: 9px 10px; border-radius: 10px; font-size: 13px; align-items: center; }
.timeline-item:hover { background: var(--hover); }
.timeline-item .ico { color: var(--muted); }
.timeline-item time { margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.session-item { display: flex; gap: 11px; padding: 11px; border-radius: 12px; background: var(--surface-2); align-items: center; font-size: 12.5px; }
.session-item .ua { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 移动端 ─────────────────────────────────────────────── */
.mobile-only { display: none; }
@media (max-width: 860px) {
  .drive { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; z-index: 120; top: 0; bottom: 0; left: 0;
    width: 264px; transform: translateX(-102%);
    transition: transform .26s var(--ease);
    background: var(--solid);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: none; }
  .sidebar-mask {
    position: fixed; inset: 0; z-index: 110;
    background: rgba(0,0,0,.5); animation: fade .18s;
    touch-action: none;          /* 遮罩上不触发页面滚动 */
  }
  /* 安卓触控：点击区域至少 46px，去掉系统高亮方块 */
  .sidebar { overscroll-behavior: contain; }
  .sidebar, .sidebar a, .sidebar button { -webkit-tap-highlight-color: transparent; }
  .sidebar .side-item { min-height: 46px; padding: 12px 13px; font-size: 14.5px; }
  .sidebar .side-item:active { background: var(--active); }
  .sidebar .user-chip { min-height: 54px; }
  .sidebar .side-group { padding: 14px 11px 7px; }
  .mobile-only { display: inline-flex; }
  .list-head { display: none; }
  .file-row { grid-template-columns: 30px minmax(0, 1fr) 36px; }
  .file-row .hide-mobile { display: none; }
  .content { padding: 12px 12px 120px; }
  .topbar { padding: 9px 12px; gap: 8px; }
  .topbar-actions { margin-left: 0; width: 100%; }
  .search-box { max-width: none; order: -1; }
  .upload-panel { right: 10px; left: 10px; bottom: 10px; width: auto; }
  .filegrid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 9px; }
  .tile-thumb { height: 84px; }
}

/* ── 头像编辑 ───────────────────────────────────────────── */
.avatar-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.avatar-edit { flex: none; }
.avatar-edit .avatar { width: 64px; height: 64px; border-radius: 18px; font-size: 24px; }
.avatar-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.avatar-actions .hint { flex-basis: 100%; }

/* ── 会员中心 ───────────────────────────────────────────── */
.member-page { padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); flex: 1; }
.member-hero {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(109,140,255,.16), rgba(34,211,238,.11));
  border: 1px solid rgba(109,140,255,.28);
  margin-bottom: 16px;
}
.member-hero h1 { font-size: clamp(20px, 3vw, 28px); letter-spacing: -.02em; }
.member-badge {
  width: 66px; height: 66px; border-radius: 20px; flex: none;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--border);
}
.member-badge.is-member {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 14px 34px -14px rgba(109,140,255,.95);
}
.member-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 12px; }
.member-card {
  padding: clamp(18px, 2.4vw, 24px);
  border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  display: grid; gap: 14px; align-content: start;
}
.member-card h2 { font-size: 15px; }
.member-usage { display: grid; gap: 9px; }
.member-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.member-mini .stat-tile { padding: 12px; }
.member-mini .stat-tile b { font-size: 16px; }
.member-redeem { display: flex; gap: 9px; flex-wrap: wrap; }
.member-redeem .input { flex: 1; min-width: 180px; }
.member-tips { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.member-tips .ico { color: var(--brand); }

.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.benefit {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.benefit .fi {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: var(--grad-soft); color: var(--brand);
  border: 1px solid rgba(109,140,255,.24);
}
.benefit b { display: block; font-size: 13.5px; }
.benefit span { font-size: 12.5px; color: var(--text-2); line-height: 1.65; }

/* ── 找回密码 ───────────────────────────────────────────── */
.forgot-status {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 15px; border-radius: 13px;
  background: var(--grad-soft); border: 1px solid rgba(109,140,255,.28);
}
.forgot-status .fs-ico { color: var(--brand); display: grid; place-items: center; margin-top: 2px; }
.forgot-status b { display: block; font-size: 13.5px; }
.forgot-status span { font-size: 12.5px; color: var(--text-2); line-height: 1.65; }

@media (max-width: 640px) {
  .member-hero { flex-direction: column; align-items: flex-start; }
  .member-mini { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .avatar-row { flex-direction: column; align-items: flex-start; }
}

/* ── 视频解析 / 链接转存 ────────────────────────────────── */
.fetch-page { display: grid; gap: 16px; max-width: 940px; }
.fetch-head h2 { font-size: 19px; letter-spacing: -.02em; }
.fetch-head p { font-size: 13.5px; margin-top: 5px; line-height: 1.7; }

.fetch-box {
  padding: 16px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  display: grid; gap: 11px;
}
.fetch-input { display: flex; gap: 9px; flex-wrap: wrap; }
.fetch-input .input { flex: 1; min-width: 220px; height: 46px; font-size: 13.5px; }
.fetch-tips {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12px; color: var(--muted); line-height: 1.65;
}
.fetch-tips .ico { color: var(--brand); margin-top: 2px; flex: none; }

.fetch-stage { padding: 14px 16px; }
.fetch-progress { display: grid; gap: 4px; font-size: 13px; }

.fetch-card {
  display: flex; align-items: center; gap: 15px; flex-wrap: wrap;
  padding: 16px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  animation: pop .22s var(--ease);
}
.fetch-card.is-bad { border-color: rgba(255,180,84,.4); background: rgba(255,180,84,.06); }
.fetch-card .fc-ico {
  width: 52px; height: 52px; border-radius: 16px; flex: none;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
}
.fetch-card .fc-name { font-size: 15px; font-weight: 700; word-break: break-all; }
.fetch-card .fc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.fetch-card .fc-src { font-size: 11.5px; color: var(--muted); margin-top: 7px; }
.fetch-card .fc-reason {
  display: flex; gap: 7px; align-items: flex-start;
  font-size: 12.5px; color: var(--warn); margin-top: 8px; line-height: 1.65;
}
.fetch-card .fc-reason .ico { margin-top: 2px; flex: none; }
.fetch-card .fc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

.fetch-done {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(61,220,151,.10); border: 1px solid rgba(61,220,151,.34);
  animation: pop .24s var(--ease);
}
.fetch-done .ro-ico { color: var(--success); display: grid; place-items: center; }
.fetch-done b { display: block; font-size: 13.5px; }

.fetch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.fetch-grid h3 { font-size: 14px; }
.fetch-list { display: grid; gap: 11px; }
.fetch-list li { display: flex; gap: 10px; align-items: flex-start; }
.fetch-list .fl-ico {
  width: 20px; height: 20px; border-radius: 7px; flex: none; margin-top: 2px;
  display: grid; place-items: center;
}
.fetch-list li.check .fl-ico { background: rgba(61,220,151,.14); color: var(--success); border: 1px solid rgba(61,220,151,.3); }
.fetch-list li.close .fl-ico { background: rgba(255,107,129,.12); color: var(--danger); border: 1px solid rgba(255,107,129,.28); }
.fetch-list b { display: block; font-size: 13px; }
.fetch-list span { font-size: 12.5px; color: var(--text-2); line-height: 1.65; }

.fetch-steps { display: grid; gap: 9px; counter-reset: step; padding-left: 0; }
.fetch-steps li {
  position: relative; padding-left: 30px;
  font-size: 13px; color: var(--text-2); line-height: 1.7;
}
.fetch-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 7px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  background: var(--grad-soft); color: var(--brand);
  border: 1px solid rgba(109,140,255,.28);
}

@media (max-width: 720px) {
  .fetch-input .input { min-width: 100%; }
  .fetch-input .btn { flex: 1; }
  .fetch-card .fc-actions { margin-left: 0; width: 100%; }
  .fetch-card .fc-actions .btn { flex: 1; justify-content: center; }
}
