/* 基础样式 */
body {
    font-family: "Comic Sans MS", "Marker Felt", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e6f7ff;
    background-image: 
        radial-gradient(circle, #fff 2px, transparent 2px),
        radial-gradient(circle, #fff 2px, transparent 2px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    color: #5d4037;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
    padding: 20px 15px;
    text-align: center;
    border-bottom: 5px dotted #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

header h1 {
    margin: 0;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    font-size: 2.5rem;
}

header i {
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

/* 导航样式 */
nav {
    margin-top: 15px;
}

.nav-btn {
    display: inline-block;
    margin: 0 10px;
    padding: 8px 15px;
    background-color: white;
    color: #ff6b6b;
    text-decoration: none;
    font-weight: bold;
    border-radius: 20px;
    border: 3px solid #ff6b6b;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 0px #ff6b6b;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 4px 4px 0px #ff6b6b;
    background-color: #fff5f5;
}

/* 主要内容样式 */
main {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
    flex: 1;
}

section {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

h2 {
    color: #ff6b6b;
    text-align: center;
    font-size: 2rem;
    margin-top: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 首页样式 */
.welcome-section {
    background-color: #fff9c4;
}

.doodle-box {
    text-align: center;
    margin: 20px 0;
}

.doodle-img {
    border-radius: 15px;
    border: 8px solid white;
    transform: rotate(-2deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

.doodle-img:hover {
    transform: rotate(2deg) scale(1.05);
}

/* 云朵装饰 */
.cloud {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
}

.cloud1 {
    width: 100px;
    height: 60px;
    top: 20px;
    left: 30px;
}

.cloud1:before, .cloud1:after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.cloud1:before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 25px;
}

.cloud1:after {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 60px;
}

.cloud2 {
    width: 80px;
    height: 50px;
    bottom: 40px;
    right: 50px;
}

.cloud2:before, .cloud2:after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.cloud2:before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 20px;
}

.cloud2:after {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 50px;
}

/* 关于页面样式 */
.about-section {
    background-color: #e8f5e9;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.feature-box {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    width: 120px;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    border: 3px dashed #81c784;
}

.feature-box i {
    font-size: 2rem;
    color: #4caf50;
    margin-bottom: 10px;
}

/* 卡通人物装饰 */
.character {
    position: absolute;
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
}

.character1 {
    top: 20px;
    right: 30px;
    background-image: url('');
}

.character2 {
    bottom: 20px;
    left: 20px;
    background-image: url('');
}

/* 联系页面样式 */
.contact-section {
    background-color: #e3f2fd;
}

.letter {
    background-color: white;
    border: 10px solid #bbdefb;
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

.letter:before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #bbdefb;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: #1976d2;
    font-size: 1.3rem;
}

.contact-note {
    background-color: #e3f2fd;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 5px solid #1976d2;
}

.stamp {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: rgba(244, 67, 54, 0.2);
    border: 3px solid #f44336;
    border-radius: 10px;
    transform: rotate(15deg);
    right: 40px;
    top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #f44336;
}

/* 隐私政策页面样式 */
.privacy-section {
    background-color: #f3e5f5;
}

.lock-icon {
    text-align: center;
    margin-bottom: 20px;
}

.lock-icon i {
    font-size: 3rem;
    color: #8e24aa;
    background-color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 5px dotted #8e24aa;
}

.privacy-content h3 {
    color: #8e24aa;
    border-left: 4px solid #8e24aa;
    padding-left: 10px;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
    color: white;
    margin-top: 220px;
    border-top: 5px dotted white;
}

.privacy-link {
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

.privacy-link:hover {
    color: #fff5f5;
}

/* 动画效果 */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 响应式设计 */
@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }
    
    .nav-btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-box {
        width: 80%;
    }
    
    footer {
        margin-top: 100px;
    }
}
    