/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff; /* 纯白色背景 */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 图片懒加载 */
img {
    loading: lazy;
}

/* 预加载动画 */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #faf8f5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-logo {
    font-size: 32px;
    font-weight: 700;
    color: #0066cc;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(107, 144, 128, 0.2);
    border-top-color: #0066cc;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 可访问性优化 */
:focus {
    outline: 2px solid rgba(0, 102, 204, 0.3);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 键盘导航优化 */
.nav-links a,
.btn,
.form-submit,
.prev-btn,
.next-btn,
.back-to-top {
    transition: all 0.3s ease;
}

/* 颜色对比度优化 */
.section-title,
.advantage-card h3,
.product-info h3,
.solution-card h3,
.parents-article-content h3,
.about-feature h3,
.about-team h3 {
    color: #2c3e50;
}

.advantage-card p,
.product-info p,
.solution-card p,
.parents-content p,
.parents-article-content p,
.about-content p,
.about-feature p,
.about-team p,
.quality-description p {
    color: #555;
}

/* 专业品质 成就口碑 */
.quality-section {
    text-align: center;
    padding: 60px 0;
}

.quality-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.quality-tab {
    background: transparent;
    border: 2px solid #0066cc;
    color: #0066cc;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quality-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #0066cc;
    transition: left 0.3s ease;
    z-index: -1;
}

.quality-tab:hover {
    color: white;
}

.quality-tab:hover::before {
    left: 0;
}

.quality-tab.active {
    background: #0066cc;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.quality-tab.active::before {
    left: 0;
}

.quality-image-container {
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 400px;
}

.quality-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: scale(1.1);
}

.quality-image.active {
    opacity: 1;
    transform: scale(1);
}

.quality-descriptions {
    max-width: 800px;
    margin: 0 auto;
}

.quality-description {
    display: none;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quality-description.active {
    display: block;
    opacity: 1;
}

/* 拨打电话按钮 */
.call-button-container {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 999;
}

.call-button {
    position: relative;
    width: 50px;
    height: 50px;
    background-color: #005ab5;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    text-decoration: none;
}

.call-button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.phone-number {
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: #005ab5;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    white-space: nowrap;
}

.phone-number.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.phone-number::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 15px;
    border-width: 6px;
    border-style: solid;
    border-color: #005ab5 transparent transparent transparent;
}

.call-button:hover {
    background-color: #004a91;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #005ab5;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #004a91;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

/* 滚动进度指示器 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: #005ab5;
    z-index: 1001;
    width: 0%;
    transition: width 0.1s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 20px 0;
    border-bottom: 1px solid rgba(150, 150, 150, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #0066cc;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover {
    color: #0066cc;
}

.nav-links a.active {
    color: #0066cc;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* 菜单按钮动画 */
.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: #0066cc;
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background-color: #0066cc;
}

/* 首页轮播 */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slider {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8fafc;
    background-image: linear-gradient(135deg, #e6f0ff 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(1.05);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slider-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

/* 移动端banner适配 */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .slide {
        background-position: center 20%;
    }
    
    .slider-controls {
        bottom: 20px;
        gap: 15px;
    }
    
    .prev-btn, .next-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 45vh;
        min-height: 250px;
    }
    
    .slide {
        background-position: center 15%;
    }
}

.prev-btn, .next-btn {
    background: transparent;
    border: 1px solid #0066cc;
    color: #0066cc;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn:hover, .next-btn:hover {
    background-color: #0066cc;
    color: white;
}

/* 通用区块样式 */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0066cc;
}

/* 产品核心优势 */
.advantages {
    background-color: white;
    padding: 60px 0;
}

/* 产品中心 */
.products {
    background-color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.product-card:hover {   
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 102, 204, 0.2);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-image-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #e6f0ff;
    background-image: linear-gradient(135deg, #e6f0ff 0%, #e2e8f0 100%);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.product-info {
    padding: 25px;
    text-align: center;
    position: relative;
}

.product-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.product-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.product-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.product-card:hover .product-hover {
    opacity: 1;
}

.product-hover p {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* 分龄服务方案 */
.solutions {
    background-color: #f0f6ff;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.solution-card {
    background-color: white;
    background-image: linear-gradient(135deg, white 0%, #fafefe 100%);
    padding: 50px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 102, 204, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.05), transparent);
    transition: left 0.5s ease;
}

.solution-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 102, 204, 0.2);
}

.solution-card:hover::before {
    left: 100%;
}

.solution-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 15px;
}

.solution-card p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* 家长课堂和关于我们 */
.parents {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.parents::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%23cbd5e1" fill-opacity="0.1" fill-rule="evenodd"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.parents .container {
    position: relative;
    z-index: 1;
}

.parents-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.parents-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* 家长课堂文章列表 */
.parents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.parents-article {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(226, 232, 240, 1);
    position: relative;
    transform: translateY(0);
}

.parents-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.parents-article:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.parents-article:hover::before {
    transform: scaleX(1);
}

.parents-article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #e6f0ff;
}

.parents-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.parents-article:hover .parents-article-image img {
    transform: scale(1.1);
}

.parents-article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.parents-article-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: all 0.3s ease;
    letter-spacing: -0.02em;
}

.parents-article:hover .parents-article-content h3 {
    color: #667eea;
    transform: translateX(5px);
}

.parents-article-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 0;
    flex-grow: 1;
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.parents-article:hover .parents-article-content p {
    color: #475569;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 文章卡片动画延迟 */
.parents-article:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.parents-article:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.parents-article:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

.parents-article:nth-child(4) {
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .parents-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .parents {
        padding: 60px 0;
    }
    
    .parents-content p {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .parents-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .parents-article-image {
        height: 200px;
    }
    
    .parents-article-content {
        padding: 20px;
    }
    
    .parents-article-content h3 {
        font-size: 18px;
    }
    
    .parents-article-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .parents {
        padding: 40px 0;
    }
    
    .parents-content p {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .parents-grid {
        gap: 15px;
    }
    
    .parents-article-image {
        height: 180px;
    }
    
    .parents-article-content {
        padding: 15px;
    }
    
    .parents-article-content h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .parents-article-content p {
        font-size: 13px;
        line-height: 1.6;
    }
}

/* 关于我们 */
.about {
    background-color: white;
    text-align: center;
}
.parents-cta {
    text-align: center;
}

/* 家长课堂响应式设计 */
@media (max-width: 768px) {
    .parents-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .parents-article-image {
        height: 180px;
    }
    
    .parents-article-content {
        padding: 25px;
    }
}

/* 关于我们扩展样式 */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.about-feature {
    background-color: #f0f6ff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.about-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 102, 204, 0.2);
}

.about-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066cc;
    background-color: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
}

.about-feature-icon svg {
    width: 40px;
    height: 40px;
}

.about-feature h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.about-feature p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.about-team {
    background-color: #f0f6ff;
    padding: 50px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.about-team h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.about-team p {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* 关于我们响应式设计 */
@media (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 40px 0;
    }
    
    .about-feature {
        padding: 30px 20px;
    }
    
    .about-feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .about-feature-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .about-team {
        padding: 40px 20px;
    }
    
    .about-team h3 {
        font-size: 20px;
    }
}

/* 页脚 */
.footer {
    background-color: #333;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: white;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: #0066cc;
    transform: translateX(5px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: #ccc;
    font-size: 14px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact-item i {
    color: #0066cc;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    section {
        padding: 80px 0;
    }
    
    /* 产品中心响应式 */
    .products-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* 移动端页脚只显示版权信息 */
    .footer {
        padding: 30px 0;
    }
    
    .footer-content {
        display: none;
    }
    
    .footer-copyright {
        padding-top: 0;
        border-top: none;
        font-size: 12px;
    }
}

@media (max-width: 1200px) {
    /* 产品核心优势响应式 */
    .advantages-grid {
        gap: 30px;
    }
    
    /* 分龄服务方案响应式 */
    .solutions-grid {
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 30px;
    }
    
    /* 产品核心优势响应式 */
    .advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    /* 产品中心响应式 */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    /* 分龄服务方案响应式 */
    .solutions-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    /* 导航栏响应式 */
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: rgba(250, 248, 245, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 30px 0;
        gap: 20px;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* 通用区块响应式 */
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    /* 产品核心优势响应式 */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* 产品中心响应式 */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* 分龄服务方案响应式 */
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* 页脚响应式 */
    .footer-links {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }
    
    /* 产品中心响应式 */
    .product-card {
        padding: 0;
    }
    
    .product-image-container {
        height: 250px;
    }
    
    /* 分龄服务方案响应式 */
    .solution-card {
        padding: 30px 20px;
    }
    
    /* 分龄服务方案响应式 */
    .solution-card h3 {
        font-size: 20px;
    }
    
    .solution-card p {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    /* 产品中心响应式 */
    .product-image-container {
        height: 200px;
    }
    
    /* 分龄服务方案响应式 */
    .solution-card {
        padding: 25px 15px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card, .solution-card {
    animation: fadeIn 0.6s ease forwards;
}

.product-card:nth-child(2), .solution-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3), .solution-card:nth-child(3) {
    animation-delay: 0.4s;
}

.product-card:nth-child(4) {
    animation-delay: 0.6s;
}

/* 产品详情页特有样式 */
.page-header {
    background-color: #e6f0ff;
    background-image: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    animation: slideInUp 0.8s ease-out;
}

.page-header p {
    font-size: 18px;
    color: #666;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

/* 产品列表优化 */
.product-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.product-detail-card {
    background-color: white;
    background-image: linear-gradient(135deg, white 0%, #fafefe 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 102, 204, 0.1);
    position: relative;
}

.product-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #005ab5 0%, #3b82f6 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-detail-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.product-detail-card:hover::before {
    transform: scaleX(1);
}

.product-detail-image-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background-color: #e6f0ff;
    background-image: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.product-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.product-detail-card:hover .product-detail-image {
    transform: scale(1.1);
}

.product-detail-info {
    padding: 35px;
}

.product-detail-info h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.product-detail-card:hover .product-detail-info h3 {
    color: #0066cc;
}

.product-detail-age {
    color: #0066cc;
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.product-detail-age::before {
    content: '👶';
    margin-right: 8px;
    font-size: 18px;
}

.product-detail-features {
    margin: 25px 0;
}

.product-detail-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.product-detail-card:hover .product-detail-feature {
    color: #555;
}

.product-detail-feature::before {
    content: '✓';
    color: #0066cc;
    font-weight: bold;
    margin-right: 12px;
    margin-top: 2px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.product-detail-card:hover .product-detail-feature::before {
    transform: scale(1.2);
}

/* 产品详情页响应式设计 */
@media (max-width: 1200px) {
    .product-detail-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .page-header {
        padding: 100px 0 50px;
    }
    
    .product-detail-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .page-header p {
        font-size: 15px;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 40px 0;
    }
    
    .product-detail-image-container {
        height: 300px;
    }
    
    .product-detail-info {
        padding: 30px 25px;
    }
    
    .product-detail-info h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 60px 0 30px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .page-header p {
        font-size: 14px;
    }
    
    .product-detail-grid {
        gap: 25px;
    }
    
    .product-detail-image-container {
        height: 250px;
    }
    
    .product-detail-info {
        padding: 25px 20px;
    }
    
    .product-detail-info h3 {
        font-size: 18px;
    }
    
    .product-detail-age {
        font-size: 14px;
    }
    
    .product-detail-feature {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .product-detail-image-container {
        height: 220px;
    }
    
    .product-detail-info {
        padding: 20px 15px;
    }
    
    .product-detail-info h3 {
        font-size: 17px;
    }
    
    .product-detail-features {
        margin: 20px 0;
    }
    
    .product-detail-feature {
        margin-bottom: 12px;
    }
}

/* 联系我们页面特有样式 */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    background-color: white;
    background-image: linear-gradient(135deg, white 0%, #fafefe 100%);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(107, 144, 128, 0.1);
}

.contact-info h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #0066cc;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(107, 144, 128, 0.1);
    color: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.contact-item-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 联系表单 */
.contact-form {
    background-color: white;
    background-image: linear-gradient(135deg, white 0%, #fafefe 100%);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(107, 144, 128, 0.1);
}

.contact-form h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #0066cc;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(107, 144, 128, 0.2);
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    background-color: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(107, 144, 128, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
    max-height: 300px;
}

.form-submit {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.form-submit:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 144, 128, 0.3);
}

/* 地图 */
.map-container {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 400px;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

/* 联系我们页面响应式设计 */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-info,
    .map-container {
        margin: 0 20px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .contact-item-icon {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 28px;
    }
}

/* 关于我们页面特有样式 */
.page-header {
    background-color: #e6f0ff;
    background-image: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    animation: slideInUp 0.8s ease-out;
}

.page-header p {
    font-size: 18px;
    color: #666;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

/* 关于我们内容 */
.about-content-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    margin-top: 40px;
}

.about-image {
    height: 500px;
    background-color: #e6f0ff;
    background-image: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* 团队介绍 */
.team-section {
    background-color: #faf8f5;
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-card {
    background-color: white;
    background-image: linear-gradient(135deg, white 0%, #fafefe 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(107, 144, 128, 0.1);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.team-image {
    height: 300px;
    background-color: #e6f0ff;
    background-image: linear-gradient(135deg, #e6f0ff 0%, #cce0ff 100%);
}

.team-info {
    padding: 30px;
    text-align: center;
}

.team-info h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.team-info p {
    color: #0066cc;
    font-size: 14px;
    margin-bottom: 15px;
}

.team-info .team-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 核心价值观 */
.values-section {
    padding: 80px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background-color: white;
    background-image: linear-gradient(135deg, white 0%, #fafefe 100%);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(107, 144, 128, 0.1);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066cc;
    font-size: 40px;
}

.value-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.value-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 关于我们页面响应式设计 */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    .about-content-section,
    .team-section,
    .values-section {
        padding: 60px 0;
    }
    
    .about-image {
        height: 350px;
    }
    
    .team-grid {
        gap: 25px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 28px;
    }
    
    .about-text {
        font-size: 15px;
    }
    
    .about-text h3 {
        font-size: 20px;
    }
}

/* 家长课堂页面特有样式 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 140px 0 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%23ffffff" fill-opacity="0.1" fill-rule="evenodd"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-header p {
    font-size: 20px;
    margin: 0 auto;
    max-width: 600px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    font-weight: 300;
}

/* 分类导航 */
.category-nav {
    background-color: white;
    padding: 25px 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 20px 20px;
}

.category-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item {
    /* 确保每个分类项都是独立的点击区域 */
    position: relative;
    z-index: 1;
}

.category-item a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1.0);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    /* 确保链接是独立的点击区域 */
    display: inline-block;
    z-index: 2;
}

.category-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: all 0.6s ease;
}

.category-item a:hover::before {
    left: 100%;
}

.category-item a:hover,
.category-item a.active {
    color: #667eea;
    background-color: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

/* 文章列表 */
.articles-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.article-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(226, 232, 240, 1);
    transform: translateY(0);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-image {
    height: 220px;
    object-fit: cover;
    object-position: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(226, 232, 240, 1);
}

.article-card:hover .article-image {
    transform: scale(1.1);
}

.article-info {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.article-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: all 0.3s ease;
    letter-spacing: -0.02em;
}

.article-card:hover .article-info h3 {
    color: #667eea;
    transform: translateX(5px);
}

.article-excerpt {
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.article-card:hover .article-excerpt {
    color: #475569;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 移除滚动动画，确保分类切换稳定 */
.article-card {
    opacity: 1;
    transform: translateY(0);
}

/* 家长课堂响应式设计 */
@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }
    
    .page-header h1 {
        font-size: 42px;
    }
}

@media (max-width: 992px) {
    .articles-section {
        padding: 60px 0;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .page-header p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 50px;
    }
    
    .page-header h1 {
        font-size: 30px;
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    .articles-section {
        padding: 40px 0;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .category-list {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .category-item a {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .article-image {
        height: 200px;
    }
    
    .article-info {
        padding: 25px 20px;
    }
    
    .article-info h3 {
        font-size: 20px;
    }
    
    .article-excerpt {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .page-header p {
        font-size: 14px;
    }
    
    .category-nav {
        padding: 20px 0;
    }
    
    .category-list {
        gap: 10px;
    }
    
    .category-item a {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .articles-grid {
        gap: 15px;
    }
    
    .article-image {
        height: 180px;
    }
    
    .article-info {
        padding: 20px 15px;
    }
    
    .article-info h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .article-excerpt {
        font-size: 13px;
        line-height: 1.6;
    }
}

@media (max-width: 360px) {
    .article-info h3 {
        font-size: 16px;
    }
    
    .article-excerpt {
        font-size: 12px;
    }
}

/* 文章详情页特有样式 */
.page-header {
    background-color: #e6f0ff;
    background-image: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    animation: slideInUp 0.8s ease-out;
}

.page-header p {
    font-size: 18px;
    color: #666;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

/* 文章内容 */
.article-detail-section {
    padding: 80px 0;
}

.article-detail-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    background-image: linear-gradient(135deg, white 0%, #fafefe 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid rgba(107, 144, 128, 0.1);
}

.article-detail-header {
    padding: 40px;
    border-bottom: 1px solid rgba(107, 144, 128, 0.1);
}

.article-detail-meta {
    display: flex;
    align-items: center;
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

.article-detail-date {
    margin-right: 20px;
}

.article-detail-category {
    background-color: rgba(107, 144, 128, 0.1);
    color: #0066cc;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.article-detail-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.3;
}

.article-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.article-detail-content {
    padding: 40px;
    color: #555;
    line-height: 1.8;
    font-size: 16px;
    background-color: white;
}

.article-detail-content p {
    margin-bottom: 30px;
    text-align: justify;
}

.article-detail-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin: 50px 0 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(107, 144, 128, 0.2);
    position: relative;
}

.article-detail-content h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #005ab5 0%, #3b82f6 100%);
}

.article-detail-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 40px 0 15px;
    padding-left: 15px;
    border-left: 4px solid #0066cc;
}

.article-detail-content ul,
.article-detail-content ol {
    margin-bottom: 30px;
    padding-left: 35px;
}

.article-detail-content ul {
    list-style-type: none;
}

.article-detail-content ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.article-detail-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: bold;
}

/* 404页面特有样式 */
.error-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: #faf8f5;
}

.error-content {
    text-align: center;
    max-width: 600px;
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 20px;
    line-height: 1;
}

.error-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.error-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.error-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.error-btn:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 144, 128, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .error-code {
        font-size: 80px;
    }
    
    .error-title {
        font-size: 24px;
    }
    
    .error-message {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 60px;
    }
    
    .error-title {
        font-size: 20px;
    }
}
}

.article-detail-content ol li {
    margin-bottom: 15px;
    font-weight: 500;
}

.article-detail-content strong {
    color: #0066cc;
    font-weight: 600;
}

.article-detail-content em {
    color: #666;
    font-style: italic;
}

.article-detail-content a {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
}

.article-detail-content a:hover {
    color: #0052a3;
    border-bottom-color: #0052a3;
}

/* 相关推荐 */
.related-articles {
    padding: 80px 0;
    background-color: #faf8f5;
    background-image: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.related-articles h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
    position: relative;
}

.related-articles h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0066cc 0%, #4da6ff 100%);
    border-radius: 2px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.related-article-card {
    background-color: white;
    background-image: linear-gradient(135deg, white 0%, #fafefe 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(107, 144, 128, 0.1);
    position: relative;
}

.related-article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0066cc 0%, #4da6ff 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-article-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.related-article-card:hover::before {
    transform: scaleX(1);
}

.related-article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-article-card:hover .related-article-image {
    transform: scale(1.1);
}

.related-article-info {
    padding: 30px;
}

.related-article-info h3 {
    font-size: 19px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.related-article-card:hover .related-article-info h3 {
    color: #0066cc;
}

.related-article-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.related-article-card:hover .related-article-info p {
    color: #555;
}

.related-article-readmore {
    display: inline-flex;
    align-items: center;
    color: #0066cc;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.related-article-readmore:hover {
    color: #0052a3;
    transform: translateX(8px);
}

.related-article-readmore::after {
    content: '→';
    margin-left: 8px;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-article-readmore:hover::after {
    margin-left: 12px;
    transform: translateX(4px);
}

/* 返回列表按钮 */
.back-to-list {
    display: inline-block;
    background-color: rgba(0, 102, 204, 0.1);
    color: #0066cc;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-list:hover {
    background-color: rgba(0, 102, 204, 0.2);
    transform: translateX(-5px);
}

.back-to-list::before {
    content: '← ';
    margin-right: 5px;
}

/* 文章内容渐入动画 */
.article-detail-content p,
.article-detail-content h2,
.article-detail-content h3,
.article-detail-content ul,
.article-detail-content ol {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.article-detail-content p.animate,
.article-detail-content h2.animate,
.article-detail-content h3.animate,
.article-detail-content ul.animate,
.article-detail-content ol.animate,
.back-to-list.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 延迟动画 */
.article-detail-content p:nth-child(2).animate {
    transition-delay: 0.1s;
}

.article-detail-content p:nth-child(3).animate {
    transition-delay: 0.2s;
}

.article-detail-content p:nth-child(4).animate {
    transition-delay: 0.3s;
}

/* 文章详情页响应式设计 */
@media (max-width: 1200px) {
    .article-detail-container {
        margin: 0 40px;
    }
    
    .related-articles-grid {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .page-header {
        padding: 100px 0 50px;
    }
    
    .article-detail-section {
        padding: 60px 0;
    }
    
    .related-articles {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .page-header p {
        font-size: 15px;
    }
    
    .article-detail-section {
        padding: 40px 0;
    }
    
    .article-detail-container {
        margin: 0 20px;
    }
    
    .article-detail-header,
    .article-detail-content {
        padding: 30px 25px;
    }
    
    .article-detail-title {
        font-size: 24px;
    }
    
    .article-detail-image {
        height: 300px;
    }
    
    .article-detail-content h2 {
        font-size: 22px;
        margin: 40px 0 20px;
    }
    
    .article-detail-content h3 {
        font-size: 20px;
        margin: 30px 0 15px;
    }
    
    .related-articles {
        padding: 40px 0;
    }
    
    .related-articles h2 {
        font-size: 28px;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 20px;
    }
    
    .related-article-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 60px 0 30px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .page-header p {
        font-size: 14px;
    }
    
    .article-detail-container {
        margin: 0 15px;
    }
    
    .article-detail-header,
    .article-detail-content {
        padding: 25px 20px;
    }
    
    .article-detail-title {
        font-size: 22px;
    }
    
    .article-detail-image {
        height: 250px;
    }
    
    .article-detail-content {
        font-size: 15px;
    }
    
    .article-detail-content h2 {
        font-size: 20px;
    }
    
    .article-detail-content h3 {
        font-size: 18px;
    }
    
    .related-articles h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }
    
    .related-article-image {
        height: 180px;
    }
    
    .related-article-info {
        padding: 25px 20px;
    }
    
    .related-article-info h3 {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .article-detail-image {
        height: 200px;
    }
    
    .related-article-image {
        height: 160px;
    }
}


