﻿* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #eef5ff 0%, #dbeafe 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.container {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 94%;
    max-width: 560px;
}
h1 { text-align: center; color: #333; margin-bottom: 20px; font-size: 24px; }
#submissionActiveContent {
    direction: ltr;
    unicode-bidi: isolate;
}
.tab-bar {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    margin-bottom: 22px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8eaf2;
    background: #f0f2f8;
}
.tab-btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 14px 10px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    transform: none;
    box-shadow: none;
}
.tab-btn:hover {
    color: #2563eb;
    background: rgba(255,255,255,0.5);
    transform: none;
    box-shadow: none;
}
.tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    font-weight: 600;
}
.tab-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}
.tab-panel {
    display: none;
}
.tab-panel.is-active {
    display: block;
}
.panel-card {
    padding: 22px 18px;
    background: #f8f9fc;
    border-radius: 12px;
    border: 1px solid #e8eaf2;
}
.index-tutorial-link-wrap {
    text-align: center;
    margin-bottom: 14px;
}
a.index-tutorial-link {
    color: #1d4ed8;
    font-weight: 700;
    font-size: 1.15em;
    text-decoration: underline;
}
a.index-tutorial-link:active {
    color: #1e40af;
}
a.index-tutorial-link-ch {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.15em;
    text-decoration: underline;
}
a.index-tutorial-link-ch:hover {
    color: #b91c1c;
}
a.index-tutorial-link-ch:active {
    color: #991b1b;
}
.index-tutorial-link-wrap + .index-tutorial-link-wrap {
    margin-top: -6px;
}
@media (max-width: 400px) {
    .tab-btn { font-size: 13px; padding: 12px 6px; }
}
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; color: #555; font-size: 14px; }
input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}
input[type="text"]:focus,
input[type="number"]:focus { outline: none; border-color: #3b82f6; }
button.tb-cn-qr-btn {
    margin-top: 10px;
    padding: 12px;
    font-size: 14px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}
button.tb-cn-qr-btn:hover {
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
}
.tb-cn-qr-file {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}
button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35); }
button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
input:disabled,
input[readonly] {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}
.modal-content-closed {
    text-align: center;
    max-width: 420px;
}
.submission-closed-title {
    font-size: 18px;
    color: #1e3a8a;
    margin-bottom: 14px;
}
.submission-closed-message {
    font-size: 15px;
    color: #334155;
    line-height: 1.65;
    margin-bottom: 20px;
    text-align: left;
    white-space: pre-line;
}
.btn-submission-closed-ok {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
}
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}
.close:hover { color: #333; }
#qrcode { margin: 20px auto; width: 200px; height: 200px; }
#qrcode img { width: 100%; height: 100%; }
.alipay-open-btn {
    display: inline-block;
    margin: 8px auto 0;
    padding: 12px 18px;
    background: linear-gradient(135deg, #ff6f00 0%, #ff8f00 100%);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
}
.alipay-open-btn:hover {
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(255, 111, 0, 0.35);
    transform: translateY(-1px);
}
.payment-info { margin-top: 15px; color: #666; font-size: 14px; }
.loading { display: none; text-align: center; padding: 20px; }
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.success-message {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}
.error-message {
    display: none;
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}
.query-section { margin-top: 0; padding-top: 0; border-top: none; }
.query-result {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}
.query-result h3 { color: #333; margin-bottom: 8px; font-size: 16px; }
.query-flash-notice {
    margin: 0 0 12px 0;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
}
.query-result .query-flash-notice {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}
.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}
.result-item:last-child { border-bottom: none; }
.result-label { color: #666; font-size: 14px; }
.result-value { color: #333; font-size: 14px; font-weight: 500; }
.status-badge { display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.status-paid { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #cce5ff; color: #004085; }
.status-completed { background: #d1ecf1; color: #0c5460; }
.status-error { background: #f8d7da; color: #721c24; }
.query-limit-info { text-align: center; color: #666; font-size: 12px; margin-top: 10px; }
.query-limit-warning { color: #856404; font-weight: 500; }
.query-limit-danger { color: #721c24; font-weight: 500; }
#supplementGuideModal {
    z-index: 1100;
    align-items: flex-end;
    padding: 12px 12px 0;
    box-sizing: border-box;
}
@media (min-height: 520px) {
    #supplementGuideModal { align-items: center; padding-top: 16px; }
}
#supplementGuideModal .modal-content.modal-content-supplement {
    padding: 0;
    max-width: 420px;
    width: 92%;
    width: min(92vw, 420px);
    max-height: 85vh;
    max-height: min(85vh, calc(100svh - 28px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: left;
}
.supplement-guide-title {
    color: #1d4ed8;
    font-size: 1.28rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    padding: 18px 18px 12px;
    line-height: 1.45;
    flex-shrink: 0;
}
.supplement-guide-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0 18px;
}
.supplement-guide-body {
    font-size: 14px;
    color: #444;
    line-height: 1.65;
    padding-bottom: 8px;
}
.supplement-guide-body p { margin-bottom: 10px; }
.supplement-guide-body ol {
    padding-left: 1.25em;
    margin: 8px 0 12px;
}
.supplement-guide-body li { margin-bottom: 6px; }
.supplement-guide-figure {
    margin: 10px 0 6px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8eaf2;
    background: #f8f9fc;
}
.supplement-guide-figure img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}
.supplement-guide-caption {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin: 4px 0 12px;
}
.supplement-guide-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    margin-top: 0;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #eee;
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
}
.supplement-guide-actions button {
    flex: 1;
    width: auto;
    min-width: 0;
    transform: none;
}
.btn-supplement-cancel {
    background: #dbeafe;
    color: #1e3a8a;
}
.btn-supplement-cancel:hover {
    background: #bfdbfe;
    box-shadow: none;
    transform: none;
}
.btn-supplement-confirm:hover { transform: translateY(-2px); }
#submitConfirmModal .modal-content {
    max-width: 430px;
    text-align: left;
    padding: 22px 20px 18px;
}
.submit-confirm-title {
    margin: 0 0 12px;
    color: #1d4ed8;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
}
.submit-confirm-desc {
    margin: 0;
    color: #1d4ed8;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.65;
    text-align: center;
}
.submit-confirm-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.submit-confirm-actions button {
    flex: 1;
    width: auto;
    min-width: 0;
    transform: none;
}
.btn-submit-cancel {
    background: #dbeafe;
    color: #1e3a8a;
}
.btn-submit-cancel:hover {
    background: #bfdbfe;
    box-shadow: none;
    transform: none;
}
