/* ============================================================
   Core Components CSS — 所有 Vue 3 SPA 页面共享
   包含: 设计系统、顶部导航栏、底部标签栏、Toast、基础重置、Demo横幅
   ============================================================ */

/* ===== Demo 只读展示横幅 ===== */
.demo-banner {
    background: linear-gradient(90deg, #1a1a2e, #16213e);
    color: rgba(255,255,255,0.85);
    text-align: center;
    padding: 8px 16px;
    font-size: 0.85rem;
    position: sticky;
    top: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 2px solid #4361ee;
}
.demo-banner i { color: #4361ee; }
.demo-banner-back {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    margin-left: 16px;
    font-size: 0.8rem;
    transition: color 0.2s;
}
.demo-banner-back:hover { color: #fff; }

/* ----- 设计系统变量 ----- */
:root {
  --primary: #0071e3;
  --primary-light: #4096ff;
  --primary-dark: #005bb5;
  --primary-50: rgba(0, 113, 227, 0.04);
  --primary-100: rgba(0, 113, 227, 0.08);
  --primary-200: rgba(0, 113, 227, 0.12);

  --success: #34c759;
  --success-50: rgba(52, 199, 89, 0.08);
  --success-100: rgba(52, 199, 89, 0.12);
  --info: #5ac8fa;
  --warning: #ff9500;
  --warning-50: rgba(255, 149, 0, 0.08);
  --warning-100: rgba(255, 149, 0, 0.12);
  --danger: #ff3b30;
  --danger-50: rgba(255, 59, 48, 0.08);
  --danger-100: rgba(255, 59, 48, 0.12);

  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-tertiary: #e8e8ed;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;

  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #86868b;

  --border-light: #e8e8ed;
  --border-medium: #d2d2d7;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --transition-fast: 0.15s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-normal: 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow: 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --secondary: #86868b;
  --bg-dark: #1d1d1f;
  --text-light: #f5f5f7;
  --border-dark: #86868b;
  --shadow-glow: 0 0 20px rgba(0, 113, 227, 0.15);

  --space-12: 3rem;
  --space-16: 4rem;

  --text-4xl: 2.25rem;

  --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, monospace;

  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 9999;

  --navbar-height: 52px;
  --bottom-bar-height: 56px;
}

/* ----- 基础重置 ----- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a, button, [role="button"], input, select, textarea, label { touch-action: manipulation; }

[v-cloak] { display: none !important; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-dark); }

input, textarea, select {
  font-family: inherit; font-size: inherit;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.75rem;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  background-color: var(--bg-primary);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-200);
}

.btn {
  transition: background-color var(--transition-normal), transform var(--transition-normal), filter var(--transition-normal);
  border-radius: var(--radius-md); font-weight: 500; padding: 0.5rem 1rem;
  border: none; font-size: var(--text-sm); line-height: 1.5; cursor: pointer;
}
.btn:hover { filter: brightness(0.92); }
.btn:active { transform: scale(0.97); }
.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-dark); }
.btn-outline-primary { border: 1px solid var(--primary); color: var(--primary); background-color: transparent; }
.btn-outline-primary:hover { background-color: var(--primary); color: white; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.25); }

/* 卡片 */
.card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-light);
  background-color: transparent;
  font-weight: 600;
}
.card-body {
  padding: var(--space-5);
}

/* 页面标题 */
.page-header {
  margin-bottom: var(--space-6);
}
.page-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.page-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-1);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Loading 旋转器 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Skeleton 占位 */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-light) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

/* 动画 */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}
.animate-scale-in {
  animation: scaleIn 0.3s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.4s; }

/* ----- 响应式工具类 ----- */
/* 仅通过 display:none 隐藏，不强制设置可见时的 display 值 */
@media (max-width: 767.98px) {
  .desktop-only { display: none !important; }
  .is-hidden-mobile { display: none !important; }
  .app-navbar { display: none !important; }
}
@media (min-width: 768px) {
  .mobile-only { display: none !important; }
  .app-navbar { display: block !important; }
}

/* ----- 主从布局容器 -----
   用于列表→详情的双栏布局（移动端单栏切换，桌面端双栏）
   结构：.master-detail-layout > .master-panel + .detail-panel
   使用 .is-hidden-mobile 控制移动端显示/隐藏
*/
.master-detail-layout {
  display: flex;
  height: 100%;
  overflow: hidden;
}
.master-panel {
  width: 100%;
  flex-shrink: 0;
  overflow-y: auto;
}
.detail-panel {
  width: 100%;
  flex-shrink: 0;
  overflow-y: auto;
}
@media (min-width: 768px) {
  .master-panel {
    width: 320px;
    border-right: 1px solid var(--border-color, #e5e7eb);
  }
  .detail-panel {
    flex: 1;
    min-width: 0;
  }
}

/* ============================================================
   顶部导航栏 (App Navbar) — 桌面端 ≥768px
   固定顶部，52px 高，毛玻璃效果
   ============================================================ */

.app-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  height: var(--navbar-height);
  background: rgba(29, 29, 31, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s, box-shadow 0.3s;
  font-family: var(--font-sans);
}

.app-navbar a:not(.dropdown-item) {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.app-navbar a:not(.dropdown-item):hover {
  color: #ffffff;
  text-decoration: none;
}

.app-navbar.scrolled {
  background: rgba(29, 29, 31, 0.94);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  gap: var(--space-4);
}

/* 左侧区域：返回按钮 + Logo */
.navbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.navbar-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.navbar-back:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-brand:hover { text-decoration: none; opacity: 0.85; }

.navbar-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.navbar-brand-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* 桌面端导航链接 */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.navbar-links .nav-link {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.navbar-links .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}
.navbar-links .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

/* 右侧操作区 */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
  flex-shrink: 0;
}

.nav-action-btn {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
  font-family: inherit;
}
.nav-action-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}
.nav-action-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.username-text {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  display: none;
}
@media (min-width: 1200px) {
  .username-text { display: inline; }
}

/* 桌面端下拉菜单 */
.navbar-dropdown {
  position: relative;
}

/* 透明桥接层，消除 trigger 与下拉菜单之间的 6px 间隙，防止鼠标移动时菜单消失 */
.navbar-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
  z-index: calc(var(--z-dropdown) - 1);
}

.navbar-links .nav-link-dropdown {
  cursor: pointer;
  user-select: none;
}
.navbar-links .nav-link-dropdown i {
  font-size: 10px;
  margin-left: 2px;
  opacity: 0.7;
}

.navbar-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-1);
  z-index: var(--z-dropdown);
}

.navbar-dropdown:hover .navbar-dropdown-menu {
  display: block;
  animation: slideDown 0.2s ease;
}

.dropdown-right { right: 0; left: auto; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.55rem 0.75rem;
  font-size: var(--text-sm);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition-fast);
}
.dropdown-item:hover {
  background: var(--bg-secondary);
  text-decoration: none;
  color: var(--text-primary);
}
.dropdown-item i { font-size: 0.95rem; color: var(--text-secondary); width: 18px; text-align: center; }

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: var(--space-1) 0;
}

/* ============================================================
   移动端底部标签栏 (Bottom Tab Bar)
   仅 <768px 显示，固定底部，适配刘海屏
   ============================================================ */

.bottom-tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: var(--bottom-bar-height);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

@media (max-width: 767.98px) {
  .bottom-tab-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
}

.bottom-tab-bar .tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  height: 100%;
  padding: 4px 0;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.bottom-tab-bar .tab-item:hover {
  text-decoration: none;
  color: var(--text-secondary);
}
.bottom-tab-bar .tab-item.active {
  color: var(--primary);
}
.bottom-tab-bar .tab-item i {
  font-size: 1.25rem;
  transition: transform var(--transition-fast);
}
.bottom-tab-bar .tab-item.active i {
  transform: translateY(-1px);
}

/* 桌面端：为固定顶部导航栏预留空间 */
@media (min-width: 768px) {
  body {
    padding-top: var(--navbar-height);
  }
}

/* 移动端：顶部导航栏隐藏（由底部标签栏替代），仅需为底部标签栏预留空间 */
@media (max-width: 767.98px) {
  body {
    padding-bottom: var(--bottom-bar-height);
    padding-bottom: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px));
  }
}

/* ============================================================
   Toast 通知系统
   ============================================================ */

.app-toast-container {
  position: fixed; top: calc(var(--navbar-height) + 8px); right: 20px;
  z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: 10px;
  max-width: 380px; width: 100%; pointer-events: none;
}
.app-toast {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 12px;
  animation: toastSlideIn 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  pointer-events: auto; min-width: 280px;
}
.app-toast.hiding { animation: toastSlideOut 0.3s cubic-bezier(0.25, 0.1, 0.25, 1) forwards; }
.app-toast-icon {
  flex-shrink: 0; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); font-size: 0.9rem;
}
.app-toast-success .app-toast-icon { background: var(--success-100); color: #248a3d; }
.app-toast-error .app-toast-icon { background: var(--danger-100); color: #d70015; }
.app-toast-warning .app-toast-icon { background: var(--warning-100); color: #c77c00; }
.app-toast-info .app-toast-icon { background: var(--primary-200); color: var(--primary); }
.app-toast-content { flex: 1; min-width: 0; }
.app-toast-title { font-weight: 600; font-size: var(--text-sm); color: var(--text-primary); margin-bottom: 2px; }
.app-toast-message { font-size: var(--text-xs); color: var(--text-secondary); line-height: 1.5; word-wrap: break-word; }
.app-toast-close {
  flex-shrink: 0; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--text-muted); cursor: pointer;
  border-radius: var(--radius-sm); font-size: 1rem; padding: 0;
}
.app-toast-close:hover { background-color: var(--bg-tertiary); color: var(--text-primary); }
.app-toast-progress { position: absolute; bottom: 0; left: 0; height: 2px; background-color: var(--border-light); width: 100%; overflow: hidden; }
.app-toast-progress-bar { height: 100%; transition: width linear; }
.app-toast-success .app-toast-progress-bar { background-color: var(--success); }
.app-toast-error .app-toast-progress-bar { background-color: var(--danger); }
.app-toast-warning .app-toast-progress-bar { background-color: var(--warning); }
.app-toast-info .app-toast-progress-bar { background-color: var(--primary); }

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(40px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to { opacity: 0; transform: translateX(40px) scale(0.96); }
}

@media (max-width: 768px) {
  .app-toast-container { top: 8px; right: 10px; left: 10px; max-width: none; }
  .app-toast { padding: 12px 14px; min-width: unset; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   模块内子导航 Tab (Sub-Nav Tabs)
   仅移动端显示，桌面端通过顶部导航栏已能清晰定位当前模块
   ============================================================ */

.sub-nav-tabs {
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: calc(var(--z-sticky) - 2);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  padding: 0 var(--space-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
  scrollbar-width: none;
}
.sub-nav-tabs::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .sub-nav-tabs {
    display: none;
  }
  .sub-nav-back {
    display: none;
  }
}

.sub-nav-tab {
  padding: 10px 18px;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  font-family: inherit;
  flex-shrink: 0;
}

.sub-nav-tab:hover {
  color: var(--text-primary);
}

.sub-nav-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ============================================================
   我的页面 (My Page) 菜单列表
   移动端 "我的" Tab 对应的页面
   ============================================================ */

.my-page {
  padding: var(--space-3) 0;
}

.my-page-user-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-4);
  margin: 0 var(--space-3) var(--space-4);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
}

.my-page-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.my-page-user-info {
  flex: 1;
  min-width: 0;
}

.my-page-username {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.my-page-role {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 2px;
}

.my-page-menu-group {
  margin: 0 var(--space-3) var(--space-4);
}

.my-page-menu-group-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 var(--space-2);
  margin-bottom: var(--space-1);
}

.my-page-menu {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.my-page-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background var(--transition-fast);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
}

.my-page-menu-item:hover {
  background: var(--bg-secondary);
  text-decoration: none;
  color: var(--text-primary);
}

.my-page-menu-item + .my-page-menu-item {
  border-top: 1px solid var(--border-light);
}

.my-page-menu-item i:first-child {
  width: 24px;
  text-align: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.my-page-menu-item i:last-child {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.my-page-menu-item .menu-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.my-page-menu-item .menu-item-icon.blue { background: var(--primary-100); color: var(--primary); }
.my-page-menu-item .menu-item-icon.orange { background: var(--warning-100); color: var(--warning); }
.my-page-menu-item .menu-item-icon.purple { background: rgba(175, 82, 222, 0.1); color: #af52de; }
.my-page-menu-item .menu-item-icon.red { background: var(--danger-100); color: var(--danger); }

.my-page-menu-item.danger {
  color: var(--danger);
}
