* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    transform: scale(0.8);
    transform-origin: 0 0;
    width: 125vw;
    min-height: 125vh;
    overflow-x: hidden;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 9px;
    background: #f0f2f5;
    color: #1f2937;
    min-height: 100vh;
    overflow-x: hidden;
}

.dashboard {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 欢迎栏 */
.welcome-bar {
    margin-bottom: 24px;
}

.welcome-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.welcome-text p {
    color: #6b7280;
    font-size: 14px;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.stat-card.blue .stat-icon { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.stat-card.green .stat-icon { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.stat-card.orange .stat-icon { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.stat-card.purple .stat-icon { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
}

/* 两列布局 */
.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* 面板 */
.panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1f2937;
}

.panel-header i {
    color: #10b981;
}

.view-more {
    margin-left: auto;
    font-size: 13px;
    color: #10b981;
    text-decoration: none;
}

.view-more:hover {
    text-decoration: underline;
}

.panel-body {
    padding: 20px;
}

/* 资源使用 */
.resource-item {
    margin-bottom: 16px;
}

.resource-item:last-child {
    margin-bottom: 0;
}

.resource-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: #4b5563;
}

.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-fill.blue { background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%); }
.progress-fill.green { background: linear-gradient(90deg, #10b981 0%, #059669 100%); }
.progress-fill.orange { background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%); }

/* 快捷操作 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 10px;
    text-decoration: none;
    color: #4b5563;
    transition: all 0.2s ease;
}

.quick-action:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.quick-action i {
    font-size: 24px;
    color: #6b7280;
}

.quick-action:hover i {
    color: #10b981;
}

.quick-action span {
    font-size: 13px;
}

/* 日志列表 */
.log-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.log-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.log-icon {
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-top: 6px;
}

.log-icon i {
    font-size: 8px;
    color: #10b981;
}

.log-content {
    flex: 1;
}

.log-text {
    font-size: 13px;
    color: #1f2937;
    margin-bottom: 4px;
}

.log-time {
    font-size: 12px;
    color: #9ca3af;
}

/* 公告列表 */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.announcement-item {
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #10b981;
}

.announcement-title {
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 4px;
    font-weight: 500;
}

.announcement-time {
    font-size: 12px;
    color: #9ca3af;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
}

/* 平板响应式 (768px - 1024px) */
@media (max-width: 1024px) {
    .dashboard {
        padding: 24px;
    }
    .welcome-text h1 {
        font-size: 26px;
    }
    .welcome-text p {
        font-size: 16px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .stat-card {
        padding: 24px;
        gap: 16px;
    }
    .stat-icon {
        width: 56px;
        height: 56px;
        font-size: 26px;
    }
    .stat-value {
        font-size: 32px;
    }
    .stat-label {
        font-size: 15px;
    }
    .two-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .panel-header {
        padding: 16px 20px;
        font-size: 16px;
    }
    .panel-body {
        padding: 20px;
    }
    .resource-info {
        font-size: 15px;
    }
    .quick-actions {
        gap: 16px;
    }
    .quick-action {
        padding: 20px;
        gap: 12px;
    }
    .quick-action i {
        font-size: 28px;
    }
    .quick-action span {
        font-size: 15px;
    }
}

/* 手机响应式 (小于 768px) */
@media (max-width: 768px) {
    .dashboard {
        padding: 20px;
    }
    .welcome-bar {
        margin-bottom: 24px;
    }
    .welcome-text h1 {
        font-size: 24px;
    }
    .welcome-text p {
        font-size: 15px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        margin-bottom: 24px;
    }
    .stat-card {
        padding: 20px;
        gap: 14px;
    }
    .stat-icon {
        width: 52px;
        height: 52px;
        font-size: 24px;
        border-radius: 12px;
    }
    .stat-value {
        font-size: 28px;
    }
    .stat-label {
        font-size: 14px;
    }
    .two-columns {
        gap: 18px;
        margin-bottom: 18px;
    }
    .panel {
        border-radius: 12px;
    }
    .panel-header {
        padding: 16px 18px;
        font-size: 16px;
    }
    .panel-body {
        padding: 18px;
    }
    .resource-item {
        margin-bottom: 16px;
    }
    .resource-info {
        font-size: 14px;
    }
    .progress-bar {
        height: 10px;
    }
    .quick-actions {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .quick-action {
        padding: 16px 12px;
        gap: 10px;
    }
    .quick-action i {
        font-size: 24px;
    }
    .quick-action span {
        font-size: 13px;
    }
    .log-item {
        padding: 14px;
        gap: 12px;
    }
    .log-text {
        font-size: 14px;
    }
    .log-time {
        font-size: 13px;
    }
    .announcement-item {
        padding: 14px;
    }
    .announcement-title {
        font-size: 14px;
    }
    .announcement-time {
        font-size: 13px;
    }
    .view-more {
        font-size: 14px;
    }
}

/* 小屏手机 (小于 480px) */
@media (max-width: 480px) {
    .dashboard {
        padding: 16px;
    }
    .welcome-text h1 {
        font-size: 20px;
    }
    .welcome-text p {
        font-size: 14px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stat-card {
        padding: 16px;
        gap: 12px;
    }
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    .stat-value {
        font-size: 26px;
    }
    .stat-label {
        font-size: 13px;
    }
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .quick-action {
        padding: 14px 10px;
    }
    .quick-action i {
        font-size: 24px;
    }
    .quick-action span {
        font-size: 12px;
    }
    .panel-header {
        padding: 14px 16px;
        font-size: 15px;
    }
    .panel-body {
        padding: 16px;
    }
    .view-more {
        font-size: 13px;
    }
    .resource-info {
        font-size: 13px;
    }
}
