/* ============================================
   零点心理 - 全局优化样式 v10
   2026-04-17 重建版
   ============================================ */

/* === 字体导入 === */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500;600&display=swap');

/* === Font Awesome 图标 === */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* === 全局基础 === */
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1F2937;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* === Hero 区域 === */
#hero-section {
    position: relative;
}
#hero-section .elementor-container {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
#hero-section h1 {
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
#hero-section p {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}
#hero-section .elementor-button {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    box-shadow: 0 8px 30px rgba(232,168,124,0.35);
    text-decoration: none;
}
#hero-section .elementor-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(232,168,124,0.5) !important;
}

/* === 信任标签区域 === */
#trust-section {
    background: linear-gradient(180deg, #FAFAF9 0%, #F5F5F3 100%) !important;
}
#trust-section .elementor-icon-box-wrapper {
    padding: 30px 20px;
    border-radius: 20px;
    transition: all 0.4s ease;
    background: transparent;
}
#trust-section .elementor-icon-box-wrapper:hover {
    background: #fff;
    box-shadow: 0 8px 32px rgba(22,60,61,0.08);
    transform: translateY(-5px);
}
#trust-section .elementor-icon {
    transition: all 0.4s ease;
}
#trust-section .elementor-icon-box-wrapper:hover .elementor-icon {
    transform: scale(1.15);
}

/* === 咨询师团队 === */
#team-section .image-box-img {
    transition: all 0.5s ease;
    filter: brightness(1);
}
#team-section .elementor-image-box:hover .image-box-img {
    transform: scale(1.03);
    filter: brightness(1.05);
}
#team-section .elementor-image-box-title {
    font-weight: 700 !important;
    color: #163C3D !important;
}
#team-section .elementor-image-box-description {
    line-height: 1.7 !important;
    white-space: pre-line;
}

/* === 服务项目 === */
#services-section {
    background: linear-gradient(135deg, #E2EDDF 0%, #D8E8D4 100%) !important;
}
#services-section .elementor-icon-box-wrapper {
    background: #fff;
    border-radius: 20px;
    padding: 40px 24px;
    transition: all 0.4s ease;
    box-shadow: 0 2px 12px rgba(22,60,61,0.05);
}
#services-section .elementor-icon-box-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(22,60,61,0.12);
}
#services-section .elementor-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(232,168,124,0.2), rgba(232,168,124,0.08));
    transition: all 0.4s ease;
}
#services-section .elementor-icon-box-wrapper:hover .elementor-icon {
    background: linear-gradient(135deg, #E8A87C, #D9966A);
    color: #fff !important;
}

/* === 服务人群标签 === */
#audience-tags span {
    display: inline-block;
    cursor: default;
    transition: all 0.3s ease;
    user-select: none;
}
#audience-tags span:hover {
    background: #163C3D !important;
    color: #fff !important;
    transform: scale(1.06);
    box-shadow: 0 4px 16px rgba(22,60,61,0.25);
}

/* === 来访者反馈 === */
#testimonials-section .elementor-testimonial-content {
    font-style: italic;
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    position: relative;
    padding: 0 10px;
}
#testimonials-section .elementor-testimonial-content::before {
    content: '"';
    font-size: 48px;
    color: #E8A87C;
    opacity: 0.3;
    position: absolute;
    top: -15px;
    left: -5px;
    font-family: Georgia, serif;
}
#testimonials-section .elementor-testimonial-name {
    font-weight: 600;
    color: #163C3D !important;
    font-size: 16px;
}

/* === 心理健康知识（文章列表）=== */
#knowledge-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    max-width: 800px;
    margin: 0 auto;
}
#knowledge-grid .elementor-image-box {
    display: flex;
    flex-direction: row !important;
    gap: 28px;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(22,60,61,0.07);
    transition: all 0.4s ease;
    border: 1px solid rgba(22,60,61,0.04);
    padding: 0;
}
#knowledge-grid .elementor-image-box:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 32px rgba(22,60,61,0.14);
    border-color: rgba(232,168,124,0.3);
}
#knowledge-grid .elementor-image-box-img img {
    width: 200px;
    height: 160px;
    object-fit: cover;
    border-radius: 0;
}
#knowledge-grid .elementor-image-box-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 28px 24px 0;
    flex: 1;
}
#knowledge-grid .elementor-image-box-title {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #163C3D !important;
    line-height: 1.4 !important;
}
#knowledge-grid .elementor-image-box-description {
    font-size: 14px !important;
    color: #6B7280 !important;
    line-height: 1.65 !important;
}

/* === CTA 区域 === */
#cta-section {
    background: linear-gradient(135deg, #163C3D 0%, #1A4A4B 50%, #0F2A2B 100%) !important;
    position: relative;
    overflow: hidden;
}
#cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232,168,124,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
#cta-section .elementor-button {
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    box-shadow: 0 8px 30px rgba(232,168,124,0.35);
}
#cta-section .elementor-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 48px rgba(232,168,124,0.45) !important;
}

/* === 联系我们区域 === */
#contact-section {
    background: linear-gradient(180deg, #0F2A2B 0%, #0A1E1F 100%) !important;
}
#contact-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 50px !important;
    align-items: start;
}
#contact-info > div {
    max-width: 480px;
}
#contact-map iframe {
    border-radius: 20px !important;
}

/* === 版权信息 === */
#copyright p {
    font-size: 13px !important;
    letter-spacing: 0.5px;
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 1024px) {
    /* 平板：联系区域改为单列 */
    #contact-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* 文章卡片改为纯纵向 */
    #knowledge-grid .elementor-image-box {
        flex-direction: row !important;
    }
    #knowledge-grid .elementor-image-box-img img {
        width: 140px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    /* 手机端优化 */
    #hero-section h1 {
        font-size: 36px !important;
        letter-spacing: 1px;
    }
    #hero-section p {
        font-size: 16px !important;
    }
    
    /* 文章卡片手机端纵向排列 */
    #knowledge-grid .elementor-image-box {
        flex-direction: column !important;
        text-align: center;
    }
    #knowledge-grid .elementor-image-box-img img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
    #knowledge-grid .elementor-image-box-wrapper {
        padding: 20px;
    }
    
    /* 标签自适应 */
    #audience-tags span {
        padding: 10px 22px !important;
        font-size: 14px !important;
    }
    
    /* 咨询师卡片 */
    #team-grid .elementor-image-box {
        text-align: center;
    }
    
    /* 服务项目 */
    #services-section .elementor-icon-box-wrapper {
        padding: 28px 18px;
    }
    
    /* CTA标题 */
    #cta-section h2 {
        font-size: 28px !important;
    }
    
    /* 联系信息 */
    #contact-info > div div[style*="display:flex"] {
        gap: 14px !important;
    }
    #contact-info > div div div[style*="width:56px"] {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    #hero-section h1 {
        font-size: 30px !important;
    }
    #trust-section .elementor-icon-box-wrapper {
        padding: 20px 12px;
    }
    #knowledge-grid {
        gap: 16px !important;
    }
    #knowledge-grid .elementor-image-box {
        border-radius: 16px;
    }
}

/* === 动画效果 === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.elementor-element {
    animation: fadeInUp 0.6s ease-out both;
}
#hero-section .elementor-element { animation-delay: 0.1s; }
#trust-section .elementor-element { animation-delay: 0.2s; }
#team-section .elementor-element { animation-delay: 0.3s; }
#services-section .elementor-element { animation-delay: 0.4s; }

/* === 滚动条美化 === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c4c4c4; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a0a0a0; }

/* === 选择高亮颜色 === */
::selection {
    background: rgba(232,168,124,0.3);
    color: #163C3D;
}
