@charset "utf-8";

/* ============================================================
   查看交卷（我的答卷）—— my-submissions.html 专用样式
   依赖 assets/style.css 中的全局变量与重置规则
   ============================================================ */

body[data-page="my-submissions"] {
    background:
        radial-gradient(1200px 420px at 50% -180px, rgba(24, 142, 238, 0.16), transparent 70%),
        var(--bg-body);
}

.ms-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------------- 顶部栏 ---------------- */
.ms-topbar {
    background: linear-gradient(120deg, #0f6fc4 0%, #188eee 52%, #35a4f7 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(16, 76, 138, 0.24);
}

.ms-topbar-inner {
    width: 1200px;
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ms-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.ms-brand-mark {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.34);
    font-size: 17px;
    font-weight: 700;
    line-height: 50px;
    text-align: center;
    letter-spacing: 1px;
}

.ms-brand-text { min-width: 0; }

.ms-brand-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
}

.ms-brand-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 2px;
}

.ms-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: none;
}

.ms-topbar-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 13px;
}

.ms-topbar-user span { color: rgba(255, 255, 255, 0.86); }
.ms-topbar-user strong { font-size: 14px; color: #fff; font-weight: 700; }

.ms-topbar-link {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 20px;
    border-radius: 999px;
    background: #fff;
    color: #1476c9;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(9, 52, 96, 0.18);
}

.ms-topbar-link:hover { background: #eaf5ff; color: #0f6fc4; }

/* ---------------- 主体 ---------------- */
.ms-main {
    flex: 1;
    width: 1200px;
    margin: 0 auto;
    padding: 28px 0 40px;
}

.ms-view[hidden] { display: none; }

.ms-status {
    margin-bottom: 18px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.7;
    border: 1px solid #cfe4f7;
    background: #f1f8ff;
    color: #17608f;
}

.ms-status.is-info { border-color: #cfe4f7; background: #f1f8ff; color: #17608f; }
.ms-status.is-error { border-color: #f3cfcf; background: #fff4f4; color: #a63434; }
.ms-status.is-success { border-color: #b8e7cb; background: #f2fbf5; color: #1f8a4c; }

/* ---------------- 列表页头 ---------------- */
.ms-page-head {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-left: 5px solid var(--primary-color);
}

.ms-eyebrow {
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 6px;
}

.ms-page-title {
    font-size: 26px;
    font-weight: 700;
    color: #1b2b3a;
    line-height: 1.3;
}

.ms-page-desc {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 760px;
}

.ms-page-head-tips {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--primary-light);
    color: #1476c9;
    font-size: 13px;
    font-weight: 700;
}

.ms-tip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(24, 142, 238, 0.16);
}

/* ---------------- 列表统计条 ---------------- */
.ms-stat-strip {
    margin-top: 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.ms-stat-strip[hidden] { display: none; }

.ms-stat-cell {
    padding: 0 24px;
    border-right: 1px solid var(--border-light);
}

.ms-stat-cell:last-child { border-right: 0; }
.ms-stat-cell span { display: block; font-size: 13px; color: var(--text-light); }

.ms-stat-cell strong {
    display: block;
    margin-top: 6px;
    font-size: 18px;
    font-weight: 700;
    color: #1b2b3a;
    word-break: break-all;
}

/* ---------------- 交卷记录卡片 ---------------- */
.ms-record-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ms-record-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px 26px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.ms-record-card:hover {
    border-color: rgba(24, 142, 238, 0.32);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.ms-record-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ms-record-no {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-light);
    color: #1476c9;
    font-size: 12px;
    font-weight: 700;
}

.ms-record-state {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.ms-record-state.is-pending { background: #fff4e2; color: #b87400; }
.ms-record-state.is-done { background: #e9f7ee; color: #1f8a4c; }

.ms-record-name {
    margin-top: 16px;
    font-size: 20px;
    font-weight: 700;
    color: #1b2b3a;
    line-height: 1.4;
}

.ms-record-sub {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-light);
}

.ms-record-metrics {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.4fr;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: #f7fafd;
}

.ms-record-metric span { display: block; font-size: 12px; color: var(--text-light); }

.ms-record-metric strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    word-break: break-all;
}

.ms-record-metric.is-plain strong { color: var(--text-muted); font-size: 14px; }

.ms-record-foot {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ms-record-time { font-size: 13px; color: var(--text-light); }

.ms-record-open {
    flex: none;
    height: 38px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(24, 142, 238, 0.28);
    transition: var(--transition);
}

.ms-record-open:hover {
    background: var(--primary-hover);
    box-shadow: 0 8px 20px rgba(24, 142, 238, 0.36);
}

/* ---------------- 空状态 / 未登录 ---------------- */
.ms-empty {
    margin-top: 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 72px 32px;
    text-align: center;
}

.ms-empty[hidden] { display: none; }

.ms-empty-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 20px;
    border-radius: 22px;
    background: var(--primary-light);
    position: relative;
}

.ms-empty-icon::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 20px;
    width: 30px;
    height: 34px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
}

.ms-empty-icon::after {
    content: "";
    position: absolute;
    left: 29px;
    top: 30px;
    width: 16px;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 6px 0 var(--primary-color), 0 12px 0 var(--primary-color);
}

.ms-empty-title { font-size: 20px; font-weight: 700; color: #1b2b3a; }
.ms-empty-desc { margin-top: 10px; font-size: 14px; color: var(--text-muted); }

.ms-empty-action {
    display: inline-flex;
    align-items: center;
    margin-top: 24px;
    height: 42px;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(24, 142, 238, 0.28);
}

.ms-empty-action:hover { background: var(--primary-hover); color: #fff; }

.ms-login-guard {
    grid-column: 1 / -1;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 56px 32px;
    text-align: center;
}

.ms-login-guard p { font-size: 16px; color: var(--text-muted); }

.ms-login-guard-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    height: 42px;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.ms-login-guard-btn:hover { background: var(--primary-hover); color: #fff; }

/* ---------------- 详情：返回条 ---------------- */
.ms-detail-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.ms-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 22px 0 16px;
    border: 1px solid #d5e6f6;
    border-radius: 999px;
    background: #fff;
    color: #1476c9;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.ms-back:hover { border-color: var(--primary-color); background: #f4faff; }

.ms-back-icon {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

/* ---------------- 详情：答卷信息卡 ---------------- */
.ms-hero {
    background: linear-gradient(120deg, #0f6fc4 0%, #188eee 55%, #3aa6f6 100%);
    border-radius: var(--radius-lg);
    padding: 28px 32px 24px;
    color: #fff;
    box-shadow: 0 14px 34px rgba(15, 86, 152, 0.22);
}

.ms-hero-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.ms-hero-eyebrow {
    font-size: 13px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.ms-hero-name {
    margin-top: 8px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
}

.ms-hero-sub {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.86);
}

.ms-hero-scores {
    flex: none;
    display: flex;
    gap: 14px;
}

.ms-hero-score {
    flex: none;
    min-width: 210px;
    padding: 18px 24px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.ms-hero-scores .ms-hero-score {
    min-width: 138px;
    padding: 16px 22px;
}

.ms-hero-score span { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.86); }

.ms-hero-score strong {
    display: block;
    margin-top: 6px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
}

.ms-hero-score em {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.82);
}

.ms-hero-score.is-plain strong { font-size: 26px; }

.ms-hero-grid {
    margin-top: 24px;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.ms-hero-item span { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.78); }

.ms-hero-item strong {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    word-break: break-all;
}

.ms-hero-stats {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.ms-hero-stat {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
}

.ms-hero-stat strong { font-size: 22px; font-weight: 700; }
.ms-hero-stat span { font-size: 13px; color: rgba(255, 255, 255, 0.86); }
.ms-hero-stat.is-correct strong { color: #b7f5cd; }
.ms-hero-stat.is-wrong strong { color: #ffd2d2; }
.ms-hero-stat.is-pending strong { color: #ffe6b0; }

/* ---------------- 详情：两栏布局 ---------------- */
.ms-detail-layout {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 274px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.ms-side { position: sticky; top: 20px; }

.ms-side-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    max-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}

.ms-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.ms-side-head strong { font-size: 16px; font-weight: 700; color: #1b2b3a; }
.ms-side-head span { font-size: 12px; color: var(--text-light); }

.ms-side-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 12px 0 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.ms-legend-item { display: inline-flex; align-items: center; gap: 6px; }

.ms-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    display: inline-block;
}

.ms-legend-dot.is-right { background: #35b56a; }
.ms-legend-dot.is-wrong { background: #e35d5d; }
.ms-legend-dot.is-empty { background: #c6ccd4; }

.ms-card-nav {
    margin-top: 8px;
    overflow-y: auto;
    padding-right: 4px;
}

.ms-card-nav::-webkit-scrollbar { width: 6px; }
.ms-card-nav::-webkit-scrollbar-thumb { background: #dbe4ee; border-radius: 3px; }

.ms-nav-group + .ms-nav-group { margin-top: 16px; }

.ms-nav-group-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
}

.ms-nav-group-items {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}

.ms-nav-item {
    height: 30px;
    border-radius: 8px;
    border: 1px solid #dbe4ee;
    background: #f7fafd;
    color: #40566d;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.ms-nav-item:hover { border-color: var(--primary-color); color: var(--primary-color); }
.ms-nav-item:active { transform: scale(0.92); }
.ms-nav-item.is-right { background: #eafaef; border-color: #b8e7cb; color: #1f8a4c; }
.ms-nav-item.is-wrong { background: #fdeeee; border-color: #f3cccc; color: #c34545; }
.ms-nav-item.is-pending { background: #fff7e7; border-color: #f3dfb4; color: #a8760c; }
.ms-nav-item.is-empty { background: #f3f5f8; border-color: #e1e6ec; color: #97a3b0; }

/* 当前正在查看的题号：不覆盖对错配色，改用蓝色光环 + 放大来标识 */
.ms-nav-item.is-active {
    border-color: var(--primary-color);
    font-weight: 700;
    transform: translateY(-1px) scale(1.08);
    box-shadow: 0 0 0 3px rgba(24, 142, 238, 0.22), 0 8px 16px rgba(24, 142, 238, 0.26);
    z-index: 1;
}

.ms-nav-item.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* 当前题目卡片同步高亮，视线与答题卡对得上 */
.ms-question.is-current {
    border-color: rgba(24, 142, 238, 0.45);
    box-shadow: 0 8px 24px rgba(24, 142, 238, 0.16);
}

.ms-question.is-current .ms-question-head {
    background: #eef7ff;
    border-bottom-color: #cfe4f7;
}

/* ---------------- 详情：题型筛选 ---------------- */
.ms-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.ms-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 18px;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
    background: #fff;
    color: #40566d;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.ms-filter em {
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    color: #8a99a8;
}

.ms-filter:hover { border-color: var(--primary-color); color: var(--primary-color); }

.ms-filter.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 6px 16px rgba(24, 142, 238, 0.28);
}

.ms-filter.is-active em { color: rgba(255, 255, 255, 0.85); }

/* ---------------- 详情：题目分组与卡片 ---------------- */
.ms-group + .ms-group { margin-top: 26px; }

.ms-group-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.ms-group-bar {
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--primary-color);
}

.ms-group-head h3 { font-size: 17px; font-weight: 700; color: #1b2b3a; }
.ms-group-head em { font-style: normal; font-size: 13px; color: var(--text-light); }

.ms-group-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ms-paper-empty {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 48px 24px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.ms-question {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    overflow: hidden;
    transition: var(--transition);
    scroll-margin-top: 20px;
}

.ms-question:hover { border-color: rgba(24, 142, 238, 0.24); }

.ms-question-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: #f8fbfe;
    border-bottom: 1px solid var(--border-light);
}

.ms-question-no {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary-color);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 34px;
    text-align: center;
}

.ms-question-meta { flex: 1; min-width: 0; }

.ms-question-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1b2b3a;
    line-height: 1.5;
    word-break: break-word;
}

.ms-question-type {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-light);
}

.ms-question-tags {
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ms-result {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.ms-result.is-right { background: #eafaef; color: #1f8a4c; }
.ms-result.is-wrong { background: #fdeeee; color: #c34545; }
.ms-result.is-pending { background: #fff7e7; color: #a8760c; }
.ms-result.is-empty { background: #f1f4f8; color: #7b8896; }
.ms-result.is-saved { background: var(--primary-light); color: #1476c9; }

.ms-question-score {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.ms-question-score.is-positive { color: #1f8a4c; }
.ms-question-score.is-plain { font-weight: 400; color: var(--text-light); }

.ms-question-body { padding: 22px 24px 24px; }

.ms-block + .ms-block { margin-top: 18px; }

.ms-block-label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 0 10px;
    height: 24px;
    line-height: 24px;
    border-radius: 6px;
    background: #eef4fa;
    color: #4a6d8c;
    font-size: 12px;
    font-weight: 700;
}

.ms-block-content {
    font-size: 15px;
    line-height: 1.9;
    color: #33475b;
    word-break: break-word;
}

.ms-block-content img { max-width: 100%; height: auto; }

.ms-block-prompt {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: #f7fbff;
    border: 1px solid #e3f0fb;
}

.ms-block-prompt .ms-block-label { background: #dceafb; color: #2f6fa8; }

/* 选项列表 */
.ms-option-list {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ms-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e5ecf3;
    border-radius: var(--radius-md);
    background: #fcfdfe;
    transition: var(--transition);
}

.ms-option-label {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eef3f9;
    color: #4a6d8c;
    font-size: 13px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
}

.ms-option-content {
    flex: 1;
    font-size: 15px;
    line-height: 1.8;
    color: #33475b;
    word-break: break-word;
}

.ms-option-content img { max-width: 100%; height: auto; }

.ms-option-tag {
    flex: none;
    align-self: center;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.ms-option.is-expected {
    border-color: #b8e7cb;
    background: #f3fcf6;
}

.ms-option.is-expected .ms-option-label { background: #35b56a; color: #fff; }
.ms-option-tag.is-answer { background: #e3f7ea; color: #1f8a4c; }

.ms-option.is-selected {
    border-color: #f3cccc;
    background: #fef8f8;
}

.ms-option.is-selected .ms-option-label { background: #e35d5d; color: #fff; }
.ms-option-tag.is-picked { background: #fbe6e6; color: #c34545; }

.ms-option.is-expected.is-selected {
    border-color: #7fd2a0;
    background: #f0fbf4;
}

.ms-option-tag.is-both { background: #d5f0e0; color: #1a7a44; }

/* 作答 / 参考答案双栏 */
.ms-answer-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ms-answer-grid .ms-block { margin-top: 0; }

.ms-block-own,
.ms-block-expected {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid #e5ecf3;
    background: #fcfdfe;
}

.ms-block-own { border-left: 3px solid var(--primary-color); }
.ms-block-own .ms-block-label { background: #dceafb; color: #2f6fa8; }

.ms-block-expected {
    border-left: 3px solid #35b56a;
    background: #f7fdfa;
}

.ms-block-expected .ms-block-label { background: #dcf5e5; color: #1f8a4c; }

.ms-muted { color: var(--text-light); }

.ms-block-analysis {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: #fffbf2;
    border: 1px solid #f4e7cb;
}

.ms-block-analysis .ms-block-label { background: #fbeccd; color: #9a7213; }

/* ---------------- 批阅同步：刷新与状态标识 ---------------- */
.ms-detail-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ms-review-flag {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.ms-review-flag[hidden] { display: none; }
.ms-review-flag.is-pending { background: #fff4e2; color: #b87400; }
.ms-review-flag.is-done { background: #e9f7ee; color: #1f8a4c; }

.ms-refresh {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 20px;
    border: 1px solid #d5e6f6;
    border-radius: 999px;
    background: #fff;
    color: #1476c9;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.ms-refresh:hover { border-color: var(--primary-color); background: #f4faff; }

.ms-refresh-icon {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    position: relative;
}

.ms-refresh-icon::after {
    content: "";
    position: absolute;
    right: -3px;
    top: -2px;
    width: 0;
    height: 0;
    border-left: 4px solid currentColor;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

.ms-detail-hint {
    margin: 12px 4px 0;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-light);
}

/* ---------------- 批阅结果区块 ---------------- */
.ms-block-review {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: #f3fcf6;
    border: 1px solid #c7ecd6;
    border-left: 3px solid #35b56a;
}

.ms-block-review .ms-block-label { background: #d5f0e0; color: #1a7a44; }

.ms-block-waiting {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: #f6faff;
    border: 1px dashed #bcd9f2;
}

.ms-block-waiting .ms-block-label { background: #dceafb; color: #2f6fa8; }
.ms-block-waiting .ms-block-content { font-size: 13px; color: var(--text-muted); }

.ms-result.is-reviewed { background: #e9f7ee; color: #1f8a4c; }
.ms-question-score.is-waiting { font-weight: 400; color: #b87400; }

.ms-record-feedback {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: #f4f8fc;
    font-size: 13px;
    line-height: 1.7;
    color: #4a6d8c;
}

.ms-hero-feedback {
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.94);
    display: inline-block;
}

/* ---------------- 自适应 ---------------- */
@media (max-width: 1240px) {
    .ms-topbar-inner,
    .ms-main { width: 100%; padding-left: 20px; padding-right: 20px; }
    .ms-record-grid { grid-template-columns: minmax(0, 1fr); }
    .ms-hero-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ms-hero-main { flex-wrap: wrap; }
    .ms-hero-scores { width: 100%; }
    .ms-hero-scores .ms-hero-score { flex: 1 1 0; }
    .ms-detail-layout { grid-template-columns: minmax(0, 1fr); }
    .ms-side { position: static; }
    .ms-answer-grid { grid-template-columns: minmax(0, 1fr); }
    .ms-stat-strip { grid-template-columns: repeat(2, 1fr); }
    .ms-detail-bar { flex-wrap: wrap; }
    .ms-detail-bar-right { flex-wrap: wrap; }
}
