/* ======= all.css - 统一样式文件 ======= */

/* ======= 统计卡片样式修复 - 高优先级 ======= */
.stats-overview .stat-card {
    background: linear-gradient(135deg, #4361ee, #3a56d4) !important;
}

.stats-overview .stat-card .stat-number {
    color: #ffffff !important;
}

.stats-overview .stat-card .stat-label {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ======= 1. 基础样式 (base.css) ======= */

:root {
    --primary-color: #4361ee;
    --primary-light: #5a7dfe;
    --primary-dark: #2a4fe8;
    --secondary-color: #3a56d4;
    
    --success-color: #10b981;
    --success-light: #34d399;
    --success-dark: #059669;
    --danger-color: #ef4444;
    --danger-light: #f87171;
    --danger-dark: #dc2626;
    --warning-color: #f59e0b;
    --warning-light: #fbbf24;
    --warning-dark: #d97706;
    --info-color: #3b82f6;
    --info-light: #60a5fa;
    --info-dark: #2563eb;
    
    --light-color: #f8fafc;
    --light-gray: #f1f5f9;
    --gray-color: #64748b;
    --gray-light: #94a3b8;
    --gray-dark: #475569;
    --dark-color: #1e293b;
    --border-color: #e2e8f0;
    
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-success: linear-gradient(135deg, var(--success-color) 0%, var(--success-light) 100%);
    --gradient-danger: linear-gradient(135deg, var(--danger-color) 0%, var(--danger-light) 100%);
    --gradient-warning: linear-gradient(135deg, var(--warning-color) 0%, var(--warning-light) 100%);
    
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    font-weight: 500;
}

a:hover {
    color: var(--primary-dark);
}

a.text-link {
    color: var(--primary-color);
    text-decoration: none;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
    position: relative;
    display: inline-block;
}

a.text-link:hover {
    color: var(--primary-dark);
    background-color: rgba(67, 97, 238, 0.08);
    transform: translateY(-1px);
}

a.text-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient-primary);
    border-radius: 1px;
    transition: width var(--transition-normal);
}

a.text-link:hover:after {
    width: 100%;
}

a.button-link {
    background: var(--gradient-primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

a.button-link:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

a.button-link:active {
    transform: translateY(0);
}

a.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: var(--light-color);
    color: var(--gray-color);
    transition: all var(--transition-normal);
}

a.icon-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

a.nav-link {
    color: var(--gray-dark);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-weight: 500;
    display: inline-block;
}

a.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--light-gray);
    transform: translateX(2px);
}

a.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.1);
    font-weight: 600;
}

a.underline-link {
    color: var(--primary-color);
    position: relative;
    padding-bottom: 2px;
}

a.underline-link:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
    border-radius: 1px;
}

a.underline-link:hover:after {
    transform: scaleX(1);
    transform-origin: left;
}

a.gradient-link {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

a.gradient-link:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    transform: translateY(-1px);
}

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

/* 工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-bold { font-weight: 700; }
.text-semibold { font-weight: 600; }
.text-muted { color: var(--gray-color); }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-info { color: var(--info-color); }
.text-white { color: white; }

.bg-primary { background-color: var(--primary-color); }
.bg-success { background-color: var(--success-color); }
.bg-danger { background-color: var(--danger-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-info { background-color: var(--info-color); }
.bg-light { background-color: var(--light-color); }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }

.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.hidden { display: none; }
.inline { display: inline; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 基础按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-success {
    background: var(--gradient-success);
}

.btn-danger {
    background: var(--gradient-danger);
}

.btn-warning {
    background: var(--gradient-warning);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
    min-width: 200px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* 响应式图片 */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.img-circle {
    border-radius: var(--radius-full);
}

.img-rounded {
    border-radius: var(--radius-lg);
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* 分割线 */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 20px 0;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 表单基础样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #4361ee;
    background: white;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* 警告框 */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-align: center;
    white-space: nowrap;
}

.badge-primary {
    background: linear-gradient(135deg, #4361ee, #3a56d4);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.badge-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.badge-secondary {
    background: #e2e3e5;
    color: #383d41;
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    a.text-link:after,
    a.underline-link:after {
        display: none;
    }
}

/* 响应式设计基础 */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    button, 
    a[role="button"],
    .btn {
        min-height: 40px;
    }
    
    .card {
        padding: 16px;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #1e293b;
        --dark-color: #f8fafc;
        --border-color: #334155;
        --gray-color: #94a3b8;
    }
    
    body {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        color: var(--dark-color);
    }
    
    .card {
        background: #1e293b;
        border-color: #334155;
    }
    
    a {
        color: var(--primary-light);
    }
    
    a:hover {
        color: var(--primary-color);
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeIn var(--transition-normal) forwards;
}

.slide-up {
    animation: slideUp var(--transition-normal) forwards;
}

.slide-in-right {
    animation: slideInRight var(--transition-normal) forwards;
}

/* ======= 2. 头部样式 (header.css) ======= */

/* 桌面端导航 */
.desktop-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.desktop-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.desktop-nav a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.desktop-nav a.active {
    background-color: var(--primary-color);
    color: white;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #333;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0;
    transition: background-color 0.2s ease;
    position: relative;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-btn:hover {
    background-color: #f5f5f5;
}

.mobile-menu-btn:active {
    background-color: #e0e0e0;
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* 移动端菜单 */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 15px rgba(0,0,0,0.1);
    z-index: 1003;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    will-change: right;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
}

.mobile-nav-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 18px;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #666;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-nav-close:hover {
    background-color: #f5f5f5;
}

.mobile-nav-close:active {
    background-color: #e0e0e0;
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.mobile-nav-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
    width: 100%;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.mobile-nav li {
    width: 100%;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    width: 100%;
    background-color: white;
    transition: background-color 0.2s ease;
    border-left: 4px solid transparent;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-nav a.active {
    background-color: #f8f9fa;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.mobile-nav a:hover {
    background-color: #f5f5f5;
}

.mobile-nav a:active {
    background-color: #e0e0e0;
    transition: background-color 0.1s ease;
}

.mobile-nav a i {
    width: 22px;
    font-size: 16px;
    text-align: center;
    margin-right: 12px;
    color: #666;
}

.mobile-nav a.active i {
    color: var(--primary-color);
}

/* 头部样式 */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 70px;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo i {
    font-size: 1.6rem;
}

main {
    min-height: calc(100vh - 70px - 70px);
    padding: 25px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        z-index: 1002;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: flex;
        z-index: 1003;
    }
    
    header {
        position: relative;
        z-index: 1001;
        height: 65px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    main {
        min-height: calc(100vh - 65px - 60px);
        padding: 20px 0;
        padding-bottom: 80px;
    }
    
    .mobile-menu-btn {
        width: 48px;
        height: 48px;
    }
    
    .mobile-nav-close {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    header {
        height: 60px;
    }
    
    .logo {
        font-size: 1.2rem;
        gap: 8px;
    }
    
    .logo i {
        font-size: 1.4rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .mobile-nav {
        width: 260px;
    }
    
    .mobile-nav a {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .mobile-menu-btn {
        width: 46px;
        height: 46px;
        font-size: 1.3rem;
    }
    
    .mobile-nav-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .mobile-menu-btn,
    .mobile-nav-close,
    .mobile-nav a {
        cursor: default;
    }
    
    .mobile-menu-btn,
    .mobile-nav-close {
        min-height: 48px;
        min-width: 48px;
    }
    
    .mobile-nav a {
        min-height: 50px;
    }
    
    .mobile-menu-btn:active,
    .mobile-nav-close:active,
    .mobile-nav a:active {
        background-color: #e8e8e8;
        transition: background-color 0.1s;
    }
}

/* ======= 3. 底部样式 (footer.css) ======= */

.floating-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.floating-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.floating-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    padding: 4px 6px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 11px;
    flex: 1;
    min-width: 0;
    max-width: 80px;
    height: 50px;
}

.floating-nav-item i {
    font-size: 16px;
    margin-bottom: 3px;
    transition: transform 0.2s ease;
}

.floating-nav-item span {
    font-size: 10px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    line-height: 1.2;
}

.floating-nav-item:hover {
    background-color: #f5f5f5;
    color: var(--primary-color, #007bff);
}

.floating-nav-item:hover i {
    transform: translateY(-1px);
}

.floating-nav-item.active {
    background-color: var(--primary-color, #007bff);
    color: white;
}

.floating-nav-item.active:hover {
    background-color: var(--secondary-color, #0056b3);
    color: white;
}

.floating-nav-item[target="_blank"] {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: normal;
}

.floating-nav-item[target="_blank"]:hover {
    background-color: #e9ecef;
    color: var(--primary-color, #007bff);
}

.main-footer {
    padding: 20px 0;
    background-color: #f8f9fa;
    color: #666;
    text-align: center;
    border-top: 1px solid #dee2e6;
    margin-top: 60px;
}

.main-footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-footer a:hover {
    color: var(--primary-color, #007bff);
}

.main-footer .mt-1 {
    margin-top: 10px;
}

.main-footer .me-1 {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .floating-footer {
        padding: 6px 0;
    }
    
    .floating-nav {
        padding: 0 8px;
    }
    
    .floating-nav-item {
        padding: 3px 4px;
        height: 48px;
        border-radius: 6px;
    }
    
    .floating-nav-item i {
        font-size: 15px;
        margin-bottom: 2px;
    }
    
    .floating-nav-item span {
        font-size: 9px;
    }
    
    .floating-nav-item:nth-child(n+7) span {
        font-size: 8px;
    }
    
    .floating-nav-item {
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .floating-nav-item {
        padding: 2px 3px;
        height: 46px;
    }
    
    .floating-nav-item i {
        font-size: 14px;
        margin-bottom: 1px;
    }
    
    .floating-nav-item span {
        font-size: 8px;
    }
    
    .floating-nav-item[target="_blank"] span {
        font-size: 7px;
        word-break: break-word;
        white-space: normal;
        line-height: 1.1;
        max-height: 20px;
        overflow: hidden;
    }
}

@media (max-width: 360px) {
    .floating-nav {
        padding: 0 5px;
    }
    
    .floating-nav-item {
        padding: 2px;
        min-width: 50px;
    }
    
    .floating-nav-item i {
        font-size: 13px;
    }
    
    .floating-nav-item span {
        font-size: 7px;
    }
    
    .floating-nav-item[target="_blank"] span {
        font-size: 6px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .floating-nav-item {
        max-width: 100px;
    }
    
    .floating-nav-item i {
        font-size: 18px;
    }
    
    .floating-nav-item span {
        font-size: 11px;
    }
}

body {
    padding-bottom: 70px;
}

@media (hover: none) and (pointer: coarse) {
    .floating-nav-item {
        -webkit-tap-highlight-color: transparent;
    }
    
    .floating-nav-item:active {
        background-color: rgba(0, 123, 255, 0.1);
        transition: background-color 0.1s;
    }
}

@media (prefers-color-scheme: dark) {
    .floating-footer {
        background-color: rgba(30, 30, 30, 0.95);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .floating-nav-item {
        color: #bbb;
    }
    
    .floating-nav-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--primary-color, #66b3ff);
    }
    
    .floating-nav-item[target="_blank"] {
        background-color: rgba(255, 255, 255, 0.05);
        color: #aaa;
    }
    
    .floating-nav-item[target="_blank"]:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--primary-color, #66b3ff);
    }
}

.floating-nav-item:focus {
    outline: 2px solid var(--primary-color, #007bff);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .floating-nav-item,
    .floating-nav-item i {
        transition: none;
    }
}

/* ======= 4. 日记主页面样式 (style.css) ======= */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.25rem 0;
}

.user-subtitle {
    color: var(--gray);
    margin: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-subtitle i {
    color: #12B7F5;
}

.header-actions {
    flex-shrink: 0;
}

/* 日记列表布局 */
.diary-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.diary-item {
    background: white;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #eaeaea;
    transition: all 0.2s ease;
    display: flex;
    overflow: hidden;
}

.diary-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.diary-image {
    width: 120px;
    min-width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.diary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.diary-item:hover .diary-image img {
    transform: scale(1.05);
}

.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    padding: 1rem;
    text-align: center;
    width: 100%;
    height: 100%;
}

.no-image i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.no-image span {
    font-size: 0.8rem;
}

.diary-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.diary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.diary-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.diary-date {
    color: var(--gray);
    font-size: 0.85rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mood-icon, .weather-icon {
    font-size: 1rem;
}

.diary-excerpt {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.diary-actions {
    display: flex;
    gap: 0.5rem;
}

.diary-actions .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.empty-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 1.3rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
    color: var(--gray);
    font-size: 0.95rem;
}

.empty-actions .btn {
    padding: 0.6rem 1.2rem;
}

/* 搜索样式 */
.search-section {
    margin-bottom: 1.5rem;
}

.search-form {
    width: 100%;
}

.search-box {
    display: flex;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.2);
}

.search-input {
    flex: 1;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    background: transparent;
    outline: none;
    color: var(--dark);
}

.search-btn {
    background: var(--primary);
    border: none;
    padding: 0 1rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: var(--secondary);
}

.search-status {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    border-left: 4px solid var(--primary);
}

.search-info {
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-keyword {
    color: var(--primary);
    font-weight: 600;
    background: rgba(67, 97, 238, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* 分页控件 */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: var(--gray);
    font-size: 0.9rem;
}

.pagination-settings {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.per-page-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.per-page-form label {
    color: var(--gray);
    font-size: 0.9rem;
}

.per-page-form select {
    padding: 0.4rem 0.8rem;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
}

/* 分页导航 */
.pagination-nav {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 2.5rem;
}

.page-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-link.current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-link.prev,
.page-link.next {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.page-dots {
    padding: 0.5rem 0.25rem;
    color: var(--gray);
}

/* 搜索高亮 */
.search-highlight {
    background: #fff3cd;
    padding: 0.1em 0.2em;
    border-radius: 3px;
    font-weight: bold;
    color: #856404;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0;
    }
    
    .header-actions {
        align-self: stretch;
    }
    
    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .diary-item {
        flex-direction: column;
    }
    
    .diary-image {
        width: 100%;
        height: 160px;
        min-width: auto;
    }
    
    .diary-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .diary-date {
        justify-content: space-between;
    }
    
    .diary-actions {
        justify-content: space-between;
    }
    
    .diary-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    .pagination-controls {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 0.75rem;
    }
    
    .search-status {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .diary-image {
        height: 140px;
    }
    
    .diary-content {
        padding: 0.75rem;
    }
    
    .diary-title {
        font-size: 1rem;
    }
    
    .diary-excerpt {
        font-size: 0.85rem;
    }
    
    .diary-actions .btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .pagination {
        gap: 0.25rem;
    }
    
    .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: 2rem;
    }
    
    .page-link.prev,
    .page-link.next {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .diary-item:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .diary-item:active {
        transform: scale(0.98);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .diary-actions .btn {
        min-height: 44px;
    }
}

/* ======= 5. 后台管理样式 (admin_dashboard.css) ======= */

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    min-height: calc(100vh - 120px);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.admin-title {
    font-size: 24px;
    font-weight: 700;
    color: #343a40;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-title:before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #4361ee, #3a56d4);
    border-radius: 2px;
}

.admin-user-info {
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-user-name {
    font-weight: 500;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-user-name i {
    color: #4361ee;
}

.admin-nav {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.admin-nav::-webkit-scrollbar {
    display: none;
}

.admin-nav-item {
    flex: 0 0 auto;
    text-align: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
    white-space: nowrap;
}

.admin-nav-item:hover {
    background: #f8f9fa;
    color: #4361ee;
}

.admin-nav-item.active {
    background: linear-gradient(135deg, #4361ee, #3a56d4);
    color: white;
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.3);
}

.admin-tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.admin-tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 确保创建备份表单默认隐藏 */
body #backup-tab .create-backup-form {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 显示创建备份表单 */
body #backup-tab .create-backup-form.show {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: #4361ee;
}

.admin-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4361ee, #3a56d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.admin-stat-info {
    flex: 1;
}

.admin-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #343a40;
    line-height: 1;
    margin-bottom: 5px;
}

.admin-stat-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.admin-section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #343a40;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    min-width: 32px;
    min-height: 32px;
}

.btn-edit { background: #17a2b8; color: white; }
.btn-delete { background: #dc3545; color: white; }
.btn-view { background: #28a745; color: white; }
.btn-check { background: #17a2b8 !important; color: white !important; }

.btn-action.btn-info { background: #17a2b8; color: white; }
.btn-action.btn-primary { background: #4361ee; color: white; }
.btn-action.btn-warning { background: #f59e0b; color: white; }
.btn-action.btn-success { background: #28a745; color: white; }
.btn-action.btn-danger { background: #ef4444; color: white; }
.btn-action.btn-secondary { background: #6b7280; color: white; }

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.admin-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    overflow-x: auto;
    position: relative;
    min-height: 200px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.admin-table th {
    background: #f8f9fa;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: background-color 0.2s ease;
}

.admin-table tbody tr:hover {
    background-color: #f8f9fa;
}

.user-info-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    font-weight: 500;
    color: #343a40;
}

.admin-actions-cell {
    display: flex;
    gap: 8px;
}

.admin-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-align: center;
    white-space: nowrap;
}

.badge-locked {
    background: #f8d7da;
    color: #721c24;
}

.badge-public {
    background: #d4edda;
    color: #155724;
}

.admin-broadcast-form,
.admin-form-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.admin-form-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-display {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.template-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.template-card:hover {
    border-color: #4361ee;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(67, 97, 238, 0.1);
}

.template-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4361ee, #3a56d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.template-content {
    flex: 1;
}

.template-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #343a40;
    margin: 0 0 8px 0;
}

.template-content p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.modal-box {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

.modal-box.active {
    display: block;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    text-align: right;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Toast通知 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success { border-left: 4px solid #28a745; }
.toast-error { border-left: 4px solid #dc3545; }
.toast-info { border-left: 4px solid #17a2b8; }

.toast i {
    font-size: 1.2rem;
}

.toast-success i { color: #28a745; }
.toast-error i { color: #dc3545; }
.toast-info i { color: #17a2b8; }

/* ======= 6. 用户中心样式 (user_center.css) ======= */

.user-center-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    min-height: calc(100vh - 140px);
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 25px 30px;
    background: #ffffff;
    border-radius: 12px;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4361ee;
    font-size: 24px;
}

.user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
}

.user-details h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: left;
    width: 100%;
}

.user-details p {
    margin: 0;
    color: #666;
    font-size: 14px;
    text-align: left;
    width: 100%;
}

.account-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
    background: #f8f9fa;
    color: #4361ee;
    border: 1px solid #e0e0e0;
}

.status-active {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border-color: rgba(76, 175, 80, 0.3);
}

.status-inactive {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border-color: rgba(255, 152, 0, 0.3);
}

.user-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.user-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 0 0 auto;
    padding: 12px 25px;
    background: none;
    border: none;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #4361ee;
    background: #f8f9fa;
}

.tab-btn.active {
    color: #4361ee;
    background: #f8f9fa;
    border-bottom: 2px solid #4361ee;
}

.tab-btn i {
    font-size: 16px;
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

.tab-pane {
    display: none;
}

.tab-pane.active,
.tab-pane.show {
    display: block;
}

.tab-content.active {
    display: block;
}

.profile-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.profile-card h2 {
    color: #4361ee;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 600;
}

.profile-card h2 i {
    color: #667eea;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: #4361ee;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4361ee, #3a56d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    color: #475569;
    font-weight: 600;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-center-container {
        padding: 15px;
    }
    
    .user-info-header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .user-details h3 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .user-details p {
        text-align: center;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 13px;
        min-width: 120px;
        justify-content: center;
    }
    
    .profile-card {
        padding: 20px 15px;
    }
    
    .profile-card h2 {
        font-size: 1.2rem;
    }
    
    .stats-summary {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .modal-box {
        width: 95%;
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .user-details h3 {
        font-size: 1.3rem;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .btn-action {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* ======= 7. 认证页面样式 ======= */

.auth-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
}

.auth-header {
    margin-bottom: 1.5rem;
}

.auth-header h1 {
    color: var(--primary);
    margin-bottom: 0.4rem;
    font-size: 1.6rem;
}

.auth-header p {
    color: var(--gray);
    font-size: 0.9rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ======= 8. 进度条和加载动画 ======= */

.progress {
    height: 10px;
    margin: 10px 0;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    background-color: #4361ee;
    transition: width 0.3s ease;
}

.progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4361ee;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.success-message {
    color: #28a745;
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ======= 后台管理响应式 ======= */

@media (max-width: 1200px) {
    .admin-container {
        padding: 15px;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .admin-nav {
        flex-wrap: wrap;
    }
    
    .admin-nav-item {
        min-width: 120px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .admin-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .template-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        font-size: 13px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 12px 8px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .admin-nav-item {
        padding: 12px 15px;
        min-width: 100px;
    }
}

@media (max-width: 576px) {
    .admin-nav-item {
        padding: 12px 15px;
        min-width: auto;
        flex: none;
    }
    
    .admin-broadcast-form,
    .admin-form-section {
        padding: 20px;
    }
}

/* ======= 触摸设备优化 ======= */

@media (hover: none) and (pointer: coarse) {
    .btn-action:hover,
    .mobile-action-btn:hover,
    .btn:hover {
        transform: none;
    }
    
    .btn-action:active,
    .mobile-action-btn:active,
    .btn:active {
        transform: scale(0.95);
    }
}

/* ======= 9. 日记查看页面样式 (view_entry.css) ======= */

.entry-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 15px;
}

.entry-header {
    margin-bottom: 25px;
}

.entry-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.entry-actions-row {
    margin: 25px 0;
}

.action-buttons-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.privacy-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.privacy-indicator.public {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.privacy-indicator.private {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffe0b2;
}

.privacy-indicator.locked {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.privacy-indicator.unlocked {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.diary-date {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin: 15px 0;
}

.mood-weather-icon {
    margin-left: 10px;
    font-size: 1.1rem;
}

.category-display {
    text-align: center;
    margin: 15px 0;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background-color: var(--category-color);
    color: white;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.entry-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.9rem;
}

.file-preview {
    margin: 25px 0;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    background: #fafafa;
}

.media-container {
    margin-bottom: 15px;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.01);
}

.diary-image-view,
.unified-image {
    max-width: 600px;
    width: auto;
    height: auto;
    display: block;
    margin: 15px auto;
}

.media-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f0f0f0;
    border-radius: 8px;
    color: #888;
    font-size: 3rem;
}

.media-fallback p {
    margin-top: 10px;
    font-size: 1rem;
    color: #666;
}

.video-container video,
.audio-container audio {
    width: 100%;
    border-radius: 8px;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
}

.file-info-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon {
    font-size: 2.5rem;
    color: #4361ee;
}

.file-info-content {
    flex: 1;
}

.file-name {
    font-size: 1.1rem;
    color: #333;
}

.file-size,
.file-type {
    color: #666;
    font-size: 0.9rem;
}

.download-section {
    margin-top: 15px;
    text-align: center;
}

.btn-download {
    background: #28a745;
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.btn-download:hover {
    background: #218838;
    color: white;
}

.diary-content {
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #333;
}

.diary-content img {
    max-width: 100%;
    height: auto;
    margin: 15px auto;
    display: block;
    border-radius: 6px;
}

.timestamp {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.back-button {
    text-align: center;
    margin-top: 30px;
}

.btn-responsive {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background: #4361ee;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-responsive:hover {
    background: #3a56d4;
}

.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.share-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.share-section {
    margin-bottom: 25px;
}

.share-section h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-link-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.share-link-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
}

.btn-copy {
    padding: 10px 15px;
    background: #4361ee;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.share-link-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #666;
}

.share-link-info p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.social-share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.social-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-btn.wechat { background: #09bb07; color: white; }
.social-btn.qq { background: #12b7f5; color: white; }
.social-btn.weibo { background: #e6162d; color: white; }
.social-btn.copy { background: #6c757d; color: white; grid-column: span 2; }

.share-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    min-width: 100px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4361ee;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

.password-card {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
}

.password-title {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.password-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.form-help {
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

.password-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal .modal-overlay {
    background: rgba(0,0,0,0.9);
}

.image-modal .modal-content {
    position: relative;
    background: transparent;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
}

.image-modal .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.image-modal img {
    max-width: 100%;
    max-height: calc(90vh - 60px);
    object-fit: contain;
    border-radius: 8px;
}

.modal-actions {
    margin-top: 15px;
    text-align: center;
}

@media (max-width: 768px) {
    .entry-container {
        padding: 0 10px;
        margin: 10px auto;
    }
    
    .card {
        padding: 15px;
    }
    
    .entry-title {
        font-size: 1.4rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .action-buttons-group {
        gap: 5px;
    }
    
    .btn-sm {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .entry-meta {
        gap: 10px;
        padding: 10px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-preview {
        padding: 15px;
    }
    
    .file-info {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .diary-content {
        padding: 15px;
        font-size: 1rem;
    }
    
    .unified-image {
        max-width: 100% !important;
    }
    
    .social-share-buttons {
        grid-template-columns: 1fr;
    }
    
    .social-btn.copy {
        grid-column: span 1;
    }
    
    .share-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-item {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .password-card {
        margin: 20px auto;
        padding: 20px;
    }
    
    .btn-responsive {
        width: 100%;
        justify-content: center;
    }
}

/* ======= 10. 图片编辑器样式 (image_editor.css) ======= */

.image-editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.image-editor-modal.fullscreen {
    padding: 0;
}

.editor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.editor-container {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1400px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.image-editor-modal.fullscreen .editor-container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 0;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #4361ee;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.editor-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.editor-actions {
    display: flex;
    gap: 10px;
}

.editor-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.editor-sidebar {
    width: 280px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.editor-toolbar h4,
.editor-properties h4 {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.tool-btn {
    padding: 10px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #495057;
    transition: all 0.2s ease;
}

.tool-btn:hover {
    background: #f1f3f5;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.tool-btn.active {
    background: #4361ee;
    color: white;
    border-color: #4361ee;
}

.tool-btn i {
    font-size: 1.2rem;
}

.properties-group {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
}

.form-control-range {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.form-control-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #4361ee;
    border-radius: 50%;
    cursor: pointer;
}

.form-control-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #4361ee;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.form-control-color {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.editor-canvas-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #1a1a1a;
}

.canvas-wrapper {
    position: relative;
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#editorCanvas {
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    cursor: crosshair;
    max-width: 100%;
    max-height: 100%;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.canvas-info {
    display: flex;
    gap: 20px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.85rem;
}

.info-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.info-item span:first-child {
    opacity: 0.8;
}

.editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.footer-left,
.footer-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zoom-controls .btn-sm {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

#zoomSlider {
    width: 120px;
}

.text-element {
    position: absolute;
    cursor: move;
    user-select: none;
    padding: 5px 10px;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.text-element:hover {
    border-color: rgba(67, 97, 238, 0.5);
}

.text-element.selected {
    border-color: #4361ee;
    box-shadow: 0 0 10px rgba(67, 97, 238, 0.3);
}

.text-element .resize-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #4361ee;
    border: 2px solid white;
    border-radius: 50%;
    bottom: -5px;
    right: -5px;
    cursor: se-resize;
}

body.editor-fullscreen {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .editor-container {
        width: 95%;
        height: 95%;
    }
    
    .editor-sidebar {
        width: 240px;
        padding: 15px;
    }
    
    .tool-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .editor-main {
        flex-direction: column;
    }
    
    .editor-sidebar {
        width: 100%;
        height: 300px;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .tool-group {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .editor-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .footer-left,
    .footer-right {
        justify-content: center;
    }
    
    .zoom-controls {
        justify-content: center;
    }
}

.editor-hint {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 100;
    animation: fadeIn 0.3s ease;
}

/* ======= 11. 认证页面样式 (login/register/forgot_password) ======= */

.login-container {
    width: 80%;
    max-width: 650px;
    margin: 30px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #eaeaea;
}

.auth-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
    border: 1px solid #e8eef3;
}

.form-help {
    margin-top: 8px;
    font-size: 13px;
    color: #5a6c7d;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.form-help i {
    color: #3498db;
}

/* 密码强度指示器 */
#passwordStrength {
    display: none;
}

.strength-meter {
    height: 6px;
    border-radius: 3px;
    margin-bottom: 8px;
    background: #e9ecef;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-text {
    font-size: 13px;
    color: #5a6c7d;
    font-weight: 500;
}

.strength-weak .strength-bar { background: #e74c3c; width: 25%; }
.strength-weak .strength-text { color: #e74c3c; }
.strength-fair .strength-bar { background: #f39c12; width: 50%; }
.strength-fair .strength-text { color: #f39c12; }
.strength-good .strength-bar { background: #3498db; width: 75%; }
.strength-good .strength-text { color: #3498db; }
.strength-strong .strength-bar { background: #27ae60; width: 100%; }
.strength-strong .strength-text { color: #27ae60; }

.strength-suggestions {
    margin-top: 8px;
    padding-left: 20px;
    font-size: 12px;
    color: #95a5a6;
    list-style-type: disc;
}

.strength-suggestions li {
    margin-bottom: 4px;
}

/* 复选框样式 */
.checkbox-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #5a6c7d;
    font-weight: 500;
    transition: color 0.2s;
    line-height: 1.5;
}

.checkbox-label:hover {
    color: #3498db;
}

.checkbox-label input {
    margin-right: 12px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid #cbd5e0;
}

.checkbox-label input:checked {
    background-color: #3498db;
    border-color: #3498db;
}

.checkbox-label a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    margin: 0 4px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.checkbox-label a:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* 警告消息样式 */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideIn 0.3s ease;
    font-size: 14px;
    line-height: 1.5;
}

.alert i {
    font-size: 18px;
    margin-top: 2px;
}

.alert-error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 4px solid #c62828;
    color: #c62828;
}

.alert-success {
    background: linear-gradient(135deg, #d5f4e6 0%, #a3e4c1 100%);
    border-left: 4px solid #27ae60;
    color: #27ae60;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #3498db;
    color: #2c3e50;
}

.alert a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
}

.alert a:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 页脚样式 */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    color: #5a6c7d;
    font-size: 14px;
    font-weight: 500;
}

.auth-footer p {
    margin: 10px 0;
    line-height: 1.5;
}

.auth-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    position: relative;
    margin: 0 5px;
}

.auth-footer a:hover {
    color: #2980b9;
    background-color: rgba(52, 152, 219, 0.1);
}

.auth-footer a:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 8px;
    right: 8px;
    height: 1px;
    background-color: #3498db;
    transform: scaleX(0);
    transition: transform 0.2s;
}

.auth-footer a:hover:after {
    transform: scaleX(1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-container {
        width: 90%;
        padding: 20px;
        margin: 20px auto;
    }
    
    .auth-card {
        padding: 20px 15px;
    }
    
    .auth-header h1 {
        font-size: 22px;
    }
    
    .alert {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .btn {
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .login-container {
        width: 95%;
        padding: 15px;
        margin: 15px auto;
    }
    
    .auth-card {
        padding: 15px 12px;
    }
    
    .form-help {
        font-size: 12px;
    }
    
    .auth-footer p {
        font-size: 13px;
    }
}

@media (max-height: 700px) {
    .login-container {
        margin: 10px auto;
        padding: 20px;
    }
    
    .auth-header {
        margin-bottom: 15px;
    }
    
    .auth-card {
        margin-bottom: 15px;
        padding: 20px;
    }
    
    .auth-footer {
        margin-top: 15px;
        padding-top: 15px;
    }
}

/* ======= 12. 分享页面样式 (share_file.css) ======= */

body.share-file-page {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.share-header {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-header .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.share-header .logo i {
    color: #667eea;
    font-size: 24px;
    margin-right: 10px;
}

.share-main {
    flex: 1;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    width: 100%;
}

.share-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 350px 1fr;
    min-height: 600px;
}

.sidebar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
}

.file-icon-large {
    text-align: center;
    margin-bottom: 30px;
}

.file-icon-large i {
    font-size: 80px;
    color: white;
    opacity: 0.9;
}

.file-info-sidebar {
    flex: 1;
}

.file-info-sidebar h1 {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.4;
    word-break: break-all;
}

.file-meta {
    list-style: none;
    margin: 20px 0;
}

.file-meta li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    opacity: 0.9;
}

.file-meta li i {
    width: 24px;
    margin-right: 10px;
    text-align: center;
}

.share-meta {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.share-meta-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.content-area {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.share-header-right {
    margin-bottom: 30px;
}

.share-header-right h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.share-header-right p {
    color: #666;
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 30px;
    font-weight: 800;
    color: #1e293b;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #475569;
    font-weight: 600;
}

.actions-section {
    margin-bottom: 30px;
}

.actions-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.actions-section h3 i {
    margin-right: 10px;
    color: #667eea;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 15px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.action-btn i {
    margin-right: 12px;
    font-size: 18px;
}

.action-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: 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.btn-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-preview {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
}

.btn-save {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
}

.btn-direct {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.btn-owner {
    background: linear-gradient(135deg, #9C27B0 0%, #673AB7 100%);
    color: white;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.user-status {
    background: #e3f2fd;
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    border: 1px solid #bbdefb;
}

.user-status i {
    color: #1976D2;
    font-size: 20px;
    margin-right: 12px;
}

.user-status p {
    color: #1976D2;
    font-size: 14px;
    flex: 1;
}

.user-status a {
    color: #1976D2;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}

.expiry-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
    color: #856404;
}

.content-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 13px;
}

/* 文件夹选择器样式 */
.folder-select-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    background: #f8f9fa;
    margin-bottom: 20px;
}

.folder-select-container select {
    border: none;
    width: 100%;
    background: transparent;
    font-size: 14px;
    padding: 10px;
    outline: none;
}

/* 页脚样式 */
.share-footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-section h4 i {
    margin-right: 8px;
    color: #667eea;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #bdc3c7;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid #34495e;
    text-align: center;
    font-size: 14px;
    color: #95a5a6;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #95a5a6;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .share-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .sidebar {
        padding: 30px 20px;
    }
    
    .content-area {
        padding: 30px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .file-icon-large i {
        font-size: 60px;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ======= 13. 订单模块样式 (orders/style.css) ======= */

.orders-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.orders-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* 按钮 */
.orders-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.orders-btn-primary {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 4px rgba(59,130,246,0.2);
}
.orders-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59,130,246,0.3);
}
.orders-btn-search {
    background: #10b981;
    color: white;
    box-shadow: 0 2px 4px rgba(16,185,129,0.2);
}
.orders-btn-search:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16,185,129,0.3);
}

/* 搜索区 */
.orders-search-section {
    margin-bottom: 2.5rem;
}
.orders-search-wrapper {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 0.5rem;
    background: white;
    border-radius: 0.75rem;
    padding: 0.3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}
.orders-search-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 0.5rem 0 0 0.5rem;
    font-size: 1rem;
    outline: none;
    background: transparent;
}
.orders-search-input:focus {
    box-shadow: inset 0 0 0 2px #3b82f6;
}
.orders-search-wrapper .orders-btn-search {
    border-radius: 0.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.orders-search-stats {
    text-align: center;
    margin-top: 0.8rem;
    color: #64748b;
    font-size: 0.95rem;
}
.orders-search-stats strong {
    color: #3b82f6;
    font-weight: 600;
}

/* 空状态 */
.orders-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.orders-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}
.orders-empty-state p {
    color: #64748b;
    margin-bottom: 1rem;
}
.orders-empty-state .orders-btn {
    margin-top: 1rem;
}

/* 表格 */
.orders-table-responsive {
    overflow-x: auto;
    border-radius: 0.75rem;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}
.orders-data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}
.orders-data-table th {
    background: #f8fafc;
    padding: 1rem 1.2rem;
    font-weight: 600;
    color: #334155;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}
.orders-data-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
    vertical-align: middle;
}
.orders-data-table tbody tr:hover {
    background: #f1f5f9;
}
.orders-actions {
    white-space: nowrap;
    text-align: center;
}

/* 图标按钮 */
.orders-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 9999px;
    background: transparent;
    color: #64748b;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.2s;
    margin: 0 2px;
}
.orders-icon-btn:hover {
    background: #f1f5f9;
    color: #3b82f6;
    transform: scale(1.1);
}

/* 移动端表格（卡片式） */
@media (max-width: 768px) {
    .orders-data-table thead {
        display: none;
    }
    .orders-data-table, 
    .orders-data-table tbody, 
    .orders-data-table tr, 
    .orders-data-table td {
        display: block;
        width: 100%;
    }
    .orders-data-table tr {
        margin-bottom: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 0.5rem;
        background: white;
        padding: 1rem;
    }
    .orders-data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px dashed #e2e8f0;
    }
    .orders-data-table td:last-child {
        border-bottom: none;
    }
    .orders-data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
        width: 40%;
    }
    .orders-actions {
        justify-content: flex-end;
        gap: 0.5rem;
    }
    .orders-actions::before {
        content: "操作";
    }
}

/* 分页 */
.orders-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.orders-page-num,
.orders-page-prev,
.orders-page-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    background: white;
    color: #334155;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}
.orders-page-num.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}
.orders-page-num:hover:not(.active),
.orders-page-prev:hover,
.orders-page-next:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* 图片区域样式 */
.orders-image-section {
    margin: 30px 0;
}
.orders-image-group {
    margin-bottom: 30px;
}
.orders-image-group h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 500;
}
.orders-image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.other-gallery .orders-image-item {
    width: calc(33.333% - 10px);
    box-sizing: border-box;
}
.wiring-gallery .orders-image-item {
    width: calc(50% - 7.5px);
    box-sizing: border-box;
}
.orders-image-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    background: white;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.orders-image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.orders-image-item img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}
.orders-image-item img:hover {
    transform: scale(1.03);
}
.orders-image-label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 14px;
}
@media (max-width: 768px) {
    .other-gallery .orders-image-item,
    .wiring-gallery .orders-image-item {
        width: 100%;
    }
}
/* ======= admin_backup.css ======= */

/* css/admin_backup.css - 管理员备份管理样式 */

/* 备份统计卡片 */
.backup-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 20px 0 30px 0;
}

.backup-stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}

.backup-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    border-color: #4361ee;
}

.backup-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
}

.backup-stat-icon.archive { background: linear-gradient(135deg, #4361ee, #3a56d4); }
.backup-stat-icon.success { background: linear-gradient(135deg, #28a745, #218838); }
.backup-stat-icon.failed { background: linear-gradient(135deg, #dc3545, #c82333); }
.backup-stat-icon.storage { background: linear-gradient(135deg, #17a2b8, #138496); }
.backup-stat-icon.entries { background: linear-gradient(135deg, #ffc107, #e0a800); }
.backup-stat-icon.media { background: linear-gradient(135deg, #6f42c1, #5a3799); }

.backup-stat-info {
    flex: 1;
    min-width: 0;
}

.backup-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #343a40;
    line-height: 1.2;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.backup-stat-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
    line-height: 1.3;
}

/* 创建备份表单 */
.create-backup-form {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.create-backup-form h3 {
    font-size: 18px;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.create-backup-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.create-backup-form .form-group {
    margin-bottom: 20px;
}

.create-backup-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.create-backup-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.create-backup-form .form-control:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.create-backup-form .backup-info-box {
    background: #f8f9fa;
    border-left: 4px solid #17a2b8;
    padding: 18px;
    border-radius: 8px;
    margin: 25px 0;
}

.create-backup-form .backup-info-box h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #17a2b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.create-backup-form .backup-info-box ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
    color: #495057;
}

.create-backup-form .backup-info-box li {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 14px;
}

.create-backup-form .form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* 备份表格 */
.backup-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.backup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.backup-table th {
    background: #f8f9fa;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
    font-size: 13px;
}

.backup-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    line-height: 1.4;
}

.backup-table tbody tr {
    transition: background-color 0.2s ease;
}

.backup-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 备份表格列样式 */
.backup-table .user-cell {
    min-width: 140px;
}

.backup-table .user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.backup-table .user-info strong {
    font-size: 14px;
    color: #343a40;
    font-weight: 600;
}

.backup-table .user-info small {
    font-size: 12px;
    color: #6c757d;
}

.backup-table .filename-cell {
    min-width: 200px;
    max-width: 300px;
}

.backup-table .filename-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.backup-table .filename-wrapper i {
    font-size: 16px;
    color: #4361ee;
    flex-shrink: 0;
}

.backup-table .filename-info {
    flex: 1;
    min-width: 0;
}

.backup-table .filename {
    display: block;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13.5px;
}

.backup-table .backup-notes {
    display: block;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.backup-table .type-cell {
    text-align: center;
}

.backup-table .size-cell,
.backup-table .entries-cell,
.backup-table .media-cell {
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: #495057;
    font-size: 13px;
}

.backup-table .time-cell {
    white-space: nowrap;
    font-size: 13px;
    color: #666;
}

.backup-table .status-cell {
    text-align: center;
}

.backup-table .status-cell .badge {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.backup-table .actions-cell {
    min-width: 130px;
    text-align: center;
}

.backup-table .action-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 还原表格 */
.restore-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.restore-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.restore-table th {
    background: #f8f9fa;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
    font-size: 13px;
}

.restore-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    line-height: 1.4;
}

.restore-table tbody tr {
    transition: background-color 0.2s ease;
}

.restore-table tbody tr:hover {
    background-color: #f8f9fa;
}

.restore-table .user-cell {
    min-width: 140px;
}

.restore-table .filename-cell {
    min-width: 180px;
    max-width: 250px;
}

.restore-table .entries-cell,
.restore-table .media-cell {
    text-align: center;
    font-weight: 500;
    color: #495057;
}

.restore-table .resolution-cell {
    text-align: center;
    font-size: 13px;
}

.restore-table .time-cell {
    white-space: nowrap;
    font-size: 13px;
    color: #666;
}

.restore-table .status-cell {
    text-align: center;
}

.restore-table .status-cell .badge {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.restore-table .actions-cell {
    min-width: 80px;
    text-align: center;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #dee2e6;
}

.empty-state h3 {
    margin: 15px 0;
    color: #343a40;
    font-weight: 500;
    font-size: 18px;
}

.empty-state p {
    margin-bottom: 0;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 14px;
}

/* 操作按钮 */
.btn-action {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: white;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.btn-action.btn-primary { background: linear-gradient(135deg, #4361ee, #3a56d4); }
.btn-action.btn-success { background: linear-gradient(135deg, #28a745, #218838); }
.btn-action.btn-danger { background: linear-gradient(135deg, #dc3545, #c82333); }
.btn-action.btn-info { background: linear-gradient(135deg, #17a2b8, #138496); }
.btn-action.btn-warning { background: linear-gradient(135deg, #ffc107, #e0a800); }

/* 响应式设计 */
@media (max-width: 1200px) {
    .backup-table,
    .restore-table {
        font-size: 13px;
    }
    
    .backup-table th,
    .backup-table td,
    .restore-table th,
    .restore-table td {
        padding: 12px 10px;
    }
    
    .backup-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .backup-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .create-backup-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .backup-table-container,
    .restore-table-container {
        overflow-x: auto;
    }
    
    .backup-table,
    .restore-table {
        min-width: 900px;
    }
}

@media (max-width: 768px) {
    .backup-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .backup-stat-card {
        padding: 15px;
        gap: 12px;
    }
    
    .backup-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .backup-stat-value {
        font-size: 20px;
    }
    
    .backup-stat-label {
        font-size: 12px;
    }
    
    .create-backup-form {
        padding: 20px;
    }
    
    .create-backup-form h3 {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .btn-action {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .action-buttons {
        gap: 4px;
    }
}

@media (max-width: 576px) {
    .backup-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .create-backup-form .form-actions {
        flex-direction: column;
    }
    
    .create-backup-form .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .backup-table .actions-cell {
        min-width: 110px;
    }
}

/* ======= admin_broadcast.css ======= */

/* css/admin_broadcast.css - 邮件群发管理样式 */

/* 邮件群发管理页面样式 */
.admin-broadcast-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-broadcast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-broadcast-header h1 {
    color: #333;
    margin: 0;
    font-size: 24px;
}

.admin-broadcast-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.admin-broadcast-stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1;
    text-align: center;
    transition: transform 0.3s ease;
}

.admin-broadcast-stat-card:hover {
    transform: translateY(-5px);
}

.admin-broadcast-stat-card h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.admin-broadcast-stat-card .number {
    font-size: 24px;
    font-weight: bold;
    color: #4361ee;
}

.admin-broadcast-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
    margin-bottom: 30px;
}

.admin-broadcast-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.admin-broadcast-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    font-size: 14px;
}

.admin-broadcast-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
    font-size: 14px;
}

.admin-broadcast-table tr:hover {
    background: #f8f9fa;
}

/* 状态样式 */
.broadcast-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.broadcast-status-draft {
    background: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
}

.broadcast-status-pending {
    background: #cff4fc;
    color: #055160;
    border: 1px solid #b6effb;
}

.broadcast-status-sending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.broadcast-status-completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.broadcast-status-failed {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 按钮样式 */
.broadcast-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    font-weight: 500;
}

.broadcast-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.broadcast-btn-primary {
    background: #4361ee;
    color: white;
}

.broadcast-btn-primary:hover {
    background: #3a56d4;
}

.broadcast-btn-secondary {
    background: #6c757d;
    color: white;
}

.broadcast-btn-secondary:hover {
    background: #5a6268;
}

.broadcast-btn-danger {
    background: #dc3545;
    color: white;
}

.broadcast-btn-danger:hover {
    background: #c82333;
}

.broadcast-btn-success {
    background: #28a745;
    color: white;
}

.broadcast-btn-success:hover {
    background: #218838;
}

.broadcast-btn-info {
    background: #0dcaf0;
    color: white;
}

.broadcast-btn-info:hover {
    background: #0bb5d4;
}

.broadcast-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* 其他元素样式 */
.broadcast-target-users {
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
}

.broadcast-progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.broadcast-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4361ee, #3a56d4);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.broadcast-subject-col {
    max-width: 250px;
}

.broadcast-subject-col div:first-child {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.broadcast-subject-col div:last-child {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.broadcast-no-data {
    text-align: center;
    padding: 40px;
    color: #666;
}

.broadcast-no-data i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 10px;
}

.broadcast-no-data h3 {
    margin: 0 0 10px 0;
    font-weight: 500;
}

/* 模态框样式 */
.broadcast-progress-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    min-width: 400px;
    max-width: 600px;
    display: none;
}

.broadcast-progress-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.broadcast-progress-container {
    margin: 20px 0;
}

.broadcast-progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #495057;
}

.broadcast-progress-bar-modal {
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.broadcast-progress-fill-modal {
    height: 100%;
    background: linear-gradient(90deg, #4361ee, #3a56d4);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.broadcast-batch-info {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 14px;
}

.broadcast-error-container {
    max-height: 150px;
    overflow-y: auto;
    margin: 10px 0;
    display: none;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 10px;
    background: #f8f9fa;
}

.broadcast-error-list {
    font-size: 12px;
    color: #721c24;
}

.broadcast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .admin-broadcast-container {
        padding: 10px;
    }
    
    .admin-broadcast-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }
    
    .admin-broadcast-stats {
        flex-direction: column;
    }
    
    .admin-broadcast-stat-card {
        width: 100%;
    }
    
    .broadcast-actions {
        flex-direction: column;
    }
    
    .broadcast-btn {
        width: 100%;
        justify-content: center;
    }
    
    .broadcast-progress-modal {
        min-width: 90%;
        max-width: 90%;
        padding: 20px;
    }
}

/* 动画效果 */
@keyframes broadcast-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.broadcast-status-sending .broadcast-status {
    animation: broadcast-pulse 1.5s infinite;
}

/* 工具类 */
.broadcast-text-success {
    color: #28a745;
}

.broadcast-text-danger {
    color: #dc3545;
}

.broadcast-text-warning {
    color: #ffc107;
}

.broadcast-text-info {
    color: #17a2b8;
}

.broadcast-text-muted {
    color: #6c757d;
}

.broadcast-font-sm {
    font-size: 12px;
}

.broadcast-font-md {
    font-size: 14px;
}

.broadcast-font-lg {
    font-size: 16px;
}
/* 分页控制区域样式 */
.admin-broadcast-pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.pagination-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.per-page-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.per-page-selector select {
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
}

.per-page-selector select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.total-records {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.pagination-right {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

/* 分页导航样式 */
.admin-broadcast-pagination {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-link:hover:not(.disabled) {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-link.disabled {
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-number:hover {
    background-color: #e9ecef;
}

.page-number.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.page-ellipsis {
    padding: 8px 12px;
    color: #6c757d;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}

.page-jump span {
    font-size: 14px;
    color: #495057;
}

.page-jump input {
    width: 60px;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.page-jump input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.jump-btn {
    padding: 6px 12px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.jump-btn:hover {
    background-color: #5a6268;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .admin-broadcast-pagination-controls {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .pagination-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pagination-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-jump {
        margin-left: 0;
        justify-content: center;
    }
}
/* 分页容器样式 */
.admin-broadcast-pagination-container {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
}

/* 分页导航样式 */
.admin-broadcast-pagination {
    text-align: center;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-link:hover:not(.disabled) {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-link.disabled {
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-number:hover {
    background-color: #e9ecef;
}

.page-number.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.page-ellipsis {
    padding: 8px 12px;
    color: #6c757d;
}

/* 分页控制选项（每页显示和跳至放一排居中） */
.pagination-controls-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.pagination-controls-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    width: 100%;
    max-width: 600px;
}

/* 每页显示控制 */
.per-page-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.per-page-control span {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.per-page-control select {
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
    min-width: 80px;
}

.per-page-control select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* 跳转控制 */
.page-jump-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-jump-control span {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.page-jump-control input {
    width: 60px;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.page-jump-control input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.jump-btn {
    padding: 6px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.jump-btn:hover {
    background-color: #0056b3;
}

/* 页面信息 */
.page-info {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
    padding: 10px 0;
}

/* 删除确认弹窗 */
.broadcast-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1001;
    min-width: 400px;
    max-width: 500px;
}

.broadcast-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

.broadcast-modal-content p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.broadcast-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

/* 操作按钮样式调整 */
.broadcast-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 120px;
}

.broadcast-btn {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
    width: 100%;
}

.broadcast-btn-success {
    background-color: #28a745;
    color: white;
}

.broadcast-btn-danger {
    background-color: #dc3545;
    color: white;
}

.broadcast-btn-primary {
    background-color: #007bff;
    color: white;
}

.broadcast-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.broadcast-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 遮罩层 */
.broadcast-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .broadcast-modal {
        min-width: 90%;
        padding: 20px;
    }
    
    .pagination-controls-wrapper {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .per-page-control,
    .page-jump-control {
        width: 100%;
        justify-content: center;
    }
    
    .page-jump-control {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .broadcast-actions {
        min-width: auto;
    }
    
    .broadcast-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .pagination-wrapper {
        gap: 4px;
    }
    
    .page-link {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .page-number {
        padding: 6px 8px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .pagination-wrapper {
        flex-direction: column;
    }
    
    .page-numbers {
        order: 3;
        margin-top: 10px;
    }
    
    .page-link.prev {
        order: 1;
    }
    
    .page-link.next {
        order: 2;
    }
}

/* ======= back-to-top.css ======= */

/* css/back-to-top.css - 全局返回顶部按钮样式 */

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #4361ee;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.back-to-top:hover {
    background: #3a56d4;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 100px; /* 避免和浮动导航冲突 */
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 90px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

/* 深色主题支持 */
@media (prefers-color-scheme: dark) {
    .back-to-top {
        background: #667eea;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    
    .back-to-top:hover {
        background: #5a6fd8;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: opacity 0.3s ease;
    }
    
    .back-to-top:hover {
        transform: none;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .back-to-top {
        border: 2px solid #000;
        background: #005;
    }
}

/* 打印时隐藏 */
@media print {
    .back-to-top {
        display: none !important;
    }
}

/* 当浮动导航存在时的调整 */
.floating-footer + .back-to-top {
    bottom: 100px;
}

@media (max-width: 768px) {
    .floating-footer + .back-to-top {
        bottom: 140px;
    }
}

/* ======= backup.css ======= */

/* css/backup.css - 备份与还原页面样式 */

:root {
    --primary-color: #4361ee;
    --secondary-color: #3a56d4;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #e9ecef;
}

/* 容器样式 */
.backup-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    min-height: calc(100vh - 140px);
}

/* 头部样式 */
.backup-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
}

.backup-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.backup-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* 统计信息 */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* 表单区域 */
.backup-form-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.backup-form-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 表单样式 */
.backup-form {
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6c757d;
}

/* 信息框 */
.backup-info-box {
    background: #f8f9fa;
    border-left: 4px solid var(--info-color);
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.backup-info-box h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--info-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.backup-info-box ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
    color: #6c757d;
}

.backup-info-box li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* 操作按钮 */
.form-actions {
    margin-top: 30px;
    text-align: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 15px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
    min-width: 200px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #218838);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #c82333);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color), #138496);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

/* 部分头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-align: center;
    white-space: nowrap;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, var(--success-color), #218838);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, var(--danger-color), #c82333);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, var(--warning-color), #e0a800);
    color: #212529;
}

.badge-info {
    background: linear-gradient(135deg, var(--info-color), #138496);
    color: white;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    color: #6c757d;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.empty-state i {
    margin-bottom: 20px;
    color: var(--primary-color);
    opacity: 0.5;
}

.empty-state h3 {
    margin: 15px 0;
    color: var(--dark-color);
    font-weight: 500;
}

.empty-state p {
    margin-bottom: 0;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 表格区域 */
.backup-list-section,
.restore-list-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.backup-table-container,
.restore-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* 表格样式 */
.backup-table,
.restore-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.backup-table th,
.restore-table th {
    background: #f8f9fa;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.backup-table td,
.restore-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.backup-table tbody tr:hover,
.restore-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 备份名称样式 */
.backup-name-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.backup-name-inner i {
    font-size: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.backup-notes {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* 警告框 */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.1);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    text-align: right;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 还原警告 */
.restore-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.restore-warning h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 8px;
}

.restore-warning ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
    color: #856404;
}

.restore-warning li {
    margin-bottom: 5px;
    line-height: 1.5;
}

/* 日志内容 */
.log-content {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 400px;
    overflow-y: auto;
}

/* Toast通知 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--danger-color);
}

.toast-warning {
    border-left: 4px solid var(--warning-color);
}

.toast-info {
    border-left: 4px solid var(--info-color);
}

.toast i {
    font-size: 1.2rem;
}

.toast-success i {
    color: var(--success-color);
}

.toast-error i {
    color: var(--danger-color);
}

.toast-warning i {
    color: var(--warning-color);
}

.toast-info i {
    color: var(--info-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .backup-container {
        padding: 15px;
    }
    
    .backup-header {
        padding: 20px;
    }
    
    .backup-header h1 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .stats-summary {
        grid-template-columns: 1fr;
    }
    
    .backup-form-section,
    .backup-list-section,
    .restore-list-section {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .modal-content {
        width: 95%;
        max-width: 95%;
    }
    
    .btn-lg {
        min-width: auto;
        width: 100%;
    }
    
    .action-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .backup-header h1 {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .btn-action {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* ======= custom.css ======= */

/* 统一的图片查看样式 */
.viewable-image {
    cursor: zoom-in;
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.viewable-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 图片容器样式 */
.image-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.image-container::after {
    content: '🔍 点击查看大图';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.image-container:hover::after {
    opacity: 1;
}

/* 响应式图片 */
.diary-image-view {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .viewable-image:hover {
        transform: none;
    }
    
    .image-container::after {
        opacity: 1;
        font-size: 0.7rem;
        padding: 2px 6px;
    }
}

/* ======= dashboard.css ======= */

/* Dashboard CSS - 仪表板样式 */

.page-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    color: white;
}

@media (min-width: 768px) {
    .page-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.user-header-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-avatar-small {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e9ecef;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder-small {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.user-header-details {
    flex: 1;
}

.user-greeting {
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.user-header-details h1 {
    font-size: 2rem;
    color: #333;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    word-break: break-word;
}

.time-display {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    background: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #e9ecef;
}

.user-subtitle {
    font-size: 0.9rem;
    color: #495057;
    background: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #e9ecef;
}

.header-actions .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.header-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
}

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert i {
    font-size: 1.2rem;
}

.alert a {
    color: #856404;
    font-weight: 600;
    text-decoration: underline;
    margin-left: auto;
}

.search-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .search-container {
        flex-direction: row;
        align-items: center;
    }
}

.search-box {
    flex: 1;
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.search-input {
    flex: 1;
    padding: 1rem;
    border: none;
    font-size: 1rem;
    outline: none;
    color: #333;
}

.search-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #5a6fd8;
}

.search-options {
    display: flex;
    gap: 0.5rem;
}

.search-tag {
    background: #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.search-tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.status-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.status-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.status-tag.public {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-tag.locked {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-tag.private {
    background: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
}

.diary-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.diary-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f5;
    display: flex;
    flex-direction: column;
}

.diary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.diary-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.diary-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.diary-card:hover .diary-card-image img {
    transform: scale(1.05);
}

.media-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 3rem;
}

.diary-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.diary-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 480px) {
    .diary-card-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.diary-title {
    flex: 1;
    margin: 0;
}

.diary-title-link {
    color: #2d3436;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.diary-title-link:hover {
    color: #667eea;
}

.diary-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #666;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.diary-date {
    white-space: nowrap;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
}

.mood-icon, .weather-icon {
    font-size: 1.2rem;
}

.diary-excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.diary-card-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f3f5;
}

.diary-card-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    text-align: center;
}

.btn-view {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
}

.btn-view:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.btn-edit {
    background: #667eea;
    color: white;
}

.btn-edit:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

@media (min-width: 768px) {
    .diary-card {
        flex-direction: row;
        min-height: 180px;
    }
    
    .diary-card-image {
        width: 220px;
        height: auto;
        flex-shrink: 0;
    }
    
    .diary-card-content {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .diary-title-link {
        font-size: 1.2rem;
    }
    
    .diary-card-actions {
        grid-template-columns: repeat(3, auto);
        gap: 0.75rem;
    }
    
    .diary-card-actions .btn {
        padding: 0.75rem 1rem;
        min-width: 80px;
    }
}

@media (min-width: 1024px) {
    .diary-card-image {
        width: 250px;
    }
    
    .diary-card-content {
        padding: 1.75rem;
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.empty-icon {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.pagination-nav {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 2rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: white;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #4361ee;
    color: white;
    border-color: #4361ee;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(67, 97, 238, 0.2);
}

.page-link.current {
    background: #4361ee;
    color: white;
    border-color: #4361ee;
    font-weight: 600;
}

.page-link i {
    font-size: 0.8rem;
}

.page-dots {
    color: #adb5bd;
    padding: 0 0.5rem;
}

.per-page-selector select {
    padding: 0.4rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.per-page-selector select:hover {
    border-color: #4361ee;
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
}

.per-page-selector select:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.search-highlight {
    background-color: #fff3cd;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
}

.alert-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.75rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    display: block;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.stat-label {
    color: #475569;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.quick-actions {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    flex: 1;
    min-width: 120px;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #f1f3f5;
    text-decoration: none;
    color: #2d3436;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.quick-action-icon {
    font-size: 2rem;
    color: #667eea;
}

.search-history {
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.history-tag:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.history-tag span:hover {
    color: #4361ee;
    text-decoration: underline;
}

.delete-history:hover {
    color: #c82333 !important;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .user-header-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .user-avatar-small {
        width: 70px;
        height: 70px;
        margin: 0 auto;
    }
    
    .avatar-placeholder-small {
        font-size: 1.5rem;
    }
    
    .user-greeting {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .user-header-details h1 {
        font-size: 1.5rem;
        margin: 0 0 0.3rem 0;
        line-height: 1.3;
    }
    
    .time-display {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
        margin-bottom: 0.3rem;
    }
    
    .user-subtitle {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .header-actions {
        margin-top: 1rem;
        text-align: center;
    }
    
    .header-actions .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .quick-actions {
        padding: 1rem;
        margin-bottom: 1.5rem;
        flex-direction: column;
    }
    
    .search-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .search-history {
        padding: 0.6rem;
    }
    
    .history-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .pagination-nav {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .diary-card-image {
        height: 180px;
    }
    
    .diary-card-actions {
        grid-template-columns: 1fr;
    }
    
    .diary-card-actions .btn {
        width: 100%;
    }
    
    .empty-actions {
        flex-direction: column;
    }
    
    .empty-actions .btn {
        width: 100%;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
    }

    .user-avatar-small {
        width: 60px;
        height: 60px;
    }
    
    .avatar-placeholder-small {
        font-size: 1.3rem;
    }
    
    .user-greeting {
        font-size: 0.9rem;
    }
    
    .user-header-details h1 {
        font-size: 1.3rem;
        margin: 0 0 0.2rem 0;
    }
    
    .page-header {
        padding: 1rem;
    }
    
    .time-display, .user-subtitle {
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .user-header-details h1 {
        font-size: 1.8rem;
    }
    
    .user-avatar-small {
        width: 75px;
        height: 75px;
    }
}

/* ======= digital_login.css ======= */

/* 数字登录页面样式 */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
}

.auth-header p {
    color: #7f8c8d;
    font-size: 16px;
}

.auth-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* 登录成功消息样式 */
.login-success-message {
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.login-success-message h3 {
    color: #27ae60;
    margin: 15px 0 10px;
    font-size: 24px;
}

.login-success-message p {
    color: #555;
    margin: 8px 0;
    font-size: 16px;
}

.success-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #d5f4e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

.success-icon-container i {
    font-size: 40px;
    color: #27ae60;
}

/* 倒计时样式 */
.countdown-container {
    margin: 30px auto;
    display: flex;
    justify-content: center;
}

.countdown-circle {
    position: relative;
    width: 60px;
    height: 60px;
}

.countdown-svg {
    transform: rotate(-90deg);
}

.countdown-circle-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 4;
}

.countdown-circle-fg {
    fill: none;
    stroke: #27ae60;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 170;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.countdown-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: bold;
    color: #27ae60;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-text {
    margin-top: 8px;
    font-size: 13px;
    color: #95a5a6;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-text i {
    color: #7f8c8d;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 警告消息样式 */
.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

.alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
}

.alert-success {
    background: #d5f4e6;
    border: 1px solid #a3e4c1;
    color: #27ae60;
}

.alert i {
    font-size: 18px;
}

/* 页脚链接 */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #7f8c8d;
    font-size: 14px;
}

.auth-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #2980b9;
}

.auth-footer p {
    margin: 8px 0;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .auth-container {
        margin: 20px;
        padding: 15px;
    }
    
    .auth-card {
        padding: 20px;
    }
    
    .form-control {
        font-size: 16px;
        padding: 10px;
    }
    
    .success-icon-container {
        width: 60px;
        height: 60px;
    }
    
    .success-icon-container i {
        font-size: 30px;
    }
}
/* 在 digital_login.css 中添加以下样式 */

/* 提交动画效果 */
.form-control.submitting {
    animation: pulseSubmit 0.3s ease;
    border-color: #27ae60;
    background-color: #f8fff8;
}

@keyframes pulseSubmit {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

/* 输入框获得焦点时的效果 */
.form-control:focus {
    animation: inputFocus 0.3s ease;
}

@keyframes inputFocus {
    from { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.3); }
    to { box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); }
}

/* 登录成功消息的动画 */
.login-success-message {
    animation: slideUpSuccess 0.5s ease;
}

@keyframes slideUpSuccess {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 圆形进度条的动画 */
.countdown-circle-fg {
    animation: circleGrow 3s linear forwards;
}

@keyframes circleGrow {
    0% {
        stroke-dashoffset: 170;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* 添加加载提示 */
.loading-hint {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: #95a5a6;
    animation: fadeIn 0.5s ease;
}

.loading-hint i {
    margin-right: 5px;
    color: #667eea;
}

/* ======= edit_entry.css ======= */

/* edit_entry.css - 编辑日记页面样式 */

.mood-weather-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mood-weather-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
}

.mood-weather-select:focus {
    border-color: #4361ee;
    outline: none;
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.file-upload {
    border: 2px dashed #ddd;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.file-upload:hover {
    border-color: #4361ee;
}

.file-upload-label {
    cursor: pointer;
    display: block;
}

.file-upload-input {
    display: none;
}

/* 富文本编辑器样式 */
.rich-text-editor {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.editor-toolbar {
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    padding: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.toolbar-group {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 2px 5px;
}

.editor-toolbar button,
.editor-toolbar select,
.editor-toolbar input[type="color"] {
    background: white;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 14px;
    min-height: 30px;
}

.editor-toolbar button:hover,
.editor-toolbar select:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.editor-toolbar input[type="color"] {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 3px;
}

.editor-content {
    min-height: 400px;
    max-height: 600px;
    padding: 15px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    outline: none;
    overflow-y: auto;
}

.editor-content:focus {
    border-color: #4361ee;
}

.editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 5px 0;
}

/* 日记密码锁设置 - 图二样式 */
.password-lock-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
}

.lock-setting-block {
    display: block;
}

.lock-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.lock-label {
    font-weight: 500;
    cursor: pointer;
    color: #333;
    margin: 0;
}

.lock-description-block {
    color: #666;
    font-size: 0.9rem;
    margin-left: 1.8rem; /* 与复选框对齐 */
    line-height: 1.4;
}

#password-fields {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 隐私设置样式 */
.privacy-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
}

.privacy-option {
    margin-bottom: 0.5rem;
}

.privacy-option:last-child {
    margin-bottom: 0;
}

.privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.privacy-label:hover {
    background-color: #e9ecef;
}

.privacy-icon {
    font-size: 1.2rem;
    color: #4361ee;
    width: 24px;
    text-align: center;
}

.privacy-text {
    flex: 1;
}

.privacy-description small {
    color: #6c757d;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mood-weather-container {
        grid-template-columns: 1fr;
    }
    
    .editor-toolbar {
        padding: 5px;
        gap: 5px;
    }
    
    .toolbar-group {
        padding: 2px;
    }
    
    .editor-toolbar button,
    .editor-toolbar select,
    .editor-toolbar input[type="color"] {
        padding: 4px 6px;
        font-size: 12px;
        min-height: 28px;
    }
    
    .editor-content {
        min-height: 300px;
        padding: 10px;
    }
}

/* 通用表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #4361ee;
    outline: none;
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.form-help {
    margin-top: 0.25rem;
    font-size: 0.85rem;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: #4361ee;
    color: white;
}

.btn-primary:hover {
    background: #3a56d4;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 文件预览 */
.file-preview {
    margin-top: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 1rem;
    background: #f8f9fa;
}

/* 内容长度信息 */
.content-length-info {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}
/* 隐私设置选项悬停效果 */
.privacy-option .privacy-label:hover {
    border-color: #adb5bd !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 确保所有选项高度一致 */
.privacy-option {
    height: 100%;
}

@media (max-width: 768px) {
    .privacy-option {
        min-width: 100% !important;
    }
}

/* ======= email_verify.css ======= */

/* email_verify.css - 邮箱验证页面样式 */

/* 邮箱验证页面按钮样式 */
.email-verify-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
}

.email-verify-header {
    text-align: center;
    margin-bottom: 30px;
}

.email-verify-header h1 {
    color: #333;
    margin-bottom: 10px;
}

.email-verify-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 按钮容器 */
.email-verify-buttons {
    text-align: center;
    margin-top: 30px;
}

/* 主要按钮样式 */
.btn-verify-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007bff;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid #007bff;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.btn-verify-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: white !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

/* 轮廓按钮样式 */
.btn-verify-outline {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: #6c757d !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid #6c757d;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.btn-verify-outline:hover {
    background-color: #6c757d;
    color: white !important;
    text-decoration: none;
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 576px) {
    .email-verify-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-verify-primary,
    .btn-verify-outline {
        margin: 0;
        width: 100%;
    }
}

/* 确保所有按钮文字可见 */
.btn-verify-primary,
.btn-verify-primary:visited,
.btn-verify-primary:active,
.btn-verify-primary:focus {
    color: white !important;
}

.btn-verify-outline,
.btn-verify-outline:visited,
.btn-verify-outline:active,
.btn-verify-outline:focus {
    color: #6c757d !important;
}

.btn-verify-outline:hover {
    color: white !important;
}

/* ======= global_buttons.css ======= */

/* global_buttons.css - 全局按钮样式修复 */

/* 确保所有主要按钮文字为白色 */
.btn-primary,
.btn.btn-primary,
a.btn-primary,
a.btn.btn-primary {
    color: white !important;
}

.btn-primary:hover,
.btn.btn-primary:hover,
a.btn-primary:hover,
a.btn.btn-primary:hover {
    color: white !important;
    opacity: 0.9;
}

/* 特定页面的按钮样式 */
.auth-footer .btn,
.email-verify-buttons .btn {
    color: white !important;
}

.auth-footer .btn-outline,
.email-verify-buttons .btn-outline {
    color: #6c757d !important;
}

.auth-footer .btn-outline:hover,
.email-verify-buttons .btn-outline:hover {
    color: white !important;
}

/* ======= home.css ======= */

/* 首页专用样式 */
.home-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 1rem;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.home-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.home-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-btn-primary {
    background: white;
    color: #667eea;
}

.hero-btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.features-section {
    padding: 2rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f3f5;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.feature-card h3 {
    color: #2d3436;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.cta-section {
    margin-top: 4rem;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    text-align: center;
}

.cta-section h2 {
    color: #2d3436;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.cta-section p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonial-section {
    margin-top: 4rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f1f3f5;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-text:before {
    content: '"';
    font-size: 3rem;
    color: #667eea;
    position: absolute;
    left: 0;
    top: -1rem;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    margin: 0;
    color: #2d3436;
}

.testimonial-author-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .home-hero {
        padding: 3rem 1rem;
        border-radius: 0 0 20px 20px;
    }
    
    .home-hero h1 {
        font-size: 2.5rem;
    }
    
    .home-hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 3rem 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card, .testimonial-card {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.4s; }

/* 统计数字动画 */
.stats-counter {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* 移动设备优化 */
@media (max-width: 480px) {
    .home-hero h1 {
        font-size: 2rem;
    }
    
    .feature-card, .testimonial-card {
        padding: 1.5rem;
    }
    
    .stats-counter {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ======= icons.css ======= */

/* 本地字体图标 - 使用 Unicode 替代 Font Awesome */
.icon {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* 使用 Unicode 字符作为图标 */
.icon-qq::before { content: "🐧"; }
.icon-qrcode::before { content: "📱"; }
.icon-key::before { content: "🔑"; }
.icon-check-circle::before { content: "✅"; }
.icon-times::before { content: "❌"; }
.icon-sync-alt::before { content: "🔄"; }
.icon-clock::before { content: "⏰"; }
.icon-exclamation-circle::before { content: "⚠️"; }
.icon-info-circle::before { content: "ℹ️"; }
.icon-spinner::before { content: "⏳"; }
.icon-arrow-left::before { content: "⬅️"; }
.icon-check::before { content: "✓"; }

/* ======= image-viewer.css ======= */

/* 图片查看器样式 */
.image-viewer {
    position: relative;
    overflow: hidden;
}

.unified-image {
    max-width: 600px;
    width: auto;
    height: auto;
    display: block;
    margin: 15px auto;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.unified-image:hover {
    transform: scale(1.02);
}

.unified-image.loading {
    opacity: 0.5;
}

.unified-image.error {
    border: 2px solid #dc3545;
}

/* 图片模态框 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
}

.image-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal .modal-content {
    position: relative;
    z-index: 1;
    width: 90%;
    height: 90vh;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-modal .modal-header {
    padding: 15px 20px;
    background: #2a2a2a;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.image-modal .modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

.image-modal .modal-actions {
    display: flex;
    gap: 8px;
}

.image-modal .modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.image-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.image-modal .image-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #000;
}

.image-modal .image-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.image-modal .controls-toolbar {
    padding: 15px 20px;
    background: #2a2a2a;
    border-top: 1px solid #333;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.image-modal .control-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.image-modal .control-btn {
    background: #3a3a3a;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.image-modal .control-btn:hover {
    background: #4a4a4a;
    transform: translateY(-2px);
}

.image-modal .control-btn:active {
    transform: translateY(0);
}

.image-modal .control-btn.active {
    background: #4361ee;
}

.image-modal .zoom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-modal .zoom-btn {
    background: #3a3a3a;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal .zoom-value {
    color: white;
    font-size: 0.9rem;
    min-width: 50px;
    text-align: center;
}

.image-modal .rotation-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-modal .rotation-value {
    color: white;
    font-size: 0.9rem;
    min-width: 50px;
    text-align: center;
}

.image-modal .download-btn {
    background: #4361ee;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.image-modal .download-btn:hover {
    background: #3a56d4;
}

/* 图片编辑模态框 */
.image-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
}

.image-edit-modal .edit-container {
    position: relative;
    width: 95%;
    height: 95vh;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.image-edit-modal .edit-header {
    padding: 15px 20px;
    background: #2a2a2a;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.image-edit-modal .edit-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-edit-modal .edit-header-actions {
    display: flex;
    gap: 10px;
}

.image-edit-modal .edit-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.image-edit-modal .edit-tools {
    width: 250px;
    background: #2a2a2a;
    padding: 20px;
    border-right: 1px solid #333;
    overflow-y: auto;
}

.image-edit-modal .edit-canvas-container {
    flex: 1;
    position: relative;
    overflow: auto;
    background: #000;
}

.image-edit-modal #edit-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.image-edit-modal .tool-section {
    margin-bottom: 25px;
}

.image-edit-modal .tool-section h4 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-edit-modal .tool-group {
    margin-bottom: 15px;
}

.image-edit-modal .tool-label {
    display: block;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.image-edit-modal .color-picker {
    display: flex;
    gap: 10px;
    align-items: center;
}

.image-edit-modal .color-preview {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 2px solid white;
    cursor: pointer;
}

.image-edit-modal .color-input {
    flex: 1;
    padding: 8px;
    background: #3a3a3a;
    border: 1px solid #444;
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
}

.image-edit-modal .slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-edit-modal .slider-value {
    min-width: 30px;
    text-align: center;
    color: white;
    font-size: 0.9rem;
}

.image-edit-modal input[type="range"] {
    flex: 1;
    height: 4px;
    background: #444;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.image-edit-modal input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #4361ee;
    border-radius: 50%;
    cursor: pointer;
}

.image-edit-modal .tool-btn {
    width: 100%;
    padding: 10px;
    background: #3a3a3a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    transition: background 0.3s;
    margin-bottom: 8px;
}

.image-edit-modal .tool-btn:hover {
    background: #4a4a4a;
}

.image-edit-modal .tool-btn.active {
    background: #4361ee;
}

.image-edit-modal .font-select {
    width: 100%;
    padding: 8px;
    background: #3a3a3a;
    border: 1px solid #444;
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
}

.image-edit-modal .text-input {
    width: 100%;
    padding: 10px;
    background: #3a3a3a;
    border: 1px solid #444;
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.image-edit-modal .edit-footer {
    padding: 15px 20px;
    background: #2a2a2a;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 图片加载状态 */
.media-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-size: 1rem;
}

.media-fallback i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #adb5bd;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .unified-image {
        max-width: 100% !important;
    }
    
    .image-modal .modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .image-modal .controls-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .image-edit-modal .edit-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .image-edit-modal .edit-content {
        flex-direction: column;
    }
    
    .image-edit-modal .edit-tools {
        width: 100%;
        height: 40%;
        border-right: none;
        border-bottom: 1px solid #333;
    }
    
    .image-edit-modal .edit-canvas-container {
        height: 60%;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .unified-image {
        max-width: 80%;
    }
}

/* 文本内容适配 */
.diary-content img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

.diary-content img.unified-image {
    margin: 15px auto;
}

/* 搜索关键词高亮 */
.search-highlight {
    background-color: #ffeb3b;
    padding: 0 2px;
    border-radius: 2px;
}

.highlight {
    background-color: #ffeb3b;
    padding: 0 2px;
    border-radius: 2px;
}

/* 分类颜色 */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: var(--category-color, #4361ee);
    color: white;
    border: 1px solid var(--category-color, #4361ee);
}

.category-badge i {
    font-size: 0.8rem;
}

/* 工具栏图标样式 */
.icon-small {
    font-size: 0.9rem;
}

/* 图片工具栏 */
.image-toolbar {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.image-toolbar-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.image-toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* ======= login.css ======= */

/* CSS文件: css/login.css - 登录页面专用样式（紧凑版） */

.login-container {
    width: 80%;
    max-width: 500px; /* 减小最大宽度 */
    margin: 20px auto; /* 减小外边距 */
    padding: 30px; /* 减小内边距 */
    background-color: #ffffff;
    border-radius: 16px; /* 减小圆角 */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #eaeaea;
}

.auth-header {
    text-align: center;
    margin-bottom: 25px; /* 减小间距 */
    padding-bottom: 15px; /* 减小间距 */
    border-bottom: 1px solid #f0f0f0; /* 减小边框宽度 */
}

.auth-header h1 {
    font-size: 26px; /* 减小字体大小 */
    color: #2c3e50;
    margin-bottom: 8px; /* 减小间距 */
    font-weight: 700;
    letter-spacing: 0.3px;
}

.auth-header p {
    font-size: 14px; /* 减小字体大小 */
    color: #7f8c8d;
    font-weight: 400;
}

.login-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 25px; /* 减小内边距 */
    border-radius: 12px; /* 减小圆角 */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px; /* 减小间距 */
    border: 1px solid #e8eef3;
}

.form-group {
    margin-bottom: 20px; /* 减小间距 */
}

.form-label {
    display: block;
    margin-bottom: 8px; /* 减小间距 */
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px; /* 减小字体大小 */
    letter-spacing: 0.2px;
}

.form-control {
    width: 100%;
    padding: 12px 16px; /* 减小内边距 */
    border: 2px solid #dbe1e8;
    border-radius: 10px; /* 减小圆角 */
    font-size: 15px; /* 减小字体大小 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background-color: white;
    color: #333;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15); /* 减小阴影 */
    background-color: #f8fafc;
}

.form-control:hover {
    border-color: #b8c2cc;
}

.remember-group {
    display: flex;
    align-items: center;
    margin: 18px 0; /* 减小间距 */
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px; /* 减小字体大小 */
    color: #5a6c7d;
    font-weight: 500;
    transition: color 0.2s;
}

.checkbox-label:hover {
    color: #3498db;
}

.checkbox-label input {
    margin-right: 10px; /* 减小间距 */
    width: 18px; /* 减小尺寸 */
    height: 18px; /* 减小尺寸 */
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid #cbd5e0;
}

.checkbox-label input:checked {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 14px; /* 减小内边距 */
    font-size: 16px; /* 减小字体大小 */
    font-weight: 600;
    border-radius: 10px; /* 减小圆角 */
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    width: 100%;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.2); /* 减小阴影 */
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2573a7 100%);
    transform: translateY(-2px); /* 减小悬停移动距离 */
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.3); /* 减小阴影 */
}

.btn-primary:active {
    transform: translateY(0);
}

.alternative-login {
    margin: 25px 0 30px; /* 减小间距 */
    padding: 20px; /* 减小内边距 */
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px; /* 减小圆角 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* 减小阴影 */
    border: 1px solid #e8eef3;
}

.alternative-title {
    text-align: center;
    color: #5a6c7d;
    font-size: 14px; /* 减小字体大小 */
    font-weight: 600;
    margin-bottom: 18px; /* 减小间距 */
    position: relative;
    padding: 0 15px; /* 减小内边距 */
}

.alternative-title:before {
    content: "";
    position: absolute;
    left: 15px; /* 调整位置 */
    top: 50%;
    width: calc(50% - 50px); /* 调整宽度 */
    height: 1px;
    background: linear-gradient(90deg, transparent, #dbe1e8);
}

.alternative-title:after {
    content: "";
    position: absolute;
    right: 15px; /* 调整位置 */
    top: 50%;
    width: calc(50% - 50px); /* 调整宽度 */
    height: 1px;
    background: linear-gradient(90deg, #dbe1e8, transparent);
}

/* 三个按钮紧凑排列 - 缩小按钮 */
.alternative-buttons {
    display: flex;
    justify-content: space-between;
    gap: 8px; /* 减小间隙 */
    flex-wrap: nowrap;
}

/* 三个按钮等分宽度 - 缩小按钮 */
.alternative-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px; /* 进一步减小内边距 */
    border-radius: 8px; /* 减小圆角 */
    text-decoration: none;
    font-weight: 600;
    font-size: 13px; /* 减小字体大小 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent; /* 减小边框 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); /* 减小阴影 */
    letter-spacing: 0.1px;
    min-height: 50px; /* 减小最小高度 */
    text-align: center;
    flex-direction: column;
}

.alternative-btn i {
    font-size: 18px; /* 减小图标大小 */
    margin-bottom: 4px; /* 减小间距 */
}

.qq-login {
    background: linear-gradient(135deg, #12B7F5 0%, #0A9BD9 100%);
    color: white;
}

.qq-login:hover {
    background: linear-gradient(135deg, #0A9BD9 0%, #0988C1 100%);
    transform: translateY(-2px); /* 减小悬停移动距离 */
    box-shadow: 0 4px 12px rgba(18, 183, 245, 0.2); /* 减小阴影 */
}

.digital-login {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.digital-login:hover {
    background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
    transform: translateY(-2px); /* 减小悬停移动距离 */
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2); /* 减小阴影 */
}

.scan-login {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

.scan-login:hover {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
    transform: translateY(-2px); /* 减小悬停移动距离 */
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.2); /* 减小阴影 */
}

/* 页脚样式 - 修改为一行显示 */
.auth-footer {
    text-align: center;
    margin-top: 25px; /* 减小间距 */
    padding-top: 20px; /* 减小间距 */
    border-top: 1px solid #f0f0f0; /* 减小边框宽度 */
}

.auth-footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.auth-footer-text {
    color: #5a6c7d;
    font-weight: 500;
    font-size: 14px;
}

.auth-footer-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
    position: relative;
    white-space: nowrap;
    font-size: 14px;
}

.auth-footer-link:hover {
    color: #2980b9;
    text-decoration: none;
    background-color: rgba(52, 152, 219, 0.1);
}

.auth-footer-link:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 6px;
    right: 6px;
    height: 1px;
    background-color: #3498db;
    transform: scaleX(0);
    transition: transform 0.2s;
}

.auth-footer-link:hover:after {
    transform: scaleX(1);
}

.auth-footer-separator {
    color: #d1d5db;
    font-weight: 400;
    margin: 0 2px;
}

.alert-error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    padding: 14px 18px; /* 减小内边距 */
    border-radius: 10px; /* 减小圆角 */
    margin-bottom: 20px; /* 减小间距 */
    border-left: 4px solid #c62828; /* 减小边框宽度 */
    font-size: 14px; /* 减小字体大小 */
    font-weight: 500;
    box-shadow: 0 3px 12px rgba(198, 40, 40, 0.1); /* 减小阴影 */
    display: flex;
    align-items: center;
}

.alert-error:before {
    content: "⚠️";
    margin-right: 10px; /* 减小间距 */
    font-size: 18px; /* 减小字体大小 */
}

/* 响应式设计 - 针对平板设备 */
@media (max-width: 1024px) and (min-width: 769px) {
    .login-container {
        width: 85%;
        max-width: 550px;
        padding: 25px;
    }
    
    .login-card {
        padding: 20px;
    }
    
    .alternative-buttons {
        gap: 6px;
    }
    
    .alternative-btn {
        padding: 8px 6px;
        font-size: 12px;
        min-height: 45px;
    }
    
    .alternative-btn i {
        font-size: 16px;
        margin-bottom: 3px;
    }
}

/* 响应式设计 - 针对平板（较小）和手机（横屏） */
@media (max-width: 768px) and (min-width: 481px) {
    .login-container {
        width: 90%;
        padding: 20px;
    }
    
    .login-card {
        padding: 18px 15px;
    }
    
    .alternative-buttons {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .alternative-btn {
        padding: 8px 6px;
        font-size: 11px;
        min-height: 42px;
        min-width: 80px;
    }
    
    .alternative-btn i {
        font-size: 15px;
        margin-bottom: 3px;
    }
    
    .auth-header h1 {
        font-size: 22px;
    }
    
    .form-control {
        padding: 10px 14px;
    }
    
    .btn-primary {
        padding: 12px;
        font-size: 15px;
    }
}

/* 响应式设计 - 针对手机（竖屏） */
@media (max-width: 480px) {
    .login-container {
        width: 95%;
        padding: 15px;
        margin: 15px auto;
    }
    
    .login-card {
        padding: 15px 12px;
    }
    
    /* 在手机上，按钮垂直排列 */
    .alternative-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .alternative-btn {
        width: 100%;
        padding: 12px 10px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        min-height: auto;
        font-size: 14px;
    }
    
    .alternative-btn i {
        font-size: 18px;
        margin-bottom: 0;
        margin-right: 10px;
        width: 22px;
    }
    
    .auth-header h1 {
        font-size: 20px;
    }
    
    .auth-header p {
        font-size: 13px;
    }
    
    .alternative-title {
        font-size: 13px;
    }
    
    .auth-footer-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .auth-footer-separator {
        display: none;
    }
}

/* 针对非常小的手机屏幕 */
@media (max-width: 360px) {
    .login-container {
        padding: 12px 10px;
    }
    
    .login-card {
        padding: 12px 10px;
    }
    
    .alternative-btn {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .alternative-btn i {
        font-size: 16px;
        margin-right: 8px;
    }
}

/* 确保在PC端常见分辨率下不显示垂直滚动条 */
@media (min-height: 700px) {
    .login-container {
        margin: 30px auto;
    }
}

/* 针对小高度屏幕进一步压缩 */
@media (max-height: 700px) {
    .login-container {
        margin: 10px auto;
        padding: 20px;
    }
    
    .auth-header {
        margin-bottom: 15px;
    }
    
    .login-card {
        margin-bottom: 15px;
        padding: 20px;
    }
    
    .alternative-login {
        margin: 15px 0 20px;
        padding: 15px;
    }
    
    .auth-footer {
        margin-top: 15px;
        padding-top: 15px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    animation: fadeInUp 0.5s ease-out;
}

.login-card {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.alternative-login {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.auth-footer {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* ======= messages.css ======= */

/* css/messages.css - 站内消息样式 */

/* 紧凑型头部样式 - 修改为白色背景 */
.messages-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff; /* 改为白色背景 */
    padding: 25px 30px;
    border-radius: 12px;
    color: #333; /* 文字颜色改为深色 */
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* 添加阴影 */
    border: 1px solid #f0f0f0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 300px;
}

/* 头像样式 - 调整以适应白色背景 */
.header-avatar {
    width: 80px; /* 增大头像尺寸 */
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0f0f0; /* 调整边框颜色 */
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* 防止头像被压缩 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 添加轻微阴影 */
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.header-avatar img:hover {
    transform: scale(1.05); /* 添加悬停效果 */
}

/* 头像占位符样式 */
.header-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4361ee, #3a56d4); /* 使用渐变色 */
    color: white;
    font-size: 32px; /* 增大图标 */
}

.header-avatar .avatar-placeholder i {
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2)); /* 添加图标阴影 */
}

.header-info {
    flex: 1;
}

.header-title {
    margin: 0 0 8px 0;
    font-size: 28px; /* 增大标题字号 */
    font-weight: 700; /* 加粗 */
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2c3e50; /* 深色文字 */
}

.header-title i {
    color: #4361ee; /* 图标颜色 */
    background: rgba(67, 97, 238, 0.1);
    padding: 8px;
    border-radius: 10px;
    font-size: 24px;
}

.header-subtitle {
    margin: 0;
    font-size: 15px; /* 稍微增大副标题 */
    color: #666; /* 中等灰色 */
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-subtitle i {
    font-size: 14px;
    color: #4361ee; /* 图标颜色 */
}

.header-stats {
    display: flex;
    gap: 25px;
    align-items: center;
    background: #f8f9fa; /* 改为浅灰色背景 */
    padding: 15px 25px; /* 增加内边距 */
    border-radius: 12px; /* 圆角增大 */
    border: 1px solid #e0e0e0; /* 添加边框 */
}

.stat-item-compact {
    text-align: center;
    min-width: 90px; /* 稍微增大 */
}

.stat-number-compact {
    display: block;
    font-size: 32px; /* 增大数字 */
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    color: #2c3e50; /* 深色数字 */
    text-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 添加文字阴影 */
}

.stat-label-compact {
    display: block;
    font-size: 13px;
    color: #666; /* 中等灰色 */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.header-actions-compact {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-compact {
    padding: 10px 20px; /* 增大按钮内边距 */
    border: none;
    border-radius: 10px; /* 圆角增大 */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-compact.btn-primary {
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%); /* 保持渐变 */
    color: white;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3); /* 添加阴影 */
}

.btn-compact.btn-primary:hover {
    background: linear-gradient(135deg, #3a56d4 0%, #2d46c8 100%);
    transform: translateY(-3px); /* 增加悬停效果 */
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.4);
}

.btn-compact.btn-outline {
    background: transparent;
    color: #4361ee; /* 文字颜色 */
    border: 2px solid #e0e0e0; /* 边框颜色 */
}

.btn-compact.btn-outline:hover {
    background: #f8f9fa;
    border-color: #4361ee;
    color: #4361ee;
    transform: translateY(-3px);
}

/* 消息页面容器 */
.messages-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin: 20px 0;
}

/* 消息工具栏 */
.messages-toolbar {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.toolbar-left, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.toolbar-left label {
    margin: 0;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

/* 消息列表 */
.messages-list {
    padding: 0;
}

.message-item {
    display: grid;
    grid-template-columns: 40px 200px 1fr 150px 100px;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    gap: 15px;
    transition: background-color 0.2s ease;
    min-height: 70px;
}

.message-item:hover {
    background-color: #f8f9fa;
}

.message-item.unread {
    background-color: #f0f9ff;
    border-left: 4px solid #4361ee;
}

/* 消息复选框 */
.message-checkbox {
    text-align: center;
}

.message-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 发件人信息 */
.message-sender {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sender-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    background: #17a2b8;
    color: white;
}

.sender-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.sender-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #2c3e50;
}

.sender-email {
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 消息内容 */
.message-content {
    padding: 0 10px;
    min-width: 0;
    overflow: hidden;
}

.message-subject {
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
}

.message-excerpt {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 消息时间 */
.message-time {
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
}

/* 消息操作按钮 */
.message-actions {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: white;
}

.btn-view {
    background: #28a745;
}

.btn-view:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-check {
    background: #17a2b8;
}

.btn-check:hover {
    background: #138496;
    transform: translateY(-2px);
}

.btn-delete {
    background: #dc3545;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* 表单控件 */
.message-form-control {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.message-form-control:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* 分页样式 */
.pagination-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.pagination-nav {
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #4361ee;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.page-link.current {
    background: linear-gradient(135deg, #4361ee, #3a56d4);
    color: white;
    border-color: #4361ee;
}

.page-link i {
    font-size: 12px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin: 20px 0;
}

.empty-icon {
    font-size: 48px;
    color: #adb5bd;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}

.empty-state p {
    color: #6c757d;
    max-width: 400px;
    margin: 0 auto 20px;
}

.empty-actions {
    margin-top: 20px;
}

/* 警告样式 */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert i {
    font-size: 16px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.modal.active {
    display: flex;
}

.modal-container {
    background: white;
    border-radius: 12px;
    width: 600px;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #343a40;
    flex: 1;
    margin-right: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
}

.modal-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.message-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #6c757d;
    flex-wrap: wrap;
    gap: 10px;
}

.message-body {
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
}

/* 消息正文中HTML元素的样式 */
.message-body h1, .message-body h2, .message-body h3,
.message-body h4, .message-body h5, .message-body h6 {
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.3;
}

.message-body h1 { font-size: 1.8em; }
.message-body h2 { font-size: 1.5em; }
.message-body h3 { font-size: 1.3em; }
.message-body h4 { font-size: 1.2em; }
.message-body h5 { font-size: 1.1em; }
.message-body h6 { font-size: 1em; }

.message-body p {
    margin-bottom: 1em;
    line-height: 1.6;
}

.message-body ul, .message-body ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.message-body li {
    margin-bottom: 0.5em;
}

.message-body blockquote {
    border-left: 4px solid #4361ee;
    padding-left: 1em;
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
    color: #666;
}

.message-body a {
    color: #4361ee;
    text-decoration: underline;
}

.message-body a:hover {
    color: #3a56d4;
}

.message-body strong, .message-body b {
    font-weight: 600;
}

.message-body em, .message-body i {
    font-style: italic;
}

.message-body code {
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.message-body pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1em;
}

.message-body img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 10px 0;
}

.message-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.message-body table th,
.message-body table td {
    border: 1px solid #dee2e6;
    padding: 8px;
    text-align: left;
}

.message-body table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.message-body .alert {
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 1em;
    border: 1px solid transparent;
}

.message-body .alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.message-body .alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.message-body .alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.message-body .alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #4361ee, #3a56d4);
    color: white;
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.modal-footer .btn-secondary {
    background: #6c757d;
    color: white;
}

.modal-footer .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* 按钮基础样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #4361ee, #3a56d4);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* 分页信息 */
.pagination-info {
    font-size: 13px;
    color: #6c757d;
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .message-item {
        grid-template-columns: 40px 150px 1fr 120px 80px;
    }
    
    .messages-header-compact {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .header-left {
        flex-direction: column;
        text-align: center;
        min-width: auto;
    }
    
    .header-stats {
        justify-content: center;
    }
    
    .header-actions-compact {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .message-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto;
        gap: 10px;
        padding: 15px;
    }
    
    .message-checkbox {
        grid-column: 1;
        grid-row: 1;
        text-align: left;
    }
    
    .message-sender {
        grid-column: 1;
        grid-row: 2;
    }
    
    .message-content {
        grid-column: 1;
        grid-row: 3;
        padding: 0;
    }
    
    .message-time {
        grid-column: 1;
        grid-row: 4;
        text-align: left;
    }
    
    .message-actions {
        grid-column: 1;
        grid-row: 5;
        justify-content: flex-start;
    }
    
    .messages-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .toolbar-left, .toolbar-right {
        justify-content: center;
    }
    
    .header-stats {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .stat-item-compact {
        min-width: 70px;
    }
    
    .header-title {
        font-size: 24px;
    }
    
    .header-subtitle {
        font-size: 13px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .messages-header-compact {
        padding: 20px;
    }
    
    .header-stats {
        padding: 10px 15px;
    }
    
    .stat-number-compact {
        font-size: 24px;
    }
    
    .btn-compact {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .message-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .modal-container {
        width: 95%;
        margin: 10px;
    }
}

/* 复选框样式 */
input[type="checkbox"] {
    accent-color: #4361ee;
}

/* 选择框样式 */
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 30px;
}

/* ======= policy.css ======= */

/* css/policy.css - 政策和条款页面样式 */

.policy-page {
    padding: 40px 0;
    background-color: #f9f9f9;
    min-height: calc(100vh - 200px);
}

.policy-page .page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.policy-page .page-header h1 {
    color: #4361ee;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.policy-page .page-header .lead {
    color: #666;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.policy-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 30px;
}

.policy-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-section h2 {
    color: #333;
    font-size: 1.6rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4361ee;
    font-weight: 600;
}

.policy-section h3 {
    color: #4361ee;
    font-size: 1.3rem;
    margin: 20px 0 15px;
    font-weight: 500;
}

.policy-section p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.policy-section strong {
    color: #333;
    font-weight: 600;
}

.policy-section em {
    color: #666;
    font-style: italic;
}

.policy-section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.policy-section li {
    color: #444;
    line-height: 1.8;
    margin-bottom: 10px;
    position: relative;
}

.policy-section li:before {
    content: "•";
    color: #4361ee;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.policy-section li strong {
    color: #333;
}

.policy-footer {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-top: 40px;
    border-left: 4px solid #4361ee;
}

.policy-footer p {
    color: #555;
    margin-bottom: 10px;
}

.policy-footer strong {
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .policy-page {
        padding: 20px 0;
    }
    
    .policy-page .page-header h1 {
        font-size: 2rem;
    }
    
    .policy-page .page-header .lead {
        font-size: 1.1rem;
    }
    
    .policy-content {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .policy-section h2 {
        font-size: 1.4rem;
    }
    
    .policy-section h3 {
        font-size: 1.2rem;
    }
    
    .policy-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .policy-content {
        padding: 20px 15px;
    }
    
    .policy-page .page-header h1 {
        font-size: 1.8rem;
    }
    
    .policy-section h2 {
        font-size: 1.3rem;
    }
    
    .policy-footer {
        padding: 20px 15px;
    }
}

/* 打印样式 */
@media print {
    .policy-page {
        background: white;
        padding: 0;
    }
    
    .policy-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .policy-footer {
        page-break-inside: avoid;
    }
    
    .floating-footer,
    .main-footer {
        display: none;
    }
}

/* 深色主题支持 */
@media (prefers-color-scheme: dark) {
    .policy-page {
        background-color: #1a1a1a;
    }
    
    .policy-content {
        background: #2d2d2d;
        color: #e0e0e0;
        border-color: #444;
    }
    
    .policy-page .page-header h1 {
        color: #667eea;
    }
    
    .policy-section h2 {
        color: #e0e0e0;
        border-bottom-color: #667eea;
    }
    
    .policy-section p,
    .policy-section li {
        color: #ccc;
    }
    
    .policy-section strong {
        color: #e0e0e0;
    }
    
    .policy-section li:before {
        color: #667eea;
    }
    
    .policy-footer {
        background: #333;
        border-left-color: #667eea;
    }
    
    .policy-footer p,
    .policy-footer strong {
        color: #bbb;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .policy-content {
        border: 2px solid #000;
    }
    
    .policy-section h2 {
        border-bottom: 3px solid #000;
    }
    
    .policy-footer {
        border-left: 4px solid #000;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    .policy-content {
        transition: none;
    }
}

/* 添加一些交互效果 */
.policy-section h2:hover {
    color: #3a56d4;
}

.policy-section li:hover {
    color: #333;
    transform: translateX(2px);
    transition: transform 0.2s ease;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: #4361ee;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #3a56d4;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}
/* 关闭按钮样式 */
.policy-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
}

.policy-close-btn {
    background: #4361ee;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.policy-close-btn:hover {
    background: #3a56d4;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.3);
}

.policy-close-btn:active {
    transform: translateY(0);
}

.policy-close-btn.secondary {
    background: #6c757d;
}

.policy-close-btn.secondary:hover {
    background: #5a6268;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .policy-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .policy-close-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}

/* 深色主题支持 */
@media (prefers-color-scheme: dark) {
    .policy-actions {
        border-top-color: #444;
    }
    
    .policy-close-btn {
        background: #667eea;
    }
    
    .policy-close-btn:hover {
        background: #5a6fd8;
    }
    
    .policy-close-btn.secondary {
        background: #495057;
    }
    
    .policy-close-btn.secondary:hover {
        background: #343a40;
    }
}
/* 固定底部关闭按钮 */
.fixed-bottom-close {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(67, 97, 238, 0.95);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.fixed-bottom-close:hover {
    background: rgba(58, 86, 212, 0.95);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

/* 确保按钮不会在移动端遮挡内容 */
@media (max-width: 768px) {
    .fixed-bottom-close {
        bottom: 80px; /* 避免和浮动导航冲突 */
        width: 90%;
        max-width: 300px;
        justify-content: center;
    }
}

/* 在打印时隐藏 */
@media print {
    .fixed-bottom-close,
    .policy-actions {
        display: none !important;
    }
}

/* ======= reset_password.css ======= */

/* css/reset_password.css - 密码重置页面样式 */

.reset-password-container {
    width: 80%;
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #eaeaea;
}

.reset-password-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.reset-password-header h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.reset-password-header p {
    font-size: 15px;
    color: #7f8c8d;
    font-weight: 400;
}

/* 用户信息卡片 */
.user-info-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #e8eef3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.user-avatar-default {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.user-info-details h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 600;
}

.user-email {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-email i {
    color: #3498db;
}

.user-info-meta {
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.token-info {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.token-info i {
    color: #f59e0b;
}

/* 重置密码卡片 */
.reset-password-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
    border: 1px solid #e8eef3;
}

.reset-password-form {
    margin-top: 20px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: #3498db;
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dbe1e8;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background-color: white;
    color: #333;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    background-color: #f8fafc;
}

.form-control:hover {
    border-color: #b8c2cc;
}

.form-help {
    margin-top: 8px;
    font-size: 13px;
    color: #5a6c7d;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.form-help i {
    color: #3498db;
}

/* 密码强度指示器 */
#passwordStrength {
    display: none;
}

.strength-meter {
    height: 6px;
    border-radius: 3px;
    margin-bottom: 8px;
    background: #e9ecef;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-text {
    font-size: 13px;
    color: #5a6c7d;
    font-weight: 500;
}

.strength-weak .strength-bar {
    background: #e74c3c;
    width: 25%;
}

.strength-weak .strength-text {
    color: #e74c3c;
    font-weight: 600;
}

.strength-fair .strength-bar {
    background: #f39c12;
    width: 50%;
}

.strength-fair .strength-text {
    color: #f39c12;
    font-weight: 600;
}

.strength-good .strength-bar {
    background: #3498db;
    width: 75%;
}

.strength-good .strength-text {
    color: #3498db;
    font-weight: 600;
}

.strength-strong .strength-bar {
    background: #27ae60;
    width: 100%;
}

.strength-strong .strength-text {
    color: #27ae60;
    font-weight: 600;
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2573a7 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.3);
}

.btn-reset {
    font-size: 16px;
    padding: 15px;
}

.btn-secondary {
    background: white;
    color: #64748b;
    border: 2px solid #dbe1e8;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #b8c2cc;
    transform: translateY(-2px);
}

/* 页脚 */
.reset-password-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.reset-password-footer p {
    margin: 8px 0;
    color: #5a6c7d;
    font-size: 14px;
    font-weight: 500;
}

.text-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.text-link:hover {
    color: #2980b9;
    background-color: rgba(52, 152, 219, 0.1);
    text-decoration: none;
}

/* 警告消息 */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.alert i {
    font-size: 18px;
    margin-top: 2px;
}

.alert-error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 4px solid #c62828;
    color: #c62828;
    box-shadow: 0 3px 12px rgba(198, 40, 40, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d5f4e6 0%, #a3e4c1 100%);
    border-left: 4px solid #27ae60;
    color: #27ae60;
    box-shadow: 0 3px 12px rgba(39, 174, 96, 0.1);
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #1976d2;
    color: #1976d2;
    box-shadow: 0 3px 12px rgba(25, 118, 210, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .reset-password-container {
        width: 90%;
        padding: 20px;
        margin: 20px auto;
    }
    
    .reset-password-card {
        padding: 20px 15px;
    }
    
    .user-info-header {
        flex-direction: column;
        text-align: center;
    }
    
    .user-info-details {
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .reset-password-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .reset-password-container {
        width: 95%;
        padding: 15px;
        margin: 15px auto;
    }
    
    .reset-password-card {
        padding: 15px 12px;
    }
    
    .user-avatar,
    .user-avatar-default {
        width: 50px;
        height: 50px;
    }
    
    .form-control {
        padding: 12px 14px;
    }
    
    .reset-password-footer p {
        font-size: 13px;
    }
}

/* 针对小高度屏幕 */
@media (max-height: 700px) {
    .reset-password-container {
        margin: 20px auto;
        padding: 20px;
    }
    
    .reset-password-header {
        margin-bottom: 20px;
    }
    
    .reset-password-card {
        margin-bottom: 20px;
    }
    
    .reset-password-footer {
        margin-top: 20px;
        padding-top: 15px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reset-password-container {
    animation: fadeInUp 0.5s ease-out;
}

.user-info-card {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.reset-password-card {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.reset-password-footer {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* ======= scan_login.css ======= */

/* css/scan_login.css - 扫码登录页面样式（完整分离版） */

/* 使用login.php相同的容器样式 */
.auth-container {
    width: 80%;
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #eaeaea;
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.auth-header h1 {
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.auth-header p {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 400;
}

/* 扫码卡片 */
.scan-simple-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
    border: 1px solid #e8eef3;
    text-align: center;
}

/* 二维码 */
.qrcode-simple-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 25px;
}

.qrcode-simple-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 2px solid #dbe1e8;
    padding: 12px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* 成功覆盖层 */
.qrcode-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(39, 174, 96, 0.95);
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: fadeIn 0.5s ease;
}

.success-animation {
    text-align: center;
    color: white;
}

.success-animation i {
    font-size: 50px;
    margin-bottom: 15px;
    animation: scaleIn 0.5s ease;
}

.success-animation p {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.9;
    font-weight: 500;
}

.countdown-simple {
    font-size: 24px;
    font-weight: 600;
    animation: pulse 1s infinite;
}

/* 状态提示 */
.scan-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 15px;
    color: #5a6c7d;
    font-weight: 500;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3498db;
    animation: pulseDot 2s infinite;
}

.status-dot.pending {
    background: #3498db;
}

.status-dot.scanned {
    background: #f39c12;
}

.status-dot.success {
    background: #27ae60;
}

.status-dot.expired {
    background: #e74c3c;
}

/* 简单步骤 */
.scan-simple-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.simple-step {
    text-align: center;
    flex: 1;
    max-width: 80px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #e9ecef;
    color: #95a5a6;
    border-radius: 50%;
    line-height: 32px;
    margin: 0 auto 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-text {
    font-size: 13px;
    color: #5a6c7d;
    font-weight: 500;
}

.simple-step.active .step-number {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    animation: pulseStep 1.5s infinite;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

/* 按钮 */
.scan-action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.btn-simple {
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #dbe1e8;
    background: white;
    color: #5a6c7d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    letter-spacing: 0.2px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.btn-simple:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    border-color: #3498db;
    color: #3498db;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.btn-simple.primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: #2980b9;
}

.btn-simple.primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2573a7 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    border-color: #2573a7;
}

/* 页脚 */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    color: #5a6c7d;
    font-size: 14px;
    font-weight: 500;
}

.auth-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    position: relative;
}

.auth-footer a:hover {
    color: #2980b9;
    text-decoration: none;
    background-color: rgba(52, 152, 219, 0.1);
}

.auth-footer a:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 8px;
    right: 8px;
    height: 1px;
    background-color: #3498db;
    transform: scaleX(0);
    transition: transform 0.2s;
}

.auth-footer a:hover:after {
    transform: scaleX(1);
}

.auth-footer p {
    margin: 8px 0;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes pulseDot {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes pulseStep {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-container {
        width: 90%;
        padding: 20px;
        margin: 20px auto;
    }
    
    .scan-simple-card {
        padding: 20px;
    }
    
    .qrcode-simple-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .success-animation i {
        font-size: 40px;
    }
    
    .success-animation p {
        font-size: 14px;
    }
    
    .countdown-simple {
        font-size: 20px;
    }
    
    .scan-simple-steps {
        gap: 15px;
    }
    
    .step-text {
        font-size: 12px;
    }
    
    .btn-simple {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 100px;
    }
    
    .auth-header h1 {
        font-size: 22px;
    }
    
    .auth-header p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        width: 95%;
        padding: 15px;
        margin: 15px auto;
    }
    
    .scan-simple-card {
        padding: 15px;
    }
    
    .qrcode-simple-wrapper {
        width: 160px;
        height: 160px;
    }
    
    .scan-action-buttons {
        flex-direction: column;
    }
    
    .btn-simple {
        width: 100%;
    }
}

/* 针对小高度屏幕 */
@media (max-height: 700px) {
    .auth-container {
        margin: 10px auto;
        padding: 20px;
    }
    
    .auth-header {
        margin-bottom: 15px;
    }
    
    .scan-simple-card {
        margin-bottom: 15px;
        padding: 20px;
    }
    
    .auth-footer {
        margin-top: 15px;
        padding-top: 15px;
    }
}

/* ======= shares.css ======= */

/* css/shares.css - 分享管理页面样式（修复移动端问题） */

/* 统计摘要 */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 分享表格容器 */
.shares-table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.shares-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 800px;
}

.shares-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

.shares-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.share-row:hover {
    background: #f8fafc;
}

.share-row.selected {
    background: #e3f2fd !important;
}

/* 分享链接相关样式 */
.share-link-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.share-link-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background: #f8f9fa;
    color: #333;
    min-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-copy-link {
    padding: 6px 12px;
    background: #4361ee;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.btn-copy-link:hover {
    background: #3a56d4;
}

.password-info {
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 标题限制样式 */
.entry-title-cell {
    max-width: 200px;
    min-width: 150px;
}

.entry-title {
    max-width: 100%;
    overflow: hidden;
}

.entry-title a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.3;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 0;
}

.entry-title a:hover {
    color: #4361ee;
    text-decoration: underline;
}

.entry-title i {
    font-size: 0.85rem;
    margin-right: 4px;
}

.entry-info {
    margin-top: 4px;
    font-size: 0.8rem;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 4px;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-secondary { background: #e2e3e5; color: #383d41; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-locked { background: #f8d7da; color: #721c24; }
.badge-public { background: #d4edda; color: #155724; }

/* 操作按钮 */
.actions-cell {
    min-width: 180px;
}

.action-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-action {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.btn-action.btn-info { background: #17a2b8; color: white; }
.btn-action.btn-primary { background: #4361ee; color: white; }
.btn-action.btn-warning { background: #f59e0b; color: white; }
.btn-action.btn-success { background: #28a745; color: white; }
.btn-action.btn-danger { background: #ef4444; color: white; }
.btn-action.btn-secondary { background: #6b7280; color: white; }

/* 详情行样式 */
.share-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    border-left: 4px solid #4361ee;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.detail-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.detail-label {
    font-weight: 600;
    color: #333;
    min-width: 100px;
    flex-shrink: 0;
}

.detail-value {
    color: #666;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
}

.details-actions {
    margin-top: 1rem;
    text-align: right;
}

/* 批量操作区域 */
.bulk-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.bulk-action-group {
    display: flex;
    gap: 10px;
}

.bulk-select {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bulk-select label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state i {
    margin-bottom: 1rem;
    color: #4361ee;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 1rem 0;
    color: #333;
    font-weight: 500;
}

.empty-state p {
    margin-bottom: 2rem;
    color: #666;
}

/* 文本颜色 */
.text-danger { color: #dc3545; }
.text-warning { color: #f59e0b; }
.text-info { color: #17a2b8; }
.text-success { color: #28a745; }

/* 日期和时间单元格 */
.date-cell, .expiry-cell, .views-cell, .status-cell {
    font-size: 0.9rem;
    color: #666;
}

.expiry-cell small {
    font-size: 0.8rem;
}

.view-count {
    font-weight: 600;
    color: #4361ee;
}

/* 页头样式 */
.page-header {
    margin-bottom: 2rem;
}

.page-header .title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header .subtitle {
    color: #666;
    font-size: 1rem;
}

/* ========== 移动端样式修复 ========== */

/* 移动端：统计卡片改为垂直排列 */
@media (max-width: 768px) {
    .stats-summary {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
        margin: 1rem 0;
    }
    
    .stat-card {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* 移动端表格容器隐藏 */
    .shares-table-container {
        display: none !important;
    }
    
    .shares-table {
        display: none !important;
    }
    
    /* 移动端卡片列表显示 */
    .shares-mobile-list {
        display: block !important;
        margin: 1rem 0;
    }
    
    .share-mobile-card {
        background: white;
        border-radius: 10px;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border: 1px solid #e0e0e0;
        position: relative;
    }
    
    .share-mobile-card.selected {
        background: #e3f2fd;
        border-color: #4361ee;
    }
    
    .mobile-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid #eee;
    }
    
    .mobile-card-title {
        flex: 1;
        margin-right: 0.5rem;
        overflow: hidden;
    }
    
    .mobile-card-title h4 {
        margin: 0 0 0.25rem 0;
        font-size: 0.95rem;
        color: #333;
        line-height: 1.3;
        overflow: hidden;
    }
    
    .mobile-card-title h4 a {
        display: inline-block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.95rem;
        color: #333;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .mobile-card-title h4 a:hover {
        color: #4361ee;
    }
    
    .mobile-card-title i {
        font-size: 0.9rem;
    }
    
    .mobile-card-select {
        flex-shrink: 0;
        margin-top: 2px;
    }
    
    .mobile-card-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 0.75rem;
        font-size: 0.85rem;
    }
    
    .info-item {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }
    
    .info-label {
        color: #666;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .info-value {
        color: #333;
        font-weight: 500;
        word-break: break-word;
    }
    
    .mobile-share-link {
        margin: 0.75rem 0;
        padding: 0.75rem;
        background: #f8f9fa;
        border-radius: 6px;
        border: 1px solid #e0e0e0;
    }
    
    .mobile-link-wrapper {
        display: flex;
        gap: 8px;
        align-items: center;
    }
    
    .mobile-link-input {
        flex: 1;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-family: 'Courier New', monospace;
        font-size: 0.85rem;
        background: white;
        color: #333;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-height: 44px;
    }
    
    .mobile-copy-btn {
        flex-shrink: 0;
        padding: 8px 12px;
        background: #4361ee;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 0.85rem;
        min-height: 44px;
        min-width: 60px;
    }
    
    .mobile-card-status {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 0.75rem;
    }
    
    .mobile-actions {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #eee;
    }
    
    .mobile-action-btn {
        padding: 8px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-size: 0.75rem;
        color: white;
        transition: all 0.3s;
        min-height: 60px;
    }
    
    .mobile-action-btn i {
        font-size: 1rem;
    }
    
    .mobile-action-btn:active {
        transform: scale(0.95);
    }
    
    .mobile-action-btn.info { background: #17a2b8; }
    .mobile-action-btn.primary { background: #4361ee; }
    .mobile-action-btn.warning { background: #f59e0b; }
    .mobile-action-btn.success { background: #28a745; }
    .mobile-action-btn.danger { background: #ef4444; }
    .mobile-action-btn.secondary { background: #6b7280; }
    
    /* 移动端批量操作 */
    .bulk-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .bulk-action-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .bulk-action-group .btn {
        width: 100%;
        padding: 0.75rem;
        min-height: 44px;
    }
    
    .bulk-select {
        justify-content: space-between;
        width: 100%;
    }
    
    /* 移动端模态框 */
    .modal-content {
        width: 95%;
        margin: 10px;
        max-height: 80vh;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        min-height: 44px;
    }
    
    /* 移动端详情卡片 */
    .mobile-details-card {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 1rem;
        margin-top: 1rem;
        border-left: 4px solid #4361ee;
    }
    
    .mobile-details-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin: 0.75rem 0;
    }
    
    .mobile-detail-item {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .mobile-detail-label {
        font-weight: 600;
        color: #333;
        font-size: 0.85rem;
    }
    
    .mobile-detail-value {
        color: #666;
        font-family: 'Courier New', monospace;
        font-size: 0.85rem;
        word-break: break-all;
    }
    
    /* 移动端筛选和排序 */
    .mobile-filters {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 1rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        padding: 8px 12px;
        border: 1px solid #ddd;
        background: white;
        border-radius: 20px;
        font-size: 0.85rem;
        color: #666;
        cursor: pointer;
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 36px;
    }
    
    .filter-btn.active {
        background: #4361ee;
        color: white;
        border-color: #4361ee;
    }
    
    /* 确保移动端内容正确显示 */
    .container {
        padding: 0 10px;
    }
    
    .card {
        padding: 15px;
        margin: 10px auto;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .page-header .title {
        font-size: 1.4rem;
        gap: 8px;
    }
    
    .page-header .subtitle {
        font-size: 0.9rem;
    }
    
    .alert {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state i {
        font-size: 2rem;
    }
    
    .empty-state h3 {
        font-size: 1.2rem;
    }
    
    .empty-state p {
        font-size: 0.9rem;
    }
}

/* 平板优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .stats-summary {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stat-card {
        padding: 1.2rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .entry-title a {
        font-size: 0.85rem;
        max-width: 180px;
    }
    
    .shares-table-container {
        margin: 1rem -10px;
        width: calc(100% + 20px);
    }
    
    .shares-table {
        font-size: 0.9rem;
    }
    
    .shares-table th,
    .shares-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .share-link-input {
        min-width: 150px;
        font-size: 0.8rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }
    
    .btn-action {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bulk-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .bulk-action-group {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .bulk-action-group .btn {
        flex: 1;
        min-width: 150px;
    }
    
    /* 平板端隐藏移动列表 */
    .shares-mobile-list {
        display: none !important;
    }
}

/* 桌面端样式 */
@media (min-width: 1025px) {
    .stats-summary {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* 桌面端显示表格，隐藏移动端列表 */
    .shares-table-container {
        display: block !important;
    }
    
    .shares-table {
        display: table !important;
    }
    
    .shares-mobile-list {
        display: none !important;
    }
    
    .mobile-filters {
        display: none !important;
    }
}

/* 超小屏幕手机优化 */
@media (max-width: 360px) {
    .mobile-card-info {
        grid-template-columns: 1fr;
    }
    
    .mobile-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mobile-action-btn {
        min-height: 50px;
        font-size: 0.7rem;
    }
    
    .mobile-action-btn i {
        font-size: 0.9rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn-action:hover,
    .mobile-action-btn:hover,
    .btn:hover {
        transform: none;
    }
    
    .btn-action:active,
    .mobile-action-btn:active,
    .btn:active {
        transform: scale(0.95);
    }
    
    .share-row:hover {
        background: inherit;
    }
    
    .share-row:active {
        background: #f8fafc;
    }
    
    .stat-card:hover {
        transform: none;
    }
    
    .stat-card:active {
        transform: scale(0.98);
    }
}

/* 按钮样式增强 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
    background: #4361ee;
    color: white;
}

.btn-primary:hover {
    background: #3a56d4;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 触摸友好按钮 */
.btn-touch {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 滚动优化 */
.scroll-container {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
}

/* 通用样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 警告框样式 */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert i {
    margin-top: 2px;
}

/* ======= 暗色模式支持 ======= */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-color: #f1f5f9;
        --light-color: #1e293b;
        --light-gray: #334155;
        --gray-color: #cbd5e1;
        --gray-light: #94a3b8;
        --gray-dark: #e2e8f0;
        --border-color: #475569;
    }

    body {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        color: var(--dark-color);
    }

    a {
        color: #60a5fa;
    }

    a:hover {
        color: #93c5fd;
    }

    .card {
        background: #1e293b;
        border: 1px solid #334155;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .container {
        background: transparent;
    }

    /* 头部导航 */
    header {
        background: rgba(15, 23, 42, 0.95);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .header-content {
        background: transparent;
    }

    .logo {
        color: #f1f5f9;
    }

    .desktop-nav a {
        color: #cbd5e1;
    }

    .desktop-nav a:hover,
    .desktop-nav a.active {
        color: #60a5fa;
        background: rgba(96, 165, 250, 0.1);
    }

    /* 移动端导航 */
    .mobile-nav {
        background: #0f172a;
    }

    .mobile-nav-content a {
        color: #cbd5e1;
    }

    .mobile-nav-content a:hover {
        background: rgba(96, 165, 250, 0.1);
        color: #60a5fa;
    }

    /* 按钮样式 */
    .btn {
        color: #1e293b;
    }

    .btn-primary {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
    }

    .btn-primary:hover {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
    }

    .btn-secondary {
        background: #475569;
        color: #f1f5f9;
    }

    .btn-secondary:hover {
        background: #64748b;
    }

    /* 表单元素 */
    .form-control {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }

    .form-control:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    }

    .form-control::placeholder {
        color: #64748b;
    }

    .form-label {
        color: #e2e8f0;
    }

    /* 表格样式 */
    table {
        background: #1e293b;
    }

    th {
        background: #334155;
        color: #f1f5f9;
        border-color: #475569;
    }

    td {
        border-color: #334155;
        color: #cbd5e1;
    }

    tr:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    /* 统计卡片 */
    .stat-card {
        background: #1e293b;
        border-color: #334155;
        color: #f1f5f9;
    }

    .stat-number,
    .stat-value {
        color: #f1f5f9;
    }

    .stat-label {
        color: #94a3b8;
    }

    /* 警告框 */
    .alert {
        border-color: rgba(255, 255, 255, 0.1);
    }

    .alert-success {
        background: rgba(16, 185, 129, 0.15);
        border-color: rgba(16, 185, 129, 0.3);
        color: #34d399;
    }

    .alert-error {
        background: rgba(239, 68, 68, 0.15);
        border-color: rgba(239, 68, 68, 0.3);
        color: #f87171;
    }

    .alert-info {
        background: rgba(59, 130, 246, 0.15);
        border-color: rgba(59, 130, 246, 0.3);
        color: #60a5fa;
    }

    /* 模态框 */
    .modal-overlay,
    .modal {
        background: rgba(0, 0, 0, 0.7);
    }

    .modal-container,
    .modal-box,
    .modal-content {
        background: #1e293b;
        border-color: #334155;
    }

    .modal-header {
        border-color: #334155;
    }

    .modal-header h3 {
        color: #f1f5f9;
    }

    .modal-close {
        color: #94a3b8;
    }

    .modal-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .modal-footer {
        border-color: #334155;
    }

    /* 搜索框 */
    .search-box {
        background: #1e293b;
        border-color: #334155;
    }

    .search-input {
        background: transparent;
        color: #f1f5f9;
    }

    .search-input::placeholder {
        color: #64748b;
    }

    /* 分页 */
    .page-link {
        background: #334155;
        border-color: #475569;
        color: #cbd5e1;
    }

    .page-link:hover {
        background: #475569;
    }

    .page-link.current {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        color: white;
    }

    /* 空状态 */
    .empty-state {
        background: #1e293b;
        border-color: #334155;
    }

    .empty-state h3 {
        color: #f1f5f9;
    }

    .empty-state p {
        color: #94a3b8;
    }

    .empty-icon {
        color: #475569;
    }

    /* 底部浮动导航 */
    .floating-footer {
        background: rgba(15, 23, 42, 0.95);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    }

    .floating-nav-item {
        color: #94a3b8;
    }

    .floating-nav-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #60a5fa;
    }

    .floating-nav-item.active {
        background: #3b82f6;
        color: white;
    }

    .main-footer {
        background: #0f172a;
        color: #64748b;
    }

    /* 日记列表 */
    .diary-item {
        background: #1e293b;
        border-color: #334155;
    }

    .diary-title {
        color: #f1f5f9;
    }

    .diary-excerpt {
        color: #94a3b8;
    }

    .diary-date {
        color: #64748b;
    }

    .no-image {
        color: #64748b;
    }

    /* 分享页面 */
    .share-container {
        background: transparent;
    }

    .share-header {
        background: rgba(15, 23, 42, 0.95);
    }

    .share-main {
        background: transparent;
    }

    .sidebar {
        background: #1e293b;
        border-color: #334155;
    }

    .content-area {
        background: #1e293b;
        border-color: #334155;
    }

    .share-header-right h2 {
        color: #f1f5f9;
    }

    .share-header-right p {
        color: #94a3b8;
    }

    .file-info-sidebar h1 {
        color: #f1f5f9;
    }

    .file-meta span {
        color: #94a3b8;
    }

    .share-meta-item span {
        color: #94a3b8;
    }

    .share-meta-item strong {
        color: #f1f5f9;
    }

    .stats-grid .stat-card {
        background: #334155;
    }

    .stats-grid .stat-value {
        color: #60a5fa;
    }

    .stats-grid .stat-label {
        color: #94a3b8;
    }

    .actions-section h3 {
        color: #f1f5f9;
    }

    .action-btn {
        color: #1e293b;
    }

    .action-btn.btn-download {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
    }

    .action-btn.btn-preview {
        background: linear-gradient(135deg, #10b981, #059669);
    }

    .action-btn.btn-save {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }

    .user-status {
        background: rgba(59, 130, 246, 0.1);
        border-color: rgba(59, 130, 246, 0.3);
    }

    .expiry-notice {
        color: #f59e0b;
    }

    .content-footer p {
        color: #64748b;
    }

    /* 后台管理 */
    .admin-header {
        background: rgba(15, 23, 42, 0.95);
    }

    .admin-nav {
        background: #0f172a;
    }

    .admin-nav a {
        color: #94a3b8;
    }

    .admin-nav a:hover,
    .admin-nav a.active {
        background: rgba(59, 130, 246, 0.1);
        color: #60a5fa;
    }

    .admin-stats-grid .admin-stat-card {
        background: #1e293b;
        border-color: #334155;
    }

    .admin-stat-card h3 {
        color: #f1f5f9;
    }

    .admin-stat-card p {
        color: #94a3b8;
    }

    .admin-table {
        background: #1e293b;
    }

    /* 用户中心 */
    .user-center-header {
        background: linear-gradient(135deg, #1e293b, #334155);
    }

    .user-center-header h1 {
        color: #f1f5f9;
    }

    .user-center-tabs a {
        color: #94a3b8;
    }

    .user-center-tabs a:hover,
    .user-center-tabs a.active {
        color: #60a5fa;
        border-color: #60a5fa;
    }

    .user-info-card {
        background: #1e293b;
        border-color: #334155;
    }

    .user-info-card h3 {
        color: #f1f5f9;
    }

    .storage-card {
        background: #1e293b;
        border-color: #334155;
    }

    /* 登录页面 */
    .login-container,
    .auth-container {
        background: #1e293b;
        border-color: #334155;
    }

    .auth-header h1 {
        color: #f1f5f9;
    }

    .auth-header p {
        color: #94a3b8;
    }

    .login-card,
    .auth-card {
        background: #334155;
        border-color: #475569;
    }

    .alternative-login {
        background: #334155;
        border-color: #475569;
    }

    .alternative-title {
        color: #94a3b8;
    }

    .auth-footer {
        border-color: #334155;
    }

    .auth-footer-text {
        color: #94a3b8;
    }

    /* 日记卡片 */
    .diary-card {
        background: #1e293b;
        border-color: #334155;
    }

    .diary-card-header h3 {
        color: #f1f5f9;
    }

    .diary-card-meta {
        color: #64748b;
    }

    .diary-card-content {
        color: #cbd5e1;
    }

    /* 富文本编辑器 */
    .rich-text-editor {
        background: #1e293b;
        border-color: #334155;
    }

    .editor-toolbar {
        background: #334155;
        border-color: #475569;
    }

    .editor-toolbar button,
    .editor-toolbar select {
        background: #475569;
        border-color: #64748b;
        color: #f1f5f9;
    }

    .editor-toolbar button:hover,
    .editor-toolbar select:hover {
        background: #64748b;
    }

    .editor-content {
        background: #1e293b;
        color: #f1f5f9;
    }

    .editor-content:focus {
        border-color: #3b82f6;
    }

    /* 文件上传 */
    .file-upload,
    .file-upload-box {
        background: #334155;
        border-color: #475569;
    }

    .file-upload:hover,
    .file-upload-box:hover {
        border-color: #3b82f6;
    }

    .file-upload-label span,
    .file-upload-content h4 {
        color: #f1f5f9;
    }

    .file-upload-label small,
    .file-upload-content p {
        color: #94a3b8;
    }

    /* 隐私设置 */
    .privacy-toggle-container {
        background: #334155;
        border-color: #475569;
    }

    .privacy-toggle-btn {
        background: #1e293b;
        border-color: #475569;
        color: #cbd5e1;
    }

    .privacy-toggle-btn span {
        color: #f1f5f9;
    }

    .privacy-toggle input[type="radio"]:checked + .privacy-toggle-btn {
        border-color: #3b82f6;
        background: rgba(59, 130, 246, 0.1);
    }

    .privacy-toggle input[type="radio"]:checked + .privacy-toggle-btn i,
    .privacy-toggle input[type="radio"]:checked + .privacy-toggle-btn span {
        color: #60a5fa;
    }

    /* 密码锁 */
    .password-lock-container {
        background: #334155;
        border-color: #475569;
    }

    .lock-text {
        color: #f1f5f9;
    }

    .lock-slider {
        background: #64748b;
    }

    input:checked + .lock-slider {
        background: #3b82f6;
    }

    /* 图片查看器 */
    .image-viewer-container {
        background: #000;
    }

    .image-viewer-header {
        background: rgba(0, 0, 0, 0.95);
        border-color: #333;
    }

    .image-viewer-header h2 {
        color: white;
    }

    .image-viewer-actions .btn {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border-color: rgba(255, 255, 255, 0.2);
    }

    .image-viewer-actions .btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .image-info {
        background: rgba(0, 0, 0, 0.95);
        border-color: #333;
    }

    .image-info strong {
        color: #60a5fa;
    }

    .image-info p {
        color: #94a3b8;
    }

    /* 消息页面 */
    .messages-header-compact {
        background: #1e293b;
    }

    .header-title {
        color: #f1f5f9;
    }

    .header-subtitle {
        color: #94a3b8;
    }

    .stat-item-compact {
        background: #334155;
    }

    .stat-value-compact {
        color: #60a5fa;
    }

    .stat-label-compact {
        color: #94a3b8;
    }

    .message-item {
        background: #1e293b;
        border-color: #334155;
    }

    .message-item:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .message-sender {
        color: #f1f5f9;
    }

    .message-content {
        color: #94a3b8;
    }

    .message-time {
        color: #64748b;
    }

    .messages-toolbar {
        background: #1e293b;
        border-color: #334155;
    }

    /* 分类选择 */
    .category-select-container select {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }

    .category-manage-link {
        background: #475569;
        color: #cbd5e1;
    }

    .category-manage-link:hover {
        background: #64748b;
    }

    /* 批量操作 */
    .bulk-select-toolbar {
        background: #1e293b;
        border-color: #334155;
    }

    .batch-summary {
        color: #94a3b8;
    }

    /* 备份页面 */
    .backup-stat-card {
        background: #1e293b;
        border-color: #334155;
    }

    .backup-stat-label {
        color: #94a3b8;
    }

    .create-backup-form {
        background: #1e293b;
        border-color: #334155;
    }

    .create-backup-form h3 {
        color: #f1f5f9;
        border-color: #334155;
    }

    .create-backup-form label {
        color: #e2e8f0;
    }

    .create-backup-form .backup-info-box {
        background: rgba(59, 130, 246, 0.1);
        border-color: rgba(59, 130, 246, 0.3);
    }

    .create-backup-form .backup-info-box h4 {
        color: #60a5fa;
    }

    .create-backup-form .backup-info-box li {
        color: #cbd5e1;
    }

    /* 分享管理 */
    .share-row {
        background: #1e293b;
        border-color: #334155;
    }

    .share-row:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .entry-title a {
        color: #f1f5f9;
    }

    .share-link-input {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }

    .mobile-card-info {
        background: #1e293b;
    }

    .mobile-detail-label {
        color: #94a3b8;
    }

    .mobile-detail-value {
        color: #f1f5f9;
    }

    /* 数字登录 */
    .login-success-message h3 {
        color: #34d399;
    }

    .login-success-message p {
        color: #cbd5e1;
    }

    .success-icon-container {
        background: rgba(16, 185, 129, 0.15);
    }

    .countdown-circle-bg {
        stroke: #475569;
    }

    .countdown-circle-fg {
        stroke: #34d399;
    }

    .countdown-text {
        color: #34d399;
    }

    /* 重置密码 */
    .reset-password-container {
        background: #1e293b;
        border-color: #334155;
    }

    .reset-password-header h1 {
        color: #f1f5f9;
    }

    .reset-password-header p {
        color: #94a3b8;
    }

    .user-info-card {
        background: #334155;
        border-color: #475569;
    }

    .user-info-details h3 {
        color: #f1f5f9;
    }

    .user-email {
        color: #94a3b8;
    }

    .reset-password-card {
        background: #334155;
        border-color: #475569;
    }

    .form-help {
        color: #94a3b8;
    }

    .btn-secondary {
        background: #475569;
        border-color: #64748b;
        color: #f1f5f9;
    }

    /* 扫码登录 */
    .scan-simple-card {
        background: #334155;
        border-color: #475569;
    }

    .scan-status-text {
        color: #cbd5e1;
    }

    /* 浮动导航项 */
    .floating-nav-item[target="_blank"] {
        background: rgba(255, 255, 255, 0.05);
        color: #94a3b8;
    }

    .floating-nav-item[target="_blank"]:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #60a5fa;
    }

    /* 表格滚动条 */
    .backup-table-container,
    .restore-table-container,
    .shares-table-container {
        background: #1e293b;
    }

    /* 卡片悬停效果 */
    .diary-item:hover {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }

    .quick-action-btn:hover {
        border-color: #3b82f6;
    }

    /* 选择框 */
    select {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }

    /* 复选框和单选按钮 */
    input[type="checkbox"],
    input[type="radio"] {
        accent-color: #3b82f6;
    }

    /* 滑块 */
    input[type="range"] {
        accent-color: #3b82f6;
    }

    /* 进度条 */
    progress {
        background: #334155;
    }

    progress::-webkit-progress-bar {
        background: #334155;
    }

    progress::-webkit-progress-value {
        background: #3b82f6;
    }

    /* 滚动条样式 */
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-track {
        background: #1e293b;
    }

    ::-webkit-scrollbar-thumb {
        background: #475569;
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #64748b;
    }
}
