/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background-color: #060c21;
    color: #fff;
    overflow-x: hidden;
}

.dashboard {
    width: 100%;
    min-height: 100vh;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    color: #3c95ff;
    font-size: 28px;
    position: relative;
    display: inline-block;
}

header h1:before, header h1:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, rgba(60,149,255,0), rgba(60,149,255,1));
}

header h1:before {
    left: -60px;
}

header h1:after {
    right: -60px;
    background: linear-gradient(90deg, rgba(60,149,255,1), rgba(60,149,255,0));
}

.main-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
    max-width: 1800px;
    margin: 0 auto;
}

/* 中央内阁区域 */
.center-cabinet {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.center-icon {
    position: relative;
    z-index: 5;
}

.circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(9, 21, 51, 0.8);
    border: 2px solid #3c95ff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 20px rgba(60, 149, 255, 0.5);
}

.circle span {
    font-size: 18px;
    font-weight: bold;
    color: #3c95ff;
}

.function-icons {
    position: absolute;
    width: 350px;
    height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.icon-item {
    position: absolute;
    width: 80px;
    height: 80px;
}

.icon-item.production {
    top: 10%;
    left: 20%;
}

.icon-item.test {
    bottom: 10%;
    right: 20%;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(9, 21, 51, 0.8);
    border: 2px solid #2d6cdc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3c95ff;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(45, 108, 220, 0.3);
}

.stat-numbers {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 100px;
}

.stat-item {
    text-align: center;
    padding: 10px;
}

.stat-title {
    font-size: 14px;
    color: #a3c5ff;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(180deg, #3c95ff, #0f43a9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 图表区域 */
.chart-section {
    background-color: rgba(9, 21, 51, 0.5);
    border: 1px solid #1e3d7a;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(14, 62, 143, 0.5);
}

/* 图表/列表头部样式 */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.chart-header:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(60,149,255,0), rgba(60,149,255,0.8), rgba(60,149,255,0));
}

.chart-header h3 {
    font-size: 16px;
    color: #3c95ff;
    position: relative;
    padding-left: 15px;
}

.chart-header h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 16px;
    background-color: #3c95ff;
    border-radius: 2px;
}

.pagination {
    font-size: 14px;
    color: #a3c5ff;
}

.chart-content {
    padding: 10px 0;
    position: relative;
}

.chart-title {
    font-size: 14px;
    color: #a3c5ff;
    margin-bottom: 10px;
}

.chart {
    width: 100%;
    height: 250px;
}

/* 轮播图表 */
.chart-carousel {
    position: relative;
    overflow: hidden;
}

.chart-slide {
    display: none;
}

.chart-slide.active {
    display: block;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.prev-btn, .next-btn {
    background: none;
    border: none;
    color: #3c95ff;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
}

.dots-container {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #1e3d7a;
    cursor: pointer;
}

.dot.active {
    background-color: #3c95ff;
}

/* 任务列表区域 */
.task-lists {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.task-list-container {
    background-color: rgba(9, 21, 51, 0.5);
    border: 1px solid #1e3d7a;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(14, 62, 143, 0.5);
    height: 400px;
    display: flex;
    flex-direction: column;
}

.task-carousel {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.task-pages-wrapper {
    position: absolute;
    width: 100%;
    transition: transform 0.6s ease-out;
}

.task-page {
    width: 100%;
    padding-bottom: 5px;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

.task-table thead {
    background-color: rgba(30, 61, 122, 0.5);
    position: sticky;
    top: 0;
    z-index: 10;
}

.task-table th {
    text-align: left;
    padding: 10px 5px;
    color: #a3c5ff;
    font-weight: normal;
}

.task-table td {
    padding: 10px 5px;
    border-bottom: 1px solid rgba(30, 61, 122, 0.3);
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-name-col {
    width: 75%;
}

/* 响应式布局 */
@media (max-width: 1600px) {
    .task-lists {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1000px) {
    .task-lists {
        grid-template-columns: 1fr;
    }
    
    .stat-numbers {
        flex-direction: column;
        gap: 15px;
    }
}