/* ============================================
   佳梦云网络云盘 - 主题样式
   四川佳梦云网络科技有限公司
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  --bg-primary: #f5f7fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent2: #6366f1;
  --accent-gradient: linear-gradient(135deg, #3b82f6, #6366f1);
  --border-color: #e2e8f0;
  --border-glow: rgba(59, 130, 246, 0.15);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-glow: 0 4px 16px rgba(59, 130, 246, 0.08);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: #2563eb;
}

img { max-width: 100%; height: auto; }

/* ===== Container ===== */
.jm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.jm-main {
  flex: 1;
  padding-top: 80px;
}

/* ===== Navbar ===== */
.jm-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.jm-navbar .jm-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.jm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.jm-logo:hover {
  color: var(--text-primary);
  opacity: 0.9;
}
.jm-logo-img {
  height: 32px;
  max-height: 32px;
  max-width: 140px;
  width: auto;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: contain;
  object-position: left center;
}
.jm-logo span {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jm-logo-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.jm-nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.jm-nav-menu > li > a {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: var(--transition);
}
.jm-nav-menu > li > a:hover,
.jm-nav-menu > li > a.active {
  color: var(--accent);
  background: rgba(59, 130, 246, 0.06);
}

.jm-nav-user {
  position: relative;
}
.jm-user-btn {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.jm-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.jm-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  min-width: 160px;
  padding: 6px;
  list-style: none;
  z-index: 100;
}
.jm-nav-user:hover .jm-dropdown {
  display: block;
}
.jm-dropdown li a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  white-space: nowrap;
}
.jm-dropdown li a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.jm-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.jm-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  /* 移动端隐藏顶部汉堡菜单和导航 */
  .jm-nav-toggle {
    display: none !important;
  }
  .jm-nav-menu {
    display: none !important;
  }
  
  /* 移动端隐藏桌面侧边栏 */
  .jm-user-sidebar {
    display: none !important;
  }
  
  /* 移动端底部导航栏 */
  .jm-mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -1px 4px rgba(0,0,0,0.04);
    justify-content: space-around;
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
  }
  .jm-mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-muted);
    font-size: 0.65rem;
    padding: 4px 10px;
    text-decoration: none;
    transition: var(--transition);
    min-width: 48px;
  }
  .jm-mobile-nav a.active {
    color: var(--accent);
  }
  .jm-mobile-nav a svg {
    width: 20px;
    height: 20px;
  }
  
  /* 移动端内容区域留出底部导航空间 */
  .jm-user-content {
    padding-bottom: 80px;
  }
  
  /* 移动端表格优化 */
  .jm-table-wrap {
    margin: 0 -16px;
    padding: 0 16px;
  }
  .jm-table th, .jm-table td {
    padding: 10px 8px;
    font-size: 0.75rem;
  }
  .jm-table-name {
    max-width: 120px;
  }
  .jm-table-actions {
    flex-wrap: wrap;
    gap: 4px !important;
  }
  .jm-btn-xs {
    padding: 6px 12px;
    font-size: 0.75rem;
    min-height: 36px;
    min-width: 44px;
  }
  
  /* 移动端卡片优化 */
  .jm-card {
    padding: 20px 16px;
  }
  .jm-stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .jm-stat-card {
    padding: 18px 12px !important;
  }
  .jm-stat-num {
    font-size: 1.4rem;
  }
}

/* ===== Hero Section (Home Page) ===== */
.jm-hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 80px;
  position: relative;
  overflow: hidden;
}

.jm-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.04) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.jm-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.jm-hero-icon {
  margin-bottom: 28px;
}

.jm-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.jm-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

.jm-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.jm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  text-decoration: none;
}

.jm-btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.25);
}
.jm-btn-primary:hover {
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.4);
  transform: translateY(-1px);
  color: #fff;
}

.jm-btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
}
.jm-btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 212, 255, 0.05);
}

.jm-btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 6px;
}

.jm-btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.jm-btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.jm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== Card ===== */
.jm-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.jm-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.jm-card-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.jm-card-header h2, .jm-card-header h3 {
  color: var(--text-primary);
  font-weight: 700;
}

/* ===== Section Title ===== */
.jm-section-title {
  text-align: center;
  margin-bottom: 48px;
}
.jm-section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #c8d6e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.jm-section-title p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== Feature Grid ===== */
.jm-features {
  padding: 80px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.jm-feature-item {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.jm-feature-item:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.jm-feature-item .jm-feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(59, 130, 246, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
}
.jm-feature-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.jm-feature-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Stats Row ===== */
.jm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 40px 0;
}

.jm-stat-item {
  text-align: center;
  padding: 20px;
}

.jm-stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, #00d4ff, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.jm-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ===== Auth Forms (Login / Register) ===== */
.jm-auth-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
  position: relative;
}

.jm-auth-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-card);
}

.jm-auth-card h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.jm-auth-card .jm-auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 32px;
}

/* ===== Form Elements ===== */
.jm-form-group {
  margin-bottom: 20px;
}

.jm-form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.jm-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.jm-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.jm-input::placeholder {
  color: var(--text-muted);
}

.jm-input-row {
  display: flex;
  gap: 12px;
}

.jm-input-row .jm-input {
  flex: 1;
}

.jm-input-row .jm-btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 12px 20px;
}

.jm-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.jm-checkbox-group input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.jm-form-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.jm-form-footer a {
  font-weight: 600;
}

/* ===== Social Login ===== */
.jm-social-login {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.jm-social-login p {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.jm-social-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.jm-social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  color: var(--text-secondary);
}
.jm-social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 212, 255, 0.08);
}

/* ===== Toast ===== */
.jm-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: jmSlideDown 0.3s ease;
  display: none;
}
@keyframes jmSlideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.jm-toast.success {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
}
.jm-toast.error {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
}
.jm-toast.warning {
  background: rgba(245, 158, 11, 0.9);
  color: #fff;
}

/* ===== Table ===== */
.jm-table {
  width: 100%;
  border-collapse: collapse;
}

.jm-table th,
.jm-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.jm-table th {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.jm-table tbody tr {
  transition: var(--transition);
}
.jm-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.jm-table td {
  color: var(--text-secondary);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jm-table .jm-table-actions {
  display: flex;
  gap: 8px;
}

.jm-table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== Pagination ===== */
.jm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.jm-page-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}
.jm-page-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}
.jm-page-item.active {
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 700;
}
.jm-page-item.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ===== Upload Area ===== */
.jm-upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-input);
}

.jm-upload-area:hover,
.jm-upload-area.dragover {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.04);
}

.jm-upload-area h3 {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.jm-upload-area p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.jm-upload-progress {
  margin-top: 20px;
}

.jm-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.jm-progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}

.jm-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ===== User Center ===== */
.jm-user-layout {
  display: flex;
  gap: 32px;
  padding: 40px 0;
  min-height: calc(100vh - 200px);
}

.jm-user-sidebar {
  width: 240px;
  flex-shrink: 0;
}

.jm-user-sidebar .jm-card {
  padding: 0;
  overflow: hidden;
}

.jm-user-info {
  text-align: center;
  padding: 28px 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.jm-user-avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 14px;
  flex-shrink: 0;
}

.jm-user-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.jm-user-phone {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.jm-sidebar-nav {
  list-style: none;
  padding: 8px;
}

.jm-sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.jm-sidebar-nav li a:hover {
  color: var(--text-primary);
  background: var(--bg-input);
}

.jm-sidebar-nav li a.active {
  color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
  font-weight: 600;
}

.jm-user-content {
  flex: 1;
  min-width: 0;
}

/* Card Title */
.jm-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-primary);
}

/* Progress Bar */
.jm-progress-lg {
  height: 10px !important;
  margin-bottom: 10px;
}

.jm-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Stat Grid */
.jm-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.jm-stat-card {
  text-align: center;
  padding: 24px 16px !important;
}

.jm-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, #00d4ff, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.jm-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Actions */
.jm-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Card Header Row */
.jm-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}
.jm-card-header-row .jm-card-title {
  margin-bottom: 0;
}

/* Extra Small Button */
.jm-btn-xs {
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 4px;
}

/* Table Wrap */
.jm-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -8px;
  padding: 0 8px;
}

.jm-table-name {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Row Disabled */
.jm-row-disabled {
  opacity: 0.45;
}

/* Monospace */
.jm-mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* 移动端底部导航栏 - 桌面端默认隐藏 */
.jm-mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  .jm-user-layout {
    flex-direction: column;
    gap: 20px;
  }
  .jm-user-sidebar {
    width: 100%;
  }
  .jm-hero h1 {
    font-size: 2rem;
  }
  .jm-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .jm-features {
    grid-template-columns: 1fr;
  }
  .jm-auth-card {
    padding: 28px 20px;
  }
}

/* ===== File Icon Types ===== */
.jm-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}

.jm-file-icon.image  { background: #f59e0b; }
.jm-file-icon.video  { background: #8b5cf6; }
.jm-file-icon.audio  { background: #10b981; }
.jm-file-icon.doc    { background: #3b82f6; }
.jm-file-icon.code   { background: #6366f1; }
.jm-file-icon.archive { background: #f97316; }
.jm-file-icon.default { background: #64748b; }

/* ===== Empty State ===== */
.jm-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.jm-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}
.jm-empty h3 {
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 8px;
}
.jm-empty p {
  font-size: 0.875rem;
}

/* ===== Alert ===== */
.jm-alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 20px;
}
.jm-alert.success { background: rgba(16, 185, 129, 0.1); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.jm-alert.error   { background: rgba(239, 68, 68, 0.1); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }
.jm-alert.warning { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }

/* ===== Share Card ===== */
.jm-share-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  word-break: break-all;
}

/* ===== Modal ===== */
.jm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.jm-modal {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
}
.jm-modal h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.jm-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ===== Footer ===== */
.jm-footer {
  background: rgba(10, 14, 39, 0.7);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.jm-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.jm-footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.jm-footer-col p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.jm-footer-col ul {
  list-style: none;
}
.jm-footer-col ul li {
  margin-bottom: 6px;
}
.jm-footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.jm-footer-col ul li a:hover {
  color: var(--accent);
}

.jm-footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.jm-footer-bottom p {
  margin-bottom: 4px;
}
.jm-footer-bottom a {
  color: var(--text-muted);
}
.jm-footer-bottom a:hover {
  color: var(--accent);
}

/* ===== Spinner ===== */
.jm-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: jmSpin 0.7s linear infinite;
}
@keyframes jmSpin {
  to { transform: rotate(360deg); }
}

/* ===== Utility ===== */
.jm-text-center { text-align: center; }
.jm-text-muted  { color: var(--text-muted); }
.jm-text-accent { color: var(--accent); }
.jm-text-sm     { font-size: 0.85rem; }
.jm-mt-1  { margin-top: 8px; }
.jm-mt-2  { margin-top: 16px; }
.jm-mt-3  { margin-top: 24px; }
.jm-mt-4  { margin-top: 32px; }
.jm-mb-2  { margin-bottom: 16px; }
.jm-mb-3  { margin-bottom: 24px; }
.jm-flex-center { display: flex; align-items: center; justify-content: center; }
.jm-flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ===== Loading Overlay ===== */
.jm-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 39, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jm-loading-dots {
  display: flex;
  gap: 6px;
}
.jm-loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: jmDotPulse 1.4s infinite ease-in-out both;
}
.jm-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.jm-loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.jm-loading-dots span:nth-child(3) { animation-delay: 0; }
@keyframes jmDotPulse {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ===== Legacy support ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.infobox { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 32px; }

/* 确保桌面端隐藏移动端底部导航（在文件末尾优先级最高） */
.jm-mobile-nav {
  display: none !important;
}
@media (max-width: 768px) {
  .jm-mobile-nav {
    display: flex !important;
  }
}
