/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fef6f9;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23ffb6c1" opacity="0.3"/></svg>');
    position: relative;
}

/* 添加可爱的装饰元素 */
body::before {
    content: '🌸';
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
    z-index: -1;
}

body::after {
    content: '🎮';
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 2rem;
    animation: float 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

header {
    background: linear-gradient(135deg, #ff69b4, #ff8da1);
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.2"/></svg>');
    z-index: 0;
}

/* 添加可爱的装饰元素到header */
header::after {
    content: '🎀';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    animation: spin 5s linear infinite;
    z-index: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.logo {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    position: relative;
}

.logo::before {
    content: '🎮';
    margin-right: 10px;
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.2rem;
    animation: twinkle 1.5s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background-color: white;
    padding: 0.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.language-selector:hover {
    transform: scale(1.05);
}

.language-selector select {
    padding: 0.5rem 1rem;
    border-radius: 15px;
    border: 2px solid #ffb6c1;
    background-color: white;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    color: #ff69b4;
    font-weight: 500;
    outline: none;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(255, 105, 180, 0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

section:hover {
    transform: translateY(-5px);
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff69b4, #87ceeb);
}

/* 添加可爱的装饰元素到section */
section::after {
    content: '💖';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1.2rem;
    opacity: 0.5;
}

h2 {
    color: #ff69b4;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff69b4, #87ceeb);
    border-radius: 3px;
}

h3 {
    color: #ff1493;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
}

h3::before {
    content: '🌸';
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Game Section */
.game-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.game-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

.fullscreen-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #ff69b4, #ff8da1);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    display: flex;
    align-items: center;
}

.fullscreen-btn::before {
    content: '🔍';
    margin-right: 8px;
}

.fullscreen-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

/* Features Section */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background-color: #fff5f8;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.2);
}

.feature::before {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.5;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 182, 193, 0.3);
}

.feature img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: transform 0.3s;
    background-color: #f9f0f5;
    padding: 10px;
}

.feature:hover img {
    transform: scale(1.05);
}

/* Strategy Section */
.strategy-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.strategy {
    text-align: center;
    padding: 2rem;
    background-color: #f0f8ff;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.2);
}

.strategy::before {
    content: '🧠';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.5;
}

.strategy:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(135, 206, 235, 0.3);
}

/* How to Play Section */
.how-to-play-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.instruction {
    text-align: center;
    padding: 2rem;
    background-color: #f0fff0;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(144, 238, 144, 0.2);
}

.instruction::before {
    content: '🎯';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.5;
}

.instruction:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(144, 238, 144, 0.3);
}

/* Team Section */
.team-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background-color: #fff0f5;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.2);
}

.team-member::before {
    content: '👩‍💻';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.5;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 182, 193, 0.3);
}

.team-member .w-32 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb6c1, #87ceeb);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.3);
    transition: all 0.3s;
}

.team-member:hover .w-32 {
    transform: scale(1.1);
}

.team-member .w-32 span {
    font-size: 3rem;
}

/* Love Section */
.love-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.love-feature {
    text-align: center;
    padding: 2rem;
    background-color: #f5f0ff;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(221, 160, 221, 0.2);
}

.love-feature::before {
    content: '❤️';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.5;
}

.love-feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(221, 160, 221, 0.3);
}

/* Why Section */
.why-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-feature {
    text-align: center;
    padding: 2rem;
    background-color: #f0f5ff;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.2);
}

.why-feature::before {
    content: '🌟';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.5;
}

.why-feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(135, 206, 235, 0.3);
}

/* Reviews Section */
.reviews-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.review {
    text-align: center;
    padding: 2rem;
    background-color: #fff5f5;
    border-radius: 20px;
    font-style: italic;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.2);
    transition: all 0.3s;
}

.review:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 182, 193, 0.3);
}

.review::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 3rem;
    color: #ffb6c1;
    opacity: 0.3;
    font-family: serif;
}

.review::after {
    content: '"';
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 3rem;
    color: #ffb6c1;
    opacity: 0.3;
    font-family: serif;
}

.review p:last-child {
    margin-top: 1rem;
    color: #ff69b4;
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #ff69b4, #87ceeb);
    color: white;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.2"/></svg>');
    z-index: 0;
}

footer > div {
    position: relative;
    z-index: 1;
}

footer p {
    margin-bottom: 0.5rem;
}

/* 添加可爱的装饰元素到footer */
footer::after {
    content: '💖';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .features-section,
    .strategy-section,
    .how-to-play-section,
    .team-section,
    .love-section,
    .why-section,
    .reviews-section {
        grid-template-columns: 1fr;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .language-selector {
        top: 10px;
        right: 10px;
    }
    
    body::before,
    body::after {
        display: none;
    }
} 