* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/pattern.svg') repeat;
    opacity: 0.1;
    pointer-events: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.header-icon {
    font-size: 3em;
    color: #e74c3c;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.2em;
    font-style: italic;
}

.quiz-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.question-number {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #3498db;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.question-container {
    margin-bottom: 40px;
}

#question-text {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.option {
    padding: 20px 25px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.option:hover::before {
    transform: translateX(100%);
}

.option:hover {
    background: #e9ecef;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.option.selected {
    background: #3498db;
    color: white;
    border-color: #2980b9;
    transform: scale(1.02);
}

.progress-container {
    margin-top: 30px;
}

.progress-bar {
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9em;
}

.result-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-header {
    margin-bottom: 30px;
}

.result-header i {
    font-size: 2em;
    color: #f1c40f;
    margin-bottom: 15px;
}

.animal-result {
    margin: 30px 0;
}

.animal-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

#animal-image {
    max-width: 250px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#animal-image:hover {
    transform: scale(1.05);
}

.animal-decoration {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid #3498db;
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.result-details {
    text-align: left;
    margin: 30px 0;
}

.detail-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.detail-section:hover {
    transform: translateX(10px);
}

.detail-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section h3 i {
    color: #3498db;
}

.result-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.restart-btn, .share-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.restart-btn {
    background: #3498db;
    color: white;
}

.share-btn {
    background: #2ecc71;
    color: white;
}

.restart-btn:hover, .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .quiz-container, .result-container {
        padding: 20px;
    }
    
    #question-text {
        font-size: 1.2em;
    }
    
    .option {
        padding: 15px 20px;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .restart-btn, .share-btn {
        width: 100%;
        justify-content: center;
    }
}

.donate-section {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.donate-section p {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.2em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.donate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.donate-btn i {
    font-size: 1.2em;
    animation: pulse 2s infinite;
}

@media (max-width: 600px) {
    .donate-section {
        padding: 20px;
    }
    
    .donate-btn {
        padding: 12px 30px;
        font-size: 1.1em;
        width: 100%;
        justify-content: center;
    }
} 