* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #666666;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.nav-link {
    text-decoration: none;
    color: #333333;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #d0d0d0;
    background-color: #ffffff;
}

.nav-link:hover {
    background-color: #f0f0f0;
    border-color: #999999;
}

.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.question-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.question-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.question-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.question-number {
    display: inline-block;
    background-color: #f5f5f5;
    color: #333333;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #d8d8d8;
}

.question-type {
    display: inline-block;
    background-color: #fafafa;
    color: #666666;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid #e8e8e8;
}

.question-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.question-content {
    font-size: 1rem;
    color: #333333;
    margin-bottom: 15px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.options {
    margin: 20px 0;
}

.option {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    margin-bottom: 10px;
    background-color: #fafafa;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

.option-label {
    display: inline-block;
    min-width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #ffffff;
    color: #333333;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 12px;
    border: 1px solid #d0d0d0;
}

.option-text {
    flex: 1;
    color: #333333;
    line-height: 1.6;
    padding-top: 5px;
}

.answer-section {
    display: flex;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.answer-section.full-answer {
    flex-direction: column;
    align-items: flex-start;
}

.answer-label {
    font-weight: 600;
    color: #1a1a1a;
    margin-right: 10px;
    font-size: 1rem;
}

.answer-text {
    color: #333333;
    font-weight: 500;
    font-size: 1rem;
}

.answer-content {
    margin-top: 10px;
    color: #333333;
    line-height: 1.8;
    white-space: pre-wrap;
}

.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 2px solid #e0e0e0;
    color: #666666;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .nav {
        flex-direction: column;
        gap: 10px;
    }

    .nav-link {
        text-align: center;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .question-card {
        padding: 15px;
    }

    .option {
        flex-direction: column;
    }

    .option-label {
        margin-bottom: 8px;
    }
}

html {
    scroll-behavior: smooth;
}

.blank-marker {
    display: inline-block;
    min-width: 80px;
    height: 24px;
    background-color: #ffebee;
    border: 2px solid #ef5350;
    border-radius: 4px;
    margin: 0 4px;
    vertical-align: middle;
}

.code-block {
    background-color: #f5f5f5;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 16px;
    margin: 15px 0;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-block code {
    display: block;
    color: #333333;
    white-space: pre;
}
