/* 下骆宅第二幼儿园网站样式表 - 多彩童趣风格 */

/* 基础重置和全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', 'SimHei', '黑体', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    min-height: 100vh;
}

/* 彩虹色系定义 */
:root {
    --red: #ff6b6b;
    --orange: #ffa726;
    --yellow: #ffeb3b;
    --green: #66bb6a;
    --blue: #42a5f5;
    --purple: #ab47bc;
    --pink: #f48fb1;
    --light-blue: #81d4fa;
    --light-green: #a5d6a7;
    --light-yellow: #fff59d;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple));
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 主要内容区域 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 英雄区域（首页横幅） */
.hero {
    background: linear-gradient(135deg, var(--light-blue), var(--light-green), var(--light-yellow));
    padding: 4rem 0;
    text-align: center;
    border-radius: 0 0 50px 50px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 3rem;
    color: var(--purple);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: bounce 2s infinite;
}

.hero p {
    font-size: 1.3rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* 卡片样式 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.card:nth-child(1) { border-color: var(--red); }
.card:nth-child(2) { border-color: var(--orange); }
.card:nth-child(3) { border-color: var(--yellow); }
.card:nth-child(4) { border-color: var(--green); }

.card h3 {
    color: var(--purple);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.card p {
    color: #666;
    line-height: 1.8;
}

/* 特色图标 */
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.card:nth-child(1) .feature-icon { background: var(--red); }
.card:nth-child(2) .feature-icon { background: var(--orange); }
.card:nth-child(3) .feature-icon { background: var(--yellow); }
.card:nth-child(4) .feature-icon { background: var(--green); }

/* 页面标题 */
.page-title {
    text-align: center;
    margin: 3rem 0;
    font-size: 2.5rem;
    color: var(--purple);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* 内容区域 */
.content-section {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.content-section h2 {
    color: var(--blue);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--yellow);
    padding-bottom: 0.5rem;
}

.content-section h3 {
    color: var(--green);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #555;
}

/* 课程时间表 */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.schedule-table th {
    background: linear-gradient(90deg, var(--blue), var(--purple));
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
}

.schedule-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.schedule-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* 联系信息样式 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-item {
    background: linear-gradient(135deg, var(--light-blue), var(--light-green));
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-item p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(90deg, var(--purple), var(--blue), var(--green));
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        padding: 2rem 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .content-section {
        padding: 1.5rem 1rem;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--red), var(--orange));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* 图片样式 */
.image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, var(--light-blue), var(--light-green));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin: 1rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* 图片展示区域样式 */
.gallery-section {
    margin: 3rem 0;
}

.gallery-section h3 {
    color: var(--purple);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 3px solid var(--yellow);
    padding-bottom: 0.5rem;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.gallery-item .image-placeholder {
    height: 250px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.gallery-item .image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .image-placeholder::before {
    opacity: 1;
}

.gallery-item .image-placeholder small {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* 响应式图片展示 */
@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-item .image-placeholder {
        height: 200px;
    }
    
    .gallery-section h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-item .image-placeholder {
        height: 180px;
        font-size: 1rem;
    }
    
    .gallery-item .image-placeholder small {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
}
