/* ===================================================================
   ÖSD 报名系统样式表 v2.0 - 专业版
   主色调: #003366 (大学蓝)
   背景色: #f4f5f7 (中性灰)
   文本色: #333333 (深灰)
   =================================================================== */

/* 通知动画 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    background-color: #f4f5f7;
    line-height: 1.6;
    color: #333333;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

h1 {
    text-align: center;
    color: #003366;
    margin-bottom: 20px;
    font-size: 2em;
    border-bottom: 2px solid #003366;
    padding-bottom: 15px;
    font-weight: 600;
}

.description {
    text-align: left;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f7f9fc;
    border-radius: 8px;
    font-size: 1em;
    color: #333333;
    border-left: 5px solid #0056b3;
}

fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

legend {
    font-size: 1.25em;
    font-weight: 600;
    color: #003366;
    padding: 0 15px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
    font-size: 1em;
}

.required {
    color: #D9534F;
    font-weight: bold;
    margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s ease;
    background-color: #f9fafb;
    color: #333333;
    height: 48px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
    background-color: white;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.form-note {
    margin-top: 10px;
    padding: 12px;
    background-color: #f7f9fc;
    border-left: 4px solid #0056b3;
    border-radius: 5px;
    font-size: 0.9em;
    color: #333;
}

.form-note a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
}
.form-note a:hover {
    text-decoration: underline;
}

.error-hint {
    color: #D9534F;
    font-size: 0.85em;
    margin-top: 6px;
    min-height: 20px;
    font-weight: 500;
}

/* 考试场次选择 */
.session-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.session-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.session-option:hover {
    border-color: #0056b3;
    background-color: #f7f9fc;
}
.session-option.selected {
    border-color: #003366;
    background-color: #e7f3fe;
    box-shadow: 0 2px 6px rgba(0, 86, 179, 0.1);
}
.session-option input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #003366;
}
.session-info {
    display: flex;
    flex-direction: column;
}
.session-info strong {
    font-weight: 600;
}
.session-info small {
    font-size: 0.9em;
    color: #555555;
}

/* 考场具体选项 */
.venue-options {
    background-color: #f7f9fc;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}
.venue-options > label {
    font-size: 1.1em;
    color: #003366;
    font-weight: 600;
}
.level-section {
    margin-bottom: 20px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
}
.level-section h4 {
    color: #0056b3;
    font-size: 1.05em;
    margin-bottom: 10px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}
.checkbox-label:hover {
    background-color: #f7f9fc;
    border-color: #0056b3;
}
.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
}
.checkbox-label input[type="checkbox"]:checked + span {
    color: #003366;
    font-weight: 600;
}

/* 文件上传 */
.file-upload-container {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: #f9fafb;
    transition: all 0.2s ease;
}
.file-upload-container:hover {
    border-color: #0056b3;
    background-color: #f7f9fc;
}
.file-upload-label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f7f9fc;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}
.file-upload-label:hover {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
}
.file-upload-help {
    margin: 10px 0 0;
    color: #667085;
    font-size: 13px;
}
.file-info {
    display: none;
    margin-top: 12px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.file-info.show { display: block; }
.file-info.success { color: #176b46; background: #edf8f2; }
.file-info.error { color: #b42318; background: #fff1f0; }
.sensitive-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 12px;
    padding: 13px 14px;
    color: #344054;
    background: #fff9eb;
    border: 1px solid #f3d58b;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.55;
}
.sensitive-consent.hidden { display: none; }
.sensitive-consent input { margin-top: 3px; flex: 0 0 auto; }

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #003366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
}
.submit-btn:hover {
    background-color: #0056b3;
}
.submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* 成功消息页面 */
.hidden { display: none; }
.success-message {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.success-message h2 {
    color: #003366;
    margin-bottom: 15px;
    font-size: 1.8em;
}
.application-id-section {
    background-color: #f7f9fc;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid #d1d5db;
}
.application-id-section h3 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    color: #003366;
}
.application-id {
    background: white;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #e0e0e0;
}
.id-label {
    font-size: 14px;
}
.id-value {
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    color: #003366;
    margin-left: 8px;
}

/* 后续步骤 */
.next-steps-section {
    background-color: #f7f9fc;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    border-left: 5px solid #0056b3;
}
.next-steps-section h3 {
    color: #003366;
    font-size: 1.3em;
    margin-bottom: 20px;
    text-align: center;
}
.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}
.step-item:last-child { border-bottom: none; }
.step-number {
    background-color: #003366;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}
.step-text h4 {
    color: #0056b3;
    margin-bottom: 5px;
    font-size: 1.05em;
}
.step-text p {
    margin: 0;
}
/* 重要提醒 */
.important-reminder {
    background-color: #fffbe6;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border-left: 5px solid #ffc107;
}
.important-reminder h3 {
    color: #856404;
    margin-bottom: 15px;
}
.important-reminder ul {
    list-style-type: none; padding: 0;
}
.important-reminder li {
    margin-bottom: 8px;
}
.important-reminder li:last-child { margin-bottom: 0; }
.important-reminder strong { color: #856404; }

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}
.action-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.action-btn.primary {
    background-color: #003366;
    color: white;
    border: 1px solid #003366;
}
.action-btn.primary:hover { opacity: 0.85; }
.action-btn.secondary {
    background-color: #f0f0f0;
    color: #333333;
    border: 1px solid #d1d5db;
}
.action-btn.secondary:hover { background-color: #e0e0e0; }

/* 页脚 */
.version-footer {
    background-color: #333333;
    color: #cccccc;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}
.version-info {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.version-text { font-weight: 600; }
.copyright, .icp-link { font-size: 0.9em; }
.icp-link { color: #cccccc; text-decoration: none; }
.icp-link:hover { color: #ffffff; text-decoration: underline; }
.footer-contact {
    box-sizing: border-box;
    width: 100%;
    margin: 10px 0 6px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    text-align: left;
}
.footer-contact h2 {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    color: #ffffff;
    font-size: 1rem;
    text-align: left;
}
.footer-contact-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    margin-top: 6px;
    line-height: 1.6;
}
.footer-contact-label { color: #ffffff; font-weight: 600; }
.footer-contact a { color: #d9ebff; overflow-wrap: anywhere; }
.footer-contact address { margin: 0; color: #dddddd; font-style: normal; }

/* 支付版报名流程 */
.flow-progress {
    margin: 0 0 34px;
}
.flow-progress ol {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    position: relative;
}
.flow-progress ol::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 11%;
    right: 11%;
    height: 2px;
    background: #dbe3ec;
}
.flow-progress li {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: #7a8796;
    font-size: 0.82rem;
    text-align: center;
}
.flow-progress li span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid #dbe3ec;
    background: #fff;
    font-weight: 700;
}
.flow-progress li.active,
.flow-progress li.completed { color: #003366; }
.flow-progress li.active span {
    border-color: #0077c8;
    background: #0077c8;
    color: #fff;
    box-shadow: 0 0 0 5px rgba(0, 119, 200, 0.1);
}
.flow-progress li.completed span {
    border-color: #1a8f5c;
    background: #1a8f5c;
    color: #fff;
}
.passport-later-note {
    margin: 8px 0 24px;
    padding: 18px 20px;
    border: 1px solid #c9dfef;
    border-radius: 8px;
    background: #f2f8fc;
    color: #23415a;
}
.passport-later-note p { margin: 5px 0 0; }
.flow-panel { animation: panelReveal .24s ease-out; }
@keyframes panelReveal {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.panel-heading { margin-bottom: 24px; }
.panel-heading h2 {
    color: #003366;
    font-size: 1.7rem;
    line-height: 1.25;
    margin: 5px 0 8px;
}
.panel-heading p { color: #5b6775; }
.summary-heading {
    margin: 0 0 10px;
    color: #003366;
    font-size: 1.05rem;
}
.notice-registration-summary { margin-bottom: 18px; }
.eyebrow {
    color: #0077c8;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: .08em;
}
.notice-key-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}
.notice-key-dates > div {
    padding: 16px;
    border-radius: 8px;
    background: #003366;
    color: #fff;
}
.notice-key-dates span {
    display: block;
    color: #bcd1e4;
    font-size: .8rem;
    margin-bottom: 4px;
}
.notice-key-dates strong { font-size: 1rem; }
.notice-scroll {
    max-height: 430px;
    overflow-y: auto;
    padding: 24px 28px 12px 44px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #fbfcfe;
    scroll-behavior: smooth;
}
.notice-scroll:focus { outline: 3px solid rgba(0, 119, 200, .16); }
.notice-list li { margin-bottom: 16px; padding-left: 5px; }
.notice-list strong { color: #9c2f2f; }
.notice-list a { color: #0056b3; }
.notice-end { text-align: center; color: #7a8796; padding: 12px 0; }
.read-hint {
    margin: 10px 0 16px;
    color: #8a5a00;
    font-size: .88rem;
}
.read-hint.complete { color: #16734b; }
.policy-disclosure {
    margin: 0 0 16px;
    border: 1px solid #d8e0e8;
    border-radius: 8px;
    background: #fff;
}
.policy-disclosure summary {
    padding: 14px 16px;
    cursor: pointer;
    color: #003366;
    font-weight: 700;
}
.policy-disclosure div { padding: 0 16px 14px; color: #536270; font-size: .9rem; }
.policy-disclosure p { margin: 8px 0; }
.policy-disclosure a { color: #0056b3; }
.notice-consents {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 8px;
    background: #f7f9fc;
}
.notice-consents label {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    margin: 0;
    font-weight: 500;
    line-height: 1.45;
    cursor: pointer;
}
.notice-consents input { width: 18px; height: 18px; margin-top: 2px; }
.flow-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}
.secondary-btn,
.alipay-btn {
    min-height: 50px;
    padding: 12px 22px;
    border-radius: 7px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}
.secondary-btn { background: #fff; border: 1px solid #b9c3ce; color: #334155; }
.secondary-btn:hover { background: #f7f9fc; }
.submit-btn:disabled,
.alipay-btn:disabled { cursor: not-allowed; opacity: .55; }
.order-summary {
    border: 1px solid #d9e1e8;
    border-radius: 9px;
    overflow: hidden;
}
.summary-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    padding: 13px 18px;
    border-bottom: 1px solid #edf0f3;
}
.summary-row:last-child { border-bottom: 0; }
.summary-row span { color: #6b7785; }
.summary-row strong { text-align: right; color: #1e2f3f; }
.summary-row.total { background: #f2f8fc; font-size: 1.12rem; }
.summary-row.total strong { color: #c84135; font-size: 1.35rem; }
.payment-method {
    margin-top: 18px;
    border: 1px solid #d9e1e8;
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
}
.payment-method-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 16px;
    border-bottom: 1px solid #edf0f3;
    background: #f8fafc;
}
.payment-method-heading h3 { margin: 0; color: #1e2f3f; font-size: .95rem; }
.payment-method-heading span { color: #1677ff; font-size: .82rem; font-weight: 700; }
.payment-method-option {
    display: grid;
    grid-template-columns: 20px 126px 1fr;
    align-items: center;
    gap: 14px;
    min-height: 66px;
    padding: 10px 16px;
}
.payment-method-radio {
    display: block;
    width: 18px;
    height: 18px;
    border: 5px solid #1677ff;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(22, 119, 255, .16);
}
.alipay-logo {
    display: block;
    width: 126px;
    height: auto;
    max-height: 42px;
    object-fit: contain;
}
.payment-method-copy { color: #647484; font-size: .88rem; text-align: right; }
.payment-security-note {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 7px;
    background: #f0f8f5;
    color: #24513d;
    font-size: .9rem;
}
.payment-security-note strong { white-space: nowrap; }
.wechat-payment-note {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid #f1d38a;
    border-radius: 7px;
    background: #fff9e8;
    color: #6f5314;
    font-size: .9rem;
}
.wechat-payment-note strong { white-space: nowrap; }
.wechat-payment-note.hidden { display: none; }
.alipay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-left: auto;
    border: 0;
    background: #1677ff;
    color: #fff;
    min-width: 255px;
    box-shadow: 0 5px 14px rgba(22, 119, 255, .22);
}
.alipay-btn:hover { background: #0d68e5; }
.alipay-btn strong { font-size: 1.08rem; }
.sandbox-caption { text-align: right; color: #778391; font-size: .8rem; margin-top: 10px; }
.payment-error {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #efb4ae;
    border-radius: 7px;
    background: #fff4f2;
    color: #8f2e25;
}
/* 本地支付宝审核截图状态：压缩非核心留白，使支付按钮在手机首屏可见。 */
.audit-payment .container { margin: 0; padding: 18px; border-radius: 0; box-shadow: none; }
.audit-payment .container > h1,
.audit-payment .description,
.audit-payment .version-footer { display: none; }
.audit-payment .flow-progress { margin-bottom: 18px; }
.audit-payment .panel-heading { margin-bottom: 12px; }
.audit-payment .panel-heading h2 { margin: 2px 0 4px; font-size: 1.45rem; }
.audit-payment .summary-row { padding: 8px 12px; }
.audit-payment .summary-row:nth-child(4),
.audit-payment .summary-row:nth-child(5) { display: none; }
.audit-payment .payment-method { margin-top: 10px; }
.audit-payment .payment-method-heading { padding: 7px 11px; }
.audit-payment .payment-method-option { min-height: 48px; padding: 5px 11px; }
.audit-payment .alipay-logo { width: 102px; max-height: 34px; }
.audit-payment .payment-method-copy { display: none; }
.audit-payment .payment-security-note { margin-top: 10px; padding: 10px 12px; }
.audit-payment .flow-actions { margin-top: 12px; }
.audit-payment .sandbox-caption { margin-top: 5px; }
.result-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.result-card {
    width: min(620px, 100%);
    padding: 44px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(24, 52, 78, .12);
    text-align: center;
}
.result-card h1 { border: 0; padding: 0; margin: 12px 0; font-size: 1.75rem; }
.result-card > p { color: #5f6e7c; }
.result-icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 800;
}
.result-icon.pending, .result-icon.waiting { background: #eef5ff; color: #1677ff; }
.result-icon.success { background: #eaf8f1; color: #148452; }
.result-icon.expired { background: #fff7e6; color: #a96800; }
.result-icon.error { background: #fff0ed; color: #b33a2f; }
.result-details { margin: 26px 0; border: 1px solid #e0e6ec; border-radius: 8px; }
.result-details div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid #edf0f3; }
.result-details div:last-child { border-bottom: 0; }
.result-details span { color: #72808e; }
.result-details strong { overflow-wrap: anywhere; text-align: right; }
.result-actions { display: flex; align-items: center; justify-content: center; gap: 12px; }
.result-help { margin-top: 26px; font-size: .84rem; }
.result-help a { color: #0056b3; }

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 20px;
        padding: 20px;
    }
    h1 { font-size: 1.8em; }
    legend { font-size: 1.15em; }
    fieldset { padding: 20px; }
    .notice-scroll { max-height: 52vh; padding: 18px 18px 8px 36px; }
}
@media (max-width: 480px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    body { font-size: 15px; }
    h1 { font-size: 1.6em; }
    legend { font-size: 1.1em; }
    fieldset { padding: 15px; }
    .action-buttons { flex-direction: column; }
    .flow-progress li strong { font-size: .72rem; }
    .notice-key-dates { grid-template-columns: 1fr; }
    .flow-actions { flex-direction: column-reverse; align-items: stretch; }
    .secondary-btn, .alipay-btn { width: 100%; margin: 0; }
    .summary-row { grid-template-columns: 1fr; gap: 3px; }
    .summary-row strong { text-align: left; }
    .payment-security-note { flex-direction: column; }
    .payment-method-option { grid-template-columns: 20px 116px 1fr; gap: 10px; }
    .alipay-logo { width: 116px; }
    .payment-method-copy { font-size: .8rem; }
    .result-card { padding: 30px 20px; }
    .result-actions { flex-direction: column; align-items: stretch; }
    .footer-contact-row { grid-template-columns: 1fr; gap: 0; }
}
