/* ========== 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0039A6;
    --primary-light: #1E5BD6;
    --primary-deep: #002879;
    --primary-soft: #E8F0FE;
    --primary-softer: #F0F5FF;
    --russian-red: #D52B1E;
    --russian-red-soft: #FDEEED;
    --text: #1A2332;
    --text-light: #5C6B7F;
    --text-tertiary: #94A3B8;
    --border: #E2E8F0;
    --border-dark: #CBD5E1;
    --bg: #F5F7FB;
    --card-bg: #fff;
    --radius: 10px;
    --shadow-sm: 0 2px 8px rgba(15,23,42,0.06);
    --shadow-md: 0 6px 20px rgba(0,57,166,0.08);
    --shadow-blue: 0 8px 24px rgba(0,57,166,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== 应用容器 ========== */
.app {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--card-bg);
    box-shadow: 0 0 40px rgba(0,57,166,0.06);
}

/* ========== 顶部标题栏 ========== */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0,57,166,0.18);
    position: relative;
    overflow: hidden;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #fff 0%, #fff 33.33%, var(--primary) 33.33%, var(--primary) 66.66%, var(--russian-red) 66.66%, var(--russian-red) 100%);
    opacity: 0.6;
}

.header-center {
    text-align: center;
    flex: 1;
}

.header h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.header p {
    font-size: 13px;
    opacity: 0.9;
}

.header-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.header-logo-left {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.header-logo-right {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

/* ========== Tab 切换 ========== */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--card-bg);
}

.tab {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab.active {
    color: var(--primary);
    font-weight: 600;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}

/* ========== Tab 内容 ========== */
.tab-content {
    display: none;
    padding: 0 16px 24px;
}

.tab-content.active {
    display: block;
}

/* ========== 管理员提示 ========== */
.admin-notice {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFF3CD 100%);
    color: #856404;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    margin: 0 -16px 12px;
    border-top: 1px solid #f0e6c8;
    border-bottom: 1px solid #f0e6c8;
}

/* ========== 必填提示 ========== */
.required-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFF3CD 100%);
    border: 1px solid #f0e6c8;
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #856404;
}

.notice-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* ========== 表单区块 ========== */
.form-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 16px;
}

/* ========== 表单项 ========== */
.form-item {
    margin-bottom: 16px;
}

.item-label {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 8px;
}

.item-num {
    color: var(--text-light);
}

.star {
    color: var(--russian-red);
}

/* 输入框通用样式 */
.form-item input[type="text"],
.form-item input[type="tel"],
.form-item input[type="email"],
.form-item select,
.form-item textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--card-bg);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-item input:focus,
.form-item select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(0,57,166,0.10);
}

.form-item input::placeholder {
    color: #bbb;
}

.form-item select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* ========== 选项组（单选/多选） ========== */
.option-group {
    display: flex;
    gap: 10px;
}

.option-group.two-col {
    gap: 10px;
}

.option-group.two-col .option-item {
    flex: 1;
    justify-content: center;
}

.option-group.three-col {
    gap: 8px;
}

.option-group.three-col .option-item {
    flex: 1;
    justify-content: center;
}

.option-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    background: var(--card-bg);
    transition: all 0.2s;
}

.option-item:hover {
    border-color: var(--primary-light);
    background: var(--primary-softer);
}

.option-item input[type="radio"] {
    display: none;
}

.option-item:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background: rgba(0,57,166,0.06);
    color: var(--primary);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,57,166,0.08);
}

/* ========== 日期选择组 ========== */
.date-group {
    display: flex;
    gap: 8px;
}

.date-group select {
    flex: 1;
}

/* ========== 年龄显示 ========== */
.age-display {
    display: flex;
    align-items: baseline;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--primary-softer) 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.age-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.age-unit {
    font-size: 14px;
    color: var(--text-light);
    margin-left: 4px;
}

/* ========== 多选框组 ========== */
.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    background: var(--card-bg);
    transition: all 0.2s;
}

.checkbox-item:hover {
    border-color: var(--primary-light);
    background: var(--primary-softer);
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkbox-item:has(input[type="checkbox"]:checked) {
    border-color: var(--primary);
    background: rgba(0,57,166,0.06);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,57,166,0.08);
}

/* ========== 文件上传区域 ========== */
.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    border: 2px dashed var(--border-dark);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--card-bg);
    min-height: 120px;
}

.upload-area:hover {
    border-color: var(--primary-light);
    background: rgba(0,57,166,0.02);
}

.upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.upload-text {
    font-size: 13px;
    color: var(--text-light);
}

.upload-area.add-more {
    min-height: 80px;
    padding: 20px;
    align-items: flex-start;
}

.add-icon {
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.upload-preview {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .preview-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 10px;
    padding: 2px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-item .preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(213,43,30,0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== 底部按钮 ========== */
.form-footer {
    display: flex;
    gap: 12px;
    padding-top: 8px;
    margin-top: 8px;
}

.btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-family: inherit;
}

.btn:active {
    transform: scale(0.98);
}

.btn-export {
    background: var(--card-bg);
    color: var(--primary);
    border: 1.5px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-export:hover {
    background: rgba(0,57,166,0.05);
    box-shadow: 0 2px 8px rgba(0,57,166,0.08);
}

.btn-icon {
    font-family: monospace;
    font-size: 13px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    box-shadow: var(--shadow-blue);
}

.btn-submit:hover {
    box-shadow: 0 12px 28px rgba(0,57,166,0.22);
    transform: translateY(-1px);
}

/* ========== 报考规则提示 ========== */
.exam-rules-notice {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFF3CD 100%);
    border: 1.5px solid #FFE082;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
}

.exam-rules-notice .rules-title {
    font-weight: 700;
    color: #E67E22;
    font-size: 14px;
    margin-bottom: 8px;
}

.exam-rules-notice .rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exam-rules-notice .rules-list li {
    font-size: 13px;
    color: var(--text);
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.exam-rules-notice .rules-list li::before {
    content: '•';
    color: #E67E22;
    font-weight: 700;
    position: absolute;
    left: 4px;
}

.exam-rules-notice .rules-list li strong {
    color: #C0392B;
}

/* ========== 免责声明 ========== */
.disclaimer-box {
    background: linear-gradient(135deg, var(--primary-softer) 0%, var(--primary-soft) 100%);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 18px 20px;
    margin: 20px 0;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
    box-shadow: var(--shadow-sm);
}

.disclaimer-box .disclaimer-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.disclaimer-box .disclaimer-title::before {
    content: 'ℹ️';
    font-size: 16px;
}

.disclaimer-box strong {
    color: var(--russian-red);
    font-weight: 600;
}

.disclaimer-box p {
    margin: 0;
}

/* ========== Toast ========== */
.toast {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,57,166,0.92);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0,57,166,0.25);
}

.toast.show {
    opacity: 1;
}

/* ========== 申请志愿组 ========== */
.apply-choice-group {
    background: #fafbfc;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s;
}

/* 志愿组内：choice-header 和详情卡片独占整行，院系/专业上下堆叠 */
.apply-choice-group > .choice-header,
.apply-choice-group > .major-detail-item {
    display: block;
    width: 100%;
}
.apply-choice-group > .form-item {
    width: 100%;
}

.apply-choice-group:hover {
    border-color: var(--border-dark);
    box-shadow: 0 2px 8px rgba(0,57,166,0.06);
}

.choice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-dark);
}

.choice-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.apply-choice-group[data-choice="0"] .choice-badge {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
}

.apply-choice-group[data-choice="1"] .choice-badge {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #fff;
}

.apply-choice-group[data-choice="2"] .choice-badge {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
}

.apply-choice-group[data-choice="3"] .choice-badge {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    color: #fff;
}

.choice-remove {
    padding: 4px 12px;
    border: 1px solid #e74c3c;
    background: #fff;
    color: #e74c3c;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.choice-remove:hover {
    background: #e74c3c;
    color: #fff;
}

.btn-add-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border: 2px dashed var(--primary-light);
    background: rgba(0,57,166,0.03);
    color: var(--primary);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-add-choice:hover {
    background: rgba(0,57,166,0.08);
    border-color: var(--primary);
}

.btn-add-choice .add-icon {
    font-size: 20px;
    font-weight: 700;
}

/* ========== 专业详情卡片 ========== */
.major-detail-card {
    background: linear-gradient(135deg, var(--primary-softer) 0%, var(--primary-soft) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    overflow: hidden;
}

.detail-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-dark);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    flex: 0 0 130px;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    line-height: 1.5;
    padding-left: 16px;
}

.code-value {
    font-family: 'SF Mono', 'Consolas', 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.quota-value {
    font-family: 'SF Mono', 'Consolas', 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.exam-value {
    font-size: 13px;
    line-height: 1.8;
}

/* ========== 考试时间安排 ========== */
.detail-row-exam-dates {
    flex-direction: column;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border: 1px solid #ffe082;
    border-radius: 10px;
    padding: 12px 14px !important;
    margin: 8px 0;
}

.detail-row-exam-dates .detail-label {
    flex: none;
    font-weight: 700;
    color: #e67e22;
    margin-bottom: 8px;
}

.exam-dates-container {
    width: 100%;
}

.exam-date-item {
    background: #fff;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 6px;
}

.exam-date-item:last-child {
    margin-bottom: 0;
}

.exam-date-subject {
    font-weight: 700;
    color: var(--primary);
    font-size: 13px;
    margin-bottom: 4px;
}

.exam-date-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.exam-date-day {
    color: #c0392b;
    font-weight: 600;
}

.exam-date-time {
    color: #555;
    background: #f0f0f0;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.exam-date-batch {
    color: #2980b9;
    font-weight: 500;
    background: #d6eaf8;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.exam-date-wave {
    color: #e67e22;
    font-weight: 600;
    font-size: 12px;
}

.exam-date-wave-main {
    margin-left: 12px;
    color: #27ae60;
}

.exam-date-note {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
    font-style: italic;
}

/* ========== 考试规则提示（详情卡片内） ========== */
.exam-rules-tip {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFF3CD 100%);
    border: 1px solid #FFE082;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 12px;
}

.exam-rules-tip-title {
    font-weight: 700;
    color: #E67E22;
    font-size: 12px;
    margin-bottom: 4px;
}

.exam-rules-tip-item {
    font-size: 11px;
    color: var(--text);
    line-height: 1.5;
}

.exam-rules-tip-item strong {
    color: #C0392B;
}

.tuition-cny {
    background: rgba(0, 57, 166, 0.06);
    border-radius: 6px;
    padding: 8px 10px !important;
    margin-top: 4px;
}

.cny-value {
    color: var(--russian-red);
    font-weight: 700;
    font-size: 16px;
}

.rate-note {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-tertiary);
    text-align: right;
}

/* ========== 合办项目提示 ========== */
.joint-program-notice {
    margin-top: 14px;
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--primary-softer) 100%);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.joint-program-notice .notice-icon {
    font-size: 20px;
    flex-shrink: 0;
}
.joint-program-notice .notice-text {
    font-size: 13px;
    color: var(--primary-deep);
    font-weight: 600;
    line-height: 1.5;
}

/* ========== 照片上传（2寸规格） ========== */
.photo-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 160px;
    border: 2px dashed var(--border-dark);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--card-bg);
    overflow: hidden;
    position: relative;
}

.photo-upload-area:hover {
    border-color: var(--primary-light);
    background: rgba(0,57,166,0.02);
}

.photo-upload-area .upload-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.photo-upload-area .upload-text {
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    padding: 0 4px;
}

.photo-upload-area.has-photo {
    border-style: solid;
    border-color: var(--primary-light);
}

.photo-upload-area.has-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== 社交平台子选项 ========== */
.social-platform-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.social-platform-group .checkbox-item {
    padding: 8px 10px;
    font-size: 13px;
}

.social-other-input {
    margin-top: 8px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid var(--border-dark);
    background: transparent;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.social-other-input:focus {
    border-bottom-color: var(--primary-light);
}

/* ========== 横向文件上传区 ========== */
.upload-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.upload-area-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 2px dashed var(--border-dark);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--card-bg);
    flex-shrink: 0;
}

.upload-area-small:hover {
    border-color: var(--primary-light);
    background: rgba(0,57,166,0.02);
}

.upload-area-small .upload-icon {
    font-size: 24px;
    margin-bottom: 2px;
    color: var(--text-light);
}

.upload-area-small .upload-text {
    font-size: 11px;
    color: var(--text-light);
}

.upload-row .preview-item {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

/* ========== 备选方案单选 ========== */
.fallback-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fallback-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--card-bg);
    transition: all 0.2s;
}

.fallback-option:hover {
    border-color: var(--primary-light);
    background: var(--primary-softer);
}

.fallback-option input[type="radio"] {
    display: none;
}

.fallback-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-dark);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s;
    position: relative;
}

.fallback-option:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background: rgba(0,57,166,0.06);
}

.fallback-option:has(input[type="radio"]:checked) .fallback-radio {
    border-color: var(--primary);
    background: var(--primary);
}

.fallback-option:has(input[type="radio"]:checked) .fallback-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.fallback-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}

.fallback-note {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
    padding-left: 4px;
}

/* ========== 告知书勾选 ========== */
.agreement-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    cursor: pointer;
    background: #fafbfc;
    transition: all 0.2s;
}

.agreement-label:hover {
    border-color: var(--primary-light);
    background: var(--primary-softer);
}

.agreement-label input[type="checkbox"] {
    display: none;
}

.agreement-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-dark);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s;
    position: relative;
}

.agreement-label:has(input[type="checkbox"]:checked) .agreement-checkbox {
    border-color: var(--primary);
    background: var(--primary);
}

.agreement-label:has(input[type="checkbox"]:checked) .agreement-checkbox::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.agreement-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}

.agreement-link {
    color: var(--primary-light);
    text-decoration: underline;
    font-weight: 500;
}

.agreement-link:hover {
    color: var(--primary);
}

/* 同意书抖动动画 */
.agreement-shake {
    animation: shake 0.5s ease-in-out;
    border-color: #e74c3c !important;
    background: #fff5f5 !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ========== 底部Logo ========== */
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.footer-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
    letter-spacing: 1px;
}

.section-title-note {
    font-size: 12px;
    font-weight: 400;
    color: var(--primary);
    margin-left: 8px;
}

/* ========== 告知书弹窗 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: 14px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--border);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 60px);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
}

/* ========== 动态文件上传区 ========== */
.upload-section-title {
    font-size: 13px;
    color: var(--text-light);
    margin: 12px 0 8px;
    padding-left: 4px;
}

.upload-section-title:first-child {
    margin-top: 0;
}

/* ========== 学校介绍 ========== */
.school-intro {
    padding: 0 0 24px;
    color: var(--text);
    text-align: left;
}

.school-hero {
    background-color: var(--primary-deep);
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    margin: 0 -16px 24px;
    border-radius: 0;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.school-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,40,121,0.3) 0%, rgba(0,40,121,0.6) 100%);
    z-index: 0;
}

.school-hero > * {
    position: relative;
    z-index: 1;
}

.school-hero-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.school-hero h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.school-subtitle {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 4px;
}

.school-subtitle-cn {
    font-size: 14px;
    opacity: 0.75;
}

.school-section {
    margin-bottom: 24px;
}

.school-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.school-section p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.8;
}

/* 学校统计 */
.school-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.school-stat-item {
    text-align: center;
    padding: 16px 8px;
    background: linear-gradient(135deg, var(--primary-softer) 0%, var(--primary-soft) 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.school-stat-num {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.school-stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* 学费列表 */
.school-tuition-list {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.tuition-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.tuition-row:last-child {
    border-bottom: none;
}

.tuition-row span:first-child {
    color: var(--text);
    font-weight: 500;
}

.tuition-row span:last-child {
    color: var(--primary);
    font-weight: 600;
}

.tuition-note {
    font-size: 12px !important;
    color: var(--text-light) !important;
    margin-top: 8px;
    text-align: right;
}

/* 申请流程 */
.school-process {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.process-step {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border);
}

.process-step:last-child {
    border-bottom: none;
}

.process-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 4px 12px rgba(0,57,166,0.20);
}

.process-text strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 2px;
}

.process-text p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* ========== 院系标签网格 ========== */
.faculty-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.faculty-tag {
    padding: 6px 14px;
    background: var(--primary-softer);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
}

.faculty-tag:hover {
    background: var(--primary-soft);
    border-color: var(--primary-light);
}

/* ========== 常见问题 ========== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.faq-item:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-sm);
}

.faq-q {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.faq-a {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
}

@media (max-width: 480px) {
    .school-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== 响应式 ========== */
@media (max-width: 480px) {
    .app {
        max-width: 100%;
    }

    .option-group.three-col {
        flex-wrap: wrap;
    }

    .option-group.three-col .option-item {
        min-width: calc(50% - 4px);
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* ========== 省市区三级联动 ========== */
.address-cascade {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.address-cascade select,
.address-cascade input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.address-cascade select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.address-cascade select:focus,
.address-cascade input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(0,57,166,0.10);
}

/* ========== 浏览页子Tab ========== */
.sub-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 4px;
}
.sub-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}
.sub-tab.active {
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,57,166,0.10);
}
.sub-tab-content {
    display: none;
}
.sub-tab-content.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

/* ========== 留学生花费卡片 ========== */
.cost-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 8px;
}
.cost-card {
    background: linear-gradient(135deg, var(--primary-softer) 0%, var(--primary-soft) 100%);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
    transition: all 0.2s;
}
.cost-card:hover {
    border-color: var(--border-dark);
    box-shadow: 0 2px 8px rgba(0,57,166,0.08);
}
.cost-card-icon {
    font-size: 28px;
    margin-bottom: 8px;
}
.cost-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}
.cost-card-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--russian-red);
    margin-bottom: 4px;
}
.cost-card-desc {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.4;
}

/* ========== PDF文件列表 ========== */
.pdf-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.pdf-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fefefe;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}
.pdf-item:hover {
    border-color: var(--border-dark);
    background: var(--primary-softer);
    box-shadow: 0 2px 8px rgba(0,57,166,0.06);
}
.pdf-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--russian-red) 0%, #c0392b 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(213,43,30,0.20);
}
.pdf-info {
    flex: 1;
    min-width: 0;
}
.pdf-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pdf-size {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}
.pdf-download {
    font-size: 12px;
    color: var(--primary-light);
    font-weight: 500;
    white-space: nowrap;
}

/* ========== 特殊要求标注 ========== */
.special-notes {
    margin-top: 8px;
}
.special-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #FFF5F5 0%, #FEE2E2 100%);
    border: 1.5px solid #FCA5A5;
    border-left: 4px solid #DC2626;
    border-radius: 0 8px 8px 0;
    margin-bottom: 8px;
    font-size: 13px;
    color: #991B1B;
    line-height: 1.5;
}
.special-note-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}
.special-note.warning {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-color: #FCD34D;
    border-left-color: #F59E0B;
    color: #92400E;
}

/* ========== 专业列表（浏览页） ========== */
.browse-major-list {
    padding: 0;
}
.browse-degree-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.browse-degree-tab {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-light);
}
.browse-degree-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,57,166,0.20);
}
.browse-faculty-group {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.browse-faculty-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.browse-faculty-header:hover {
    background: var(--primary-softer);
}
.browse-faculty-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}
.browse-faculty-count {
    font-size: 12px;
    color: var(--text-light);
    background: var(--border);
    padding: 2px 10px;
    border-radius: 12px;
}
.browse-faculty-body {
    display: none;
    padding: 0 16px 16px;
}
.browse-faculty-body.open {
    display: block;
}
.browse-major-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    gap: 12px;
}
.browse-major-item:last-child {
    border-bottom: none;
}
.browse-major-left {
    flex: 1;
    min-width: 0;
}
.browse-major-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.4;
}
.browse-major-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.browse-major-code {
    font-size: 11px;
    font-family: monospace;
    color: var(--primary-light);
    background: var(--primary-soft);
    padding: 1px 6px;
    border-radius: 4px;
}
.browse-major-years {
    font-size: 11px;
    color: var(--text-light);
    background: var(--bg);
    padding: 1px 6px;
    border-radius: 4px;
}
.browse-major-exam {
    font-size: 12px;
    color: #856404;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFF3CD 100%);
    padding: 1px 6px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}
.browse-major-right {
    text-align: right;
    flex-shrink: 0;
}
.browse-major-fee {
    font-size: 15px;
    font-weight: 700;
    color: var(--russian-red);
    white-space: nowrap;
}
.browse-major-quota {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}
.browse-major-expand {
    font-size: 11px;
    color: var(--primary-light);
    cursor: pointer;
    margin-top: 4px;
    text-decoration: underline;
}
.browse-exam-dates {
    display: none;
    margin-top: 8px;
    padding: 10px;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFF3CD 100%);
    border-radius: 6px;
    border: 1px solid #ffe082;
}
.browse-exam-dates.open {
    display: block;
}
.browse-exam-date-item {
    font-size: 12px;
    padding: 3px 0;
    color: #8B6914;
    border-bottom: 1px dotted #ffe082;
}
.browse-exam-date-item:last-child {
    border-bottom: none;
}

/* ========== 无数据提示 ========== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}
.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.empty-state-text {
    font-size: 14px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== 白嫖页Banner（含学校建筑背景） ========== */
.browse-banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.browse-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.45;
}
.browse-banner-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 20px;
}
.browse-banner-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.browse-banner h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.browse-banner-sub {
    font-size: 13px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
