/* ============================================================
   去旅行Vlog - 管理后台样式 (文旅行业主题) V4
   设计理念：轻快舒适 + 中国传统文化美学
   色彩体系：赭石红 · 藏蓝 · 竹青 · 鎏金 · 宣纸(轻量版)
   布局模式：左侧导航(可折叠) / 顶部导航(可切换)
   ============================================================ */

/* ===== CSS变量：文旅主题色系（轻量化） ===== */
:root {
  /* 主色调 - 暖赭石 */
  --primary: #C06045;
  --primary-light: #D4856E;
  --primary-dark: #8E3F2E;
  --primary-bg: rgba(192, 96, 69, 0.05);
  --primary-glow: rgba(192, 96, 69, 0.15);

  /* 藏蓝 */
  --indigo: #354F7A;
  --indigo-light: #4A6A9A;
  --indigo-dark: #1E3150;

  /* 竹青 */
  --bamboo: #649E63;
  --bamboo-light: #84B883;
  --bamboo-bg: rgba(100, 158, 99, 0.05);

  /* 鎏金 */
  --gold: #CCAE73;
  --gold-light: #DFC698;
  --gold-bg: rgba(204, 174, 115, 0.07);

  /* 辅助色 */
  --coral: #D48075;
  --teal: #559895;
  --plum: #937583;

  /* 背景色系 - 轻盈宣纸色 */
  --bg: #FAF8F5;
  --bg-warm: #FDFCFA;
  --bg-white: #FFFFFF;

  /* 文字色系 */
  --text: #332A1E;
  --text-secondary: #706658;
  --text-light: #A09486;

  /* 边框与阴影（柔和版） */
  --border: #EAE4DB;
  --border-light: #F2EDE6;
  --shadow-sm: 0 1px 4px rgba(45, 36, 22, 0.03);
  --shadow: 0 2px 12px rgba(45, 36, 22, 0.04);
  --shadow-hover: 0 6px 24px rgba(45, 36, 22, 0.07);
  --shadow-lg: 0 16px 48px rgba(45, 36, 22, 0.10);

  /* 圆角 */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  /* 侧边栏宽度 */
  --sidebar-w: 250px;
  --sidebar-collapsed-w: 72px;

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', 'SimHei', sans-serif;
  --font-serif: 'Noto Serif SC', 'SimSun', 'STSong', 'Songti SC', serif;
}

/* ===== 基础重置 ===== */
[v-cloak] { display: none !important; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D8D0C6; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #BAB0A6; }

/* ================================================================
   登录页 - 淡雅山水
   ================================================================ */
.login-page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

.login-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 120% 60% at 20% 90%, rgba(53, 79, 122, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 100% 50% at 80% 85%, rgba(53, 79, 122, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 80% 40% at 50% 88%, rgba(100, 158, 99, 0.10) 0%, transparent 50%),
    linear-gradient(175deg,
      #F5F1EA 0%,
      #EDE6DA 15%,
      #E5DBCB 35%,
      #DCD0BE 55%,
      #D2C5B0 75%,
      #C4B59E 100%);
}

.login-bg::before {
  content: '';
  position: absolute; inset: auto 0 0 0;
  height: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400' preserveAspectRatio='none'%3E%3Cpath d='M0 400 L0 200 Q60 120 140 180 Q200 230 280 150 Q340 90 420 160 Q500 220 560 140 Q620 70 700 130 Q760 180 840 100 Q900 40 980 120 Q1060 190 1140 110 Q1200 50 1280 100 Q1360 160 1440 80 L1440 400 Z' fill='rgba(53,79,122,0.08)'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
  opacity: 0.7;
}

.login-overlay {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 24px;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 48px 44px 36px;
  width: 420px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.6) inset;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--primary), var(--gold));
  border-radius: 0 0 3px 3px;
}

.login-logo { margin-bottom: 32px; }

.login-logo .logo-img {
  width: 64px; height: 64px;
  object-fit: contain;
  border-radius: 14px;
  display: block;
  margin: 0 auto 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.login-logo .logo-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 8px;
  filter: drop-shadow(0 3px 6px rgba(192,96,69,0.15));
}

.login-logo h1 {
  font-size: 26px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 3px;
  font-family: var(--font-serif);
}

.login-logo p {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 5px;
  letter-spacing: 1.5px;
}

.input-group {
  position: relative;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

.input-group .input-icon {
  position: absolute; left: 16px; z-index: 2;
  font-size: 15px; pointer-events: none;
  opacity: 0.55;
}

.input-group .input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--bg-warm);
  transition: all 0.25s ease;
  outline: none;
  color: var(--text);
}

.input-group .input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--primary-bg);
}

.input-group .input::placeholder { color: var(--text-light); }

.btn-login {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.25s ease;
  letter-spacing: 2px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px var(--primary-glow);
}

.btn-login:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.login-error {
  color: var(--coral);
  font-size: 13px;
  margin-top: 10px;
  padding: 7px 14px;
  background: rgba(212, 128, 117, 0.07);
  border-radius: 8px;
}

.login-footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  color: var(--text-light);
  font-size: 12px;
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.icp-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0;
  transition: color 0.2s;
}
.icp-link:hover {
  color: var(--sunset);
  text-decoration: underline;
}

/* ================================================================
   后台布局容器
   ================================================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

/* ================================================================
   侧边栏 - 深色藏蓝
   ================================================================ */
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #1E2232 0%, #212840 30%, #1D2A46 100%);
  color: #fff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  box-shadow: 3px 0 28px rgba(0,0,0,0.10);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.sidebar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--primary), var(--gold));
  z-index: 2;
}

/* 折叠状态 */
.sidebar.collapsed {
  width: var(--sidebar-collapsed-w);
}

.sidebar-header {
  padding: 22px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
  border-radius: 8px;
  padding: 4px 8px;
  margin: -4px -8px;
  transition: background 0.2s;
}

.sidebar-logo:hover {
  background: rgba(255,255,255,0.04);
}

.sidebar-logo .logo-img {
  width: 32px; height: 32px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-logo .logo-icon {
  font-size: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(192,96,69,0.25));
}

.sidebar-logo div {
  min-width: 0;
  transition: opacity 0.2s;
}

.sidebar.collapsed .sidebar-logo div,
.sidebar.collapsed .sidebar-logo .logo-img,
.sidebar.collapsed .sidebar-logo .logo-icon { /* keep icon visible */ }

.sidebar-logo h2 {
  font-size: 17px;
  color: var(--gold-light);
  font-weight: 700;
  line-height: 1.3;
  font-family: var(--font-serif);
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-version {
  font-size: 10px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 1px;
  white-space: nowrap;
}

/* 折叠按钮 */
.sidebar-toggle {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.sidebar-toggle:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
}

.sidebar.collapsed .sidebar-toggle {
  position: absolute;
  top: 16px; right: 8px;
}

/* 折叠时隐藏文字和版本 */
.sidebar.collapsed .sidebar-logo div,
.sidebar.collapsed .sidebar-version,
.sidebar.collapsed .nav-item span:not(.nav-icon):not(.nav-badge),
.sidebar.collapsed .admin-info span,
.sidebar.collapsed .logout-link,
.sidebar.collapsed .sidebar-mode-label,
.sidebar.collapsed .sidebar-logo .logo-img { display: none; }

.sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 20px 0;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 13px 0;
  margin: 3px 12px;
}

.sidebar.collapsed .nav-icon { margin: 0; width: auto; }

/* 导航菜单 */
.sidebar-nav {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  margin: 2px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.50);
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 14px;
  text-decoration: none;
  position: relative;
  font-weight: 500;
  white-space: nowrap;
}

.nav-item:hover {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(192,96,69,0.22), rgba(204,174,115,0.10));
  color: var(--gold-light);
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(0,0,0,0.15);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 18px;
  background: var(--gold);
  border-radius: 0 3px 3px 0;
}

.nav-icon {
  font-size: 17px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}

/* 侧边栏底部 */
.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}

.sidebar-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-info {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.60);
  font-size: 13px;
}

.admin-avatar { font-size: 18px; }

.logout-link {
  color: rgba(255,255,255,0.30);
  cursor: pointer;
  font-size: 12px;
  transition: color 0.2s;
  white-space: nowrap;
}

.logout-link:hover { color: var(--coral); }

/* 模式切换按钮 */
.sidebar-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s;
  white-space: nowrap;
}

.sidebar-mode-toggle:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
}

/* ================================================================
   主内容区
   ================================================================ */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content.sidebar-collapsed {
  margin-left: var(--sidebar-collapsed-w);
}

/* 顶部导航模式下无边距 */
.layout-topnav .main-content {
  margin-left: 0;
}
.layout-topnav .sidebar {
  display: none;
}

/* 顶部栏 */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 36px;
  background: rgba(253, 252, 250, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  min-height: 56px;
}

.page-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.topbar-time { color: var(--text-light); font-size: 12px; }

.topbar-user {
  padding: 5px 14px;
  background: var(--bg);
  border-radius: 20px;
  font-weight: 500;
}

/* ================================================================
   顶部导航栏（top-nav模式）
   ================================================================ */
.top-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 56px; /* below topbar */
  z-index: 49;
  overflow-x: auto;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.top-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-weight: 500;
  text-decoration: none;
}

.top-nav-item:hover {
  color: var(--primary);
  background: var(--primary-bg);
}

.top-nav-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* 内容区 */
.content-body {
  padding: 32px 36px;
  flex: 1;
}

/* ================================================================
   欢迎横幅
   ================================================================ */
.welcome-banner {
  background: linear-gradient(135deg, #354F7A 0%, #4A6A9A 30%, #559895 60%, #649E63 100%);
  border-radius: var(--radius-lg);
  padding: 30px 36px;
  margin-bottom: 24px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 24px rgba(53, 79, 122, 0.13);
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  right: -30px; bottom: -40px;
  width: 200px; height: 120px;
  background:
    radial-gradient(ellipse 140% 60% at 50% 100%, rgba(204,174,115,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 100% 40% at 80% 100%, rgba(255,255,255,0.05) 0%, transparent 50%);
  border-radius: 50%;
}

.welcome-banner::after {
  content: '';
  position: absolute;
  top: -40px; left: 28%;
  width: 160px; height: 80px;
  background: radial-gradient(ellipse 100% 50% at 50% 100%, rgba(255,255,255,0.03) 0%, transparent 70%);
  border-radius: 50%;
}

.welcome-greeting { position: relative; z-index: 1; }
.welcome-greeting h2 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 4px;
}

.welcome-greeting p {
  font-size: 13px;
  opacity: 0.78;
}

.welcome-stats {
  display: flex;
  gap: 36px;
  position: relative;
  z-index: 1;
}

.welcome-stat { text-align: center; }
.welcome-stat .ws-val { font-size: 28px; font-weight: 800; }
.welcome-stat .ws-lbl { font-size: 12px; opacity: 0.72; margin-top: 2px; }

/* ================================================================
   统计卡片
   ================================================================ */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  padding: 22px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: default;
  border: 1px solid var(--border-light);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.stat-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
}

.card-sunset::after { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.card-ocean::after { background: linear-gradient(90deg, var(--indigo), var(--indigo-light)); }
.card-forest::after { background: linear-gradient(90deg, var(--bamboo), var(--bamboo-light)); }
.card-coral::after { background: linear-gradient(90deg, var(--coral), #E4A49C); }
.card-golden::after { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.card-purple::after { background: linear-gradient(90deg, var(--plum), #AD92A0); }
.card-teal::after { background: linear-gradient(90deg, var(--teal), #72B3B1); }

.stat-icon { font-size: 28px; margin-bottom: 8px; display: block; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -0.5px; }
.stat-label { font-size: 12px; color: var(--text-light); margin-top: 7px; }
.stat-delta { font-size: 11px; margin-top: 5px; font-weight: 500; }
.stat-delta.up { color: var(--bamboo); }
.stat-delta.down { color: var(--coral); }

/* ================================================================
   双列布局 / 面板 / 快捷入口
   ================================================================ */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.dash-grid-full {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-warm);
}

.panel-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.panel-body { padding: 20px 24px; }

.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* 快捷入口 */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.quick-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  border: 1px solid var(--border-light);
  position: relative;
}

.quick-card span:first-child {
  font-size: 30px;
  transition: transform 0.25s ease;
}

.quick-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--primary);
  border-color: rgba(192, 96, 69, 0.15);
}

.quick-card:hover span:first-child { transform: scale(1.12); }

.quick-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 36px; height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  transition: transform 0.25s ease;
}

.quick-card:hover::after { transform: translateX(-50%) scaleX(1); }

/* ================================================================
   迷你列表
   ================================================================ */
.mini-list { list-style: none; }

.mini-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  transition: background 0.2s;
}

.mini-list li:last-child { border-bottom: none; }
.mini-list li:hover { background: var(--bg-warm); margin: 0 -24px; padding: 12px 24px; }

.mini-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  object-fit: cover;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--border-light);
}

.mini-info { flex: 1; min-width: 0; }
.mini-info .mi-name { font-weight: 600; color: var(--text); }
.mini-info .mi-desc { font-size: 12px; color: var(--text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }

.mini-meta { text-align: right; flex-shrink: 0; }
.mini-meta .mi-time { font-size: 11px; color: var(--text-light); }
.mini-meta .mi-val { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-top: 2px; }

/* ================================================================
   加载骨架屏
   ================================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, #F0EBE3 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-line { height: 14px; margin-bottom: 10px; }
.skeleton-line-sm { height: 10px; width: 60%; }
.skeleton-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }

.skeleton-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--border-light);
}

.skeleton-text { flex: 1; }
.skeleton-text .skeleton-line:last-child { margin-bottom: 0; }

/* ================================================================
   进度条
   ================================================================ */
.progress-bar-wrap {
  width: 100%; height: 7px;
  background: var(--bg);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 5px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.7s ease;
}

.pb-sunset { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.pb-ocean { background: linear-gradient(90deg, var(--indigo), var(--indigo-light)); }
.pb-forest { background: linear-gradient(90deg, var(--bamboo), var(--bamboo-light)); }
.pb-purple { background: linear-gradient(90deg, var(--plum), #AD92A0); }
.pb-golden { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.pb-coral { background: linear-gradient(90deg, var(--coral), #E4A49C); }

/* ================================================================
   工具栏
   ================================================================ */
.panel-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  background: var(--bg-warm);
}

.input, .select {
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  background: #fff;
  transition: all 0.2s ease;
  color: var(--text);
}

.input:focus, .select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

.input-search { width: 250px; }
.select { cursor: pointer; min-width: 120px; }
.select-xs {
  height: 30px; font-size: 12px; padding: 0 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  cursor: pointer;
}

.toolbar-tip { font-size: 13px; color: var(--text-light); margin-left: auto; }

/* ================================================================
   按钮
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 8px; }
.btn-xs { padding: 5px 12px; font-size: 11px; border-radius: 6px; }

.btn-outline-danger { background: #fff; color: var(--coral); border: 1px solid rgba(212,128,117,0.35); }
.btn-outline-danger:hover { background: var(--coral); color: #fff; border-color: var(--coral); }

.btn-outline-primary { background: #fff; color: var(--indigo); border: 1px solid rgba(53,79,122,0.35); }
.btn-outline-primary:hover { background: var(--indigo); color: #fff; border-color: var(--indigo); }

.btn-outline-info { background: #fff; color: var(--plum); border: 1px solid rgba(147,117,131,0.35); }
.btn-outline-info:hover { background: var(--plum); color: #fff; border-color: var(--plum); }

.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ================================================================
   数据表格
   ================================================================ */
.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  background: var(--bg-warm);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  vertical-align: middle;
}

.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: #FDFCF8; }
.data-table tbody tr:last-child td { border-bottom: none; }

.table-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
  border: 2px solid var(--border-light);
}

.text-bold { font-weight: 600; color: var(--text); }
.text-sm { font-size: 12px; color: var(--text-light); }
.text-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================================================================
   标签
   ================================================================ */
.tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.tag-green { background: rgba(100,158,99,0.10); color: #437542; }
.tag-red { background: rgba(212,128,117,0.10); color: #AD5A50; }
.tag-blue { background: rgba(53,79,122,0.08); color: #2E4872; }
.tag-yellow { background: rgba(204,174,115,0.14); color: #8E753E; }
.tag-purple { background: rgba(147,117,131,0.10); color: #705062; }
.tag-golden { background: rgba(204,174,115,0.16); color: #8E753E; }

/* ================================================================
   分页
   ================================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-warm);
}

.pagination button {
  padding: 7px 18px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

.pagination button:disabled { opacity: 0.3; cursor: not-allowed; }

/* ================================================================
   日志标签页
   ================================================================ */
.log-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

.log-tab {
  padding: 10px 22px;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 30px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  font-weight: 500;
}

.log-tab:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.log-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 10px var(--primary-glow); }

/* ================================================================
   模态框
   ================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 28, 24, 0.45);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
  backdrop-filter: blur(3px);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 700px;
  max-width: 94vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from { transform: translateY(32px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h3 { font-size: 17px; font-weight: 700; color: var(--text); }

.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  transition: all 0.2s;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { background: var(--coral); color: #fff; }

.modal-body { padding: 24px 28px; }

.edit-field { margin-bottom: 18px; }
.edit-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

/* Vlog详情 */
.vlog-detail-grid { display: grid; grid-template-columns: 300px 1fr; gap: 28px; }

.vlog-detail-cover {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--plum) 100%);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: #fff;
  overflow: hidden;
}

.vlog-detail-cover img { width: 100%; height: 100%; object-fit: cover; }

.vlog-detail-info h4 { font-size: 18px; font-weight: 700; margin-bottom: 12px; line-height: 1.5; }

.vlog-detail-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.vlog-detail-meta-item { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }

.vlog-detail-desc {
  font-size: 14px; color: var(--text); line-height: 1.8;
  margin-bottom: 16px; padding: 16px;
  background: var(--bg-warm); border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.vlog-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }

.vlog-stat-box {
  text-align: center; padding: 14px 8px;
  background: var(--bg-warm); border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.vlog-stat-box .vsb-val { font-size: 22px; font-weight: 800; line-height: 1.1; }
.vlog-stat-box .vsb-lbl { font-size: 10px; color: var(--text-light); margin-top: 3px; }

.media-urls-list { font-size: 13px; }

.media-url-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; margin-bottom: 6px;
  background: var(--bg-warm); border-radius: 8px;
  font-family: monospace; font-size: 11px;
  border: 1px solid var(--border-light);
}

.media-url-item .url-key { color: var(--text-secondary); max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 媒体画廊 */
.vlog-media-gallery { background: #fafaf9; border-radius: 12px; padding: 16px; }

.media-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.media-gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
  min-height: 160px;
}

.media-gallery-item img, .media-gallery-item video {
  display: block;
}

.media-type-badge {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 14px;
  padding: 2px 8px;
  border-radius: 10px;
  pointer-events: none;
}

/* ================================================================
   存储看板
   ================================================================ */
.storage-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }

.storage-type-bars { display: flex; flex-direction: column; gap: 14px; }

.storage-type-row { display: flex; align-items: center; gap: 14px; }
.storage-type-label { width: 80px; font-size: 13px; font-weight: 600; flex-shrink: 0; color: var(--text); }

.storage-type-bar-wrap { flex: 1; display: flex; align-items: center; gap: 12px; }

.storage-type-bar {
  flex: 1; height: 24px;
  border-radius: 12px;
  position: relative; overflow: hidden;
  background: var(--bg);
}

.storage-type-bar-fill {
  height: 100%; border-radius: 12px;
  transition: width 0.8s ease;
  display: flex; align-items: center; padding-left: 12px;
  font-size: 11px; color: #fff; font-weight: 600;
}

.storage-type-num { font-size: 13px; font-weight: 600; color: var(--text); width: 70px; text-align: right; flex-shrink: 0; }

.top-user-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-light); }
.top-user-row:last-child { border-bottom: none; }

.top-user-rank {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}

.rank-1 { background: linear-gradient(135deg, var(--gold), #D6BA7E); }
.rank-2 { background: linear-gradient(135deg, #A4ACB6, #C4CCD6); }
.rank-3 { background: linear-gradient(135deg, #BA9A7E, #D2B49A); }
.rank-other { background: #D2D6DC; color: var(--text-secondary); }

.top-user-info { flex: 1; min-width: 0; }
.top-user-info .tun { font-weight: 600; font-size: 13px; color: var(--text); }
.top-user-info .tus { font-size: 11px; color: var(--text-light); margin-top: 2px; }

.top-user-bar { width: 120px; flex-shrink: 0; }
.top-user-val { font-size: 13px; font-weight: 600; width: 60px; text-align: right; flex-shrink: 0; color: var(--text); }

/* ================================================================
   导出 / 提示
   ================================================================ */
.export-form { display: flex; gap: 16px; padding: 24px 28px; align-items: flex-end; flex-wrap: wrap; }
.export-form .input-group { margin-bottom: 0; }
.export-form .input { width: 280px; }
.tip-text { color: var(--text-light); font-size: 13px; line-height: 1.7; }

/* ================================================================
   Toast
   ================================================================ */
.custom-toast {
  position: fixed;
  top: 80px; left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  background: rgba(30, 28, 24, 0.90);
  color: #fff;
  padding: 13px 26px;
  border-radius: 28px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500;
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  animation: ctSlideDown 0.3s ease;
}

@keyframes ctSlideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.custom-toast.success { background: rgba(45, 36, 22, 0.90); }
.custom-toast.error { background: rgba(192, 96, 69, 0.92); }
.custom-toast.warn { background: rgba(204, 174, 115, 0.92); }

.ct-icon { font-size: 18px; }
.ct-text { font-size: 14px; }

/* ================================================================
   平台设置Logo预览
   ================================================================ */
.platform-logo-preview {
  width: 80px; height: 80px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--border);
  background: var(--bg);
  padding: 8px;
  margin-bottom: 12px;
}

.platform-logo-preview.default {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--text-light);
}

/* ================================================================
   响应式
   ================================================================ */
@media (max-width: 1200px) {
  .dash-grid { grid-template-columns: 1fr; }
  .storage-overview { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .vlog-detail-grid { grid-template-columns: 1fr; }
  .modal-content { width: 95%; }
  .welcome-banner { flex-direction: column; text-align: center; gap: 18px; }
  .welcome-stats { gap: 24px; }
}

@media (max-width: 768px) {
  .sidebar {
    width: var(--sidebar-collapsed-w);
  }

  .sidebar .sidebar-logo div,
  .sidebar .sidebar-version,
  .sidebar .nav-item span:not(.nav-icon):not(.nav-badge),
  .sidebar .admin-info span,
  .sidebar .logout-link,
  .sidebar .sidebar-mode-toggle { display: none; }

  .sidebar .sidebar-header { justify-content: center; }
  .sidebar .nav-item { justify-content: center; padding: 13px 0; margin: 3px 8px; }
  .sidebar .nav-icon { margin: 0; width: auto; }
  .sidebar .sidebar-toggle { display: none; }

  .main-content { margin-left: var(--sidebar-collapsed-w); }
  .main-content.sidebar-collapsed { margin-left: var(--sidebar-collapsed-w); }

  .welcome-banner { flex-direction: column; text-align: center; gap: 16px; padding: 22px 18px; }

  .storage-overview { grid-template-columns: 1fr; }
  .panel-toolbar { flex-direction: column; align-items: stretch; }
  .input-search { width: 100%; }
  .toolbar-tip { margin-left: 0; }
  .content-body { padding: 16px; }
  .topbar { padding: 14px 20px; }
  .top-nav { padding: 0 12px; overflow-x: auto; }
  .top-nav-item { padding: 12px 14px; font-size: 13px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .login-card { width: 95%; padding: 36px 24px 28px; }
}
