/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #eef1f6;
    min-width: 1280px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 顶部导航栏 */
.top-header {
    height: 60px;
    background: linear-gradient(90deg, #2b6dbf 0%, #3a7bd5 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
}

.logo-icon {
    font-size: 24px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
}

.nav-item:hover {
    color: #fff;
}

.nav-item.active {
    color: #fff;
    font-weight: 600;
}

.nav-item.active::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    transition: color 0.2s;
}

.header-link:hover {
    color: #fff;
}

/* 页面主体 */
.main-container {
    background-color: #fff;
    margin: 16px 24px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 页面标题区 */
.page-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ebeef5;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    position: relative;
    padding-left: 12px;
}

.page-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background-color: #409eff;
    border-radius: 2px;
}

.page-subtitle {
    font-size: 12px;
    color: #909399;
}

/* 方案标签 */
.plan-tabs {
    padding: 0 20px;
    border-bottom: 1px solid #e4e7ed;
    display: flex;
    gap: 32px;
}

.tab-item {
    padding: 14px 4px;
    font-size: 14px;
    color: #606266;
    position: relative;
    transition: color 0.2s;
}

.tab-item:hover {
    color: #409eff;
}

.tab-item.active {
    color: #409eff;
    font-weight: 600;
}

.tab-item.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #409eff;
}

/* 方案类型选择器（模拟/正式） */
.tab-item.mode-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 14px 4px;
    color: #606266;
}

.tab-item.mode-tab input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tab-item.mode-tab .radio-mark {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #dcdfe6;
    background-color: #fff;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.tab-item.mode-tab:has(input:checked) {
    color: #409eff;
    font-weight: 600;
}

.tab-item.mode-tab:has(input:checked) .radio-mark {
    border-color: #409eff;
}

.tab-item.mode-tab:has(input:checked) .radio-mark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #409eff;
}

/* ★ 2026-09-22：开关挪到「我的资料」页后，本页只留一个**只读指示**（<a> 形态，没有 input）。
   下面几条让它在没有 :has(input) 的情况下也显得「已选中」并明确可点。 */
.tab-item.mode-tab[href] { text-decoration: none; }

.tab-item.mode-tab[href] .radio-mark {
    border-color: #409eff;
}

.tab-item.mode-tab[href] .radio-mark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #409eff;
}

.tab-item.mode-tab[href]:hover { color: #409eff; }

/* 正式方案：整条染红，提醒「这份是要打印/导出的」 */
.tab-item.mode-tab[href].formal { color: #f56c6c; }
.tab-item.mode-tab[href].formal .radio-mark { border-color: #f56c6c; }
.tab-item.mode-tab[href].formal .radio-mark::after { background-color: #f56c6c; }

/* 筛选区 */
.filter-section {
    padding: 20px;
    border-bottom: 1px solid #ebeef5;
}

.filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-item label {
    font-size: 13px;
    color: #606266;
    white-space: nowrap;
}

.filter-item select {
    height: 32px;
    padding: 0 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background-color: #fff;
    color: #606266;
    font-size: 13px;
    min-width: 100px;
    outline: none;
    cursor: pointer;
}

.filter-item select:hover {
    border-color: #c0c4cc;
}

.filter-item select:focus {
    border-color: #409eff;
}

.btn-search {
    height: 32px;
    padding: 0 20px;
    background-color: #409eff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-search:hover {
    background-color: #66b1ff;
}

.filter-summary {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #ebeef5;
    font-size: 13px;
    color: #606266;
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-summary strong {
    color: #409eff;
    font-size: 15px;
}

.summary-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.summary-dot.red {
    background-color: #f56c6c;
}

.summary-dot.green {
    background-color: #67c23a;
}

.summary-dot.blue {
    background-color: #409eff;
}

/* 表格区 */
.table-section {
    padding: 0 20px 20px;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table thead th {
    background-color: #409eff;
    color: #fff;
    font-weight: 500;
    text-align: center;
    padding: 12px 10px;
    white-space: nowrap;
}

.data-table tbody td {
    padding: 12px 10px;
    text-align: center;
    color: #606266;
    border-bottom: 1px solid #ebeef5;
}

.data-table tbody tr:hover {
    background-color: #f5f7fa;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.link-blue {
    color: #409eff;
    transition: color 0.2s;
}

.link-blue:hover {
    color: #66b1ff;
    text-decoration: underline;
}

.status-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.status-not-started {
    background-color: #fdf6ec;
    color: #e6a23c;
}

/* 表格空状态 */
.task-empty {
    text-align: center;
    color: #909399;
    padding: 40px 0;
    font-size: 14px;
}

/* 按钮 */
.btn-sm {
    height: 28px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 2px;
}

.btn-primary {
    background-color: #409eff;
    color: #fff;
    border: 1px solid #409eff;
}

.btn-primary:hover {
    background-color: #66b1ff;
    border-color: #66b1ff;
}

.btn-default {
    background-color: #fff;
    color: #606266;
    border: 1px solid #dcdfe6;
}

.btn-default:hover {
    color: #409eff;
    border-color: #c6e2ff;
    background-color: #ecf5ff;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* 分页 */
.pagination-section {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #ebeef5;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-item {
    min-width: 30px;
    height: 28px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 13px;
    color: #606266;
    background-color: #fff;
    transition: all 0.2s;
}

.page-item:hover {
    color: #409eff;
    border-color: #409eff;
}

.page-item.active {
    background-color: #409eff;
    color: #fff;
    border-color: #409eff;
}

.page-ellipsis {
    color: #909399;
    font-size: 13px;
    padding: 0 4px;
}

.page-info {
    font-size: 13px;
    color: #606266;
}

/* 底部 */
.page-footer {
    text-align: center;
    padding: 20px;
    color: #909399;
    font-size: 12px;
    display: flex;
    justify-content: center;
    gap: 24px;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #c0c4cc;
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background-color: #f0f2f5;
}
