/* ==================== 全局设计系统 ==================== */
:root {
    --blue-50: #e8f5e9;
    --blue-100: #c8e6c9;
    --blue-200: #a5d6a7;
    --blue-300: #81c784;
    --blue-500: #4caf50;
    --blue-600: #43a047;
    --blue-700: #388e3c;
    --blue-800: #2e7d32;
    --blue-900: #1b5e20;
    --green-50: #e6f4ea;
    --green-100: #ceead6;
    --green-600: #1e8e3e;
    --green-700: #188038;
    --red-50: #fce8e6;
    --red-100: #fad2cf;
    --red-500: #ea4335;
    --red-600: #d93025;
    --red-700: #c5221f;
    --slate-50: #f8f9fa;
    --slate-100: #f1f3f4;
    --slate-200: #e8eaed;
    --slate-300: #dadce0;
    --slate-400: #bdc1c6;
    --slate-500: #9aa0a6;
    --slate-600: #80868b;
    --slate-700: #5f6368;
    --slate-800: #3c4043;
    --slate-900: #202124;
    --shadow-sm: 0 1px 3px rgba(60, 64, 67, .08), 0 1px 2px rgba(60, 64, 67, .04);
    --shadow-md: 0 4px 6px rgba(60, 64, 67, .06), 0 2px 4px rgba(60, 64, 67, .04);
    --shadow-lg: 0 8px 24px rgba(60, 64, 67, .08), 0 4px 12px rgba(60, 64, 67, .04);
    --shadow-xl: 0 12px 40px rgba(60, 64, 67, .12), 0 8px 20px rgba(60, 64, 67, .06);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--slate-50);
    color: var(--slate-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ==================== 滚动条 ==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

/* ==================== 动画 ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade {
    animation: fadeIn .3s ease-out;
}

.animate-scale {
    animation: fadeInScale .25s ease-out;
}

.animate-slide {
    animation: slideInRight .3s ease-out;
}

/* ==================== 登录页 ==================== */
.login-bg {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 50%, #388e3c 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    max-width: 900px;
    width: 100%;
}

.login-form-side {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.login-brand-icon {
    width: 48px;
    height: 48px;
    background: #43a047;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    color: #fff;
    font-weight: 900;
    font-size: 22px;
}

.login-brand span {
    font-size: 22px;
    font-weight: 800;
    color: var(--slate-800);
    letter-spacing: -0.5px;
}

.login-title {
    font-size: 30px;
    font-weight: 900;
    color: var(--slate-900);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: var(--slate-500);
    margin-bottom: 32px;
    font-size: 14px;
}

.login-input {
    width: 100%;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all .2s;
    box-shadow: var(--shadow-sm);
    font-family: inherit;
}

.login-input:focus {
    border-color: #43a047;
    box-shadow: 0 0 0 3px rgba(67, 160, 71, .12);
}

.login-input-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-700);
    margin-bottom: 8px;
}

.login-btn {
    width: 100%;
    background: #43a047;
    color: #fff;
    padding: 16px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all .15s;
    box-shadow: var(--shadow-lg);
    font-family: inherit;
}

.login-btn:hover {
    background: #388e3c;
}

.login-btn:active {
    transform: scale(0.98);
}

.login-hint {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--slate-100);
    text-align: center;
    color: var(--slate-400);
    font-size: 12px;
    font-weight: 500;
}

.login-art-side {
    flex: 1;
    background: #e8f5e9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    text-align: center;
}

.login-art-circle {
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, .04);
    border: 8px solid #c8e6c9;
}

.login-art-circle svg {
    color: #43a047;
    opacity: .2;
}

.login-art-title {
    font-size: 22px;
    font-weight: 800;
    color: #1b5e20;
    margin-bottom: 12px;
}

.login-art-desc {
    color: #2e7d32;
    opacity: .7;
    font-size: 14px;
}

@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
    }

    .login-art-side {
        display: none;
    }
}

/* ==================== 主布局 ==================== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ==================== 侧边栏 ==================== */
.sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid var(--slate-200);
    flex-shrink: 0;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    padding-right: 16px;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.sidebar-brand {
    padding: 32px 32px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    background: var(--blue-600);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    color: #fff;
    font-weight: 900;
    font-size: 18px;
}

.sidebar-brand span {
    font-size: 18px;
    font-weight: 700;
    color: var(--slate-700);
    letter-spacing: -0.3px;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 32px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-600);
    border-radius: 0 50px 50px 0;
    transition: all .15s;
    font-family: inherit;
    text-align: left;
}

.sidebar-item:hover {
    background: var(--slate-100);
}

.sidebar-item.active {
    background: var(--blue-50);
    color: var(--blue-600);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--slate-100);
}

.sidebar-logout {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 32px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--red-600);
    border-radius: var(--radius-md);
    transition: all .15s;
    font-family: inherit;
}

.sidebar-logout:hover {
    background: var(--red-50);
}

/* ==================== 主内容区 ==================== */
.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--slate-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--slate-600);
    font-size: 14px;
    text-transform: uppercase;
}

.user-info-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-800);
}

.user-info-role {
    font-size: 10px;
    font-weight: 700;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.system-tag {
    color: var(--slate-400);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ==================== 页面标题 ==================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.page-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--slate-800);
    letter-spacing: -0.5px;
}

.page-subtitle {
    color: var(--slate-500);
    margin-top: 4px;
    font-weight: 500;
    font-size: 14px;
}

.page-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--blue-600);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
    background: var(--blue-700);
}

.btn-secondary {
    background: #fff;
    border-color: var(--slate-300);
    color: var(--slate-700);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--slate-50);
}

.btn-danger {
    background: var(--red-50);
    color: var(--red-600);
    border-color: var(--red-100);
    font-size: 12px;
    padding: 6px 12px;
}

.btn-danger:hover:not(:disabled) {
    background: var(--red-100);
}

.btn-link {
    background: none;
    color: var(--blue-600);
    padding: 6px 12px;
    font-size: 12px;
}

.btn-link:hover {
    color: var(--blue-800);
}

.btn-dark {
    background: var(--slate-900);
    color: #fff;
    box-shadow: var(--shadow-xl);
}

.btn-dark:hover:not(:disabled) {
    background: #000;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 15px;
}

.btn-icon {
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--slate-300);
    transition: all .15s;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.btn-icon:hover {
    color: var(--blue-600);
}

.btn-icon.danger:hover {
    color: var(--red-600);
}

.btn-icon.green:hover {
    color: var(--green-600);
}

/* ==================== 搜索框 ==================== */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input {
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    transition: all .2s;
    width: 220px;
    font-family: inherit;
}

.search-input:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, .08);
}

/* ==================== 卡片/表格 ==================== */
.card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-300);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.card-highlight {
    border: 2px solid var(--blue-100);
    box-shadow: var(--shadow-lg);
}

table {
    width: 100%;
    text-align: left;
    font-size: 13px;
    border-collapse: collapse;
}

thead {
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
}

th {
    padding: 14px 16px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
    white-space: nowrap;
}

td {
    padding: 14px 16px;
    white-space: nowrap;
    font-weight: 500;
    color: var(--slate-700);
}

tbody tr {
    border-bottom: 1px solid var(--slate-100);
    transition: background .1s;
}

tbody tr:hover {
    background: rgba(26, 115, 232, .02);
}

tbody tr:hover .row-actions {
    opacity: 1;
}

.row-actions {
    opacity: 0;
    transition: opacity .15s;
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

/* ==================== Badge ==================== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 800;
}

.badge-green {
    background: var(--green-50);
    color: var(--green-700);
}

.badge-red {
    background: var(--red-50);
    color: var(--red-700);
}

.badge-gray {
    background: var(--slate-100);
    color: var(--slate-500);
}

.badge-blue {
    background: var(--blue-50);
    color: var(--blue-600);
}

/* ==================== 进度条 ==================== */
.progress-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.progress-bar {
    width: 100px;
    height: 6px;
    background: var(--slate-200);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--blue-600);
    border-radius: 10px;
    transition: width .4s ease;
}

.progress-text {
    font-size: 10px;
    font-weight: 800;
    color: var(--slate-700);
}

/* ==================== 统计卡片 ==================== */
.stat-cards {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.stat-card {
    padding: 16px 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.stat-card-blue {
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
}

.stat-card-gray {
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
}

.stat-label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.stat-card-blue .stat-label {
    color: var(--blue-600);
}

.stat-card-gray .stat-label {
    color: var(--slate-500);
}

.stat-value {
    font-size: 28px;
    font-weight: 900;
}

.stat-card-blue .stat-value {
    color: var(--blue-900);
}

.stat-card-gray .stat-value {
    color: var(--slate-900);
}

/* ==================== 筛选下拉 ==================== */
.filter-wrap {
    position: relative;
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
}

.filter-btn {
    padding: 3px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
}

.filter-btn:hover {
    background: var(--slate-200);
}

.filter-btn.active {
    color: var(--blue-600);
}

.filter-btn.inactive {
    color: var(--slate-400);
    opacity: .6;
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    min-width: 120px;
    padding: 4px;
    margin-top: 6px;
}

.filter-option {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--slate-800);
    font-weight: 500;
    transition: background .1s;
}

.filter-option:hover {
    background: var(--slate-100);
}

.filter-option.active {
    color: var(--blue-600);
    background: var(--blue-50);
    font-weight: 700;
}

/* ==================== 模态框 ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-box {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-xl);
    animation: fadeInScale .25s ease-out;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-box.wide {
    max-width: 600px;
}

.modal-box.narrow {
    max-width: 380px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--slate-50);
}

.modal-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--slate-800);
    flex: 1;
    text-align: center;
}

.modal-close {
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background .15s;
    display: flex;
    align-items: center;
}

.modal-close:hover {
    background: var(--slate-200);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

/* ==================== 表单 ==================== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-600);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    transition: all .2s;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, .08);
}

.form-input-highlight {
    background: var(--slate-50);
    font-weight: 700;
    border-radius: var(--radius-lg);
    padding: 16px;
}

.form-select {
    width: 100%;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    background: #fff;
    font-family: inherit;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 800;
    background: var(--slate-900);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all .15s;
    box-shadow: var(--shadow-xl);
    margin-top: 12px;
    font-family: inherit;
}

.form-submit:hover {
    background: #000;
}

.form-submit:active {
    transform: scale(0.98);
}

.form-submit:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.error-text {
    color: var(--red-600);
    font-size: 11px;
    font-weight: 700;
    margin-top: 4px;
}

/* ==================== 确认弹窗 ==================== */
.confirm-icon {
    display: flex;
    justify-content: center;
    color: var(--red-500);
    margin-bottom: 12px;
}

.confirm-msg {
    color: var(--slate-600);
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.confirm-actions {
    display: flex;
    gap: 12px;
}

.confirm-actions .btn {
    flex: 1;
}

/* ==================== 站点详情 卡片头部 ==================== */
.site-header-card {
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    border: 2px solid var(--blue-50);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
}

.site-header-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--slate-800);
    letter-spacing: -0.5px;
}

.site-header-tag {
    color: var(--blue-600);
    font-weight: 900;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 8px;
}

.site-info-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    font-size: 12px;
    align-items: center;
}

.site-info-label {
    font-size: 9px;
    font-weight: 900;
    color: var(--slate-400);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.site-info-value {
    font-weight: 700;
    color: var(--slate-800);
    font-family: 'Inter', monospace;
}

/* ==================== 任务模块卡片 ==================== */
.task-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.task-module {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.task-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-module-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--slate-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-module-title .phase-num {
    color: var(--blue-600);
    font-weight: 900;
}

.task-module.phase5 {
    border: 2px solid var(--blue-600);
    background: rgba(232, 240, 254, .15);
}

/* ==================== 状态切换 ==================== */
.status-toggle {
    display: flex;
    background: var(--slate-100);
    padding: 3px;
    border-radius: var(--radius-full);
    border: 1px solid var(--slate-200);
}

.status-toggle button {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all .15s;
    background: none;
    color: var(--slate-400);
    font-family: inherit;
}

.status-toggle button.active-pass {
    background: #fff;
    color: var(--green-600);
    box-shadow: var(--shadow-sm);
}

.status-toggle button.active-fail {
    background: #fff;
    color: var(--red-600);
    box-shadow: var(--shadow-sm);
}

/* ==================== 文件上传区域 ==================== */
.upload-zone {
    border: 1px dashed var(--slate-300);
    background: rgba(248, 249, 250, .5);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
}

.upload-zone:hover {
    background: #fff;
    border-color: var(--blue-500);
}

.upload-zone svg {
    margin: 0 auto 4px;
    color: var(--slate-400);
}

.upload-zone:hover svg {
    color: var(--blue-500);
}

.upload-zone p {
    font-size: 10px;
    font-weight: 600;
    color: var(--slate-500);
}

.upload-zone p.has-file {
    color: var(--blue-600);
}

/* ==================== 备注文本框 ==================== */
.remarks-textarea {
    width: 100%;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 12px;
    font-size: 12px;
    font-family: inherit;
    height: 64px;
    outline: none;
    transition: all .2s;
    resize: vertical;
}

.remarks-textarea:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, .08);
}

/* ==================== 施工验收大卡片 ==================== */
.phase4-card {
    grid-column: 1 / -1;
    border: 2px solid var(--blue-100);
    display: flex;
    overflow: hidden;
}

.phase4-left {
    flex: 1;
    padding: 32px;
    border-right: 1px solid var(--slate-100);
}

.phase4-right {
    flex: 1;
    padding: 32px;
    background: rgba(248, 249, 250, .5);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.phase4-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--slate-800);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 40px;
}

.checklist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--slate-50);
    font-size: 12px;
    font-weight: 600;
}

.checklist-toggle {
    display: flex;
    background: var(--slate-50);
    border-radius: 8px;
    padding: 2px;
    border: 1px solid var(--slate-100);
}

.checklist-toggle button {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    background: none;
    color: var(--slate-400);
    transition: all .15s;
    font-family: inherit;
}

.checklist-toggle button.active-ok {
    background: #fff;
    color: var(--green-600);
    box-shadow: var(--shadow-sm);
}

.checklist-toggle button.active-no {
    background: #fff;
    color: var(--red-500);
    box-shadow: var(--shadow-sm);
}

.online-toggle {
    display: flex;
    background: var(--blue-50);
    border-radius: 8px;
    padding: 2px;
    border: 1px solid var(--blue-100);
}

.online-toggle button {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 900;
    border: none;
    cursor: pointer;
    background: none;
    color: var(--blue-300);
    transition: all .15s;
    font-family: inherit;
}

.online-toggle button.active-yes {
    background: var(--blue-600);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.online-toggle button.active-no-online {
    background: var(--blue-600);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.phase4-conclusion {
    border-top: 1px solid var(--slate-200);
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 800;
}

.phase4-conclusion label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 800;
}

.phase4-conclusion .label-pass {
    color: var(--green-700);
}

.phase4-conclusion .label-fail {
    color: var(--red-500);
}

/* ==================== 站点验收 最终闭环 ==================== */
.phase5-acceptance {
    padding: 16px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--blue-200);
    box-shadow: var(--shadow-sm);
}

.phase5-title {
    font-size: 10px;
    font-weight: 900;
    color: var(--blue-800);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: center;
    margin-bottom: 12px;
}

.phase5-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 0;
    transition: color .15s;
}

.phase5-option:hover.opt-pass {
    color: var(--blue-600);
}

.phase5-option:hover.opt-fail {
    color: var(--red-600);
}

.phase5-option input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ==================== 导入错误表格 ==================== */
.import-error-banner {
    padding: 12px 16px;
    background: var(--red-50);
    border: 1px solid var(--red-100);
    border-radius: var(--radius-lg);
    color: var(--red-700);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ==================== 项目分配 ==================== */
.assign-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-lg);
    padding: 8px;
    background: var(--slate-50);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .04);
}

.assign-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all .15s;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid transparent;
}

.assign-item:hover {
    background: #fff;
    border-color: var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.assign-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--blue-600);
}

/* ==================== 返回按钮 ==================== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--slate-500);
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 20px;
    transition: color .15s;
    background: none;
    border: none;
    font-family: inherit;
}

.back-link:hover {
    color: var(--blue-600);
}

/* ==================== 表格横向滚动 ==================== */
.table-scroll {
    overflow-x: auto;
}

.table-scroll table {
    font-size: 11px;
}

.sticky-col {
    position: sticky;
    right: 0;
    background: #fff;
    box-shadow: -4px 0 8px rgba(0, 0, 0, .04);
}

thead .sticky-col {
    background: var(--slate-50);
}

tbody tr:hover .sticky-col {
    background: rgba(232, 240, 254, .04);
}

/* ==================== toast 通知 ==================== */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--slate-900);
    color: #fff;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    animation: fadeIn .3s ease-out;
}

.toast.success {
    background: var(--green-700);
}

.toast.error {
    background: var(--red-600);
}

/* ==================== 设备类型新增 ==================== */
.device-type-add {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.device-type-add input {
    flex: 1;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 12px;
    font-family: inherit;
    outline: none;
}

.device-type-add input:focus {
    border-color: var(--blue-600);
}

/* ==================== 分页组件 ==================== */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.pagination-info {
    font-size: 13px;
    color: var(--slate-500);
    font-weight: 500;
}

.pagination-info strong {
    color: var(--slate-800);
    font-weight: 800;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--slate-700);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled):not(.active) {
    background: var(--slate-50);
    border-color: var(--blue-500);
    color: var(--blue-600);
}

.pagination-btn.active {
    background: var(--blue-600);
    border-color: var(--blue-600);
    color: #fff;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.pagination-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.pagination-ellipsis {
    width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    font-size: 14px;
}

/* ==================== Responsive ==================== */
@media (max-width: 1200px) {
    .task-modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding-right: 0;
    }

    .sidebar-brand span,
    .sidebar-item span,
    .sidebar-logout span {
        display: none;
    }

    .sidebar-item,
    .sidebar-logout {
        padding: 14px;
        justify-content: center;
    }

    .main-content {
        padding: 20px;
    }

    .task-modules-grid {
        grid-template-columns: 1fr;
    }

    .phase4-card {
        flex-direction: column;
    }

    .checklist-grid {
        grid-template-columns: 1fr;
    }

    .site-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}