/* ══════════════════════════════════════════════════════════════
   Hoasis Design System  v1.0
   所有页面通过 <link rel="stylesheet" href="hoasis-ds.css"> 引入
   ══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   1. TOKENS — 所有页面共享的设计变量
   ───────────────────────────────────────── */
:root {
  /* 色彩 */
  --c-bg: #ffffff;
  --c-bg2: #f5f5f5;
  --c-bg3: #ebebeb;
  --c-border: rgba(0, 0, 0, 0.07);
  --c-border2: rgba(0, 0, 0, 0.13);
  --c-t1: rgba(0, 0, 0, 0.88); /* 主文字 */
  --c-t2: rgba(0, 0, 0, 0.48); /* 次要文字 */
  --c-t3: rgba(0, 0, 0, 0.28); /* 占位 / 禁用 */
  --c-ink: #111111; /* 强调黑 / 主按钮背景 */
  --c-accent: #f43f5e; /* 唯一彩色：收藏 / 危险 */

  /* 字体 */
  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* 圆角 */
  --r-xs: 4px; /* 主按钮 */
  --r-sm: 6px; /* 徽章 badge */
  --r-md: 10px; /* 导航项 / icon-btn */
  --r-lg: 14px; /* 浮层 panel */
  --r-xl: 20px; /* 模态框 modal */
  --r-pill: 9999px; /* 胶囊 pill / toast */

  /* 阴影 */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.22);
  --shadow-modal: 0 48px 120px rgba(0, 0, 0, 0.85);

  /* 动效曲线 */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1); /* 主出场动效，弹性感 */
  --ease-bounce: cubic-bezier(0.34, 1.4, 0.64, 1); /* 超射弹回，强调感 */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* 动效时长 */
  --dur-micro: 0.12s;
  --dur-fast: 0.18s;
  --dur-base: 0.28s;
  --dur-slow: 0.45s;

  /* z-index 层 */
  --z-sticky: 70;
  --z-sidebar: 90;
  --z-dropdown: 100;
  --z-modal: 200;
  --z-login: 300;
  --z-tooltip: 9999;

  /* 间距基础单位（8px grid） */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
}

/* ─────────────────────────────────────────
   2. RESET & BASE
   ───────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--c-bg);
  color: var(--c-t1);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: var(--font);
  cursor: pointer;
}
svg {
  display: block;
}

/* ─────────────────────────────────────────
   3. TYPOGRAPHY
   ───────────────────────────────────────── */

/* 规则：字号越大，tracking 越紧；UI 标签统一用 uppercase + 宽 tracking */

.ws-display {
  /* Hero 大标题 */
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.22;
}
.ws-h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.ws-h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.ws-h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.ws-body-lg {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}
.ws-body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}
.ws-body-sm {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}
.ws-caption {
  font-size: 12px;
  font-weight: 400;
  color: var(--c-t2);
}
.ws-label {
  font-size: 11px;
  font-weight: 500;
}
.ws-micro {
  /* 区块标题 SECTION LABEL */
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-t3);
}

/* 颜色辅助 */
.ws-t1 {
  color: var(--c-t1);
}
.ws-t2 {
  color: var(--c-t2);
}
.ws-t3 {
  color: var(--c-t3);
}

/* ─────────────────────────────────────────
   4. BUTTONS
   ───────────────────────────────────────── */

/* 基类 */
.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  height: 36px;
  border-radius: var(--r-xs);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition:
    background var(--dur-fast),
    color var(--dur-fast),
    transform var(--dur-fast),
    box-shadow var(--dur-fast);
}
.ws-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 变体 */
.ws-btn-primary {
  background: var(--c-ink);
  color: #fff;
}
.ws-btn-primary:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
}
.ws-btn-primary:active {
  transform: translateY(0);
}

.ws-btn-ghost {
  background: rgba(0, 0, 0, 0.04);
  color: var(--c-t2);
  border: 1px solid var(--c-border);
}
.ws-btn-ghost:hover {
  background: rgba(0, 0, 0, 0.07);
  border-color: var(--c-border2);
  color: var(--c-t1);
}

.ws-btn-outline {
  background: transparent;
  color: var(--c-t2);
  border: 1px solid var(--c-border2);
}
.ws-btn-outline:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--c-t1);
}

/* 尺寸 */
.ws-btn-sm {
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
}
.ws-btn-lg {
  height: 44px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
}

/* 图标按钮（正方形） */
.ws-icon-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: var(--r-md);
  background: none;
  border: 1px solid var(--c-border);
  color: var(--c-t3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    border-color var(--dur-fast),
    color var(--dur-fast),
    background var(--dur-fast);
}
.ws-icon-btn:hover {
  border-color: var(--c-border2);
  color: var(--c-t2);
  background: rgba(0, 0, 0, 0.04);
}
.ws-icon-btn.active {
  border-color: rgba(0, 0, 0, 0.22);
  color: var(--c-t1);
  background: rgba(0, 0, 0, 0.06);
}
.ws-icon-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 卡片浮动操作按钮（白底，用于图片上方） */
.ws-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border: none;
  color: rgba(0, 0, 0, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition:
    transform var(--dur-fast),
    box-shadow var(--dur-fast);
}
.ws-action-btn:hover {
  transform: scale(1.07);
  box-shadow: var(--shadow-md);
}
.ws-action-btn.liked svg {
  fill: var(--c-accent);
  stroke: var(--c-accent);
}
.ws-action-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─────────────────────────────────────────
   5. INPUTS & FORMS
   ───────────────────────────────────────── */

.ws-input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-t1);
  font-family: var(--font);
  font-size: 13px;
  outline: none;
  transition:
    border-color var(--dur-fast),
    background var(--dur-fast);
}
.ws-input:focus {
  border-color: var(--c-border2);
  background: rgba(0, 0, 0, 0.06);
}
.ws-input::placeholder {
  color: var(--c-t3);
}

.ws-select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-t2);
  font-family: var(--font);
  font-size: 12px;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--dur-fast);
}
.ws-select:focus {
  border-color: var(--c-border2);
}

/* 搜索框（带图标） */
.ws-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 8px 0 14px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  transition:
    border-color var(--dur-fast),
    background var(--dur-fast);
}
.ws-search:focus-within {
  border-color: var(--c-border2);
  background: rgba(0, 0, 0, 0.06);
}
.ws-search-icon {
  width: 14px;
  height: 14px;
  stroke: var(--c-t3);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  flex-shrink: 0;
}
.ws-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 13px;
  color: var(--c-t1);
}
.ws-search input::placeholder {
  color: var(--c-t3);
}

/* ─────────────────────────────────────────
   6. PILLS & TAGS
   ───────────────────────────────────────── */

.ws-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--c-t2);
  cursor: pointer;
  transition: color var(--dur-fast);
  white-space: nowrap;
}
.ws-pill:hover {
  color: var(--c-t1);
}
.ws-pill.active {
  color: var(--c-t1);
  font-weight: 600;
}

.ws-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--c-border);
  color: var(--c-t2);
  cursor: pointer;
  transition:
    background var(--dur-fast),
    color var(--dur-fast);
}
.ws-tag:hover {
  background: rgba(0, 0, 0, 0.07);
  color: var(--c-t1);
}

/* 覆盖在图片上的徽章 */
.ws-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  font-size: 10px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

/* ─────────────────────────────────────────
   7. CARDS
   ───────────────────────────────────────── */

/* 通用卡片（白底，边框） */
.ws-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.ws-card-body {
  padding: var(--space-5);
}
.ws-card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

/* 媒体卡片（壁纸图片卡，无圆角，图片占满） */
.ws-media-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--c-bg3);
}
.ws-media-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
.ws-media-card:hover img {
  transform: scale(1.06);
}

.ws-media-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ws-media-card:hover .ws-media-card-overlay {
  opacity: 1;
}

.ws-media-card-top {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.3s ease,
    transform 0.3s var(--ease-spring);
}
.ws-media-card:hover .ws-media-card-top {
  opacity: 1;
  transform: translateY(0);
}

.ws-media-card-bot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.3s ease,
    transform 0.3s var(--ease-spring);
}
.ws-media-card:hover .ws-media-card-bot {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────
   8. NAVIGATION
   ───────────────────────────────────────── */

/* Sidebar 折叠导航 */
.ws-sidebar {
  width: 76px;
  flex-shrink: 0;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 0;
  overflow: hidden;
  transition: width var(--dur-base) var(--ease-spring);
}
.ws-sidebar:hover {
  width: 190px;
}

.ws-nav-item {
  width: 100%;
  height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  color: var(--c-t3);
  transition:
    color var(--dur-fast),
    background var(--dur-fast);
  white-space: nowrap;
  position: relative;
}
.ws-sidebar:hover .ws-nav-item {
  justify-content: flex-start;
  padding-left: 14px;
  gap: 10px;
}
.ws-nav-item:hover {
  color: var(--c-t2);
  background: rgba(0, 0, 0, 0.05);
}
.ws-nav-item.active {
  color: var(--c-t1);
  background: rgba(0, 0, 0, 0.06);
}
.ws-nav-item svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ws-nav-label {
  font-size: 13px;
  font-weight: 500;
  color: inherit;
  opacity: 0;
  transform: translateX(-6px);
  max-width: 0;
  overflow: hidden;
  transition:
    opacity 0.2s,
    transform 0.25s var(--ease-spring),
    max-width 0.28s var(--ease-spring);
}
.ws-sidebar:hover .ws-nav-label {
  opacity: 1;
  transform: translateX(0);
  max-width: 160px;
}

/* 顶部 filter bar（pill 标签导航） */
.ws-tab-bar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--c-bg);
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 var(--space-6) 0 var(--space-2);
}
.ws-tab-scroll {
  flex: 1;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 0;
}
.ws-tab-scroll::-webkit-scrollbar {
  display: none;
}

/* ─────────────────────────────────────────
   9. OVERLAYS — Modal / Drawer / Panel
   ───────────────────────────────────────── */

.ws-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: var(--z-modal);
}
.ws-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.ws-modal {
  background: var(--c-bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.3s var(--ease-bounce);
}
.ws-overlay.open .ws-modal {
  transform: scale(1) translateY(0);
}

.ws-panel {
  background: var(--c-bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
}

/* ─────────────────────────────────────────
   10. FEEDBACK — Toast / Tooltip
   ───────────────────────────────────────── */

.ws-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--c-bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r-pill);
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-t2);
  z-index: var(--z-tooltip);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 7px;
}
.ws-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.ws-toast-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

/* 全局动画 Tooltip（spring 跟手） */
.ws-tooltip {
  position: fixed;
  pointer-events: none;
  z-index: var(--z-tooltip);
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform-origin: bottom center;
  transition: opacity var(--dur-micro);
  will-change: transform, opacity;
}
.ws-tooltip.on {
  opacity: 1;
}

/* ─────────────────────────────────────────
   11. LAYOUT UTILITIES
   ───────────────────────────────────────── */

.ws-app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}
.ws-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.ws-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}
.ws-scroll::-webkit-scrollbar {
  width: 3px;
}
.ws-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

.ws-divider {
  height: 1px;
  background: var(--c-border);
}
.ws-divider-v {
  width: 1px;
  background: var(--c-border);
  align-self: stretch;
}

/* 间距辅助（基于 8px grid） */
.ws-gap-1 {
  gap: var(--space-1);
}
.ws-gap-2 {
  gap: var(--space-2);
}
.ws-gap-3 {
  gap: var(--space-3);
}
.ws-gap-4 {
  gap: var(--space-4);
}

.ws-p-4 {
  padding: var(--space-4);
}
.ws-p-5 {
  padding: var(--space-5);
}
.ws-p-6 {
  padding: var(--space-6);
}
.ws-px-6 {
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

/* 玻璃模糊背景 */
.ws-blur {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ─────────────────────────────────────────
   SIDEBAR  — app-sidebar 组件（所有页面共用）
   ───────────────────────────────────────── */
/* 让自定义元素对父级 flex 布局透明，nav.sidebar 直接作为 flex 子项 */
app-sidebar {
  display: contents;
}
/* 发现壁纸页面侧边栏无右分割线（内容区全出血） */
app-sidebar[active="preview"] .sidebar {
  border-right: none;
}

.sidebar {
  width: 76px;
  flex-shrink: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 0;
  z-index: 90;
  overflow: hidden;
  border-right: 1px solid var(--c-border);
  transition: width 0.3s var(--ease-spring);
}
.sidebar:hover {
  width: 190px;
}

.sb-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 21px;
  margin-bottom: 24px;
  flex-shrink: 0;
  height: 34px;
}
.sb-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #111;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}
.sb-logo-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-t1);
  letter-spacing: -0.03em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.2s 0.05s,
    transform 0.25s 0.05s var(--ease-spring);
  pointer-events: none;
}
.sidebar:hover .sb-logo-text {
  opacity: 1;
  transform: translateX(0);
}

.sb-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 0 18px;
}
.sidebar:hover .sb-group {
  padding: 0 10px;
}
.sb-spacer {
  flex: 1;
}
.sb-sep {
  height: 12px;
}

.sb-icon {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  color: var(--c-t3);
  transition:
    color 0.15s,
    background 0.15s;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
}
.sidebar:hover .sb-icon {
  justify-content: flex-start;
  padding-left: 14px;
  gap: 10px;
}
.sb-icon:hover {
  color: var(--c-t2);
  background: rgba(0, 0, 0, 0.05);
}
.sb-icon.active {
  color: var(--c-t1);
  background: rgba(0, 0, 0, 0.06);
}
.sb-icon svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sb-label {
  font-size: 13px;
  font-weight: 500;
  color: inherit;
  opacity: 0;
  transform: translateX(-6px);
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition:
    opacity 0.2s,
    transform 0.25s var(--ease-spring),
    max-width 0.28s var(--ease-spring);
  pointer-events: none;
}
.sidebar:hover .sb-label {
  opacity: 1;
  transform: translateX(0);
  max-width: 160px;
}

.sb-vip-wrap {
  width: 100%;
  flex-shrink: 0;
}
.sb-vip-btn {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--c-t3);
  transition:
    color 0.15s,
    background 0.15s,
    opacity 0.15s,
    max-height 0.2s;
  max-height: 48px;
  overflow: hidden;
}
.sb-vip-btn:hover {
  color: var(--c-t2);
  background: rgba(0, 0, 0, 0.05);
}
.sb-vip-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: none;
}
.sidebar:hover .sb-vip-btn {
  opacity: 0;
  max-height: 0;
  pointer-events: none;
}

.sb-vip-card {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  background: var(--c-bg2);
  border: 1px solid rgba(0, 0, 0, 0.07);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    background 0.15s,
    opacity 0.18s 0.05s,
    max-height 0.28s var(--ease-spring),
    margin 0.28s var(--ease-spring);
}
.sidebar:hover .sb-vip-card {
  opacity: 1;
  max-height: 80px;
  margin: 0 10px 8px;
}
.sb-vip-card:hover {
  background: rgba(0, 0, 0, 0.07);
}
.sb-vip-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sb-vip-title {
  font-size: 13px;
  font-weight: 700;
  color: #c9972a;
  margin-bottom: 2px;
}
.sb-vip-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9972a;
}
.sb-vip-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}
.sb-vip-sub {
  font-size: 11px;
  color: var(--c-t2);
}
.sb-icon-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sb-badge {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  background: #3b82f6;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  padding: 0 3.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
