/* 认证页面和用户中心样式 */

/* 颜色变量定义 - 与主站保持一致 */
:root {
    --primary-color: #005B9A;        /* 主色调：logo颜色 */
    --secondary-color: #0066CC;       /* 次要色调：稍亮的蓝色 */
    --accent-color: #003D73;          /* 强调色：更深的蓝色 */
    --light-accent: #E6F2FF;          /* 浅色强调：非常浅的蓝色 */
    
    /* 背景和卡片颜色 */
    --background-color: #ffffff;      /* 主背景色 */
    --card-background: #ffffff;       /* 卡片背景色 */
    --light-bg: #f8fafc;             /* 浅色背景 */
    --text-color: #333333;            /* 主文字颜色 */
    --text-light: #64748b;            /* 浅色文字 */
    --text-muted: #666666;            /* 次要文字颜色 */
    --border-color: #e0e0e0;          /* 边框颜色 */
}

/* 暗色模式 - 自动跟随系统设置 */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #005B9A;        /* 暗色模式主色 - 与亮色一致 */
        --secondary-color: #0066CC;       /* 次要色调 */
        --accent-color: #003D73;          /* 强调色 */
        --light-accent: #1e3a5f;          /* 深色强调 */
        
        /* 背景和卡片颜色 */
        --background-color: #0f172a;      /* 深色主背景 */
        --card-background: #1e293b;       /* 深色卡片背景 */
        --light-bg: #1e293b;             /* 深色区域背景 */
        --text-color: #e2e8f0;            /* 浅色主文字 */
        --text-light: #94a3b8;            /* 次要浅色文字 */
        --text-muted: #94a3b8;            /* 浅色次要文字 */
        --border-color: #334155;          /* 深色边框 */
    }
}

/* 手动设置暗色模式 */
[data-theme="dark"] {
    --primary-color: #4da3ff;
    --secondary-color: #60a5fa;
    --accent-color: #3b82f6;
    --light-accent: #1e3a5f;
    --background-color: #0f172a;
    --card-background: #1e293b;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: #334155;
}

/* 手动设置亮色模式 */
[data-theme="light"] {
    --primary-color: #005B9A;
    --secondary-color: #0066CC;
    --accent-color: #003D73;
    --light-accent: #E6F2FF;
    --background-color: #ffffff;
    --card-background: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: #e0e0e0;
}

/* 手动设置暗色模式 */
[data-theme="dark"] {
    --primary-color: #005B9A;
    --secondary-color: #0066CC;
    --accent-color: #003D73;
    --light-accent: #1e3a5f;
    --background-color: #0f172a;
    --card-background: #1e293b;
    --light-bg: #1e293b;
    --text-color: #e2e8f0;
    --text-light: #94a3b8;
    --text-muted: #94a3b8;
    --border-color: #334155;
}

/* 手动设置亮色模式 */
[data-theme="light"] {
    --primary-color: #005B9A;
    --secondary-color: #0066CC;
    --accent-color: #003D73;
    --light-accent: #E6F2FF;
    --background-color: #ffffff;
    --card-background: #ffffff;
    --light-bg: #f8fafc;
    --text-color: #333333;
    --text-light: #64748b;
    --text-muted: #666666;
    --border-color: #e0e0e0;
}

/* 认证页面主体 - 不受主题影响，保持固定配色 */
.auth-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #005B9A 0%, #003D73 100%) !important;
    padding: 8rem 0 4rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.auth-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.auth-container-centered {
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 600px;
}


/* 认证卡片 */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 500px;
}

/* 暗色模式下的卡片样式 */
@media (prefers-color-scheme: dark) {
    .auth-card {
        background: rgba(30, 41, 59, 0.95);
        border: 1px solid rgba(51, 65, 85, 0.5);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }
}

[data-theme="dark"] .auth-card {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(51, 65, 85, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .auth-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.auth-icon i {
    font-size: 2rem;
    color: white;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* 认证表单 */
.auth-form {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 垂直布局的表单组 */
.form-group-vertical {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-vertical label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group-vertical input,
.form-group-vertical select,
.form-group-vertical .password-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group-vertical input:focus,
.form-group-vertical select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 91, 154, 0.1);
}

.form-group-vertical .form-help {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

/* 复选框表单组 */
.form-group-checkbox {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    min-width: 80px;
    flex-shrink: 0;
}

.form-group input,
.form-group select {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-help {
    display: block;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    margin-left: 96px; /* 与label宽度+gap对齐 */
}

/* 密码输入框 */
.password-input {
    position: relative;
    flex: 1;
}

/* 验证码输入框 */
.verification-input {
    position: relative;
    flex: 1;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.verification-input input {
    flex: 1;
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    font-weight: 600;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    white-space: nowrap;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* 密码强度指示器 */
.password-strength {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0;
    background: #d1d5db;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    transition: color 0.3s ease;
    display: block;
    text-align: center;
}

/* 用户协议复选框样式 */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label span {
    flex: 1;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 复选框样式 */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-color);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-color);
}

/* 按钮样式 */
.btn-full {
    width: 100%;
    justify-content: center;
}


/* 认证页脚 */
.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* 法律条款页面样式 */
.legal-section {
    padding: 8rem 0 4rem;
    background: var(--light-bg);
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-style: italic;
}

.legal-section-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-section-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 1.5rem 0 0.75rem 0;
}

.legal-section-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-section-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section-content li {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.legal-footer p {
    color: var(--text-light);
    margin: 0;
}

.auth-footer p {
    color: var(--text-light);
    margin: 0;
}

.link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* 注册优势 */
.auth-benefits {
    color: white;
}

.auth-benefits h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.benefit-item i {
    font-size: 1.5rem;
    color: var(--light-accent);
    width: 40px;
    text-align: center;
}

.benefit-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
}

.benefit-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* 用户中心样式 */
.dashboard-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 6rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.dashboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
    align-items: stretch;
    min-height: calc(100vh - 14rem);
}

/* 用户下拉菜单 */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.logout-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
}

.logout-btn i {
    font-size: 0.75rem;
}

.user-dropdown {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.user-avatar:hover {
    background: var(--light-bg);
}

.user-avatar i {
    font-size: 1.2rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--light-bg);
}

.dropdown-menu a i {
    width: 16px;
    text-align: center;
}

/* 侧边栏 */
.dashboard-sidebar {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 600px;
}

/* 暗色模式下的侧边栏 */
@media (prefers-color-scheme: dark) {
    .dashboard-sidebar {
        background: rgba(30, 41, 59, 0.95);
        border: 1px solid rgba(51, 65, 85, 0.8);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
}

[data-theme="dark"] .dashboard-sidebar {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(51, 65, 85, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* 亮色模式下的侧边栏 - 强制白色 */
[data-theme="light"] .dashboard-sidebar {
    background: white !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.user-profile {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.profile-avatar i {
    font-size: 2.5rem;
    color: white;
}

.user-profile h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.user-profile p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.premium {
    background: #fef3c7;
    color: #92400e;
}

/* 侧边栏导航 */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: var(--light-bg);
    color: var(--primary-color);
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
}

/* 主内容区 */
.dashboard-main {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

/* 暗色模式下的主内容区 */
@media (prefers-color-scheme: dark) {
    .dashboard-main {
        background: rgba(30, 41, 59, 0.95);
        border: 1px solid rgba(51, 65, 85, 0.8);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
}

[data-theme="dark"] .dashboard-main {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(51, 65, 85, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* 亮色模式下的主内容区 - 强制白色 */
[data-theme="light"] .dashboard-main {
    background: white !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.dashboard-content {
    padding: 2rem;
    flex: 1;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 600px;
}

.dashboard-content.active {
    display: flex;
}

.content-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.content-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.content-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    min-height: 120px;
}

/* 暗色模式下的统计卡片 */
@media (prefers-color-scheme: dark) {
    .stat-card {
        background: rgba(51, 65, 85, 0.5);
        border-color: rgba(71, 85, 105, 0.8);
    }
}

[data-theme="dark"] .stat-card {
    background: rgba(51, 65, 85, 0.5);
    border-color: rgba(71, 85, 105, 0.8);
}

/* 亮色模式下的统计卡片 - 强制浅色 */
[data-theme="light"] .stat-card {
    background: var(--light-bg) !important;
    border-color: var(--border-color) !important;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* 个人中心网格 */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.dashboard-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

/* 暗色模式下的仪表板卡片 */
@media (prefers-color-scheme: dark) {
    .dashboard-card {
        background: rgba(51, 65, 85, 0.5);
        border-color: rgba(71, 85, 105, 0.8);
    }
}

[data-theme="dark"] .dashboard-card {
    background: rgba(51, 65, 85, 0.5);
    border-color: rgba(71, 85, 105, 0.8);
}

/* 亮色模式下的仪表板卡片 - 强制浅色 */
[data-theme="light"] .dashboard-card {
    background: var(--light-bg) !important;
    border-color: var(--border-color) !important;
}

.dashboard-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* 下载列表 */
.download-list,
.project-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-item,
.project-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* 暗色模式下的下载项 */
@media (prefers-color-scheme: dark) {
    .download-item,
    .project-item {
        background: rgba(30, 41, 59, 0.7);
        border-color: rgba(51, 65, 85, 0.8);
    }
}

[data-theme="dark"] .download-item,
[data-theme="dark"] .project-item {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(51, 65, 85, 0.8);
}

/* 亮色模式下的下载项 - 强制白色 */
[data-theme="light"] .download-item,
[data-theme="light"] .project-item {
    background: white !important;
    border-color: var(--border-color) !important;
}

.download-item i,
.project-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.download-info,
.project-info {
    flex: 1;
}

.download-info h4,
.project-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.download-info p,
.project-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* 表单样式 */
.profile-form {
    max-width: 600px;
}

/* 下载卡片 */
.downloads-grid,
.projects-grid,
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.download-card,
.project-card,
.license-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 暗色模式下的下载/项目/授权卡片 */
@media (prefers-color-scheme: dark) {
    .download-card,
    .project-card,
    .license-card {
        background: rgba(51, 65, 85, 0.5);
        border-color: rgba(71, 85, 105, 0.8);
    }
}

[data-theme="dark"] .download-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .license-card {
    background: rgba(51, 65, 85, 0.5);
    border-color: rgba(71, 85, 105, 0.8);
}

/* 亮色模式下的下载/项目/授权卡片 - 强制浅色 */
[data-theme="light"] .download-card,
[data-theme="light"] .project-card,
[data-theme="light"] .license-card {
    background: var(--light-bg) !important;
    border-color: var(--border-color) !important;
}

.download-icon,
.project-icon,
.license-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.download-icon i,
.project-icon i,
.license-icon i {
    font-size: 1.5rem;
    color: white;
}

/* 授权状态 */
.license-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.license-info {
    flex: 1;
}

.license-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.download-info h3,
.project-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.download-info p,
.project-info p,
.license-details p {
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.download-actions,
.project-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.license-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.license-status.active {
    background: #d1fae5;
    color: #065f46;
}

/* 支持选项 */
.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.support-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 暗色模式下的支持卡片 */
@media (prefers-color-scheme: dark) {
    .support-card {
        background: rgba(51, 65, 85, 0.5);
        border-color: rgba(71, 85, 105, 0.8);
    }
}

[data-theme="dark"] .support-card {
    background: rgba(51, 65, 85, 0.5);
    border-color: rgba(71, 85, 105, 0.8);
}

/* 亮色模式下的支持卡片 - 强制浅色 */
[data-theme="light"] .support-card {
    background: var(--light-bg) !important;
    border-color: var(--border-color) !important;
}

.support-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.support-icon i {
    font-size: 1.5rem;
    color: white;
}

.support-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.support-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* 设置部分 */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-section {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    min-height: 200px;
}

/* 暗色模式下的设置部分 */
@media (prefers-color-scheme: dark) {
    .settings-section {
        background: rgba(51, 65, 85, 0.5);
        border-color: rgba(71, 85, 105, 0.8);
    }
}

[data-theme="dark"] .settings-section {
    background: rgba(51, 65, 85, 0.5);
    border-color: rgba(71, 85, 105, 0.8);
}

/* 亮色模式下的设置部分 - 强制浅色 */
[data-theme="light"] .settings-section {
    background: var(--light-bg) !important;
    border-color: var(--border-color) !important;
}

.settings-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.notification-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dashboard-sidebar {
        order: 2;
    }

    .dashboard-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .auth-benefits {
        order: -1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .form-group label {
        min-width: auto;
    }

    .form-group input,
    .form-group select {
        width: 100%;
    }

    .password-input {
        width: 100%;
    }

    .checkbox-group {
        width: 100%;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .downloads-grid,
    .projects-grid,
    .licenses-grid {
        grid-template-columns: 1fr;
    }

    .support-options {
        grid-template-columns: 1fr;
    }

    .download-actions,
    .project-actions,
    .license-actions {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
        margin: 1rem;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* 个人中心和管理员面板超小屏幕优化 */
    .dashboard-container {
        padding: 0 10px;
        gap: 0.5rem;
    }

    .dashboard-sidebar {
        padding: 1rem;
        border-radius: 12px;
    }

    .dashboard-main {
        padding: 1rem;
        border-radius: 12px;
    }

    .user-profile {
        text-align: center;
        padding: 1rem 0;
    }

    .profile-avatar {
        margin-bottom: 0.5rem;
    }

    .profile-avatar i {
        font-size: 2rem;
    }

    .user-profile h3 {
        font-size: 1.1rem;
        margin: 0.5rem 0;
    }

    .user-profile p {
        font-size: 0.8rem;
        margin: 0.25rem 0;
    }

    .status-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .profile-actions {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .profile-actions .btn {
        width: 100%;
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    .sidebar-nav {
        margin-top: 1rem;
    }

    .sidebar-nav .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .sidebar-nav .nav-link i {
        font-size: 0.9rem;
        margin-right: 0.5rem;
    }

    /* 内容区域优化 */
    .content-header {
        margin-bottom: 1rem;
        text-align: center;
    }

    .content-header h1 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .content-header p {
        font-size: 0.8rem;
    }

    /* 表单优化 */
    .profile-form {
        max-width: 100%;
    }

    .form-group {
        margin-bottom: 0.8rem;
    }

    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .form-group input {
        padding: 0.6rem;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    /* 统计卡片优化 */
    .stat-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .stat-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .stat-card .stat-number {
        font-size: 1.5rem;
    }

    .stat-card .stat-label {
        font-size: 0.7rem;
    }

    /* 授权卡片优化 */
    .license-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .license-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .license-icon {
        margin: 0 auto;
    }

    .license-info h3 {
        font-size: 1.2rem;
    }

    .license-status {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .license-details {
        margin: 1rem 0;
    }

    .license-details p {
        font-size: 0.8rem;
        margin: 0.5rem 0;
    }

    /* 按钮优化 */
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .btn-sm {
        padding: 0.5rem 0.8rem;
        font-size: 0.7rem;
    }
}

/* 超小屏幕优化 (320px以下) */
@media (max-width: 360px) {
    .auth-container {
        padding: 0 5px;
    }

    .auth-card {
        padding: 1rem;
        margin: 0.5rem;
    }

    .auth-header h1 {
        font-size: 1.3rem;
    }

    .auth-header p {
        font-size: 0.8rem;
    }

    .form-group {
        margin-bottom: 0.7rem;
    }

    .form-group label {
        font-size: 0.7rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.5rem;
        font-size: 0.7rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    .btn-sm {
        padding: 0.4rem 0.6rem;
        font-size: 0.6rem;
    }

    /* 个人中心和管理员面板超小屏幕优化 */
    .dashboard-container {
        padding: 0 5px;
        gap: 0.3rem;
    }

    .dashboard-sidebar {
        padding: 0.8rem;
    }

    .dashboard-main {
        padding: 0.8rem;
    }

    .user-profile h3 {
        font-size: 1rem;
    }

    .user-profile p {
        font-size: 0.7rem;
    }

    .status-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }

    .profile-actions .btn {
        padding: 0.5rem;
        font-size: 0.7rem;
    }

    .sidebar-nav .nav-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.7rem;
    }

    .content-header h1 {
        font-size: 1.2rem;
    }

    .content-header p {
        font-size: 0.7rem;
    }

    .form-group input {
        padding: 0.5rem;
        font-size: 0.7rem;
    }

    .stat-card {
        padding: 0.8rem;
    }

    .stat-card h3 {
        font-size: 0.9rem;
    }

    .stat-card .stat-number {
        font-size: 1.3rem;
    }

    .license-card {
        padding: 0.8rem;
    }

    .license-info h3 {
        font-size: 1rem;
    }

    .license-details p {
        font-size: 0.7rem;
    }

    .download-item,
    .project-item {
        flex-direction: column;
        text-align: center;
    }
}

/* 消息样式 */
.message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    animation: slideInDown 0.3s ease;
}

.message-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.message-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.message-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 统计网格样式 */
.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* 管理员面板样式 */
.admin-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease;
}

.admin-message-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.admin-message-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.admin-message-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 用户管理表格样式 */
.user-management {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 暗色模式下的用户管理容器 */
@media (prefers-color-scheme: dark) {
    .user-management {
        background: rgba(30, 41, 59, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
}

[data-theme="dark"] .user-management {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* 亮色模式下的用户管理容器 - 强制白色 */
[data-theme="light"] .user-management {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.management-tools {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: var(--text-color);
}

/* 暗色模式下的搜索框 */
@media (prefers-color-scheme: dark) {
    .search-box input {
        background: rgba(51, 65, 85, 0.5);
        border-color: rgba(71, 85, 105, 0.8);
    }
}

[data-theme="dark"] .search-box input {
    background: rgba(51, 65, 85, 0.5);
    border-color: rgba(71, 85, 105, 0.8);
}

/* 亮色模式下的搜索框 - 强制白色 */
[data-theme="light"] .search-box input {
    background: white !important;
    border-color: var(--border-color) !important;
}

.search-box i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.filter-options select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: var(--text-color);
}

/* 暗色模式下的过滤选择框 */
@media (prefers-color-scheme: dark) {
    .filter-options select {
        background: rgba(51, 65, 85, 0.5);
        border-color: rgba(71, 85, 105, 0.8);
    }
}

[data-theme="dark"] .filter-options select {
    background: rgba(51, 65, 85, 0.5);
    border-color: rgba(71, 85, 105, 0.8);
}

/* 亮色模式下的过滤选择框 - 强制白色 */
[data-theme="light"] .filter-options select {
    background: white !important;
    border-color: var(--border-color) !important;
}

.users-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.users-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    background: white;
    white-space: nowrap;
}

/* 暗色模式下的用户表格 */
@media (prefers-color-scheme: dark) {
    .users-table {
        background: rgba(30, 41, 59, 0.95);
    }
}

[data-theme="dark"] .users-table {
    background: rgba(30, 41, 59, 0.95);
}

/* 亮色模式下的用户表格 - 强制白色 */
[data-theme="light"] .users-table {
    background: white !important;
}

.users-table th,
.users-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    font-size: 0.875rem;
}

/* 设置各列的最小宽度 */
.users-table th:nth-child(1),
.users-table td:nth-child(1) {
    min-width: 140px; /* 用户名列 */
}

.users-table th:nth-child(2),
.users-table td:nth-child(2) {
    min-width: 180px; /* 邮箱列 */
}

.users-table th:nth-child(3),
.users-table td:nth-child(3) {
    min-width: 100px; /* 注册时间列 */
}

.users-table th:nth-child(4),
.users-table td:nth-child(4) {
    min-width: 100px; /* 最后登录列 */
}

.users-table th:nth-child(5),
.users-table td:nth-child(5) {
    min-width: 80px; /* 用户类型列 */
}

.users-table th:nth-child(6),
.users-table td:nth-child(6) {
    min-width: 200px; /* 软件许可证列 */
    white-space: normal; /* 允许换行 */
}

.users-table th:nth-child(7),
.users-table td:nth-child(7) {
    min-width: 120px; /* 操作列 */
}

.users-table th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.8125rem;
    padding: 0.625rem 0.75rem;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar-small {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.type-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.type-badge.admin {
    background: #fef3c7;
    color: #92400e;
}

.type-badge.user {
    background: #dbeafe;
    color: #1e40af;
}

.action-buttons {
    display: flex;
    gap: 0.375rem;
}

.btn-sm {
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
    min-width: auto;
    line-height: 1.2;
}

/* 用户资料操作按钮 */
.profile-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-actions .btn {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-warning {
    background: #f59e0b;
    color: white;
    border: none;
}

.btn-warning:hover {
    background: #d97706;
}

/* 用户列表样式 */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* 暗色模式下的用户项 */
@media (prefers-color-scheme: dark) {
    .user-item {
        background: rgba(51, 65, 85, 0.5);
        border-color: rgba(71, 85, 105, 0.8);
    }
}

[data-theme="dark"] .user-item {
    background: rgba(51, 65, 85, 0.5);
    border-color: rgba(71, 85, 105, 0.8);
}

/* 亮色模式下的用户项 - 强制浅色 */
[data-theme="light"] .user-item {
    background: var(--light-bg) !important;
    border-color: var(--border-color) !important;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.user-email {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.user-date {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* 系统状态样式 */
.system-status {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* 暗色模式下的状态项 */
@media (prefers-color-scheme: dark) {
    .status-item {
        background: rgba(51, 65, 85, 0.5);
        border-color: rgba(71, 85, 105, 0.8);
    }
}

[data-theme="dark"] .status-item {
    background: rgba(51, 65, 85, 0.5);
    border-color: rgba(71, 85, 105, 0.8);
}

/* 亮色模式下的状态项 - 强制浅色 */
[data-theme="light"] .status-item {
    background: var(--light-bg) !important;
    border-color: var(--border-color) !important;
}

.status-label {
    font-weight: 500;
    color: var(--text-color);
}

.status-value {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-online {
    background: #d1fae5;
    color: #065f46;
}

.status-normal {
    background: #dbeafe;
    color: #1e40af;
}

/* 系统信息样式 */
.system-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* 暗色模式下的信息项 */
@media (prefers-color-scheme: dark) {
    .info-item {
        background: rgba(51, 65, 85, 0.5);
        border-color: rgba(71, 85, 105, 0.8);
    }
}

[data-theme="dark"] .info-item {
    background: rgba(51, 65, 85, 0.5);
    border-color: rgba(71, 85, 105, 0.8);
}

/* 亮色模式下的信息项 - 强制浅色 */
[data-theme="light"] .info-item {
    background: var(--light-bg) !important;
    border-color: var(--border-color) !important;
}

.info-label {
    font-weight: 500;
    color: var(--text-color);
}

.info-value {
    color: var(--text-light);
    font-family: monospace;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-controls .btn {
    min-width: 40px;
    padding: 0.5rem 0.75rem;
}

/* 加载和空状态 */
.loading {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    font-style: italic;
}

.no-data {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    font-style: italic;
}

/* 管理员徽章 */
.status-badge.admin {
    background: #fef3c7;
    color: #92400e;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .management-tools {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .users-table-container {
        font-size: 0.875rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .users-table th,
    .users-table td {
        padding: 0.5rem 0.4rem;
        font-size: 0.8125rem;
    }
    
    /* 在小屏幕上调整列宽 */
    .users-table th:nth-child(1),
    .users-table td:nth-child(1) {
        min-width: 120px; /* 用户名列 */
    }
    
    .users-table th:nth-child(2),
    .users-table td:nth-child(2) {
        min-width: 150px; /* 邮箱列 */
    }
    
    .users-table th:nth-child(6),
    .users-table td:nth-child(6) {
        min-width: 180px; /* 软件许可证列 */
    }
    
    .action-buttons {
        flex-direction: row;
        gap: 0.25rem;
    }
    
    .btn-sm {
        padding: 0.3rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .user-item {
        flex-direction: column;
        text-align: center;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
    }
}

/* 验证码样式 */
.form-group-vertical .captcha-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.form-group-vertical .captcha-container input {
    flex: 1;
    min-width: 0;
}

.captcha-display {
    width: 120px;
    height: 40px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.captcha-display:hover {
    border-color: var(--primary-color);
}

.captcha-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="noise" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23000" opacity="0.1"/><circle cx="5" cy="5" r="0.5" fill="%23000" opacity="0.05"/><circle cx="15" cy="15" r="0.5" fill="%23000" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23noise)"/></svg>');
    opacity: 0.3;
}

#captchaText {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.captcha-refresh {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.captcha-refresh:hover {
    background: var(--accent-color);
    transform: rotate(180deg);
}

.captcha-refresh i {
    font-size: 1rem;
}

/* 验证码错误提示 */
.captcha-error {
    border-color: #e53e3e !important;
    background-color: #fed7d7;
}

.captcha-success {
    border-color: #38a169 !important;
    background-color: #c6f6d5;
}

/* 响应式设计 - 验证码 */
@media (max-width: 768px) {
    .captcha-container {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .captcha-display {
        width: 100%;
        height: 50px;
    }
    
    .captcha-refresh {
        width: 100%;
        height: 50px;
    }
}

/* 验证码样式 */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.captcha-container input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

.captcha-container input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 91, 154, 0.1);
}

.captcha-display {
    width: 120px;
    height: 40px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    position: relative;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 18px;
    color: #333;
    letter-spacing: 2px;
}

.captcha-display:hover {
    border-color: var(--primary-color);
}

.captcha-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="noise" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23000" opacity="0.1"/><circle cx="5" cy="5" r="0.5" fill="%23000" opacity="0.05"/><circle cx="15" cy="15" r="0.5" fill="%23000" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23noise)"/></svg>');
    opacity: 0.3;
}

.captcha-refresh {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.captcha-refresh:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
}

.captcha-refresh:active {
    transform: translateY(0);
}

.captcha-refresh i {
    font-size: 16px;
}

/* 验证码错误和成功状态 */
.captcha-error {
    border-color: #e53e3e !important;
    background-color: #fed7d7;
}

.captcha-success {
    border-color: #38a169 !important;
    background-color: #c6f6d5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-container input[type="text"] {
        margin-bottom: 10px;
    }
    
    .captcha-image {
        align-self: center;
    }
}

/* 许可证管理样式 */
.license-info {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
    max-width: 100%;
}

.license-item {
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: white;
    font-size: 0.7rem;
    line-height: 1.2;
    min-width: 0;
    flex-shrink: 0;
}

.license-item.active {
    border-color: #38a169;
    background: #f0fff4;
}

.license-item.inactive {
    border-color: #e53e3e;
    background: #fff5f5;
}

@media (prefers-color-scheme: dark) {
    .license-item {
        background: rgba(30, 41, 59, 0.85);
        border-color: rgba(51, 65, 85, 0.9);
    }

    .license-item.active {
        background: rgba(16, 185, 129, 0.15);
        border-color: rgba(52, 211, 153, 0.6);
    }

    .license-item.inactive {
        background: rgba(239, 68, 68, 0.15);
        border-color: rgba(248, 113, 113, 0.6);
    }
}

[data-theme="dark"] .license-item {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(51, 65, 85, 0.9);
}

[data-theme="dark"] .license-item.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(52, 211, 153, 0.6);
}

[data-theme="dark"] .license-item.inactive {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(248, 113, 113, 0.6);
}

.license-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.1rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

.license-status {
    font-size: 0.65rem;
    font-weight: 500;
}

.license-expires {
    font-size: 0.65rem;
    color: var(--text-light);
    margin-top: 0.1rem;
}

.license-item.active .license-status {
    color: #38a169;
}

.license-item.inactive .license-status {
    color: #e53e3e;
}

.no-license {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
}

/* 许可证管理模态框 */
.license-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* 确保模态框内的按钮可以正常点击 */
.license-modal .btn {
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 1001 !important;
    position: relative !important;
}

.license-modal .btn:disabled {
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.license-modal .modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
    .license-modal {
        background: rgba(15, 23, 42, 0.7);
    }

    .license-modal .modal-content {
        background: rgba(15, 23, 42, 0.98);
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(51, 65, 85, 0.8);
    }
}

[data-theme="dark"] .license-modal {
    background: rgba(15, 23, 42, 0.7);
}

[data-theme="dark"] .license-modal .modal-content {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.8);
}

.license-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.license-modal .modal-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.25rem;
}

.license-modal .modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.license-modal .modal-close:hover {
    background: var(--border-color);
    color: var(--text-color);
}

.license-modal .modal-body {
    padding: 1.5rem;
}

.license-section {
    margin-bottom: 2rem;
}

.license-section h4 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* 现有许可证样式 */
.existing-license {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
}

@media (prefers-color-scheme: dark) {
    .license-modal .modal-header {
        border-bottom-color: rgba(51, 65, 85, 0.7);
    }

    .license-modal .modal-header h3 {
        color: #f1f5f9;
    }

    .license-modal .modal-close {
        color: #cbd5f0;
    }

    .license-modal .modal-close:hover {
        background: rgba(51, 65, 85, 0.7);
        color: #f1f5f9;
    }

    .license-section h4 {
        color: #f1f5f9;
    }

    .existing-license {
        background: rgba(30, 41, 59, 0.85);
        border-color: rgba(51, 65, 85, 0.8);
    }

    .existing-license.active {
        background: rgba(16, 185, 129, 0.12);
        border-color: rgba(52, 211, 153, 0.6);
    }

    .existing-license.inactive {
        background: rgba(239, 68, 68, 0.12);
        border-color: rgba(248, 113, 113, 0.6);
    }

    .license-header .license-name {
        color: #e2e8f0;
    }

    .license-details {
        color: #cbd5f0;
    }
}

[data-theme="dark"] .license-modal .modal-header {
    border-bottom-color: rgba(51, 65, 85, 0.7);
}

[data-theme="dark"] .license-modal .modal-header h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .license-modal .modal-close {
    color: #cbd5f0;
}

[data-theme="dark"] .license-modal .modal-close:hover {
    background: rgba(51, 65, 85, 0.7);
    color: #f1f5f9;
}

[data-theme="dark"] .license-section h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .existing-license {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(51, 65, 85, 0.8);
}

[data-theme="dark"] .existing-license.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(52, 211, 153, 0.6);
}

[data-theme="dark"] .existing-license.inactive {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.6);
}

[data-theme="dark"] .license-header .license-name {
    color: #e2e8f0;
}

[data-theme="dark"] .license-details {
    color: #cbd5f0;
}

.existing-license.active {
    border-color: #38a169;
    background: #f0fff4;
}

.existing-license.inactive {
    border-color: #e53e3e;
    background: #fff5f5;
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.license-header .license-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.license-header .license-type {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.license-header .license-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.existing-license.active .license-header .license-status {
    background: #38a169;
    color: white;
}

.existing-license.inactive .license-header .license-status {
    background: #e53e3e;
    color: white;
}

.license-details {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.license-details div {
    margin-bottom: 0.25rem;
}

.license-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.no-licenses {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed var(--border-color);
}

@media (prefers-color-scheme: dark) {
    .no-licenses {
        background: rgba(30, 41, 59, 0.6);
        border-color: rgba(51, 65, 85, 0.8);
        color: #cbd5f0;
    }

    .no-licenses-icon {
        color: #94a3b8;
    }

    .no-licenses h3 {
        color: #f1f5f9;
    }

    .no-licenses p {
        color: #cbd5f0;
    }
}

[data-theme="dark"] .no-licenses {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(51, 65, 85, 0.8);
    color: #cbd5f0;
}

[data-theme="dark"] .no-licenses-icon {
    color: #94a3b8;
}

[data-theme="dark"] .no-licenses h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .no-licenses p {
    color: #cbd5f0;
}
.no-licenses-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-licenses h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-style: normal;
}

.no-licenses p {
    margin: 0;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .license-modal .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .license-modal .modal-header,
    .license-modal .modal-body {
        padding: 1rem;
    }
    
    .license-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .license-actions {
        flex-direction: column;
    }
    
    .license-actions .btn {
        width: 100%;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .users-table-container {
        font-size: 0.8rem;
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .users-table th,
    .users-table td {
        padding: 0.5rem 0.3rem;
    }
    
    /* 进一步调整列宽 */
    .users-table th:nth-child(1),
    .users-table td:nth-child(1) {
        min-width: 120px; /* 用户名列 */
    }
    
    .users-table th:nth-child(2),
    .users-table td:nth-child(2) {
        min-width: 150px; /* 邮箱列 */
    }
    
    .users-table th:nth-child(3),
    .users-table td:nth-child(3) {
        min-width: 80px; /* 注册时间列 */
    }
    
    .users-table th:nth-child(4),
    .users-table td:nth-child(4) {
        min-width: 80px; /* 最后登录列 */
    }
    
    .users-table th:nth-child(5),
    .users-table td:nth-child(5) {
        min-width: 70px; /* 用户类型列 */
    }
    
    .users-table th:nth-child(6),
    .users-table td:nth-child(6) {
        min-width: 200px; /* 软件许可证列 */
    }
    
    .users-table th:nth-child(7),
    .users-table td:nth-child(7) {
        min-width: 100px; /* 操作列 */
    }
    
    /* 许可证信息在小屏幕上更紧凑 */
    .license-info {
        max-width: 100%;
        gap: 0.375rem;
        flex-wrap: wrap;
    }
    
    .license-item {
        padding: 0.25rem 0.4rem;
        font-size: 0.65rem;
    }
    
    .license-name {
        font-size: 0.7rem;
        margin-bottom: 0.1rem;
    }
    
    .license-status {
        font-size: 0.6rem;
    }
    
    .license-expires {
        font-size: 0.6rem;
        margin-top: 0.1rem;
    }
}

/* 支付相关样式 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 软件卡片样式 */
.software-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 暗色模式下的软件卡片 */
@media (prefers-color-scheme: dark) {
    .software-card {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(51, 65, 85, 0.8);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    }
}

[data-theme="dark"] .software-card {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(51, 65, 85, 0.8);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

/* 亮色模式下的软件卡片 - 强制白色 */
[data-theme="light"] .software-card {
    background: white !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
}

.software-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 暗色模式下hover效果 */
@media (prefers-color-scheme: dark) {
    .software-card:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    }
}

[data-theme="dark"] .software-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.software-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.software-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.5rem;
}

.software-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.software-info p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
}

.software-features {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.software-features:empty {
    display: none;
}

.software-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.software-features li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-color);
}

.software-features li i {
    color: #10b981;
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

.purchase-section {
    padding: 1.5rem;
}

.duration-selector {
    margin-bottom: 1.5rem;
}

.duration-selector label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.duration-selector select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

/* 暗色模式下的下拉选择框 */
@media (prefers-color-scheme: dark) {
    .duration-selector select {
        background: rgba(51, 65, 85, 0.5);
        border-color: rgba(71, 85, 105, 0.8);
    }
}

[data-theme="dark"] .duration-selector select {
    background: rgba(51, 65, 85, 0.5);
    border-color: rgba(71, 85, 105, 0.8);
}

/* 亮色模式下的下拉选择框 - 强制白色 */
[data-theme="light"] .duration-selector select {
    background: white !important;
    border-color: var(--border-color) !important;
}

.duration-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light-accent);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.price-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.purchase-actions {
    text-align: center;
}

.purchase-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
}

/* 购买软件页面特定样式 - 移除额外的边距设置 */
.dashboard-main #purchase {
    /* 移除额外的max-width和padding，使用默认的dashboard-content样式 */
}

.dashboard-main #purchase .licenses-grid {
    /* 保持默认的licenses-grid样式 */
}

/* 购买选项样式 */
.purchase-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.duration-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.duration-selector label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.duration-selector select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.duration-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.price-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.price-label {
    font-weight: 600;
    color: var(--text-color);
}

.price-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 订单管理页面样式 */
.order-management {
    margin-top: 2rem;
}

.order-management .management-tools {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.order-management .search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.order-management .search-box input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
}

.order-management .search-box i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.order-management .filter-options select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    min-width: 120px;
}

.order-management .date-filter {
    display: flex;
    gap: 0.5rem;
}

.order-management .date-filter input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
}

/* 订单表格样式 */
.orders-table-container {
    background: white;
    border-radius: 12px;
    overflow-x: auto; /* 横向滚动 */
    overflow-y: visible; /* 允许垂直显示 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    position: relative; /* 为sticky定位提供参照 */
}

/* 暗色模式下的订单表格容器 */
@media (prefers-color-scheme: dark) {
    .orders-table-container {
        background: rgba(30, 41, 59, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
}

[data-theme="dark"] .orders-table-container {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* 亮色模式下的订单表格容器 - 强制白色 */
[data-theme="light"] .orders-table-container {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* 固定列宽 */
}

/* 为各列设置合理的宽度 */
.orders-table th:nth-child(1),
.orders-table td:nth-child(1) {
    width: 180px; /* 订单ID */
}

.orders-table th:nth-child(2),
.orders-table td:nth-child(2) {
    width: 150px; /* 用户信息 */
}

.orders-table th:nth-child(3),
.orders-table td:nth-child(3) {
    width: 140px; /* 软件名称 */
}

.orders-table th:nth-child(4),
.orders-table td:nth-child(4) {
    width: 90px; /* 授权时长 */
}

.orders-table th:nth-child(5),
.orders-table td:nth-child(5) {
    width: 100px; /* 金额 */
}

.orders-table th:nth-child(6),
.orders-table td:nth-child(6) {
    width: 100px; /* 状态 */
}

.orders-table th:nth-child(7),
.orders-table td:nth-child(7) {
    width: 150px; /* 创建时间 */
}

.orders-table th:nth-child(8),
.orders-table td:nth-child(8) {
    width: 150px; /* 支付时间 */
}

.orders-table th:nth-child(9),
.orders-table td:nth-child(9) {
    width: 180px; /* 操作 */
    position: sticky;
    right: 0;
    background: white;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.05);
}

.orders-table th {
    background: var(--light-bg);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    white-space: nowrap; /* 防止标题换行 */
}

/* 操作列标题粘性定位 */
.orders-table th:nth-child(9) {
    position: sticky;
    right: 0;
    background: var(--light-bg);
    z-index: 2;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.05);
}

/* 暗色模式下的表头操作列 */
@media (prefers-color-scheme: dark) {
    .orders-table th:nth-child(9) {
        background: rgba(51, 65, 85, 0.5);
    }
}

[data-theme="dark"] .orders-table th:nth-child(9) {
    background: rgba(51, 65, 85, 0.5);
}

.orders-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    vertical-align: middle; /* 垂直居中 */
    overflow: hidden;
    text-overflow: ellipsis; /* 文本超出显示省略号 */
}

/* 操作列粘性定位 */
.orders-table td:nth-child(9) {
    position: sticky;
    right: 0;
    background: white;
    z-index: 1;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.05);
}

/* 暗色模式下的表体操作列 */
@media (prefers-color-scheme: dark) {
    .orders-table td:nth-child(9) {
        background: rgba(30, 41, 59, 0.95);
    }
}

[data-theme="dark"] .orders-table td:nth-child(9) {
    background: rgba(30, 41, 59, 0.95);
}

.orders-table tr:hover {
    background: var(--light-bg);
}

/* hover时保持操作列背景 */
.orders-table tr:hover td:nth-child(9) {
    background: var(--light-bg);
}

/* 暗色模式下hover时操作列背景 */
@media (prefers-color-scheme: dark) {
    .orders-table tr:hover td:nth-child(9) {
        background: rgba(51, 65, 85, 0.7);
    }
}

[data-theme="dark"] .orders-table tr:hover td:nth-child(9) {
    background: rgba(51, 65, 85, 0.7);
}

.orders-table tr:last-child td {
    border-bottom: none;
}

/* 订单ID样式 */
.order-id {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-id-text {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-color);
}

.btn-copy {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* 用户信息样式 */
.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-color);
}

.user-email {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* 软件信息样式 */
.software-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.software-name {
    font-weight: 600;
    color: var(--text-color);
}

.version-name {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* 时长标签样式 */
.duration-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 金额样式 */
.amount {
    font-weight: 600;
    color: var(--success-color);
    font-size: 1rem;
}

/* 状态标签样式 */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-paid {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-refunded {
    background: #e0e7ff;
    color: #3730a3;
}

.status-unknown {
    background: #f3f4f6;
    color: #6b7280;
}

/* 日期时间样式 */
.datetime {
    font-size: 0.8rem;
    color: var(--text-light);
    font-family: 'Courier New', monospace;
}

/* 订单操作按钮样式 */
.order-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap; /* 不换行 */
    justify-content: center; /* 居中显示 */
    align-items: center;
}

.order-actions .btn {
    padding: 0.5rem 0.75rem;
    min-width: auto;
    font-size: 0.85rem;
    white-space: nowrap; /* 防止按钮文字换行 */
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* 优化按钮颜色 */
.order-actions .btn-outline {
    background: #f0f9ff;
    border-color: #3b82f6;
    color: #3b82f6;
}

.order-actions .btn-outline:hover {
    background: #3b82f6;
    color: white;
}

.order-actions .btn-success {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.order-actions .btn-success:hover {
    background: #059669;
    border-color: #059669;
}

.order-actions .btn-warning {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

.order-actions .btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
}

.order-actions .btn-danger {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.order-actions .btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* 无数据样式 */
.no-data {
    text-align: center;
    padding: 3rem 1rem;
}

.no-data-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
}

.no-data-content i {
    font-size: 3rem;
    opacity: 0.5;
}

/* 订单详情模态框样式 */
/* 模态框遮罩层 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

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

/* 模态框内容 */
.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

/* 模态框头部 */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--light-bg);
    color: var(--text-color);
}

/* 模态框主体 */
.modal-body {
    padding: 1.5rem;
}

/* 模态框底部 */
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    gap: 0.5rem;
}

.order-details-modal {
    max-width: 600px;
    width: 90%;
}

.order-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.detail-item label {
    font-weight: 600;
    color: var(--text-color);
    min-width: 100px;
}

.detail-item span {
    color: var(--text-light);
    text-align: right;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .order-management .management-tools {
        flex-direction: column;
        align-items: stretch;
    }
    
    .order-management .search-box,
    .order-management .filter-options,
    .order-management .date-filter {
        width: 100%;
    }
    
    .order-management .date-filter {
        flex-direction: column;
    }
    
    .orders-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* 平滑滚动 */
    }
    
    .orders-table {
        min-width: 1200px; /* 确保表格最小宽度 */
    }
    
    .orders-table th,
    .orders-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    /* 移动端保持操作列粘性定位 */
    .orders-table th:nth-child(9),
    .orders-table td:nth-child(9) {
        position: sticky;
        right: 0;
        background: white;
    }
    
    .orders-table tr:hover td:nth-child(9) {
        background: var(--light-bg);
    }
    
    .order-actions {
        flex-direction: row; /* 移动端仍然水平排列 */
        gap: 0.25rem;
    }
    
    .order-actions .btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .order-details-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .detail-item label {
        min-width: auto;
    }
    
    .detail-item span {
        text-align: left;
    }
}

.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--light-accent) 0%, #f8fafc 100%);
}

.product-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.5rem;
}

.product-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.product-version {
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.discount-badge {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.product-description {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.product-description p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.product-features {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-color);
}

.product-features li i {
    color: #10b981;
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

.product-pricing {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.price-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.validity {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.validity i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.product-actions {
    padding: 1.5rem;
}

.product-actions .btn {
    width: 100%;
    justify-content: center;
}

/* 订单相关样式 */
.orders-container {
    margin-top: 2rem;
}

.orders-summary {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-accent);
    border-radius: 8px;
    color: var(--text-muted);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #f8fafc 0%, var(--light-accent) 100%);
}

.order-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.order-id {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.paid {
    background: #d1fae5;
    color: #059669;
}

.status-badge.cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.refunded {
    background: #e5e7eb;
    color: #6b7280;
}

.order-details {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.order-amount, .order-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.amount-label, .time-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.amount-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.125rem;
}

.time-value {
    color: var(--text-color);
    font-size: 0.875rem;
}

.order-actions {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.order-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* 空状态样式 */
.no-products, .no-orders {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.no-products-icon, .no-orders-icon {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.no-products h3, .no-orders h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.no-products p, .no-orders p {
    margin-bottom: 1.5rem;
}

.loading {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* 移动端支付样式优化 */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dashboard-main #purchase {
        /* 移除额外的padding，使用默认的dashboard-content响应式样式 */
    }
    
    .purchase-options {
        gap: 0.75rem;
    }
    
    .duration-selector select {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .price-display {
        padding: 0.6rem;
    }
    
    .price-value {
        font-size: 1.1rem;
    }
    
    .license-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .license-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .software-features {
        padding: 1rem;
    }
    
    .software-features:empty {
        display: none;
    }
    
    .purchase-section {
        padding: 1rem;
    }
    
    .duration-selector select {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
    
    .price-display {
        padding: 0.75rem;
    }
    
    .price-label {
        font-size: 1rem;
    }
    
    .price-value {
        font-size: 1.25rem;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .order-actions .btn {
        width: 100%;
    }
}
