* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(45deg, #4b6cb7, #182848);
    color: white;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    padding: 30px;
}

.book-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.book {
    width: 300px;
    height: 400px;
    perspective: 1000px;
    margin-bottom: 30px;
}

.book-page {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f9d423, #ff4e50);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    transition: transform 0.8s;
    cursor: pointer;
}

.book-page:hover {
    transform: rotateY(10deg);
}

#answer {
    font-size: 1.5rem;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

#get-answer {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#get-answer:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#get-answer:active {
    transform: translateY(1px);
}

.instructions {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 5px solid #4b6cb7;
}

.instructions h2 {
    color: #4b6cb7;
    margin-bottom: 15px;
    text-align: center;
}

.instructions ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.instructions li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.note {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #2196f3;
}

.note p {
    margin-bottom: 10px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .container {
        border-radius: 10px;
    }
    
    h1 {
        font-size: 2rem;

/* 标签样式 */
.category-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 15px;
}

.category-life {
    background-color: #e3f2fd;
    color: #1976d2;
}
    }
    
    .book {
        width: 250px;
        height: 350px;
    }
    
    #answer {
        font-size: 1.2rem;
    }
    
    main {
        padding: 20px;
    }
}