* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
    overflow: hidden;
}

#app {
    height: 100%;
    position: relative;
}

.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.page.hidden {
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.page-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #F5F0E8 0%, #E8DFD0 50%, #DBCBA6 100%);
    z-index: 0;
}

.page-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C4A35A' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.header {
    text-align: center;
    padding: 20px 0;
}

.logo {
    margin-bottom: 20px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
}

.logo h1 {
    font-size: 28px;
    color: #8B4513;
    margin-bottom: 5px;
    font-weight: normal;
}

.logo p {
    font-size: 16px;
    color: #A0522D;
}

.scholar-illustration {
    width: 160px;
    height: 200px;
    margin: 0 auto 30px;
}

.verify-form {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.15);
    border: 1px solid #D2B48C;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 16px;
    color: #8B4513;
    margin-bottom: 10px;
    text-align: center;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: 2px solid #D2B48C;
    border-radius: 8px;
    background: #F5F5DC;
    color: #5D4E37;
    text-align: center;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #8B4513;
}

.form-group input::placeholder {
    color: #B8A580;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    color: #FFF;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 5px rgba(139, 69, 19, 0.2);
}

.btn-secondary {
    padding: 12px 30px;
    font-size: 16px;
    color: #8B4513;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #8B4513;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

.btn-secondary:active {
    background: #F5F5DC;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hint {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(139, 69, 19, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B4513 0%, #C4A35A 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.question-count {
    font-size: 16px;
    color: #8B4513;
    font-weight: bold;
}

.quiz-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.15);
    border: 1px solid #D2B48C;
}

.question-card h2 {
    font-size: 20px;
    color: #5D4E37;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: normal;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    padding: 12px 16px;
    background: #F5F5DC;
    border: 2px solid #D2B48C;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.option-item.selected {
    background: #FFF8DC;
    border-color: #8B4513;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.2);
}

.option-item:active {
    transform: scale(0.98);
}

.option-letter {
    width: 28px;
    height: 28px;
    background: #D2B48C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #8B4513;
    flex-shrink: 0;
    font-weight: bold;
}

.option-item.selected .option-letter {
    background: #8B4513;
    color: #FFF;
}

.option-text {
    font-size: 16px;
    color: #5D4E37;
    line-height: 1.5;
    padding-top: 3px;
}

.quiz-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.result-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.2);
    border: 2px solid #D2B48C;
    margin-bottom: 20px;
}

.result-header {
    text-align: center;
    margin-bottom: 20px;
}

.result-header h1 {
    font-size: 24px;
    color: #8B4513;
    font-weight: normal;
}

.result-image {
    width: 100%;
    height: 250px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #D2B48C;
    background: #F5F5DC;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-info {
    text-align: center;
    margin-bottom: 20px;
}

.result-title {
    font-size: 28px;
    color: #8B4513;
    margin-bottom: 10px;
    font-weight: bold;
}

.result-desc {
    font-size: 15px;
    color: #6B5B4F;
    line-height: 1.8;
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    padding: 15px;
    background: #F5F5DC;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #8B4513;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 18px;
    color: #5D4E37;
    font-weight: bold;
}

.result-details {
    margin-top: 15px;
    padding: 15px;
    background: #F5F5DC;
    border-radius: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #D2B48C;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: #8B4513;
}

.detail-value {
    font-size: 14px;
    color: #5D4E37;
    font-weight: bold;
}

.result-metrics {
    margin-top: 15px;
}

.result-metrics h3 {
    font-size: 16px;
    color: #8B4513;
    margin-bottom: 15px;
    text-align: center;
    font-weight: normal;
}

.metric-item {
    margin-bottom: 12px;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.metric-label {
    font-size: 14px;
    color: #8B4513;
}

.metric-value {
    font-size: 14px;
    color: #5D4E37;
    font-weight: bold;
}

.metric-bar-bg {
    height: 12px;
    background: #DBCBA6;
    border-radius: 6px;
    overflow: hidden;
}

.metric-bar {
    height: 100%;
    background: linear-gradient(90deg, #8B4513 0%, #C4A35A 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.result-traits {
    margin-top: 15px;
}

.result-traits h3 {
    font-size: 16px;
    color: #8B4513;
    margin-bottom: 12px;
    text-align: center;
    font-weight: normal;
}

.traits-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.trait-tag {
    padding: 8px 16px;
    background: linear-gradient(135deg, #D2B48C 0%, #C4A35A 100%);
    color: #5D4E37;
    border-radius: 20px;
    font-size: 13px;
}

.result-actions {
    display: flex;
    gap: 15px;
}

.result-actions .btn-primary,
.result-actions .btn-secondary {
    flex: 1;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 240, 232, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #D2B48C;
    border-top-color: #8B4513;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading p {
    font-size: 16px;
    color: #8B4513;
}

@media (max-width: 375px) {
    .content {
        padding: 15px;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .logo p {
        font-size: 14px;
    }
    
    .scholar-illustration {
        width: 120px;
        height: 150px;
        margin-bottom: 20px;
    }
    
    .verify-form {
        padding: 20px;
    }
    
    .question-card h2 {
        font-size: 18px;
    }
    
    .result-title {
        font-size: 24px;
    }
    
    .result-image {
        height: 200px;
    }
}