/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #8B0000;
    font-family: 'PingFang SC', 'Microsoft Yahei', Helvetica, Arial, sans-serif;
    color: #333;
    min-height: 100vh;
}

.page-container {
    min-height: 100vh;
    padding-bottom: 40px;
    position: relative;
    overflow-x: hidden;
}

/* Background Image Fixed */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
}

/* Header */
.header {
    padding: 70px 20px 20px;
    padding-left: 0px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.logo {
    width: 225px; /* 450rpx / 2 */
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.main-title {
    font-size: 36px; /* 72rpx / 2 */
    font-weight: 900;
    color: transparent;
    background: linear-gradient(to bottom, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: 3px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    margin-bottom: 6px;
}

.sub-title {
    font-size: 11px; /* 22rpx / 2 */
    color: rgba(255, 215, 0, 0.9);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* General Card Style */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    margin: 0 15px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid #ffeeba;
}

/* Intro Card */
.intro-card {
    padding: 25px 20px;
    background: linear-gradient(135deg, rgba(255, 252, 245, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 2px double #FFD700;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card-header-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.ornament-line-left, .ornament-line-right {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D43C33);
}
.ornament-line-right {
    background: linear-gradient(90deg, #D43C33, transparent);
}

.ornament-text {
    font-size: 19px;
    font-weight: bold;
    color: #8B0000;
    margin: 0 15px;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(212, 60, 51, 0.2);
    position: relative;
}

.ornament-text::before {
    content: '✦';
    color: #FFD700;
    margin-right: 6px;
    font-size: 14px;
    vertical-align: middle;
}
.ornament-text::after {
    content: '✦';
    color: #FFD700;
    margin-left: 6px;
    font-size: 14px;
    vertical-align: middle;
}

.intro-content {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    text-align: center;
    font-weight: 500;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: center;
    margin-bottom: -15px;
    position: relative;
    z-index: 3;
}

.ribbon-wrapper {
    background: linear-gradient(90deg, #d43c33, #b22222);
    padding: 8px 30px;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    transform: skewX(-10deg);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.section-title-text {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    display: block;
    transform: skewX(10deg);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Question Card */
.question-card {
    padding-top: 30px;
}

.question-wrapper {
    padding: 15px 20px;
}

.question-label-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 12px;
}

.question-num {
    font-size: 22px;
    font-weight: 900;
    color: rgba(178, 34, 34, 0.15);
    margin-right: 10px;
    font-style: italic;
    font-family: Georgia, serif;
}

.question-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    line-height: 1.6;
    flex: 1;
}

/* Highlight Style */
.highlight-question {
    color: #B22222;
    font-weight: bold;
}

/* Input Styles */
.input-container {
    position: relative;
    padding: 5px 0;
}

.input-field {
    width: 100%;
    font-size: 15px;
    color: #333;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #eee;
    transition: border-color 0.3s;
    background: transparent;
    outline: none;
    border-radius: 0;
}

.input-field:focus {
    border-bottom: 1px solid #D43C33;
}

.input-field:disabled {
    color: #999;
    border-bottom: 1px dashed #eee;
    background: transparent;
}

.input-field::placeholder {
    color: #ccc;
    font-size: 14px;
}

/* Divider */
.divider {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 1px;
    background: #f5f5f5;
    margin: 0 20px;
    position: relative;
}

.divider-knot {
    width: 7px;
    height: 7px;
    background: #D43C33;
    transform: rotate(45deg);
    opacity: 0.4;
    box-shadow: 0 0 2px rgba(212, 60, 51, 0.4);
}

/* Submit Button */
.submit-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 40px 20px 30px;
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
    color: #8B0000;
    border-radius: 30px;
    padding: 12px 0;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 5px 12px rgba(255, 165, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.5);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    /* Reset button default styles */
    -webkit-appearance: none;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.6), transparent);
    transform: rotate(45deg) translate(-100%, -100%);
    animation: shine 3s infinite;
}

.btn-disabled {
    background: #ccc;
    color: #666;
    box-shadow: none;
    border: 1px solid #bbb;
    cursor: not-allowed;
}

.btn-disabled::after {
    display: none;
}

@keyframes shine {
    0% { transform: rotate(45deg) translate(-100%, -100%); }
    20% { transform: rotate(45deg) translate(100%, 100%); }
    100% { transform: rotate(45deg) translate(100%, 100%); }
}

.submit-btn:active {
    transform: scale(0.98);
    box-shadow: 0 3px 5px rgba(255, 165, 0, 0.4);
}

.footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Modal Styles */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    width: 80%;
    max-width: 300px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    padding: 20px 0 10px;
    text-align: center;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #8B0000;
    letter-spacing: 1px;
}

.modal-body {
    padding: 25px 20px;
    text-align: center;
}

.success-icon-wrapper {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

/* CSS Checkmark */
.checkmark-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #D43C33;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.checkmark {
    width: 15px;
    height: 25px;
    border: solid white;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
    margin-top: -5px;
}

.modal-text {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.modal-footer {
    padding: 0 20px 20px;
}

.modal-close-btn {
    background: #D43C33;
    color: #fff;
    border-radius: 25px;
    font-size: 16px;
    padding: 8px 0;
    width: 100%;
    border: none;
    cursor: pointer;
}

