/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 英雄区域 */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #fff;
}

.hero-animals {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.hero-animals img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 动画效果 */
.animate {
    animation: bounce 3s infinite;
}

.cat {
    animation-delay: 0.5s;
}

.dog {
    animation-delay: 1s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

/* 功能区块 */
.features {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.feature-item {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    width: 300px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.feature-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ff9a9e;
}

.feature-item p {
    margin-bottom: 20px;
    color: #666;
}

.feature-item a {
    display: inline-block;
    padding: 10px 20px;
    background: #ff9a9e;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.feature-item a:hover {
    background: #fad0c4;
    transform: translateY(-2px);
}

/* 内容区域 */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #ff9a9e;
    text-align: center;
}

.content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 图片网格 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.image-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.image-item:hover {
    transform: scale(1.05);
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.image-item p {
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

/* 游戏区域 */
.game-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.game-item {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    width: 300px;
    transition: all 0.3s ease;
}

.game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.game-item h3 {
    margin-bottom: 15px;
    color: #a18cd1;
}

.game-item button {
    padding: 10px 20px;
    background: #a18cd1;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-item button:hover {
    background: #fbc2eb;
    transform: translateY(-2px);
}

/* 视频区域 */
.video-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.video-item {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    width: 350px;
}

.video-item h3 {
    margin-bottom: 15px;
    color: #ff9a9e;
}

.video-item iframe {
    width: 100%;
    height: 200px;
    border-radius: 10px;
}

/* 联系表单 */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #666;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #ff9a9e;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #fad0c4;
    transform: translateY(-2px);
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    padding: 20px;
    text-align: center;
    color: #fff;
    margin-top: 60px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-animals {
        flex-direction: column;
        align-items: center;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-item {
        width: 90%;
    }
}