.ops-page {
    --ops-ink: #203044;
    --ops-muted: #718096;
    --ops-line: #e6ebf2;
    --ops-blue: #4376c5;
    --ops-blue-soft: #edf4ff;
}

.ops-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.ops-page-kicker {
    color: var(--ops-blue);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.ops-page-title {
    color: var(--ops-ink);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin: 0;
}

.ops-page-description {
    color: var(--ops-muted);
    margin: 7px 0 0;
}

.ops-summary-strip {
    display: grid;
    grid-template-columns: 1.35fr repeat(4, 1fr);
    background: #fff;
    border: 1px solid var(--ops-line);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 18px;
}

.ops-summary-item {
    min-height: 98px;
    padding: 18px 20px;
    border-right: 1px solid var(--ops-line);
}

.ops-summary-item:last-child { border-right: 0; }
.ops-summary-four { grid-template-columns: 1.35fr repeat(3, 1fr); }
.ops-summary-item.primary { background: var(--ops-blue-soft); }
.ops-summary-label { color: var(--ops-muted); font-size: 0.78rem; font-weight: 700; }
.ops-summary-value { color: var(--ops-ink); font-size: 1.8rem; font-weight: 800; line-height: 1.15; margin-top: 7px; }
.ops-summary-value.ops-summary-text { font-size: 1.12rem; line-height: 1.35; overflow-wrap: anywhere; }
.ops-summary-note { color: #94a3b8; font-size: 0.72rem; margin-top: 4px; }

.ops-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1.8fr) repeat(3, minmax(130px, 0.7fr)) auto;
    gap: 10px;
    align-items: center;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--ops-line);
    border-radius: 14px 14px 0 0;
}

.ops-search { position: relative; }
.ops-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.ops-search input { padding-left: 38px; }

.ops-table-shell {
    background: #fff;
    border: 1px solid var(--ops-line);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    overflow: auto;
}

.ops-table { min-width: 1180px; margin: 0; }
.ops-table thead th {
    background: #f8fafc;
    border-bottom: 1px solid var(--ops-line);
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 13px 14px;
    white-space: nowrap;
}
.ops-table tbody td { border-color: #edf1f5; color: #475569; padding: 14px; vertical-align: middle; }
.ops-table tbody tr { transition: background-color .2s ease; }
.ops-table tbody tr:hover { background: #f8fbff; }
.ops-school-link { color: var(--ops-ink); font-weight: 800; text-decoration: none; }
.ops-school-link:hover { color: var(--ops-blue); }
.ops-school-meta { color: #94a3b8; font-size: 0.72rem; margin-top: 3px; }

.ops-school-results {
    padding: 16px;
    background: #fff;
    border: 1px solid var(--ops-line);
    border-top: 0;
    border-radius: 0 0 14px 14px;
}
.ops-school-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ops-school-card {
    min-width: 0;
    border: 1px solid var(--ops-line);
    border-radius: 13px;
    padding: 17px;
    background: #fff;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ops-school-card:hover { transform: translateY(-2px); border-color: #bfd1e8; box-shadow: 0 12px 28px rgba(53, 82, 116, .07); }
.ops-school-card-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.ops-school-card-title { border: 0; padding: 0; background: transparent; color: var(--ops-ink); font-size: 1rem; font-weight: 800; text-align: left; }
.ops-school-card-title:hover { color: var(--ops-blue); }
.ops-school-card-location { color: #94a3b8; font-size: 0.74rem; margin-top: 5px; }
.ops-school-card-location i, .ops-school-card-tags i { color: var(--ops-blue); margin-right: 5px; }
.ops-school-card-tags { display: flex; flex-wrap: wrap; gap: 8px 16px; color: #64748b; font-size: 0.78rem; margin-top: 15px; }
.ops-school-card-metrics { display: grid; grid-template-columns: 1.05fr 1.25fr .8fr; gap: 0; margin-top: 15px; border: 1px solid var(--ops-line); border-radius: 10px; overflow: hidden; background: #f8fafc; }
.ops-school-card-metrics div { min-width: 0; padding: 11px 12px; border-right: 1px solid var(--ops-line); }
.ops-school-card-metrics div:last-child { border-right: 0; }
.ops-school-card-metrics strong, .ops-school-card-metrics span { display: block; }
.ops-school-card-metrics strong { color: var(--ops-ink); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-school-card-metrics span { color: #94a3b8; font-size: .68rem; margin-top: 3px; }
.ops-school-card-note { min-height: 67px; margin-top: 14px; }
.ops-school-card-note > span { color: #94a3b8; font-size: .7rem; font-weight: 700; }
.ops-school-card-note p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #526173; font-size: .8rem; line-height: 1.6; margin: 4px 0 0; }
.ops-school-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 13px; border-top: 1px solid var(--ops-line); color: #94a3b8; font-size: .7rem; }

.ops-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 9px;
    white-space: nowrap;
}
.ops-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ops-status-normal { color: #13835e; background: #e8f7f1; }
.ops-status-occasional { color: #b56c09; background: #fff4dd; }
.ops-status-pending { color: #64748b; background: #eef2f7; }
.ops-status-abnormal { color: #c24154; background: #fff0f2; }
.ops-status-paused { color: #8757b4; background: #f5effb; }
.ops-status-finished { color: #3d6c9f; background: #eaf3fb; }

.ops-empty {
    padding: 64px 24px;
    text-align: center;
    color: var(--ops-muted);
}
.ops-empty-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 15px;
    background: var(--ops-blue-soft);
    color: var(--ops-blue);
    font-size: 1.25rem;
}

.ops-detail-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--ops-line);
    border-radius: 16px 16px 0 0;
}
.ops-detail-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ops-detail-title { color: var(--ops-ink); font-size: 1.5rem; font-weight: 800; margin: 0; }
.ops-detail-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ops-muted); font-size: 0.82rem; margin-top: 10px; }
.ops-detail-meta i { color: var(--ops-blue); margin-right: 5px; }

.ops-detail-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 0 18px;
    background: #fff;
    border-left: 1px solid var(--ops-line);
    border-right: 1px solid var(--ops-line);
    border-bottom: 1px solid var(--ops-line);
}
.ops-detail-tab {
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--ops-muted);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 14px 16px 12px;
    white-space: nowrap;
}
.ops-detail-tab.active { color: var(--ops-blue); border-bottom-color: var(--ops-blue); }

.ops-detail-body {
    min-height: 390px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--ops-line);
    border-top: 0;
    border-radius: 0 0 16px 16px;
}
.ops-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ops-line); border-left: 1px solid var(--ops-line); }
.ops-info-item { min-height: 92px; padding: 17px; border-right: 1px solid var(--ops-line); border-bottom: 1px solid var(--ops-line); }
.ops-info-label { color: #94a3b8; font-size: 0.72rem; font-weight: 700; margin-bottom: 7px; }
.ops-info-value { color: var(--ops-ink); font-weight: 700; white-space: pre-wrap; overflow-wrap: anywhere; }
.ops-section-title { color: var(--ops-ink); font-size: 0.95rem; font-weight: 800; margin: 0 0 14px; }

.ops-timeline { position: relative; padding-left: 25px; }
.ops-timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: #dfe7f0; }
.ops-timeline-item { position: relative; padding: 0 0 22px 16px; }
.ops-timeline-item::before { content: ''; position: absolute; left: -21px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--ops-blue); box-shadow: 0 0 0 4px #eaf2ff; }
.ops-timeline-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 7px; }
.ops-timeline-date { color: var(--ops-ink); font-weight: 800; }
.ops-timeline-type { color: var(--ops-blue); background: var(--ops-blue-soft); border-radius: 6px; padding: 3px 7px; font-size: 0.7rem; font-weight: 800; }
.ops-timeline-content { color: #526173; line-height: 1.7; white-space: pre-wrap; }

.ops-case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ops-case-card { border: 1px solid var(--ops-line); border-radius: 13px; padding: 17px; background: #fff; transition: transform .2s ease, border-color .2s ease; }
.ops-case-card:hover { transform: translateY(-2px); border-color: #bfd1e8; }
.ops-case-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ops-case-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ops-material-type { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: .7rem; font-weight: 800; white-space: nowrap; color: #356da8; background: #eaf3fb; }
.ops-material-type-deep { color: #fff; background: linear-gradient(135deg, #7c3aed, #2563eb); box-shadow: 0 3px 10px rgba(79, 70, 229, .25); }
.ops-case-card-deep { border-color: #c4b5fd; box-shadow: 0 5px 18px rgba(79, 70, 229, .09); }
.ops-case-title { color: var(--ops-ink); font-weight: 800; margin: 0; }
.ops-case-school { color: var(--ops-blue); font-size: 0.75rem; font-weight: 800; margin-top: 5px; }
.ops-case-content { color: #64748b; font-size: 0.82rem; line-height: 1.65; margin: 13px 0; white-space: pre-wrap; }
.ops-case-footer { display: flex; justify-content: space-between; gap: 12px; color: #94a3b8; font-size: 0.72rem; }
.ops-case-person { display: flex; align-items: baseline; gap: 8px; margin-top: 13px; color: var(--ops-ink); }
.ops-case-person span { color: #94a3b8; font-size: .74rem; }
.ops-case-owner { color: #94a3b8; font-size: .72rem; margin-top: 9px; }
.ops-related-feedback { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ops-line); }
.ops-feedback-card { min-height: 250px; }
.ops-feedback-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; color: #64748b; font-size: .74rem; }
.ops-feedback-meta span { padding: 4px 7px; border-radius: 6px; background: #f1f5f9; }
.ops-feedback-images { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.ops-feedback-images img { width: 68px; height: 52px; object-fit: cover; border: 1px solid var(--ops-line); border-radius: 8px; }
.ops-priority { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.ops-priority-P0 { color: #b42318; background: #fff0f0; }
.ops-priority-P1 { color: #b56c09; background: #fff4dd; }
.ops-priority-P2 { color: #356da8; background: #eaf3fb; }
.ops-feedback-note { margin-top: 10px; color: #64748b; font-size: .72rem; line-height: 1.5; }
.ops-level { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.ops-level-高 { color: #b54708; background: #fff3dc; }
.ops-level-中 { color: #356da8; background: #eaf3fb; }
.ops-level-低 { color: #64748b; background: #eef2f7; }
.ops-case-image { display: block; position: relative; overflow: hidden; border: 1px solid var(--ops-line); border-radius: 10px; margin: 12px 0; background: #f8fafc; }
.ops-case-image img { display: block; width: 100%; height: 170px; object-fit: cover; transition: transform .25s ease; }
.ops-case-image span { position: absolute; right: 9px; bottom: 9px; padding: 5px 8px; border-radius: 7px; color: #fff; background: rgba(32, 48, 68, .78); font-size: .7rem; }
.ops-case-image:hover img { transform: scale(1.02); }

.ops-modal .modal-content { border: 0; border-radius: 16px; box-shadow: 0 22px 65px rgba(36, 55, 80, .16); }
.ops-modal .modal-header { background: #f8fafc; border-bottom-color: var(--ops-line); padding: 18px 22px; }
.ops-modal .modal-title { color: var(--ops-ink); font-weight: 800; }
.ops-modal .modal-body { padding: 22px; }
.ops-modal .modal-footer { border-top-color: var(--ops-line); padding: 14px 22px; }
.ops-form-section { color: var(--ops-blue); font-size: 0.74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 8px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--ops-line); }
.ops-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.ops-form-grid .span-2 { grid-column: span 2; }
.ops-form-grid label { color: #526173; font-size: 0.78rem; font-weight: 800; margin-bottom: 6px; }
.ops-subject-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px; border: 1px solid var(--ops-line); border-radius: 12px; background: #f8fafc; }
.ops-upload-current { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: #64748b; font-size: .75rem; }
.ops-upload-current img { width: 72px; height: 50px; object-fit: cover; border-radius: 8px; border: 1px solid var(--ops-line); }

@media (max-width: 992px) {
    .ops-summary-strip { grid-template-columns: repeat(2, 1fr); }
    .ops-summary-item { border-bottom: 1px solid var(--ops-line); }
    .ops-toolbar { grid-template-columns: 1fr 1fr; }
    .ops-toolbar .ops-search { grid-column: span 2; }
    .ops-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ops-school-grid, .ops-case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ops-subject-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .ops-page-header, .ops-detail-header { grid-template-columns: 1fr; align-items: stretch; }
    .ops-page-header { align-items: flex-start; }
    .ops-summary-strip, .ops-toolbar, .ops-info-grid, .ops-case-grid, .ops-school-grid, .ops-form-grid { grid-template-columns: 1fr; }
    .ops-toolbar .ops-search, .ops-form-grid .span-2 { grid-column: auto; }
    .ops-summary-item { border-right: 0; }
    .ops-subject-counts { grid-template-columns: 1fr; }
    .ops-school-card-metrics { grid-template-columns: 1fr 1fr; }
    .ops-school-card-metrics div:nth-child(2) { border-right: 0; }
    .ops-school-card-metrics div:last-child { grid-column: span 2; border-top: 1px solid var(--ops-line); }
}
