/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary-color: #1976d2;
    --primary-dark: #1565c0;
    --primary-light: #42a5f5;
    --secondary-color: #FF9800;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --warning-color: #FF9800;
    --info-color: #2196F3;
    /* Text Colors */
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #999;
    --border-color: #e0e0e0;
    --background-light: #f8f9fa;
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
    /* Border Radius */
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 16px;
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    /* Gradients */
    --hero-gradient: linear-gradient(135deg, #0f2557 0%, var(--primary-color) 30%, var(--primary-dark) 70%, #0d47a1 100%);
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: white;
    min-height: 100vh;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-sm {
    gap: 8px;
}

.gap-md {
    gap: 16px;
}

.gap-lg {
    gap: 24px;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    background: var(--hero-gradient);
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: padding 1s ease-out 2s;
}

    .hero-banner::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(45deg, transparent 49.5%, rgba(255,255,255,0.02) 50%, transparent 50.5%);
        background-size: 40px 40px;
        animation: subtlePattern 20s linear infinite;
    }

@keyframes subtlePattern {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 40px 40px;
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    transition: var(--transition);
}

.logo-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.hero-logo {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.3));
    transition: var(--transition);
}

    .hero-logo:hover {
        transform: scale(1.05);
    }

.title-section {
    flex: 1;
    min-width: 300px;
}

.hero-title {
    font-size: clamp(20px, 4vw, 28px);
    color: white;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(10px, 2vw, 12px);
    color: rgba(255,255,255,0.9);
    letter-spacing: 1px;
    font-weight: 300;
    margin-bottom: 8px;
}

.hero-decoration {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    border-radius: 1px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}

    .nav-link:hover {
        background: rgba(255,255,255,0.2);
        border-color: rgba(255,255,255,0.4);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ===== EXAM STATUS SECTION ===== */
.exam-status-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    border-bottom: 1px solid var(--border-color);
}

.exam-title {
    font-size: clamp(20px, 4vw, 28px);
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.exam-status {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ===== PROCESS STEPS ===== */
.process-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 32px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 140px;
    position: relative;
    text-align: center;
    padding: 0 8px;
}

.step-number {
    width: 36px;
    height: 36px;
    background: #e0e0e0;
    color: var(--text-light);
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.step-item.completed .step-number {
    background: var(--info-color);
    color: white;
    border-color: var(--info-color);
}

.step-item.current .step-number {
    background: var(--warning-color);
    color: white;
    border-color: var(--warning-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.step-info h3 {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.step-date {
    font-size: 12px;
    color: var(--info-color);
    font-weight: 400;
}

.step-status {
    font-size: 12px;
    color: var(--text-secondary);
}

.step-connector {
    position: absolute;
    top: 18px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step-item.completed .step-connector {
    background: var(--info-color);
}

.step-item:last-child .step-connector {
    display: none;
}

.detail-link {
    font-size: 11px;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 6px;
    display: block;
    padding: 2px 8px;
    border: 1px solid #e3f2fd;
    border-radius: 10px;
    background: #f8fbff;
    transition: var(--transition);
}

    .detail-link:hover {
        background: #e3f2fd;
        text-decoration: none;
    }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

    .btn:hover {
        transform: translateY(-2px);
    }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-sm);
}

    .btn-primary:hover {
        box-shadow: var(--shadow-md);
    }

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

    .btn-secondary:hover {
        background: #F57C00;
        box-shadow: var(--shadow-md);
    }

.exam-register-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .exam-register-btn:hover {
        background: #F57C00;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.register-button-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 32px 0;
    width: 100%;
}

/* ===== MAIN BODY ===== */
.main-body {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.left-panel {
    flex: 2;
    background: linear-gradient(135deg, #E3F2FD 0%, #F0F8FF 100%);
    border-radius: var(--border-radius);
    padding: 24px;
    min-height: 280px;
    box-shadow: var(--shadow-sm);
}

/* ===== REFERENCE MATERIALS ===== */
.reference-materials {
    height: 100%;
}

.reference-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(66, 165, 245, 0.2);
}

    .reference-header h2 {
        color: var(--primary-color);
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

.reference-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
}

.purchase-area {
    display: flex;
    gap: 24px;
    align-items: stretch;
    justify-content: center;
    background: linear-gradient(135deg, var(--background-light) 0%, #ffffff 100%);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(66, 165, 245, 0.15);
    max-width: 800px;
    margin: 0 auto;
}

.book-section {
    flex: 0 0 auto;
    max-width: 400px;
    display: flex;
    gap: 16px;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

    .book-section:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.book-icon {
    font-size: 32px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.book-info {
    flex: 1;
}

.book-name {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.book-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.purchase-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

    .purchase-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        color: white;
        text-decoration: none;
    }

.qr-section {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.qr-container {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

    .qr-container:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.qr-image {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
}

.qr-text {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.qr-platform {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    margin: 0;
}

/* ===== MODAL STYLES ===== */
.login-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .login-modal.show {
        display: flex;
        opacity: 1;
    }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    margin: auto;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

    .modal-close:hover {
        background: var(--background-light);
        color: var(--text-secondary);
    }

.modal-body {
    padding: 24px 32px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: var(--text-primary);
        font-size: 14px;
    }

/* 注册表单特殊布局 */
.register-form .form-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

    .register-form .form-group label {
        flex: 0 0 66px;
        margin-bottom: 0;
        text-align: right;
        white-space: nowrap;
    }

    .register-form .form-group input,
    .register-form .verify-input {
        flex: 1;
    }

.register-form .verify-input {
    display: flex;
    gap: 12px;
}

    .register-form .verify-input input {
        flex: 1;
    }

/* 密码强度和匹配提示 */
.register-form .password-strength,
.register-form .password-match {
    /*    margin-left: 82px;*/
    margin-top: 4px;
    width: 88px;
}

/* 协议复选框特殊处理 */
.register-form .form-agreement {
    margin-left: 82px;
    margin-bottom: 24px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    background: #fafafa;
}

    .form-group input:focus {
        outline: none;
        border-color: var(--primary-color);
        background: white;
        box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
    }

    .form-group input::placeholder {
        color: var(--text-light);
    }

.verify-input {
    display: flex;
    gap: 12px;
}

    .verify-input input {
        flex: 1;
    }

.send-code-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

    .send-code-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
    }

    .send-code-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
        transform: none;
    }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

    .remember-me input[type="checkbox"] {
        display: none;
    }

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius-sm);
    margin-right: 8px;
    position: relative;
    transition: var(--transition);
}

.remember-me input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

    .remember-me input[type="checkbox"]:checked + .checkmark::after {
        content: '✓';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 12px;
        font-weight: bold;
    }

.forgot-password,
.agreement-link,
.privacy-link,
.switch-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

    .forgot-password:hover,
    .agreement-link:hover,
    .privacy-link:hover,
    .switch-link:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

.login-btn,
.register-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .login-btn:hover,
    .register-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.form-agreement {
    margin-bottom: 24px;
}

.agreement-check {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

    .agreement-check input[type="checkbox"] {
        display: none;
    }

    .agreement-check .checkmark {
        margin-right: 12px;
        margin-top: 2px;
        flex-shrink: 0;
    }

.modal-footer {
    padding: 0 32px 32px;
    text-align: center;
}

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

.switch-text {
    margin-right: 8px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .title-section {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 40px 0 30px;
    }

    .main-body {
        flex-direction: column;
        gap: 24px;
    }

    .process-steps {
        flex-wrap: wrap;
        gap: 20px;
    }

    .step-item {
        min-width: 120px;
        flex: 0 0 calc(50% - 10px);
    }

    .step-connector {
        display: none;
    }

    .purchase-area {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        align-items: center;
    }

    .qr-image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 16px;
    }

    .header-nav {
        gap: 8px;
    }

    .nav-link {
        font-size: 12px;
        padding: 6px 12px;
    }

    .hero-logo {
        height: 32px;
    }

    .main-content {
        padding: 20px 16px;
    }

    .modal-container {
        width: 95%;
        margin: 20px auto;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
* {
    -webkit-tap-highlight-color: transparent;
}

.hero-banner::before,
.btn::before {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== ADDITIONAL UTILITY STYLES ===== */
.password-strength {
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-secondary);
}

.password-match {
    margin-top: 5px;
    font-size: 12px;
}

    .password-match.valid {
        color: var(--success-color);
    }

    .password-match.invalid {
        color: var(--error-color);
    }

.form-control.valid {
    border-color: var(--success-color) !important;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2) !important;
}

.form-control.invalid {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2) !important;
}

/* ===== 报名信息填写表单样式 ===== */
.form-row-double {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

.form-row {
    margin-bottom: 20px;
}

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

.form-control-modern,
.form-select-modern {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    background: white;
}

    .form-control-modern:focus,
    .form-select-modern:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 8px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .radio-item input[type="radio"] {
        width: 18px;
        height: 18px;
        accent-color: var(--primary-color);
    }

    .radio-item label {
        font-size: 14px;
        color: var(--text-primary);
        cursor: pointer;
    }

.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #fafafa;
}

    .file-upload-area:hover {
        border-color: var(--primary-color);
        background: rgba(102, 126, 234, 0.05);
    }

.image-preview {
    margin-top: 15px;
    text-align: center;
}

.preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.btn-danger {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

    .btn-danger:hover {
        background: #c82333;
        transform: translateY(-1px);
    }

/* 响应式设计 */
@media (max-width: 768px) {
    .form-row-double {
        flex-direction: column;
        gap: 16px;
    }
}

/* ===== 缴费模块样式 ===== */
.payment-info-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 15px 30px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.payment-icon {
    font-size: 32px;
    background: var(--primary-color);
    color: white;
    padding: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.payment-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.payment-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.payment-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0px 20px;
    transition: var(--transition);
}

    .payment-item:hover {
        box-shadow: var(--shadow-sm);
        transform: translateY(-1px);
    }

.payment-item-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.payment-item-label {
    font-weight: 500;
    min-width: 100px;
    color: var(--text-secondary);
    font-size: 14px;
}

.payment-item-value {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    font-size: 16px;
}

.payment-amount {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

.payment-note {
    margin-top: 10px;
    padding: 0px 20px;
}

.payment-note-icon {
    font-size: 20px;
    margin-right: 10px;
    color: #e17055;
}

.payment-note-text {
    color: var(--text-primary);
    line-height: 1.6;
}

.modern-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.card-title {
    background: var(--primary-color);
    color: white;
    padding: 20px 30px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.card-body {
    padding: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .payment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .payment-item-label {
        min-width: auto;
        font-size: 13px;
    }

    .payment-item-value {
        font-size: 15px;
    }

    .payment-amount {
        font-size: 20px;
    }

    .payment-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .payment-note {
        padding: 15px;
    }
}

/* ===== 功能模块样式 ===== */
.function-modules {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.function-module {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: visible;
    transition: var(--transition);
}

.function-module:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.function-module.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.function-module.completed {
    border-left: 4px solid #28a745;
}

.function-module.current {
    border-left: 4px solid var(--primary-color);
}

.function-module.pending {
    border-left: 4px solid #ffc107;
}

.module-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: var(--background-light);
    border-bottom: 1px solid var(--border-color);
}

.module-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.module-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.module-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.module-status.pending {
    background: #fff3cd;
    color: #856404;
}

.module-status.processing {
    background: #cce5ff;
    color: #004085;
}

.module-status.completed {
    background: #d4edda;
    color: #155724;
}

.module-status.available {
    background: #d1ecf1;
    color: #0c5460;
}

.module-content {
    padding: 25px;
    /* 移除内部滚动，让内容自然展示 */
}

.module-content p {
    color: var(--text-secondary);
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.module-info,
.success-info,
.admission-info,
.score-info,
.certificate-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.info-item {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--background-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.payment-info .amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.payment-info .desc {
    color: var(--text-secondary);
    font-size: 14px;
}

.module-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.module-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.module-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .function-modules {
        gap: 15px;
    }
    
    .module-header {
        padding: 15px 20px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .module-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .module-title {
        font-size: 16px;
    }
    
    .module-content {
        padding: 20px;
    }
    
    .payment-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .module-info,
    .success-info,
    .admission-info,
    .score-info,
    .certificate-info {
        gap: 6px;
    }
}

/* ===== 可折叠表单样式 ===== */
.collapsible-form {
    margin-top: 20px;
    background: var(--background-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: visible;
    animation: slideDown 0.3s ease-out;
    max-height: none;
}

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

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--primary-color);
    color: white;
    border-bottom: 1px solid var(--border-color);
}

.form-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.form-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.form-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.collapsible-form form {
    padding: 20px;
    /* 移除内部滚动，让内容自然展示 */
}

/* 表单行样式 */
.form-row-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* 表单列样式 */
.form-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 表单标签样式 */
.form-label-modern {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    margin: 0;
    display: flex;
    align-items: center;
    min-height: 20px;
}

/* 表单控件样式 */
.form-control-modern,
.form-select-modern {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    background: white;
    transition: var(--transition);
    box-sizing: border-box;
}

.form-control-modern:focus,
.form-select-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* 单选按钮组样式 */
.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.radio-item input[type="radio"] {
    margin: 0;
}

.radio-item label {
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
}

/* 图片预览样式 */
.image-preview {
    margin-top: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    max-width: 200px;
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .collapsible-form form {
        padding: 15px;
    }
    
    .form-header {
        padding: 12px 15px;
    }
    
    /* 手机端：一项一列 */
    .form-row-double {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .form-col {
        gap: 6px;
    }
    
    .form-control-modern,
    .form-select-modern {
        padding: 8px 10px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .radio-group {
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .image-preview {
        max-width: 150px;
    }
}
