* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.container {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background: #ff9a9e;
    border-radius: 50%;
    opacity: 0.2;
}

.container::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: #fad0c4;
    border-radius: 50%;
    opacity: 0.2;
}

h1 {
    font-family: 'Ma Shan Zheng', cursive;
    color: #e74c3c;
    margin-bottom: 1rem;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.choice-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    transition: all 0.5s ease;
    flex-wrap: wrap;
}

.choice {
    cursor: pointer;
    padding: 1.5rem;
    border-radius: 20px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 200px;
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.choice:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.choice img {
    width: 96px;
    height: 96px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.choice:hover img {
    transform: scale(1.1);
}

.choice h3 {
    color: #34495e;
    margin-bottom: 0.5rem;
}

.description {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.result {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.count-text {
    color: #e74c3c;
    font-size: 1.2rem;
    margin: 1rem 0;
    font-weight: bold;
}

.amazing-text {
    color: #e74c3c;
    font-size: 1rem;
    margin: 0.5rem 0;
    opacity: 0.6;
    font-style: italic;
    transition: all 0.3s ease;
}

.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.kaomoji {
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 0.9em;
    vertical-align: middle;
    display: inline-block;
    margin-left: 0.5rem;
    animation: gentle-wave 3s ease-in-out infinite;
}

@keyframes gentle-wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

.zongzi-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.zongzi-icons .zongzi-icon {
    width: 48px;
    height: 48px;
    animation: gentle-bounce 2s ease-in-out infinite;
    animation-delay: calc(var(--delay) * 0.2s);
}

@keyframes gentle-bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

.zongzi-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 1rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.sweet-zongzi {
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'>\
<path fill='%2369b578' d='M32 4L8 52h48L32 4z'/>\
<circle cx='32' cy='34' r='6' fill='%23e74c3c'/>\
</svg>");
    width: 48px;
    height: 48px;
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 4px 6px rgba(105, 181, 120, 0.3));
}

.savory-zongzi {
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'>\
<path fill='%234e944f' d='M32 4L4 52h56L32 4z'/>\
<circle cx='26' cy='38' r='5' fill='%23f39c12'/>\
<rect x='34' y='32' width='6' height='6' fill='%23c0392b'/>\
</svg>");
    width: 48px;
    height: 48px;
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 4px 6px rgba(78, 148, 79, 0.3));
}

.choice:hover .zongzi-icon {
    transform: scale(1.1) translateY(-5px);
}

.zongzi-animation {
    width: 120px;
    height: 120px;
    margin: 2rem auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: gentle-bounce 2s ease-in-out infinite;
}

.zongzi-animation.sweet {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e74c3c"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"/></svg>');
    filter: drop-shadow(0 4px 8px rgba(231, 76, 60, 0.3));
}

.zongzi-animation.savory {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232c3e50"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"/></svg>');
    filter: drop-shadow(0 4px 8px rgba(44, 62, 80, 0.3));
}

@keyframes gentle-bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

.restart-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.restart-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    body {
        padding: 0.5rem;
    }

    .container {
        padding: 1.5rem;
        border-radius: 20px;
    }

    h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    h2 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .choice-container {
        gap: 1rem;
    }

    .choice {
        padding: 1rem;
        min-width: 120px;
    }

    .choice img {
        width: 72px;
        height: 72px;
    }

    .result {
        padding: 1.5rem;
        margin-top: 1rem;
    }

    .zongzi-animation {
        width: 96px;
        height: 96px;
        margin: 1.5rem auto;
    }

    .restart-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* 小屏幕手机适配 */
@media screen and (max-width: 375px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    .choice {
        min-width: 100px;
        padding: 0.8rem;
    }

    .choice img {
        width: 64px;
        height: 64px;
    }

    .description {
        font-size: 0.8rem;
    }
}

.emoji-container {
    display: inline-block;
    margin-left: 0.5rem;
}

.emoji {
    font-size: 1.5rem;
    animation: emoji-float 2s ease-in-out infinite;
    opacity: 0;
    transform: translateY(20px);
    display: inline-block;
}

@keyframes emoji-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
    }
} 