* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #1a56db 0%, #0d3e8a 100%);
    color: white;
    padding: 30px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

header::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.date-info {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 8px 20px;
    display: inline-block;
    margin-top: 15px;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.content {
    padding: 30px;
}

.chapter {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 16px;
    margin-bottom: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #1a56db;
}

.chapter:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.chapter-title {
    font-size: 18px;
    color: #1a56db;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f4f9;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.chapter-title::before {
    content: "•";
    margin-right: 10px;
    font-size: 30px;
    color: #1a56db;
}

.chapter-updated {
    font-size: 13px;
    color: #718096;
    margin: 6px 0 10px;
}

.answers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.answer-item {
    background: #f0f7ff;
    border: 1px solid #c2d9ff;
    border-radius: 8px;
    padding: 8px 4px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #1a56db;
    transition: all 0.3s ease;
    position: relative;
    /* allow multi-line wrapping for long answers */
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    min-height: 40px;
}

.answer-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 86, 219, 0.1) 0%, rgba(13, 62, 138, 0.05) 100%);
    z-index: 1;
    pointer-events: none; /* ensure overlay doesn't block interactions or text */
}

.answer-item:hover {
    background: #e1eeff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 86, 219, 0.15);
}

.note {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin: 0 30px 30px; 
    border-left: 4px solid #38a169; 
    text-align: center;
    color: #2f855a;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.note:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.15); 
}

.note strong {
    color: #38a169; 
}

.footer {
    text-align: center;
    padding: 25px;
    color: #718096;
    font-size: 14px;
    border-top: 1px solid #eaeaea;
    margin-top: 20px;
}

@media (max-width: 768px) {
    header {
        padding: 25px 20px;
    }
    
    h1 {
        font-size: 26px;
    }
    
    .content {
        padding: 20px 15px;
    }
    
    .chapter {
        padding: 14px;
    }
    
    .chapter-title {
        font-size: 18px;
    }
    
    .answers {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }
    
    .answer-item {
        padding: 8px 4px;
        font-size: 16px;
    }

    .note {
        margin: 0 15px 20px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    
    .chapter-title {
        font-size: 18px;
    }
    
    .answers {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }

    .note {
        margin: 0 15px 20px;
    }
}