/* 新现代风格设计 - 统一CSS文件（保留苹果风格动画） */

/* CSS变量定义 - 新现代风格 */
:root {
    /* 主色调 - 更现代的紫色系 */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-alpha: rgba(99, 102, 241, 0.1);
    
    /* 辅助色 - 更鲜艳的色调 */
    --secondary-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* 中性色 - 现代简约风格 */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --border-color: #e2e8f0;
    --border-light: #f7fafc;
    
    /* 间距 - 保持充足的留白 */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
    
    /* 圆角 - 更现代的圆角设计 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* 阴影 - 更现代的阴影效果 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* 过渡 - 保留苹果风格的平滑过渡效果 */
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-apple: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 应用容器布局 */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* 汉堡菜单按钮 */
.hamburger-menu {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 0.5rem;
    box-sizing: border-box;
}

.hamburger-menu:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background: #2d3748;
    border-radius: 2px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.hamburger-menu span:last-child {
    margin-bottom: 0;
}

/* 汉堡菜单打开状态 */
.hamburger-menu.open span:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open span:last-child {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* 侧边栏遮罩 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    transition: opacity 0.3s ease;
}

/* 左侧导航栏样式 */
.sidebar {
    width: 220px;
    background-color: #2d3748;
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    resize: horizontal;
    overflow: hidden;
    min-width: 180px;
    max-width: 400px;
    position: relative;
}

/* 调整大小手柄 */
.sidebar-resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background-color: transparent;
    cursor: ew-resize;
    z-index: 100;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

.sidebar-resizer:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-resizer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
    transition: opacity 0.3s ease;
}

/* 电脑端调整大小提示 */
@media (min-width: 769px) {
    /* 电脑端侧边栏调整优化 */
    .sidebar {
        border-right: 1px solid #4a5568;
        /* 移除默认宽度过渡，避免加载时闪烁 */
    }
    
    /* 只在调整大小时应用过渡效果 */
    .sidebar.sidebar-resizing {
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* 调整大小手柄提示 */
    .sidebar-resizer::before {
        content: '拖动调整大小';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        font-size: 0.8rem;
        white-space: nowrap;
        opacity: 0;
        transition: opacity 0.3s ease, transform 0.3s ease;
        pointer-events: none;
        z-index: 101;
    }
    
    .sidebar-resizer:hover::before {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    
    /* 更明显的调整大小手柄 */
    .sidebar-resizer {
        width: 8px;
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .sidebar-resizer:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }
    
    /* 调整过程中的视觉反馈 */
    .sidebar-resizing {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    }
}

/* 主内容区域需要自适应侧边栏宽度 */
.main-content {
    flex: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #4a5568;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
}

.sidebar-header h2 i {
    color: white;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: all var(--transition-fast);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    letter-spacing: 0.02em;
    line-height: 1.5;
    font-weight: 400;
}

.nav-link:hover {
    background-color: #4a5568;
    color: white;
}

.nav-link i {
    width: 1.25rem;
    text-align: center;
}

.logout-item, .login-item {
    margin-top: auto;
}

.admin-info-sidebar, .user-info-sidebar {
    padding: 1rem 1.5rem;
    border-top: 1px solid #4a5568;
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

/* 玻璃态效果 */
.glass {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(0px); /* 默认关闭，减少移动端GPU消耗 */
    -webkit-backdrop-filter: blur(0px);
}

/* 仅在支持backdrop-filter的桌面端使用 */
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    @media (min-width: 769px) {
        .glass {
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            background: rgba(255, 255, 255, 0.7);
        }
    }
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    margin: 0;
    line-height: 1.7;
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    background-attachment: fixed;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: var(--space-lg);
}

/* 玻璃拟态效果 */
.container.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.card-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

h1 {
    font-size: 1.8rem;
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

h2 {
    font-size: 1.5rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: var(--space-md);
}

label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* 文件上传样式 */
.form-control-file {
    padding: var(--space-md);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.form-control-file:hover {
    border-color: var(--primary-color);
    background: var(--primary-alpha);
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all var(--transition-fast);
    font-weight: 500;
    font-family: inherit;
    min-width: 100px;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background-color: #2563eb;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
    color: white;
}

.btn-secondary {
    background-color: #e5e7eb;
    color: #1f2937;
    box-shadow: var(--shadow-sm);
    font-weight: 700;
    border: 1px solid #9ca3af;
    background-image: none;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background-color: #d1d5db;
    transform: translateY(-1px);
    color: #111827;
    border-color: #6b7280;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 确保所有按钮文字清晰可见 */
.btn {
    font-weight: 600;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-success:hover {
    background-color: #28c76f;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.25);
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover {
    background-color: #ff453a;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.25);
    transform: translateY(-1px);
}

/* 按钮组样式 */
.btn-group {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

/* 选项卡样式 */
.album-type-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xs);
}

.album-type-option {
    padding: var(--space-lg);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: white;
}

.album-type-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.album-type-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-alpha);
}

/* 列表样式 */
.list-group {
    margin: var(--space-md) 0;
}

.list-group-item {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.list-group-item:hover {
    background-color: var(--bg-tertiary);
}

.list-group-item:last-child {
    border-bottom: none;
}

/* 消息提示样式 */
.alert {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.alert-success {
    background-color: rgba(52, 199, 89, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background-color: rgba(255, 59, 48, 0.1);
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.alert-info {
    background-color: var(--primary-alpha);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* 微动画效果 - 增强用户体验 */
.container {
    animation: fadeIn 0.6s ease-out;
}

/* 苹果风格的弹性动画 */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* 苹果风格的缩放动画 */
@keyframes scale {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 苹果风格的滑动动画 */
@keyframes slideIn {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 为页面元素添加苹果风格动画 */
.section {
    animation: slideIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }

/* 苹果风格的悬停效果 */
@media (min-width: 769px) {
    .material-item {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .material-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    }
    
    .btn {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }
    
    .nav-link {
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* 苹果风格的触摸反馈 */
@media (max-width: 768px) {
    .material-item:active,
    .btn:active {
        transform: scale(0.97);
        transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-link:active {
        background-color: rgba(255, 255, 255, 0.1);
        transform: scale(0.98);
        transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* 苹果风格的渐变效果 */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 苹果风格的微妙阴影 */
.apple-shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.apple-shadow:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* 苹果风格的平滑滚动 */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* 苹果风格的元素进入动画 */
.apple-slide-in {
    opacity: 0;
    transform: translateY(20px);
    animation: appleSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes appleSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 苹果风格的脉冲动画 */
.apple-pulse {
    animation: applePulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes applePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 苹果风格的加载动画 */
.apple-loading {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: appleSpin 0.8s linear infinite;
}

@keyframes appleSpin {
    to {
        transform: rotate(360deg);
    }
}

/* 页面加载淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 元素滚动出现动画 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 卡片悬停动画 */
.album-card,
.media-card {
    transition: all var(--transition-normal);
}

.album-card:hover,
.media-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* 图片悬停效果 */
.img-hover-zoom {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.img-hover-zoom:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* 按钮微动画增强 */
.btn {
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-normal);
}

.btn:hover::before {
    left: 100%;
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: pulse 1.5s infinite;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* 表单元素动画 */
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    transition: all var(--transition-fast);
    position: relative;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    transform: translateY(-1px);
}

/* 导航栏微动画 */
.navbar-link {
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

.navbar-link:hover::after {
    width: 100%;
}

/* 数字计数器动画 */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter {
    animation: countUp 0.5s ease-out;
}

/* 标签动画 */
.tag {
    transition: all var(--transition-fast);
}

.tag:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* 悬浮效果 */
.hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 0;
        font-size: 14px;
    }
    
    /* 显示汉堡菜单 */
    .hamburger-menu {
        display: block;
    }
    
    /* 移动端布局调整 */
    .app-container {
        flex-direction: column;
        min-height: 100vh;
    }
    
    /* 侧边栏默认隐藏并添加动画 */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 280px;
        height: 100vh;
        max-height: none;
        z-index: 999;
        transition: left 0.3s ease;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
    }
    
    /* 侧边栏显示状态 */
    .sidebar.open {
        left: 0;
    }
    
    .sidebar-nav {
        flex-grow: 1;
        overflow-y: auto;
    }
    
    .main-content {
        padding: 0.75rem;
        width: 100%;
        box-sizing: border-box;
        transition: all 0.3s ease;
    }
    
    /* 显示遮罩 */
    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }
    
    .card-container {
        padding: var(--space-md);
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .album-type-options {
        grid-template-columns: 1fr;
    }
    
    /* 确保表单元素在移动端正常显示 */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    textarea,
    select {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
}


