/**
 * 成人教育管理系统 - 前台学员端移动端样式
 * 设计原则：大字体、易点击、卡片化、步骤清晰
 */

/* ===== 基础重置与变量 ===== */
:root {
    --primary: #1677ff;
    --primary-dark: #0958d9;
    --primary-light: #e6f4ff;
    --success: #52c41a;
    --warning: #faad14;
    --danger: #ff4d4f;
    --text: #1f1f1f;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border: #e8e8e8;
    --bg: #f5f7fa;
    --card-bg: #ffffff;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-active: 0 6px 20px rgba(22, 119, 255, 0.2);
    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-base);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
}

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

/* ===== 页面容器 ===== */
.mobile-body {
    padding-bottom: 80px;
}

.mobile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.25);
}

.mobile-header h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.mobile-header p {
    margin: 0;
    font-size: 15px;
    opacity: 0.9;
}

.mobile-main {
    padding: 16px;
    max-width: 720px;
    margin: 0 auto;
}

.mobile-footer {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* ===== 按钮 ===== */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-sm,
.btn-block,
.btn-apply,
.btn-danger,
.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-weight: 600;
    padding: 14px 22px;
    min-height: 52px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.4;
}

.btn-primary,
.btn-apply {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.25);
}

.btn-primary:active,
.btn-apply:active {
    background: var(--primary-dark);
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(22, 119, 255, 0.2);
}

.btn-secondary {
    background: var(--success);
    color: #fff;
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.2);
}

.btn-secondary:active {
    background: #389e0d;
}

.btn-outline {
    background: #fff;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:active {
    background: var(--primary-light);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 15px;
    min-height: 36px;
}

.btn-block {
    width: 100%;
    display: flex;
    border-radius: var(--radius);
}

.btn-link {
    background: transparent;
    color: var(--primary);
    padding: 10px;
    font-size: 16px;
    min-height: auto;
}

.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled {
    background: #d9d9d9;
    color: #999;
    box-shadow: none;
    cursor: not-allowed;
}

/* ===== 卡片 ===== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.card-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: -10px 0 16px;
}

/* ===== 表单 ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-label .required::after {
    content: "*";
    color: var(--danger);
    margin-left: 4px;
}

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 18px;
    line-height: 1.5;
    color: var(--text);
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.form-control::placeholder,
.form-textarea::placeholder {
    color: #bfbfbf;
    font-size: 16px;
}

.form-control.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
    border-color: var(--danger);
    background-color: #fff2f0;
}

.invalid-feedback {
    color: var(--danger);
    font-size: 14px;
    margin-top: 6px;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 44px;
}

.form-textarea {
    min-height: 110px;
    resize: vertical;
}

.form-hint {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 120px;
}

/* ===== 单选/复选大按钮 ===== */
.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.radio-label,
.checkbox-label {
    flex: 1;
    min-width: 80px;
    position: relative;
}

.radio-label input,
.checkbox-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-text,
.checkbox-text {
    display: block;
    padding: 12px 10px;
    text-align: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: var(--text-secondary);
    background: #fff;
    transition: all 0.2s;
}

.radio-label input:checked + .radio-text,
.checkbox-label input:checked + .checkbox-text {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

/* ===== 步骤指示器 ===== */
.steps-header {
    background: #fff;
    padding: 18px 14px;
    margin-bottom: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.steps-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.steps-progress::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--border);
    z-index: 0;
}

.steps-progress-bar {
    position: absolute;
    top: 18px;
    left: 10%;
    height: 3px;
    background: var(--primary);
    z-index: 0;
    transition: width 0.3s ease;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s;
}

.step-label {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
}

.step-item.active .step-dot {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.15);
}

.step-item.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.step-item.completed .step-dot {
    border-color: var(--success);
    background: var(--success);
    color: #fff;
}

/* ===== 步骤内容 ===== */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.step-actions .btn {
    flex: 1;
}

.step-actions .btn-skip {
    background: #fff;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
}

/* ===== 文件上传区 ===== */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.upload-item {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 10px;
    text-align: center;
    background: #fafafa;
    transition: all 0.2s;
    cursor: pointer;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-item:active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-item.has-image {
    border-style: solid;
    border-color: var(--primary);
    padding: 0;
    overflow: hidden;
}

.upload-item .icon {
    font-size: 36px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.upload-item .text {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.upload-item .hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.upload-item input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.upload-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.upload-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: none;
    z-index: 2;
}

.upload-item.has-image .remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== 金额显示 ===== */
.price-box {
    background: linear-gradient(135deg, #fff7e6 0%, #fff1f0 100%);
    border: 1.5px solid #ffd591;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin: 16px 0;
}

.price-label {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.price-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--danger);
}

.price-value small {
    font-size: 18px;
    font-weight: 600;
}

.price-note {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ===== 在线缴费收款码 ===== */
.payment-qr-section {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    margin: 16px 0;
    text-align: center;
}

.qr-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.qr-section-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.qr-item {
    background: #fafafa;
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-img-wrap {
    width: 100%;
    max-width: 160px;
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qr-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.qr-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.qr-icon.wechat {
    background: #07c160;
}

.qr-icon.alipay {
    background: #1677ff;
}

.qr-notice {
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.qr-notice p {
    margin: 0;
}

.qr-notice p + p {
    margin-top: 4px;
}

@media (max-width: 360px) {
    .qr-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 汇总信息 ===== */
.summary-list {
    background: #fafafa;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 16px;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-right: 12px;
}

.summary-item .value {
    color: var(--text);
    text-align: right;
    word-break: break-all;
    font-weight: 500;
}

/* ===== 列表与记录 ===== */
.list-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
}

.list-header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.list-body {
    padding: 8px 0;
}

.record-item {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.record-item:last-child {
    border-bottom: none;
}

.record-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

.record-meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.record-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
}

.status-pending { background: #fff7e6; color: #fa8c16; }
.status-passed { background: #f6ffed; color: #52c41a; }
.status-rejected { background: #fff2f0; color: #f5222d; }
.status-admitted { background: #e6f7ff; color: #1890ff; }
.status-studying { background: #f0f5ff; color: #2f54eb; }
.status-finished { background: #f9f0ff; color: #722ed1; }
.status-graduated { background: #f6ffed; color: #389e0d; }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 15px;
    margin: 0;
}

/* ===== 用户中心头部 ===== */
.user-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 32px 20px 28px;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-bottom: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.user-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
}

.user-phone {
    font-size: 15px;
    opacity: 0.9;
    margin: 0;
}

.user-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.user-actions .btn {
    flex: 1;
    font-size: 16px;
    padding: 12px;
    min-height: 46px;
}

.user-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* ===== 首页特殊模块 ===== */
.hero-section {
    background: linear-gradient(135deg, #e6f4ff 0%, #f0f5ff 100%);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid #d6e4ff;
}

.hero-section h2 {
    font-size: 23px;
    margin: 0 0 10px;
    color: var(--primary-dark);
}

.hero-section p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 20px;
}

.section-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 14px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.project-cover {
    height: 170px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #f0f5ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-cover {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
}

.project-info {
    padding: 18px;
}

.project-info h4 {
    font-size: 19px;
    margin: 0 0 8px;
}

.project-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.project-meta .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--danger);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.action-item {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 22px 14px;
    text-align: center;
    box-shadow: var(--shadow);
    color: var(--text);
    transition: transform 0.2s;
}

.action-item:active {
    transform: translateY(2px);
}

.action-item .icon {
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
}

.action-item span:last-child {
    font-size: 16px;
    font-weight: 500;
}

/* ===== 招生简章 ===== */
.brochure-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    font-size: 17px;
    line-height: 1.8;
}

.brochure-content h3 {
    font-size: 20px;
    margin: 24px 0 12px;
    color: var(--primary-dark);
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}

.brochure-content h3:first-child {
    margin-top: 0;
}

.brochure-content p {
    margin: 0 0 14px;
}

.brochure-content ul,
.brochure-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.brochure-content li {
    margin-bottom: 8px;
}

.brochure-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 15px;
}

.brochure-content th,
.brochure-content td {
    border: 1px solid var(--border);
    padding: 10px;
    text-align: left;
}

.brochure-content th {
    background: var(--primary-light);
    font-weight: 600;
}

.brochure-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.brochure-footer .btn {
    flex: 1;
}

/* ===== 统计数字 ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.stat-item {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 18px 14px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== Toast 提示 ===== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    padding: 16px 28px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    text-align: center;
    max-width: 80%;
    line-height: 1.5;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.toast-success {
    background: rgba(82, 196, 26, 0.92);
}

.toast-error {
    background: rgba(255, 77, 79, 0.92);
}

/* ===== 加载中 ===== */
.loading-mask {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.loading-mask.show {
    opacity: 1;
    pointer-events: auto;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 顶部导航 ===== */
.page-nav {
    background: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.page-nav .back {
    font-size: 22px;
    color: var(--text);
    padding: 4px 8px;
}

.page-nav .title {
    font-size: 19px;
    font-weight: 700;
    flex: 1;
    text-align: center;
    margin-right: 36px;
}

/* ===== 登录/注册表单容器 ===== */
.auth-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 24px 16px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo h2 {
    font-size: 26px;
    color: var(--primary);
    margin: 0 0 8px;
}

.auth-logo p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 15px;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    font-size: 15px;
}

/* ===== 文档资料网格 ===== */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.doc-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1;
    position: relative;
}

.doc-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doc-item .doc-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    padding: 4px 6px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 通用工具类 ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.font-lg { font-size: 19px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.p-0 { padding: 0; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* ===== 重点推荐专业查询页 ===== */
.rm-hero {
    background: linear-gradient(135deg, #fff0f3 0%, #fff7e6 100%);
    border: 1px solid #ffd8bf;
}

.rm-filter-card {
    padding: 16px;
    margin-bottom: 12px;
}

.rm-filter-form .rm-filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.rm-filter-form .rm-filter-row:last-child {
    margin-bottom: 0;
}

.rm-filter-form .form-control,
.rm-filter-form .form-select {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    padding: 12px 14px;
}

.rm-filter-btn {
    padding: 12px 18px;
    min-height: auto;
    font-size: 16px;
}

.rm-count {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 14px 4px;
}

.rm-count strong {
    color: var(--primary);
    font-size: 18px;
}

.rm-list {
    display: grid;
    gap: 14px;
}

.rm-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.rm-card:active {
    transform: translateY(2px);
}

.rm-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--border);
}

.rm-major {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.rm-hot {
    flex-shrink: 0;
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.rm-card-body {
    padding: 14px 18px;
}

.rm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.rm-tag {
    display: inline-block;
    font-size: 13px;
    color: var(--text-secondary);
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 20px;
}

.rm-tag-school {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}

.rm-tag-form {
    background: #f6ffed;
    color: #389e0d;
}

.rm-price-box {
    background: linear-gradient(135deg, #fff7e6 0%, #fff1f0 100%);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}

.rm-price-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.rm-price-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.rm-price-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--danger);
}

.rm-price-value small {
    font-size: 16px;
    font-weight: 600;
}

.rm-price-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
}

.rm-market {
    color: var(--text-muted);
}

.rm-market del {
    color: #999;
}

.rm-group {
    color: #52c41a;
    font-weight: 600;
}

.rm-card-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px 18px 18px;
}

.rm-card-footer .btn {
    width: 100%;
    font-size: 16px;
    min-height: 44px;
}

/* ===== 响应式微调 ===== */
@media (min-width: 768px) {
    .rm-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-main {
        padding: 24px;
    }

    .upload-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .doc-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .brochure-footer {
        position: static;
        margin-top: 20px;
        box-shadow: none;
        padding: 0;
    }
}

@media (max-width: 360px) {
    html {
        font-size: 15px;
    }

    .mobile-header h1 {
        font-size: 21px;
    }

    .step-label {
        font-size: 11px;
    }
}
