/* CPT云数据服务平台 - 苹果风格CSS */

/* ==================== 基础变量 ==================== */
:root {
    /* 品牌主色 */
    --brand-blue: #0071E3;
    --brand-blue-hover: #0077ED;
    --brand-blue-light: rgba(0, 113, 227, 0.1);
    --brand-green: #34C759;
    --brand-green-light: rgba(52, 199, 89, 0.1);
    
    /* 功能色 */
    --error-red: #FF3B30;
    --error-red-light: rgba(255, 59, 48, 0.1);
    
    /* 文字色 */
    --deep-gray: #1D1D1F;
    --black: #000000;
    --mid-gray: #86868B;
    --third-gray: #6E6E73;
    
    /* 背景色 */
    --light-gray: #E8E8ED;
    --cream-white: #F5F5F7;
    --pure-white: #FFFFFF;
    
    /* 边框与阴影 */
    --border-light: rgba(0, 0, 0, 0.06);
    --border-gray: #D2D2D7;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* 字体 */
    --font-family: -apple-system, 'Helvetica Neue', 'PingFang SC', 'SF Pro Display', 'SF Pro Text', Arial, sans-serif;
    
    /* 过渡 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    
    /* 兼容旧变量名 */
    --bg-primary: var(--pure-white);
    --bg-secondary: var(--cream-white);
    --bg-tertiary: var(--light-gray);
    --text-primary: var(--deep-gray);
    --text-secondary: var(--mid-gray);
    --text-tertiary: var(--third-gray);
    --accent-blue: var(--brand-blue);
    --accent-blue-light: var(--brand-blue-light);
    --accent-green: var(--brand-green);
    --accent-green-light: var(--brand-green-light);
    --accent-red: var(--error-red);
    --accent-red-light: var(--error-red-light);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ==================== 登录页面 ==================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: var(--bg-primary);
}

.login-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    background: var(--deep-gray) url('/static/assets/login_bg.jpg') center/cover no-repeat;
    background-blend-mode: overlay;
    position: relative;
    overflow: hidden;
    align-items: center;
}

.login-brand-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.login-brand-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.login-brand .brand-logo {
    width: 52px;
    height: 52px;
    background: var(--brand-blue);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.2);
}

.login-brand h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--pure-white);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.login-brand .brand-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}

.login-brand-stats {
    display: flex;
    gap: 0;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
}

.login-brand-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 36px;
}

.login-brand-stat:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.1);
}

.login-brand-stat .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-blue);
    letter-spacing: -0.5px;
}

.login-brand-stat .stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
}

.login-form-side {
    width: 520px;
    min-width: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    background: var(--bg-secondary);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
    padding: 40px 36px;
    animation: fadeInUp 0.6s ease;
}

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

.login-logo {
    margin-bottom: 28px;
}

.login-logo .welcome-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.login-logo .welcome-sub {
    font-size: 14px;
    color: var(--text-secondary);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition-fast);
    background: var(--bg-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px var(--accent-blue-light);
}

.login-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--brand-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: 8px;
}

.login-btn:hover {
    background: var(--brand-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

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

.login-btn:disabled {
    background: #A8C7E8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-error {
    background: var(--error-red-light);
    border: 1px solid var(--error-red);
    color: var(--error-red);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    display: none;
}

.login-error.show {
    display: block;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* ==================== 后台布局 ==================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: 260px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sidebar-logo h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 450;
    transition: var(--transition-fast);
    cursor: pointer;
}

.nav-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    font-weight: 500;
}

.nav-item-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.user-role {
    font-size: 12px;
    color: var(--text-tertiary);
}

.logout-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.logout-btn:hover {
    background: var(--error-red-light);
    color: var(--error-red);
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    background: var(--bg-secondary);
    min-height: 100vh;
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}


/* ==================== 统计卡片 ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-fast);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-blue-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.stat-trend {
    font-size: 12px;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.stat-trend.up {
    color: var(--accent-green);
    background: var(--accent-green-light);
}

.stat-trend.down {
    color: var(--error-red);
    background: var(--error-red-light);
}

/* ==================== 卡片 ==================== */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title-icon {
    font-size: 20px;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

/* ==================== 表格 ==================== */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.table tr:hover td {
    background: var(--bg-secondary);
}

.table-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.table-link:hover {
    text-decoration: underline;
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

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

.btn-primary {
    background: var(--brand-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--brand-blue-hover);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

.btn-secondary {
    background: var(--deep-gray);
    color: white;
}

.btn-secondary:hover {
    background: var(--black);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-gray);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

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

.btn-success:hover {
    background: #2DB84D;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.25);
}

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

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

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 12px;
}

/* ==================== 状态徽章 ==================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: var(--brand-blue-light);
    color: var(--brand-blue);
}

.status-processing {
    background: var(--accent-blue-light);
    color: var(--accent-blue);
}

.status-completed, .status-active, .status-approved {
    background: var(--accent-green-light);
    color: var(--accent-green);
}

.status-failed, .status-rejected {
    background: var(--error-red-light);
    color: var(--error-red);
}

.status-disabled {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
}

/* ==================== 表单 ==================== */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition-fast);
    background: var(--bg-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px var(--accent-blue-light);
}

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

/* ==================== 标签页 ==================== */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.tab-item {
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: var(--transition-fast);
    cursor: pointer;
}

.tab-item:hover {
    color: var(--text-primary);
}

.tab-item.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--accent-blue);
    color: white;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}


/* ==================== 模态框 ==================== */
.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: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: var(--transition-normal);
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--error-red-light);
    color: var(--error-red);
}

.modal-body {
    padding: 28px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ==================== Toast提示 ==================== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    min-width: 280px;
}

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

.toast-icon {
    font-size: 20px;
}

.toast-success .toast-icon { color: var(--accent-green); }
.toast-error .toast-icon { color: var(--error-red); }
.toast-info .toast-icon { color: var(--accent-blue); }

.toast-message {
    font-size: 14px;
    color: var(--text-primary);
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==================== 加载动画 ==================== */
.loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==================== 限额指示器 ==================== */
.limit-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.limit-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.limit-fill {
    height: 100%;
    background: var(--accent-blue);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.limit-fill.warning {
    background: var(--brand-blue);
}

.limit-fill.danger {
    background: var(--error-red);
}

/* ==================== 上传区域 ==================== */
.upload-zone {
    border: 2px dashed var(--border-gray);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    transition: var(--transition-fast);
    cursor: pointer;
    background: var(--bg-secondary);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent-blue);
    background: var(--accent-blue-light);
}

.upload-zone-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.upload-zone-text {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.upload-zone-hint {
    font-size: 14px;
    color: var(--text-tertiary);
}

.upload-zone input[type=file] {
    display: none;
}

/* ==================== 模块卡片 ==================== */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.module-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-light);
    transition: var(--transition-fast);
    cursor: pointer;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-blue);
}

.module-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-blue-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.module-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.module-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==================== 任务列表 ==================== */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

.task-item:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-sm);
}

.task-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.task-info {
    flex: 1;
    min-width: 0;
}

.task-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.task-meta {
    font-size: 13px;
    color: var(--text-tertiary);
}

.task-actions {
    display: flex;
    gap: 8px;
}

/* ==================== 页面切换动画 ==================== */
.page {
    animation: fadeIn 0.3s ease;
}

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

/* ==================== 徽章 ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--error-red);
    color: white;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}


/* ==================== 复选框组 ==================== */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.checkbox-item:hover {
    background: var(--bg-tertiary);
}

.checkbox-item input[type=checkbox] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-blue);
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-primary);
}

/* ==================== 手机绑定提示 ==================== */
.phone-bind-tip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
}

.phone-bind-tip .tip-icon {
    font-size: 20px;
    color: var(--accent-blue);
}

.phone-bind-tip .btn {
    margin-left: auto;
}

/* ==================== 手机绑定模态框 ==================== */
.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 420px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

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

.modal-error {
    background: var(--error-red-light);
    border: 1px solid var(--error-red);
    color: var(--error-red);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}

.modal-error.show {
    display: block;
}

.modal-success {
    background: var(--accent-green-light);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}

.modal-success.show {
    display: block;
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: var(--transition-normal);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    .login-brand {
        display: none;
    }
    .login-form-side {
        width: 100%;
        min-width: unset;
        padding: 32px 24px;
        background: var(--bg-secondary);
    }
    .login-card {
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-lg);
        padding: 32px 24px;
    }
    .login-logo .welcome-title {
        font-size: 22px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .module-grid {
        grid-template-columns: 1fr;
    }
    
    .task-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .task-actions {
        width: 100%;
        margin-top: 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 隐藏元素 ==================== */
.hidden {
    display: none !important;
}

/* ==================== 文字截断 ==================== */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== Flex工具类 ==================== */
.flex {
    display: flex;
}

.flex-1 {
    flex: 1;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 8px;
}

.gap-4 {
    gap: 16px;
}

/* ==================== 文字工具类 ==================== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-secondary);
}

.text-sm {
    font-size: 13px;
}

.text-lg {
    font-size: 18px;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}
