/* Custom styles for Dream Pet Merge */

/* Global Styles */
:root {
    --primary-color: #4caf50; /* 绿色 */
    --primary-light: #81c784;
    --primary-dark: #388e3c;
    --secondary-color: #ff80ab; /* 粉色作为辅助色 */
    --accent-color: #ffeb3b; /* 黄色作为强调色 */
    --text-color: #333333;
    --light-bg: #f1f8e9;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* General styles */
body {
    animation: fadeIn 0.5s ease-in;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    background-image: url('../images/bg-pattern.png');
    background-repeat: repeat;
    background-size: 200px;
    background-attachment: fixed;
}

.game-container {
    transition: all 0.3s ease;
    position: relative;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin: 2rem auto;
    max-width: 1200px;
}

.game-container:hover {
    transform: scale(1.01);
}

/* Header styles */
.logo {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

/* Section styles */
section {
    animation: slideUp 0.5s ease-out;
    padding: 4rem 0;
    position: relative;
}

section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Card styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Button styles */
.fullscreen-btn {
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fullscreen-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Language selector styles */
#language-selector {
    transition: all 0.3s ease;
    border: 2px solid var(--primary-light);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
}

#language-selector:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

#language-selector:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Review card styles */
.review-card {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    text-align: center;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 4rem;
    color: var(--primary-light);
    opacity: 0.3;
    font-family: serif;
}

.review-card p:first-child {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.review-card p:last-child {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive styles */
@media (max-width: 768px) {
    .game-container {
        height: 400px;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .team-image {
        width: 120px;
        height: 120px;
    }
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #8B5CF6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #EC4899;
}

/* Loading Screen */
#loading-screen {
    background-color: #fff;
    z-index: 9999;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

#fullscreen-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background-color: #9c27b0;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#fullscreen-btn:hover {
    background-color: #7b1fa2;
}

/* Game Screenshots */
.screenshot-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.screenshot-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.screenshot-card:hover {
    transform: translateY(-5px);
}

.screenshot-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.screenshot-content {
    padding: 16px;
}

/* Game Features */
.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.feature-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 24px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Game Guide */
.guide-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.guide-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

.guide-card ul {
    margin-top: 16px;
    padding-left: 20px;
}

.guide-card li {
    margin-bottom: 8px;
}

/* Game Development History */
.history-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.history-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 24px;
    transition: transform 0.3s;
}

.history-card:hover {
    transform: translateY(-5px);
}

/* Development Team */
.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.team-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 24px;
    text-align: center;
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
}

.team-role {
    color: #9c27b0;
    font-weight: 600;
    margin-bottom: 8px;
}

/* What Players Love */
.players-love-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.players-love-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 24px;
    transition: transform 0.3s;
}

.players-love-card:hover {
    transform: translateY(-5px);
}

/* How to Play */
.how-to-play-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.how-to-play-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

/* Player Reviews */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.review-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 24px;
    font-style: italic;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 32px 0;
    margin-top: 48px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Screenshot Styles */
.screenshot-image {
    transition: all 0.3s ease;
    cursor: pointer;
}

.screenshot-image:hover {
    transform: scale(1.05);
}

/* Feature Card Styles */
.feature-card {
    padding: 2rem;
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.feature-card h3::before {
    content: '🌟';
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Guide Card Styles */
.guide-card {
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.guide-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.guide-card h3::before {
    content: '📖';
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.guide-card ul {
    padding-left: 1.5rem;
}

.guide-card li {
    margin-bottom: 0.5rem;
    position: relative;
}

.guide-card li::before {
    content: '✨';
    position: absolute;
    left: -1.5rem;
    color: var(--secondary-color);
}

/* History Card Styles */
.history-card {
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.history-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--white);
}

.history-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.history-card h3::before {
    content: '📅';
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Team Card Styles */
.team-card {
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.team-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-card p.text-purple-600 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Players Love Card Styles */
.players-love-card {
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--primary-light);
    transition: all 0.3s ease;
}

.players-love-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.players-love-card h3::before {
    content: '❤️';
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.players-love-card.active {
    border-color: var(--primary-color);
    background-color: rgba(76, 175, 80, 0.05);
}

/* Review Card Styles */
.review-card {
    padding: 2rem;
    text-align: center;
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 4rem;
    color: var(--primary-light);
    opacity: 0.3;
    font-family: serif;
}

.review-card p:first-child {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.review-card p:last-child {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer Styles */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* Animation Styles */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show img {
    transform: scale(1);
}

/* Cute Elements */
.cute-icon {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.section-icon {
    display: block;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Background Elements */
.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: -1;
}

/* Decorative Elements */
.decorative-border {
    position: relative;
    padding: 2rem;
}

.decorative-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--primary-light);
    border-radius: var(--border-radius);
    z-index: -1;
}

/* Bubble Effect */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--primary-light), var(--primary-color));
    opacity: 0.6;
    z-index: -1;
}

.bubble-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 5%;
    animation: float 8s ease-in-out infinite;
}

.bubble-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation: float 12s ease-in-out infinite;
}

.bubble-3 {
    width: 80px;
    height: 80px;
    bottom: 10%;
    left: 20%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
} 