/**
 * 绍兴市方言采集平台 - 样式文件
 * 水乡主题：青砖灰 + 乌篷船黑 + 水乡蓝绿 + 黄酒暖色
 * 手机优先响应式设计
 */

/* ========== CSS Variables & Reset ========== */
:root {
    --brick-gray: #5B6B7C;
    --boat-black: #2C2C2C;
    --water-teal: #3A8C8C;
    --wine-warm: #C4915E;
    --water-light: #E8F4F4;
    --bg: #F5F0EB;
    --card-bg: #FFFFFF;
    --text: #2C2C2C;
    --text-secondary: #7A8A9A;
    --danger: #D94F4F;
    --success: #4CAF50;
    --warning: #F0AD4E;
    --shadow: 0 2px 12px rgba(44,44,44,0.08);
    --shadow-lg: 0 8px 32px rgba(44,44,44,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

html { font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* ========== 装饰条 ========== */
.water-pattern {
    position: fixed; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--water-teal), var(--wine-warm), var(--water-teal));
    z-index: 1000;
}

.ink-wash {
    position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.06; pointer-events: none;
}
.ink-wash-1 { width: 300px; height: 300px; background: var(--water-teal); top: -100px; right: -80px; }
.ink-wash-2 { width: 250px; height: 250px; background: var(--wine-warm); bottom: 10%; left: -60px; }

/* ========== 通用容器 ========== */
.container {
    max-width: 480px; margin: 0 auto; padding: 20px; width: 100%;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.card + .card { margin-top: 16px; }

/* ========== 按钮 ========== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 32px;
    border: none; border-radius: var(--radius-sm);
    font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: var(--transition);
    text-decoration: none;
    position: relative; overflow: hidden;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--water-teal), #2D7272);
    color: #fff; box-shadow: 0 4px 16px rgba(58,140,140,0.3);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(58,140,140,0.4); }

.btn-secondary {
    background: var(--water-light); color: var(--water-teal);
}
.btn-secondary:hover { background: #D4EFEF; }

.btn-danger {
    background: #FFF0F0; color: var(--danger);
}
.btn-danger:hover { background: #FFE0E0; }

.btn-warm {
    background: linear-gradient(135deg, var(--wine-warm), #A87748);
    color: #fff; box-shadow: 0 4px 16px rgba(196,145,94,0.3);
}

.btn-outline {
    background: transparent; color: var(--brick-gray);
    border: 1.5px solid #D0D8E0;
}
.btn-outline:hover { border-color: var(--water-teal); color: var(--water-teal); }

.btn-block { width: 100%; }

/* ========== 表单 ========== */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 0.875rem; font-weight: 600;
    color: var(--brick-gray); margin-bottom: 8px;
}
.form-group label .required { color: var(--danger); margin-left: 2px; }

input[type="text"], input[type="number"], input[type="password"], select {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid #D8E0E8; border-radius: var(--radius-sm);
    font-size: 1rem; color: var(--text);
    background: #FAFBFC; transition: var(--transition);
    -webkit-appearance: none; appearance: none;
}
input:focus, select:focus {
    outline: none; border-color: var(--water-teal);
    box-shadow: 0 0 0 3px rgba(58,140,140,0.1);
}

.radio-group, .checkbox-group {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.radio-item, .checkbox-item {
    position: relative;
}
.radio-item input, .checkbox-item input {
    position: absolute; opacity: 0; width: 0; height: 0;
}
.radio-item label, .checkbox-item label {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px; border-radius: 20px;
    border: 1.5px solid #D8E0E8; background: #FAFBFC;
    font-size: 0.875rem; font-weight: 500;
    cursor: pointer; transition: var(--transition);
    color: var(--brick-gray);
}
.radio-item input:checked + label,
.checkbox-item input:checked + label {
    border-color: var(--water-teal); background: var(--water-light);
    color: var(--water-teal); font-weight: 600;
}

/* ========== 进度条 ========== */
.progress-bar {
    width: 100%; height: 6px; background: #E8ECF0; border-radius: 3px; overflow: hidden;
}
.progress-bar-fill {
    height: 100%; background: linear-gradient(90deg, var(--water-teal), #2D9E9E);
    border-radius: 3px; transition: width 0.5s ease;
}

/* ========== 标签 ========== */
.badge {
    display: inline-flex; align-items: center; padding: 4px 12px;
    border-radius: 12px; font-size: 0.75rem; font-weight: 600;
}
.badge-easy { background: #E8F5E9; color: #4CAF50; }
.badge-medium { background: #FFF8E1; color: #F9A825; }
.badge-hard { background: #FFEBEE; color: #E53935; }

/* ========== 首页：区县卡片 ========== */
.page-index {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-height: 100vh;
    background: linear-gradient(160deg, #F5F0EB 0%, #E8F4F4 50%, #F5F0EB 100%);
    padding: 20px;
}
.index-container {
    max-width: 520px; width: 100%;
}
.index-hero {
    text-align: center; padding: 30px 20px 24px;
}
.hero-boat {
    width: 160px; height: 96px; margin-bottom: 16px;
}
.index-title {
    font-size: 2rem; font-weight: 800; color: var(--boat-black);
    letter-spacing: 2px; margin-bottom: 12px; line-height: 1.3;
}
.index-subtitle {
    font-size: 1rem; color: var(--brick-gray); margin-bottom: 24px; line-height: 1.6;
}
.region-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-bottom: 24px;
}
.region-card {
    display: flex; flex-direction: column; align-items: center;
    background: var(--card-bg); border-radius: var(--radius);
    padding: 20px 12px; text-align: center;
    box-shadow: var(--shadow); cursor: pointer;
    transition: var(--transition); text-decoration: none;
    color: var(--text); position: relative; overflow: hidden;
}
.region-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.region-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: linear-gradient(90deg, var(--water-teal), var(--wine-warm));
}
.region-card-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--water-light); color: var(--water-teal);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; font-weight: 700; margin-bottom: 8px;
}
.region-card-name {
    font-size: 1.0625rem; font-weight: 700; margin-bottom: 2px;
}
.region-card-title {
    font-size: 0.75rem; color: var(--text-secondary);
}
.region-card-arrow {
    position: absolute; bottom: 12px; right: 12px;
    color: var(--water-teal); opacity: 0.4;
}
.index-footer {
    text-align: center; padding: 8px 0;
}
.admin-link {
    font-size: 0.875rem; color: var(--text-secondary);
    text-decoration: none; transition: var(--transition);
}
.admin-link:hover { color: var(--water-teal); }

/* ========== 欢迎页 ========== */
.page-welcome {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-height: 100vh;
    background: linear-gradient(160deg, #F5F0EB 0%, #E8F4F4 50%, #F5F0EB 100%);
    position: relative; overflow: hidden;
}
.welcome-scene {
    position: relative; text-align: center; padding: 40px 20px;
}
.welcome-bridge {
    margin: 0 auto 24px; position: relative;
    width: 200px; height: 120px;
}
.welcome-title {
    font-size: 2rem; font-weight: 800; color: var(--boat-black);
    letter-spacing: 2px; margin-bottom: 12px; line-height: 1.3;
}
.welcome-subtitle {
    font-size: 1rem; color: var(--brick-gray);
    margin-bottom: 32px; line-height: 1.6;
}
.welcome-steps {
    text-align: left; max-width: 320px; margin: 0 auto 36px;
}
.welcome-step {
    display: flex; align-items: flex-start; gap: 14px;
    margin-bottom: 18px;
}
.welcome-step-num {
    flex-shrink: 0; width: 32px; height: 32px;
    border-radius: 50%; background: var(--water-teal); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem; font-weight: 700;
}
.welcome-step-text {
    font-size: 0.9375rem; color: var(--brick-gray); line-height: 1.5;
    padding-top: 4px;
}

/* ========== 说话人登记页 ========== */
.page-info { background: var(--bg); }
.page-info .page-header,
.page-prep .page-header {
    background: linear-gradient(135deg, var(--water-teal), #2D7272);
    color: #fff; padding: 24px 20px 32px;
    position: relative; overflow: hidden;
}
.page-info .page-header::after,
.page-prep .page-header::after {
    content: ''; position: absolute; bottom: -20px; left: 0; right: 0;
    height: 40px; background: var(--bg); border-radius: 50% 50% 0 0;
}
.page-info .page-header h2,
.page-prep .page-header h2 { font-size: 1.25rem; font-weight: 700; }
.page-info .page-header p,
.page-prep .page-header p { font-size: 0.875rem; opacity: 0.85; margin-top: 4px; }

/* ========== 录音准备页 ========== */
.page-prep { background: var(--bg); }

.volume-meter {
    width: 100%; height: 80px; background: #F0F4F8;
    border-radius: var(--radius-sm); position: relative;
    overflow: hidden; margin: 12px 0;
}
.volume-meter canvas { width: 100%; height: 100%; }

.tips-list { list-style: none; }
.tips-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid #F0F4F8;
    font-size: 0.9375rem; color: var(--brick-gray); line-height: 1.5;
}
.tips-list li:last-child { border-bottom: none; }
.tip-icon {
    flex-shrink: 0; width: 24px; height: 24px;
    background: var(--water-light); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
}

/* ========== 核心录音页 ========== */
.page-record { background: var(--bg); }

.record-header {
    background: var(--card-bg); padding: 16px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    position: sticky; top: 0; z-index: 10;
}
.record-progress-text {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 8px;
}

.sentence-card {
    background: var(--card-bg); border-radius: var(--radius);
    padding: 32px 24px; margin: 16px 0;
    box-shadow: var(--shadow); text-align: center;
    position: relative; overflow: hidden;
}
.sentence-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: linear-gradient(90deg, var(--water-teal), var(--wine-warm));
}

/* Ruby注音样式 */
.sentence-ruby {
    margin-bottom: 12px; text-align: center; line-height: 1.4;
}
.sentence-ruby ruby {
    font-size: 1.75rem; font-weight: 700; color: var(--boat-black);
    margin: 0 2px;
}
.sentence-ruby ruby rt {
    font-size: 0.75rem; font-weight: 600;
    font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0; transform: scaleY(0.95);
    padding-bottom: 1px;
}

/* 声调颜色 */
.tone-flat  { color: #5B8CFF; }   /* 平调 ↘ 蓝色 */
.tone-rise  { color: #3AAF5C; }   /* 升调 ↗ 绿色 */
.tone-dip   { color: #E68A00; }   /* 拐弯 ↘↗ 橙色 */
.tone-drop  { color: #8B5CF6; }   /* 降调 ↓ 紫色 */
.tone-short { color: #E53E3E; }   /* 入声⚡ 红色 */

/* 声调图例 */
.tone-legend {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px;
    padding: 8px 12px; margin-bottom: 10px;
    background: #F7F9FA; border-radius: 8px;
    font-size: 0.6875rem; color: #666;
}
.tone-legend-item {
    display: inline-flex; align-items: center; gap: 2px;
}
.tone-legend-item .arrow { font-weight: 700; font-size: 0.75rem; }
.tone-legend-item .label { color: #888; }

.sentence-mandarin {
    font-size: 0.9375rem; color: var(--text-secondary);
    line-height: 1.5; margin-bottom: 8px;
}
.sentence-meta {
    display: flex; justify-content: center; gap: 12px;
    font-size: 0.8125rem;
}
.sentence-category {
    color: var(--water-teal); background: var(--water-light);
    padding: 4px 12px; border-radius: 12px; font-weight: 500;
}

/* 录音控制 */
.record-controls {
    display: flex; flex-direction: column; align-items: center;
    padding: 20px 0;
}
.record-btn-main {
    width: 80px; height: 80px; border-radius: 50%;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    position: relative; transition: var(--transition);
    background: linear-gradient(135deg, var(--water-teal), #2D7272);
    box-shadow: 0 4px 20px rgba(58,140,140,0.3);
}
.record-btn-main:active { transform: scale(0.95); }
.record-btn-main.recording {
    background: linear-gradient(135deg, var(--danger), #C43A3A);
    box-shadow: 0 4px 20px rgba(217,79,79,0.3);
    animation: recordPulse 1.5s ease infinite;
}
@keyframes recordPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(217,79,79,0.3); }
    50% { box-shadow: 0 4px 40px rgba(217,79,79,0.5), 0 0 0 12px rgba(217,79,79,0.1); }
}
.record-btn-icon { width: 32px; height: 32px; }
.record-btn-icon.mic svg { fill: #fff; }
.record-btn-icon.stop { width: 24px; height: 24px; background: #fff; border-radius: 4px; }

.record-timer {
    margin-top: 12px; font-size: 1.5rem; font-weight: 700;
    color: var(--danger); font-variant-numeric: tabular-nums;
    min-height: 2em;
    display: flex; align-items: center; justify-content: center;
}
.record-wave { width: 100%; height: 48px; margin: 8px 0; }

.record-actions {
    display: flex; gap: 12px; margin-top: 16px; width: 100%;
}

.record-quick-actions {
    display: flex; justify-content: center; gap: 16px; margin-top: 20px;
}
.quick-btn {
    background: none; border: none; color: var(--text-secondary);
    font-size: 0.875rem; cursor: pointer; padding: 8px 12px;
    transition: var(--transition); text-decoration: underline;
    text-underline-offset: 3px;
}
.quick-btn:hover { color: var(--water-teal); }

.playback-area {
    background: #F8FAFB; border-radius: var(--radius-sm);
    padding: 16px; margin-top: 16px; text-align: center;
}
.playback-label { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 8px; }
.playback-audio { width: 100%; }
.playback-waveform { width: 100%; height: 60px; margin: 8px 0; }

.bottom-progress {
    background: var(--card-bg); padding: 12px 20px;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.04);
    position: sticky; bottom: 0;
}
.bottom-progress-text {
    display: flex; justify-content: space-between;
    font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 6px;
}

/* ========== 完成页 ========== */
.page-complete {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: var(--bg); min-height: 100vh;
}
.stats-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin: 16px 0;
}
.stat-card {
    background: #F8FAFB; border-radius: var(--radius-sm);
    padding: 16px; text-align: center;
}
.stat-value {
    font-size: 1.5rem; font-weight: 700; color: var(--water-teal);
}
.stat-label {
    font-size: 0.8125rem; color: var(--text-secondary); margin-top: 4px;
}

.certificate {
    background: linear-gradient(135deg, #FDFBF7, #F5F0EB);
    border: 2px solid var(--wine-warm);
    border-radius: var(--radius);
    padding: 32px 24px; text-align: center;
    position: relative; margin: 20px 0;
}
.certificate::before {
    content: ''; position: absolute; inset: 6px;
    border: 1px solid rgba(196,145,94,0.3); border-radius: 8px;
    pointer-events: none;
}
.certificate-title {
    font-size: 1.25rem; font-weight: 700; color: var(--wine-warm);
    margin-bottom: 16px;
}
.certificate-text {
    font-size: 0.9375rem; color: var(--brick-gray); line-height: 1.8;
}
.certificate-stamp {
    display: inline-flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; border: 3px solid var(--danger);
    border-radius: 50%; margin-top: 16px;
    color: var(--danger); font-size: 0.75rem; font-weight: 700;
    transform: rotate(-15deg); opacity: 0.7;
}

/* ========== 管理员后台 ========== */
.page-admin { background: var(--bg); }

.admin-header {
    background: var(--boat-black); color: #fff; padding: 20px;
    position: sticky; top: 0; z-index: 10;
}
.admin-header h2 { font-size: 1.125rem; font-weight: 700; }

.admin-stat-row {
    display: flex; gap: 12px; overflow-x: auto;
    padding: 4px 0;
}
.admin-stat-card {
    flex-shrink: 0; background: var(--card-bg);
    border-radius: var(--radius-sm); padding: 16px 20px;
    min-width: 120px; box-shadow: var(--shadow);
}
.admin-stat-card .stat-value { font-size: 1.25rem; }

.admin-chart-area {
    background: var(--card-bg); border-radius: var(--radius);
    padding: 20px; margin-top: 16px; box-shadow: var(--shadow);
}
.admin-chart-area h3 {
    font-size: 1rem; font-weight: 600; margin-bottom: 12px;
}

.dist-bar {
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.dist-bar-label { width: 60px; font-size: 0.8125rem; color: var(--text-secondary); text-align: right; }
.dist-bar-track { flex: 1; height: 20px; background: #F0F4F8; border-radius: 4px; overflow: hidden; }
.dist-bar-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
.dist-bar-count { width: 36px; font-size: 0.8125rem; color: var(--text-secondary); }

.admin-audio-list { margin-top: 16px; }
.admin-audio-item {
    background: var(--card-bg); border-radius: var(--radius-sm);
    padding: 14px 16px; margin-bottom: 8px; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 12px;
}
.admin-audio-play {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--water-light); border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: var(--transition);
}
.admin-audio-play:hover { background: #D4EFEF; }
.admin-audio-info { flex: 1; min-width: 0; }
.admin-audio-dialect { font-size: 0.9375rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-audio-meta { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }
.admin-audio-sub { display: block; font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }

/* ========== Toast ========== */
.toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-100px);
    background: rgba(44,44,44,0.9); color: #fff;
    padding: 12px 24px; border-radius: var(--radius-sm);
    font-size: 0.875rem; z-index: 2000;
    transition: transform 0.3s ease; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ========== 弹窗 ========== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    display: none; align-items: center; justify-content: center;
    z-index: 1000; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: var(--card-bg); border-radius: var(--radius);
    padding: 24px; max-width: 400px; width: 100%;
    box-shadow: var(--shadow-lg);
}
.modal-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 12px; }
.modal-actions { display: flex; gap: 12px; margin-top: 20px; justify-content: flex-end; }

/* ========== 响应式 ========== */
@media (min-width: 600px) {
    .container { padding: 32px; }
    .sentence-ruby ruby { font-size: 2.125rem; }
    .welcome-title, .index-title { font-size: 2.5rem; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .region-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 360px) {
    .sentence-ruby ruby { font-size: 1.5rem; }
    .record-btn-main { width: 72px; height: 72px; }
    .region-grid { grid-template-columns: 1fr; }
}

/* ========== 滚动条 ========== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D0D8E0; border-radius: 2px; }

/* ========== 三端门户 ========== */
.page-portal { background: var(--bg); }
.portal-container { max-width: 520px; margin: 0 auto; padding: 24px 20px 48px; }
.portal-hero { text-align: center; margin-bottom: 28px; }
.portal-title { font-size: 1.75rem; font-weight: 800; line-height: 1.35; color: var(--boat-black); }
.portal-subtitle { margin-top: 10px; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.portal-grid { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.portal-card {
    display: block; text-decoration: none; color: inherit;
    background: var(--card-bg); border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow); border-left: 4px solid var(--water-teal);
    transition: var(--transition);
}
.portal-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.portal-collect { border-left-color: #3A8C8C; }
.portal-review { border-left-color: #C4915E; }
.portal-manage { border-left-color: #5B6B7C; }
.portal-icon { font-size: 1.75rem; }
.portal-card h2 { font-size: 1.125rem; font-weight: 700; margin: 8px 0 4px; }
.portal-card p { font-size: 0.875rem; color: var(--text-secondary); }
.portal-tag { display: inline-block; margin-top: 10px; font-size: 0.75rem; padding: 4px 10px; border-radius: 20px; background: var(--water-light); color: #2C5C5C; }
.portal-meta h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.portal-meta-list { font-size: 0.8125rem; color: var(--brick-gray); line-height: 1.8; padding-left: 18px; }
.portal-topbar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    max-width: 480px; margin: 12px auto 0; padding: 0 20px;
}
.portal-back { font-size: 0.8125rem; color: var(--text-secondary); text-decoration: none; }
.portal-badge { font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.portal-badge-collect { background: #E8F4F4; color: #2C5C5C; }
.portal-badge-review { background: #FFF4E6; color: #8B5A2B; }
.portal-badge-manage { background: #EEF1F5; color: #5B6B7C; }

/* ========== 审核端 ========== */
.page-review { padding-bottom: 40px; }
.review-container { padding-top: 8px; }
.review-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.review-filters select { flex: 1; min-width: 120px; }
.review-queue { display: flex; flex-direction: column; gap: 14px; }
.review-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.review-mandarin { font-size: 0.875rem; color: var(--text-secondary); margin: 6px 0; }
.review-meta { font-size: 0.75rem; color: var(--text-secondary); }
.review-note { width: 100%; margin-top: 8px; padding: 10px; border: 1px solid #E0E6ED; border-radius: 8px; font-size: 0.875rem; }
.review-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.review-actions .btn { flex: 1; min-width: 80px; padding: 10px 12px; font-size: 0.875rem; }
.review-empty { text-align: center; padding: 32px; color: var(--text-secondary); }
.audit-pill { font-size: 0.6875rem; padding: 3px 8px; border-radius: 4px; font-weight: 600; white-space: nowrap; }
.audit-pending { background: #FFF4E6; color: #B8860B; }
.audit-approved { background: #E8F5E9; color: #2E7D32; }
.audit-rejected { background: #FFEBEE; color: #C62828; }
.audit-needs_rerecord { background: #F3E8FF; color: #6B21A8; }
.audit-waived { background: #F0F2F5; color: #7A8A9A; }

/* ========== 质量反馈（采集端） ========== */
.quality-feedback {
    margin: 12px 0; padding: 10px 12px; border-radius: 8px; font-size: 0.8125rem; line-height: 1.5;
}
.quality-feedback.quality-ok { background: #E8F5E9; color: #2E7D32; border-left: 3px solid #4CAF50; }
.quality-feedback.quality-bad { background: #FFEBEE; color: #C62828; border-left: 3px solid #D94F4F; }

/* ========== 审核效率 ========== */
.review-toolbar { margin-bottom: 16px; }
.review-batch-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.review-hint { font-size: 0.75rem; color: var(--text-secondary); margin-top: 10px; }
.review-check { font-size: 0.8125rem; display: flex; align-items: center; gap: 6px; }
.quality-score { font-size: 0.75rem; color: var(--water-teal); font-weight: 600; margin-left: 8px; }
.review-flags { font-size: 0.75rem; color: var(--danger); margin: 4px 0; }
.btn-sm { padding: 8px 12px; font-size: 0.8125rem; }
.audit-auto_approved { background: #E8F5E9; color: #2E7D32; }
.audit-auto_rejected { background: #FFEBEE; color: #C62828; }
.audit-needs_review { background: #FFF4E6; color: #B8860B; }
