/* ============================================
   在线答题考试系统 — 前台样式
   配色：暖装白 #F5F3EF / 微笑橙 #F55600 / 墨黑 #161D26
   字体：思源黑体 Bold (Noto Sans SC)
   适配：笔记本屏幕 1366px+ 宽度
   ============================================ */

/* === 字体引入 === */
@font-face {
    font-family: 'Noto Sans SC';
    src: url('../fonts/NotoSansSC-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 700;
    background-color: #F5F3EF;
    color: #161D26;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #3BA9F7;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   首页 (index.php)
   ============================================ */
.page-home {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.home-container {
    width: 100%;
    max-width: 1000px;
    text-align: center;
}

.home-logo { display: flex; justify-content: center; align-items: center;
    margin-bottom: 24px;
}

.logo-img { display: block; margin-left: auto; margin-right: auto;
    height: 48px;
    width: auto;
}

.home-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 2px 20px rgba(22, 29, 38, 0.06);
    text-align: left;
}

.home-title {
    font-size: 28px;
    color: #161D26;
    text-align: center;
    margin-bottom: 32px;
}

.home-subtitle {
    font-size: 14px;
    color: #A3AAB5;
    text-align: center;
    margin-bottom: 28px;
}

.home-rules {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.rule-item {
    flex: 1;
    background: #F5F3EF;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
}

.rule-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 6px;
}

.rule-text strong {
    display: block;
    font-size: 13px;
    color: #161D26;
    margin-bottom: 2px;
}

.rule-text span {
    display: block;
    font-size: 12px;
    color: #A3AAB5;
}

.rule-score {
    color: #F55600 !important;
    margin-top: 2px;
}

.home-notice {
    background: #F5F3EF;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.home-notice h3 {
    font-size: 15px;
    margin-bottom: 10px;
    color: #161D26;
}

.home-notice ul {
    list-style: none;
    padding: 0;
}

.home-notice li {
    font-size: 13px;
    color: #252F3E;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.home-notice li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #F55600;
    font-weight: bold;
}

/* 姓名输入 */
.name-input-group {
    margin-bottom: 16px;
    text-align: left;
}
.name-label {
    display: block;
    font-size: 14px;
    color: #161D26;
    margin-bottom: 8px;
}
.name-input {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    color: #161D26;
    background: #FFFFFF;
    border: 2px solid #E5E1D6;
    border-radius: 10px;
    transition: border-color 0.2s;
    outline: none;
}
.name-input:focus {
    border-color: #F55600;
}
.name-input::placeholder {
    color: #C0BEB8;
    font-weight: normal;
}

/* 开始按钮 */

.btn-start {
    display: block;
    width: 100%;
    padding: 16px;
    font-family: inherit;
    font-weight: 700;
    font-size: 18px;
    color: #FFFFFF;
    background: #F55600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-start:hover {
    background: #e04d00;
}

.btn-start:active {
    transform: scale(0.98);
}

.btn-start:disabled {
    background: #A3AAB5;
    cursor: not-allowed;
}

.home-warning {
    text-align: center;
    color: #DC2626;
    font-size: 13px;
    margin-top: 12px;
}

.home-footer {
    margin-top: 20px;
    font-size: 12px;
    color: #A3AAB5;
}

/* ============================================
   答题页 (exam.php)
   ============================================ */
.page-exam {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.exam-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶部栏 */
.exam-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 100px 0 52px 0;
    position: relative;
}

.exam-header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.logo-img-small {
    max-width: 240px;
    height: 80px;
    width: auto;
}

.logo-above-timer {
    margin-bottom: 24px;
}

.exam-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 20px;
    color: #161D26;
    background: #FFFFFF;
    padding: 8px 20px;
    border-radius: 24px;
    transition: color 0.3s, background 0.3s;
}

.exam-timer.timer-warning {
    color: #DC2626;
    background: #FFF0F0;
    animation: pulse 0.8s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.03); }
}

.timer-icon {
    font-size: 18px;
}

.exam-progress {
    font-size: 14px;
    color: #A3AAB5;
}

.exam-progress span:first-child {
    color: #F55600;
    font-size: 20px;
}

/* 题目区域 */
.exam-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding: 24px 0;
}

.question-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 36px 32px;
    width: 100%;
    box-shadow: 0 2px 20px rgba(22, 29, 38, 0.06);
    transition: all 0.3s;
}

.question-number {
    font-size: 13px;
    color: #A3AAB5;
    margin-bottom: 12px;
}

.question-text {
    font-size: 20px;
    color: #161D26;
    line-height: 1.5;
    margin-bottom: 28px;
}

/* 选项 */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 20px;
    background: #FFFFFF;
    border: 2px solid #A3AAB5;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    color: #161D26;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.option-btn:hover {
    border-color: #F55600;
    background: #FFF8F5;
}

.option-btn:active {
    transform: scale(0.99);
}

.option-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F5F3EF;
    color: #161D26;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.option-text {
    flex: 1;
}

/* 选项状态 */
.option-btn.selected {
    border-color: #F55600;
    background: #F55600;
    color: #FFFFFF;
}

.option-btn.selected .option-label {
    background: rgba(255,255,255,0.2);
    color: #FFFFFF;
}

.option-btn.correct-feedback {
    border-color: #059669;
    background: #D1FAE5;
    color: #161D26;
    box-shadow: 0 0 0 1px #059669 inset;
    font-weight: 700;
}

.option-btn.wrong-feedback {
    border-color: #DC2626;
    background: #FEE2E2;
    color: #161D26;
    box-shadow: 0 0 0 1px #DC2626 inset;
    font-weight: 700;
}

.option-btn.disabled {
    pointer-events: none;
    opacity: 0.8;
}

/* 提交确认按钮 */
.submit-confirm-wrap {
    margin-top: 20px;
    text-align: center;
}

.btn-submit-confirm {
    display: inline-block;
    padding: 14px 56px;
    font-family: inherit;
    font-weight: 700;
    font-size: 17px;
    color: #FFFFFF;
    background: #F55600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-submit-confirm:hover {
    background: #e04d00;
}

.btn-submit-confirm:active {
    transform: scale(0.98);
}
/* 每道题目下方声明文字 */
.question-disclaimer {
    margin-top: 28px;
    text-align: center;
    font-family: inherit;
    font-size: 11px;
    color: #9CA3AF;
    line-height: 1.6;
    padding: 0 12px;
}


/* 反馈区域 */
.feedback-area {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #E5E1D6;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.feedback-content {
    font-size: 18px;
    margin-bottom: 0;
    padding: 14px 24px;
    border-radius: 10px;
    display: block;
    width: 100%;
}

.feedback-content.feedback-correct {
    color: #FFFFFF;
    background: #059669;
    font-weight: 700;
}

.feedback-icon {
    display: inline-block;
    margin-right: 6px;
    font-weight: 700;
}

.feedback-content.feedback-wrong {
    color: #FFFFFF;
    background: #C62828;
    font-weight: 700;
    border: 1px solid #EF4444;
}

.btn-next {
    display: inline-block;
    padding: 12px 36px;
    margin-top: 24px;
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    color: #FFFFFF;
    background: #F55600;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(245, 86, 0, 0.3);
}


.btn-next:hover {
    background: #e04d00;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(245, 86, 0, 0.4);
}



/* 底部 */
.exam-footer {
    text-align: center;
    padding: 16px 0;
    font-size: 13px;
    color: #A3AAB5;
}

.exam-footer span {
    color: #F55600;
}

/* ============================================
   时间到弹窗
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(22, 29, 38, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.modal-card h2 {
    font-size: 22px;
    color: #161D26;
    margin-bottom: 8px;
}

.modal-card p {
    font-size: 14px;
    color: #A3AAB5;
}

/* ============================================
   结果页 (result.php)
   ============================================ */
.page-result {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.result-container {
    width: 100%;
    max-width: 1000px;
    text-align: center;
}

/* 深色 Hero 区域 */
.result-hero {
    background: #252F3E;
    border-radius: 24px;
    padding: 40px 32px;
    color: #FFFFFF;
    margin-bottom: 24px;
}

.logo-img-white {
    height: 40px;
    width: auto;
    margin-bottom: 24px;
}

.logo-img-black {
    height: 80px;
    width: auto;
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.result-score-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.result-score {
    font-size: 72px;
    color: #9178F7;
    line-height: 1;
}

.result-score-label {
    font-size: 24px;
    color: #A3AAB5;
}

.result-status {
    font-size: 20px;
    padding: 8px 24px;
    border-radius: 24px;
    display: inline-block;
    margin-bottom: 0;
}

.status-done {
    background: rgba(59, 169, 247, 0.15);
    color: #3BA9F7;
}

/* 统计卡片 */
.result-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.stat-card {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 16px 8px;
    box-shadow: 0 2px 12px rgba(22, 29, 38, 0.04);
    flex: 1;
    text-align: center;
}

.stat-value {
    font-size: 22px;
    color: #161D26;
    margin-bottom: 2px;
    word-break: break-all;
}

.stat-label {
    font-size: 12px;
    color: #A3AAB5;
}

/* 正确率环形图 */
.result-chart {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(22, 29, 38, 0.04);
}

.donut-chart {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
}

.donut-chart svg {
    display: block;
}

.donut-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    color: #161D26;
}

.chart-label {
    font-size: 13px;
    color: #A3AAB5;
}

/* 考试信息 */
.result-info {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(22, 29, 38, 0.04);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
}

.info-row:not(:last-child) {
    border-bottom: 1px solid #E5E1D6;
}

.info-row span:first-child {
    color: #A3AAB5;
}

.info-row span:last-child {
    color: #161D26;
}

/* 操作按钮 */
.result-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.btn-home-link {
    font-size: 14px;
    color: #A3AAB5;
}

.btn-home-link:hover {
    color: #161D26;
}

/* ============================================
   题型标签（答题页）
   ============================================ */
.question-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.type-single { background: #E8F0FE; color: #3BA9F7; }
.type-truefalse { background: #FFF3E0; color: #F55600; }
.type-multi { background: #EDE7F6; color: #9178F7; }

/* ============================================
   多选题提示
   ============================================ */
.multi-hint {
    font-size: 13px;
    color: #9178F7;
    margin-bottom: 16px;
    padding: 8px 14px;
    background: #F5F0FF;
    border-radius: 8px;
    text-align: center;
}

/* 多选题选中(toggle)状态 */
.option-btn.toggled {
    border-color: #9178F7;
    background: #F5F0FF;
    color: #161D26;
}
.option-btn.toggled .option-label {
    background: #9178F7;
    color: #FFFFFF;
}

/* ============================================
   答案解析区域
   ============================================ */
.explanation-box {
    margin-top: 0;
    margin-bottom: 32px;
    padding: 14px 18px;
    background: #FFF7ED;
    border-left: 4px solid #FF9900;
    border-radius: 8px;
    text-align: left;
    width: 100%;
}

.explanation-header {
    font-size: 14px;
    color: #FF9900;
    margin-bottom: 32px;
    font-weight: 700;
}

.explanation-text {
    font-size: 14px;
    color: #431407;
    line-height: 1.5;
}

.explanation-source {
    font-size: 12px;
    font-style: italic;
    color: #A3AAB5;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #E5E1D6;
}

/* ============================================
   结果页 — 答题明细
   ============================================ */
.result-section {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(22, 29, 38, 0.04);
    text-align: left;
}

.result-section-title {
    font-size: 16px;
    color: #161D26;
    margin-bottom: 16px;
}

.toggle-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}
.toggle-header:hover { color: #F55600; }
.toggle-arrow {
    font-size: 12px;
    display: inline-block;
    transition: transform 0.2s;
}

.section-sub {
    font-size: 12px;
    color: #A3AAB5;
    font-weight: normal;
}

.answer-review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-review-item {
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid #E5E1D6;
}

.review-correct {
    background: #ECFDF5;
    border-color: #059669;
}

.review-wrong {
    background: #FEF2F2;
    border-color: #DC2626;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
}

.review-num { color: #A3AAB5; }
.review-type { color: #A3AAB5; }

.review-result {
    font-weight: 700;
    font-size: 13px;
}

.review-question {
    font-size: 15px;
    color: #161D26;
    margin-bottom: 6px;
    line-height: 1.4;
}

.review-answer {
    font-size: 13px;
    color: #252F3E;
    margin-bottom: 32px;
}

.review-correct-answer {
    color: #059669;
    margin-left: 12px;
}

/* ============================================
   Top 3 高频错题
   ============================================ */
.topwrong-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.topwrong-card {
    border-radius: 12px;
    padding: 16px;
    border: 2px solid #E5E1D6;
    position: relative;
}

.topwrong-card.rank-1 { border-color: #FF4061; background: #FFF5F5; }
.topwrong-card.rank-2 { border-color: #F55600; background: #FFF8F5; }
.topwrong-card.rank-3 { border-color: #F59E0B; background: #FFFCF0; }

.topwrong-rank {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.rank-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
}

.rank-badge-1 { background: #FF4061; }
.rank-badge-2 { background: #F55600; }
.rank-badge-3 { background: #F59E0B; }

.topwrong-type {
    font-size: 11px;
    color: #A3AAB5;
    background: #E5E1D6;
    padding: 2px 8px;
    border-radius: 4px;
}

.topwrong-question {
    font-size: 15px;
    color: #161D26;
    line-height: 1.5;
    margin-bottom: 8px;
}

.topwrong-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #252F3E;
    margin-bottom: 32px;
}

.topwrong-stat { font-size: 13px; }
.stat-num { font-size: 16px; font-weight: 700; }

.topwrong-answer {
    font-size: 13px;
    color: #059669;
    margin-top: 6px;
}

.text-success { color: #059669; }
.text-danger { color: #DC2626; }

/* ============================================
   后台辅助样式（保留）
   ============================================ */
.type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.form-hint {
    font-size: 12px;
    color: #A3AAB5;
    margin-top: 4px;
}

.checkbox-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    cursor: pointer;
    padding: 8px 14px;
    border: 2px solid #E5E1D6;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.checkbox-item:hover {
    border-color: #9178F7;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #9178F7;
}

.type-stats-inline {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.type-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #252F3E;
}

.topwrong-admin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topwrong-admin-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px;
    border-radius: 8px;
    background: #F5F3EF;
}

.topwrong-admin-item.rank-1 { background: #FFF5F5; }
.topwrong-admin-item.rank-2 { background: #FFF8F5; }
.topwrong-admin-item.rank-3 { background: #FFFCF0; }

.topwrong-admin-rank {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
    min-width: 80px;
}

.topwrong-admin-body {
    flex: 1;
}

.topwrong-admin-text {
    font-size: 14px;
    color: #161D26;
    margin-bottom: 6px;
    line-height: 1.4;
}

.topwrong-admin-stats {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #252F3E;
    flex-wrap: wrap;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.card-header h3 {
    font-size: 15px;
    color: #161D26;
}

.card-sub {
    font-size: 12px;
    color: #A3AAB5;
}

.card-link {
    font-size: 13px;
    color: #3BA9F7;
}

.text-muted { color: #A3AAB5; }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 768px) {
    .home-card { padding: 28px 20px; }
    .home-rules { flex-direction: column; }
    .home-title { font-size: 24px; }
    .question-card { padding: 24px 20px; }
    .question-text { font-size: 17px; }
    .result-stats { grid-template-columns: repeat(2, 1fr); }
    .result-score { font-size: 56px; }
    .exam-header { padding: 10px 0; }
    .exam-timer { font-size: 16px; padding: 6px 14px; }
    .checkbox-group { flex-direction: column; gap: 8px; }
    .topwrong-stats { flex-direction: column; gap: 4px; }
    .topwrong-admin-stats { flex-direction: column; gap: 2px; }
}

/* ============================================ */
/* 排序题样式 */
/* ============================================ */

/* 排序显示区域（答题页） */
.sort-rank-display {
    background: #F7F9FC;
    border: 2px dashed #D1D7E0;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 15px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}
.sort-placeholder {
    color: #A3AAB5;
    font-size: 14px;
}
.sort-arrow {
    color: #3BA9F7;
    font-weight: bold;
    font-size: 18px;
    margin: 0 2px;
}
.sort-rank-letter {
    display: inline-block;
    background: #3BA9F7;
    color: #fff;
    font-weight: bold;
    width: 28px;
    height: 28px;
    line-height: 28px;
    border-radius: 50%;
    text-align: center;
    font-size: 14px;
}
.sort-dots {
    color: #A3AAB5;
    letter-spacing: 2px;
}

/* 排序题选项按钮上的序号徽标 */
.sort-badge {
    display: none;
    position: absolute;
    top: -8px;
    left: -8px;
    background: #3BA9F7;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    text-align: center;
    z-index: 2;
}
.option-btn {
    position: relative;
}
.option-btn.sort-ranked {
    border-color: #3BA9F7;
    background: #EBF5FF;
}

/* 后台排序题正确顺序设置 */
.sort-rank-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.sort-rank-item {
    flex: 1;
    min-width: 130px;
}
.sort-rank-label {
    display: block;
    font-size: 12px;
    color: #777;
    margin-bottom: 32px;
}
.sort-rank-select {
    width: 100%;
}

@media (max-width: 768px) {
    .sort-rank-row {
        flex-direction: column;
    }
    .sort-rank-display {
        font-size: 13px;
        padding: 10px;
    }
    .sort-rank-letter {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 12px;
    }
}
