/* 轻狂授权管理系统 - 主样式文件 */
/* 重新生成版本 1.0 - 扁平化设计 */

/* ==========================================================================
   CSS 变量定义
   ========================================================================== */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 4px;
    --border-radius-sm: 3px;
    --border-radius-lg: 6px;
    --transition-speed: 0.3s;
}

/* ==========================================================================
   基础重置与工具类
   ========================================================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #cce0ff;
    color: #333;
    line-height: 1.5;
}

.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ==========================================================================
   按钮样式 - 扁平化设计
   ========================================================================== */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
    text-decoration: none;
}

.btn:hover,
.btn:focus {
    text-decoration: none;
    outline: 0;
}

/* 按钮尺寸 */
.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

/* 实心按钮 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5c636a;
    border-color: #5c636a;
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #157347;
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #bb2d3b;
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: #212529;
}

.btn-warning:hover {
    background-color: #ffca2c;
    border-color: #ffca2c;
}

.btn-info {
    background-color: var(--info-color);
    border-color: var(--info-color);
    color: white;
}

.btn-info:hover {
    background-color: #0aa2c0;
    border-color: #0aa2c0;
}

/* 轮廓按钮 */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    color: white;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-success {
    color: var(--success-color);
    border-color: var(--success-color);
    background-color: transparent;
}

.btn-outline-success:hover {
    color: white;
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-outline-warning {
    color: var(--warning-color);
    border-color: var(--warning-color);
    background-color: transparent;
}

.btn-outline-warning:hover {
    color: white;
    background-color: var(--warning-color);
    border-color: var(--warning-color);
}

.btn-outline-danger {
    color: var(--danger-color);
    border-color: var(--danger-color);
    background-color: transparent;
}

.btn-outline-danger:hover {
    color: white;
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-outline-info {
    color: var(--info-color);
    border-color: var(--info-color);
    background-color: transparent;
}

.btn-outline-info:hover {
    color: white;
    background-color: var(--info-color);
    border-color: var(--info-color);
}

/* 图标按钮 */
.btn-icon-40 {
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 输入框图标容器 */
.input-group-icon-custom {
    border-color: #e0e0e0 !important;
    color: #4361ee !important;
    min-width: 45px !important;
    min-height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* SVG 垂直对齐 */
.svg-vertical-middle {
    vertical-align: middle;
}

/* 固定宽度按钮 */
.btn-fixed-100 {
    width: 100px !important;
}

/* 登录页面按钮 */
.btn-login {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    background: var(--primary-color);
    border: none;
    color: white;
    transition: all var(--transition-speed);
}

.btn-login:hover {
    background: var(--secondary-color);
    color: white;
}

/* 小按钮 */
.btn-small {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    white-space: nowrap;
}

.btn-small:hover {
    background: var(--secondary-color);
}

/* 索引页面按钮 */
.index-btn {
    background: var(--primary-color);
    color: white !important;
    border: none !important;
    border-radius: var(--border-radius) !important;
    padding: 0.75rem 1.25rem !important;
    font-weight: 600 !important;
    transition: all var(--transition-speed) !important;
}

.index-btn:hover {
    background: var(--secondary-color) !important;
}

/* ==========================================================================
   登录页面样式
   ========================================================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #cce0ff;
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
}

.login-header .brand-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: white;
}

.login-header p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

.login-body {
    padding: 2rem;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .login-card {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .login-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .login-body {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   表单样式
   ========================================================================== */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    transition: border-color var(--transition-speed);
    height: 45px;
}

.form-select {
    height: 45px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.input-group-icon {
    border-color: #e0e0e0 !important;
    color: var(--primary-color) !important;
    min-width: 45px !important;
    min-height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ==========================================================================
   表格样式
   ========================================================================== */
.table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
    background-color: white;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding: 0.75rem;
}

.table td {
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* 结果列左对齐 - 覆盖 DataTables 样式 */
table.dataTable#recentLogsTable thead th:nth-child(4),
table.dataTable#recentLogsTable tbody td:nth-child(4),
#recentLogsTable thead th:nth-child(4),
#recentLogsTable tbody td:nth-child(4) {
    text-align: left !important;
    padding-left: 0.75rem !important;
}

/* 确保结果列的 badge 也左对齐 */
table.dataTable#recentLogsTable tbody td:nth-child(4) .badge,
#recentLogsTable tbody td:nth-child(4) .badge {
    display: inline-block !important;
    text-align: left !important;
}

/* 强制所有结果列内容左对齐 */
#recentLogsTable td:nth-child(4),
#recentLogsTable td:nth-child(4) * {
    text-align: left !important;
}

/* 移除结果列 badge 的左内边距 */
#recentLogsTable td:nth-child(4) .badge {
    padding-left: 0 !important;
}

/* Badge 样式 - 提高可读性 */
.badge {
    color: #6c757d !important;
    background-color: transparent !important;
    border: none !important;
    font-weight: 400;
    padding: 0;
    font-size: 0.9em;
    border-radius: 0;
    text-align: left !important;
    display: inline-block !important;
}

/* 保持状态 badge 的原有样式 */
.badge-success {
    background-color: transparent !important;
    border: none !important;
    color: #4cc9f0 !important;
    text-align: left !important;
    display: inline-block !important;
}

.badge-danger {
    background-color: transparent !important;
    border: none !important;
    color: #f72585 !important;
    text-align: left !important;
    display: inline-block !important;
}

.badge-success {
    background-color: transparent !important;
    border: none !important;
    color: #4cc9f0 !important;
    text-align: left !important;
    display: inline-block !important;
}

.badge-danger {
    background-color: transparent !important;
    border: none !important;
    color: #f72585 !important;
    text-align: left !important;
    display: inline-block !important;
}

.badge-warning {
    background-color: transparent !important;
    border: none !important;
    color: #f8961e !important;
    text-align: left !important;
    display: inline-block !important;
}

.badge-primary {
    background-color: transparent !important;
    border: none !important;
    color: #4361ee !important;
    text-align: left !important;
    display: inline-block !important;
}

.badge-secondary {
    background-color: transparent !important;
    border: none !important;
    color: #6c757d !important;
    text-align: left !important;
    display: inline-block !important;
}

.badge-light {
    background-color: transparent !important;
    border: none !important;
    color: #6c757d !important;
    text-align: left !important;
    display: inline-block !important;
}

.badge-info {
    background-color: transparent !important;
    border: none !important;
    color: #6c757d !important;
    font-weight: 400;
    text-align: left !important;
    display: inline-block !important;
}

/* ==========================================================================
   卡片样式
   ========================================================================== */
.card {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

/* ==========================================================================
   统计卡片样式 (小卡片)
   ========================================================================== */
.stat-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-lg);
    padding: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed);
    display: block;
    position: relative;
    min-height: 40px;
    padding-right: 4.5rem; /* 为图标留出空间 */
}

.stat-card .card-body {
    padding: 0.5rem;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
}

.stat-icon.primary {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.stat-icon.success {
    background-color: rgba(76, 201, 240, 0.1);
    color: #4cc9f0;
}

.stat-icon.warning {
    background-color: rgba(248, 150, 30, 0.1);
    color: #f8961e;
}

.stat-icon.danger {
    background-color: rgba(247, 37, 133, 0.1);
    color: #f72585;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #333;
    margin-top: 0.1rem;
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
    position: absolute;
    bottom: 0.3rem;
    right: 0.75rem;
    text-align: right;
}

/* 首页卡片间距调整 */
.content-wrapper .row.mb-4:first-of-type {
    margin-bottom: 0.1rem !important; /* 原为1.5rem */
}

/* ==========================================================================
   侧边栏样式
   ========================================================================== */
.sidebar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 250px;
    min-height: 100vh;
    padding: 1rem 0;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-brand {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.sidebar-brand h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.5rem;
    padding-left: 2.5rem;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    text-decoration: none;
    margin: 0.1rem 0.5rem;
    border-radius: 4px;
    text-align: center;
}

.sidebar-nav .nav-link i {
    margin-right: 0.75rem;
    font-size: 1.125rem;
    width: 24px;
    text-align: center;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-top: auto;
}

.logout-btn {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.logout-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

/* 主内容区样式 */
.main-content {
    margin-left: 250px;
    min-height: 100vh;
    background-color: #f5f7fb;
    transition: margin-left var(--transition-speed);
}

.main-content.ml-0 {
    margin-left: 0;
}

.navbar-top {
    background-color: white;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-wrapper {
    padding: 1.5rem;
}

/* ==========================================================================
   工具类
   ========================================================================== */
.text-gradient {
    background: linear-gradient(135deg, #4361ee, #3f37c9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover {
    transition: box-shadow var(--transition-speed) ease;
}

.shadow-hover:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.fade-in {
    animation: fadeIn var(--transition-speed) ease-in-out;
}

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

.slide-in {
    animation: slideIn var(--transition-speed) ease-in-out;
}

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

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-active {
    background-color: #4cc9f0;
    box-shadow: 0 0 0 2px rgba(76, 201, 240, 0.2);
}

.status-inactive {
    background-color: #f72585;
    box-shadow: 0 0 0 2px rgba(247, 37, 133, 0.2);
}

.status-warning {
    background-color: #f8961e;
    box-shadow: 0 0 0 2px rgba(248, 150, 30, 0.2);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #495057;
    margin: 0.1rem;
}

.tag-primary {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.tag-success {
    background: rgba(76, 201, 240, 0.1);
    color: #4cc9f0;
}

.tag-warning {
    background: rgba(248, 150, 30, 0.1);
    color: #f8961e;
}

.tag-danger {
    background: rgba(247, 37, 133, 0.1);
    color: #f72585;
}

/* ==========================================================================
   响应式调整
   ========================================================================== */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
        margin-top: 0.05rem;
    }
    
    .stat-card {
        padding: 0.4rem;
        padding-right: 3.5rem; /* 为图标留出空间 */
        min-height: 35px;
    }
    
    .stat-card .card-body {
        padding: 0.4rem;
    }
    
    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        position: absolute;
        top: 50%;
        right: 0.5rem;
        transform: translateY(-50%);
    }
    
    .stat-label {
        bottom: 0.3rem;
        right: 0.5rem;
        font-size: 0.85rem;
    }
    
    .sidebar {
        position: fixed;
        left: -250px;
        transition: left var(--transition-speed);
        z-index: 1050;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar.d-none {
        left: -250px !important;
    }
    
    .sidebar:not(.d-none) {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .navbar-top {
        padding: 0.75rem 1rem;
    }
    
    .content-wrapper {
        padding: 1rem;
    }
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }

    .table {
        border: 1px solid #ddd;
    }
}

/* ==========================================================================
   用户中心页面样式 (index.php)
   ========================================================================== */

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 提示消息样式 */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.alert.success {
    background-color: rgba(76, 201, 240, 0.1);
    border-color: rgba(76, 201, 240, 0.3);
    color: #4cc9f0;
}

.alert.error {
    background-color: rgba(247, 37, 133, 0.1);
    border-color: rgba(247, 37, 133, 0.3);
    color: #f72585;
}

/* 认证页面样式 */
#authSection {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 2rem auto;
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem;
    text-align: center;
    color: white;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.auth-header p {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.auth-content {
    padding: 2rem;
}

.auth-content:not(.active) {
    display: none;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
    outline: none;
}

.input-with-button {
    display: flex;
    gap: 0.5rem;
}

.input-with-button input {
    flex: 1;
}

/* 按钮样式 */
#authSection .btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

#authSection .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.btn-small {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* 用户仪表板样式 */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: #333;
    font-size: 1.3rem;
    font-weight: 700;
}

.dashboard-content {
    display: flex;
    gap: 2rem;
    min-height: 600px;
}

/* 用户中心侧边栏 */
.dashboard-content .sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    width: 250px;
    flex-shrink: 0;
    position: relative;
    min-height: auto;
}

.user-info {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.username {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
}

.email {
    font-size: 0.85rem;
    color: #666;
}

.dashboard-content .sidebar .nav-item {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
    text-align: center;
}

.dashboard-content .sidebar .nav-item:hover {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.dashboard-content .sidebar .nav-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.dashboard-content .logout-btn {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    background: none;
    border: none;
    transition: all 0.3s;
}

.dashboard-content .logout-btn:hover {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

/* 主内容区域 */
.dashboard-content .main-content {
    flex: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-left: 0;
    min-height: auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 产品网格样式 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: stretch;
}

.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.product-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
}

.product-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-card .description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    padding-bottom: 1rem;
    min-height: 3em;
    overflow: hidden;
}

.product-card .features {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
    flex-shrink: 0;
}

.product-card .features li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
}

.product-card .features li:last-child {
    border-bottom: none;
}

.product-card .features li span:first-child {
    color: #666;
}

.product-card .features li span:last-child {
    color: #333;
    font-weight: 600;
}

/* 数据展示样式 */
.data-section {
    margin-bottom: 2rem;
}

.data-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.order-group {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
}

.data-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.data-item .label {
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
}

.data-item .value {
    color: #333;
    font-weight: 500;
    text-align: right;
}

.data-item .value.status-active {
    color: #4cc9f0;
    font-weight: 600;
}

.data-item .value.status-inactive {
    color: #f72585;
    font-weight: 600;
}

/* 移除状态文本背景色块 */
.data-item .value[class*="status-"] {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* 用户中心响应式调整 */
@media (max-width: 768px) {
    .dashboard-content {
        flex-direction: column;
    }

    .dashboard-content .sidebar {
        width: 100%;
        margin-bottom: 1.5rem;
    }

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

    .auth-container {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 1rem;
    }

    .dashboard-content .main-content,
    .auth-content {
        padding: 1.5rem;
    }

    .input-with-button {
        flex-direction: column;
    }
}

/* ==========================================================================
   安装页面样式
   ========================================================================== */

.install-page {
    background: linear-gradient(135deg, #f5f7fb 0%, #eef1f7 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.install-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    width: 100%;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.install-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

.install-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.install-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.install-body {
    padding: 3rem;
}

@media (max-width: 768px) {
    .install-body {
        padding: 2rem;
    }
    
    .install-header {
        padding: 2rem 1.5rem;
    }
    
    .install-header h1 {
        font-size: 2rem;
    }
}

.btn-install {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.75rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    color: white;
}

.btn-install:active {
    transform: translateY(0);
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step-indicator > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.step-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    text-align: center;
}

.step.active + .step-text {
    color: var(--primary-color);
}

.info-box {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.info-box h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.info-box ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.info-box li {
    margin-bottom: 0.5rem;
}

.info-box li:last-child {
    margin-bottom: 0;
}

.info-box p {
    margin-bottom: 0;
    line-height: 1.6;
}

.install-body .alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.install-body .alert-heading {
    font-size: 1.2rem;
    font-weight: 600;
}

/* ==========================================================================
   系统设置页面样式
   ========================================================================== */
.setting-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.setting-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.setting-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* 内联样式迁移 */
.download-list-margin {
    margin-bottom: 30px;
}

.text-center-gray {
    text-align: center;
    color: #666;
}

.code-font {
    font-family: 'Courier New', Courier, monospace;
}

.break-all {
    word-break: break-all;
}

.max-width-300 {
    max-width: 300px;
}

.button-download {
    text-align: left;
    padding-left: 1rem;
    padding-right: 1rem;
    white-space: nowrap;
}

.min-height-38 {
    min-height: 38px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-actions {
    display: inline-flex;
    gap: 4px;
    white-space: nowrap;
}

.display-none {
    display: none;
}

.font-size-07 {
    font-size: 0.85em;
}

.font-size-07-sm {
    font-size: 0.7em;
}

.code-font-size-85em {
    font-size: 0.85em;
}

.height-38 {
    height: 38px;
}

.color-warning-important {
    color: #ffc107 !important;
}

.color-success-important {
    color: #198754 !important;
}

.color-danger-important {
    color: #dc3545 !important;
}

.color-primary-important {
    color: #0d6efd !important;
}

.padding-left-24 {
    padding-left: 24px;
}

.width-120 {
    width: 120px;
}

.color-green {
    color: green;
}

.color-red {
    color: red;
}

/* ==========================================================================
   联系我们样式
   ========================================================================== */
.dashboard-content .contact-us-section {
    margin-top: 20px;
    text-align: center;
    padding: 0 10px;
}

.contact-us-img {
    max-width: 70%;
    height: auto;
    display: block;
    margin: 0 auto 8px auto;
    border-radius: 4px;
}

.contact-us-link {
    margin-bottom: 8px;
    font-size: 14px;
    color: #007bff;
    word-break: break-all;
    display: block;
}

.contact-us-text {
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    word-break: break-all;
}

.contact-us-label {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}