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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2; /* 确保内容在粒子效果之上 */
}

/* 头部英雄区 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 粒子效果容器 */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; /* 粒子效果在背景层 */
}

.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2; /* 内容在粒子效果之上 */
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 3;
}

.cta-button:hover {
    background: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 关于我 */
.about {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.about p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

.highlight {
    color: #667eea;
}

/* 服务板块 */
.services {
    padding: 80px 0;
    background: white;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.service-card p {
    margin-bottom: 20px;
    color: #666;
}

.service-list {
    list-style-type: none;
    margin-bottom: 20px;
}

.service-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-highlight {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 5px;
    font-weight: 500;
    color: #1976d2;
    border-left: 4px solid #2196f3;
}

/* 收费说明 */
.pricing {
    padding: 80px 0;
    background: #f8f9fa;
}

.pricing h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
}

.pricing-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.principle {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.principle-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.principle h3 {
    margin-bottom: 15px;
    color: #667eea;
}

.process {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.process h3 {
    margin-bottom: 30px;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 120px;
    margin: 0 10px;
}

.step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -20px;
    top: 30px;
    font-size: 1.5rem;
    color: #667eea;
    z-index: 1;
}

.step-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-text {
    font-weight: 500;
    color: #333;
}

/* 微信聊天评价 */
.testimonials {
    padding: 80px 0;
    background: white;
}

.testimonials h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
}

.testimonial-chats {
    display: grid;
    grid-template-columns: 1fr; /* 改为单列布局 */
    gap: 30px;
    max-width: 800px; /* 限制最大宽度 */
    margin: 0 auto;
}

.chat-container {
    background: transparent; /* 移除背景色 */
    border-radius: 0; /* 移除圆角 */
    overflow: hidden;
    box-shadow: none; /* 移除阴影 */
}

.chat-box {
    padding: 15px;
    height: 500px;
    overflow-y: hidden; /* 禁止手动滑动 */
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

.message {
    display: flex;
    margin-bottom: 15px;
    /* 移除默认的CSS动画，改用JavaScript控制 */
    opacity: 0;
    transform: translateY(10px);
}

.message.received {
    justify-content: flex-start;
}

.message.sent {
    justify-content: flex-end;
}

.message .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin: 0 10px;
}

.message.received .avatar {
    background: #07c160;
    color: white;
}

.message.sent .avatar {
    background: #fff;
    border: 1px solid #e0e0e0;
}

.message .content {
    max-width: 70%;
    position: relative;
}

.message.received .content {
    background: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    border-top-left-radius: 0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.message.sent .content {
    background: #95ec69;
    padding: 10px 15px;
    border-radius: 10px;
    border-top-right-radius: 0;
}

.message .content p {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.username {
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: #666;
}

.message.sent .username {
    color: #333;
}

.message .time {
    font-size: 0.7rem;
    color: #999;
    text-align: right;
    display: block;
}

.message.sent .time {
    color: #666;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}
/* 行动号召 */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta .subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .final-cta {
    font-size: 1.2rem;
    padding: 20px 40px;
}

/* 页脚 */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .step:not(:last-child)::after {
        display: none;
    }
    
    .step {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .about h2,
    .services h2,
    .pricing h2,
    .testimonials h2 {
        font-size: 1.8rem;
    }
    
    .service-card,
    .principle {
        padding: 20px;
    }
    
    .services-grid,
    .pricing-principles {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .step {
        display: flex;
        align-items: center;
        text-align: left;
        min-width: auto;
        width: 100%;
        margin-bottom: 20px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .step-icon {
        margin: 0 15px 0 0;
        flex-shrink: 0;
    }
    
    .step-text {
        text-align: left;
        font-size: 1.1rem;
    }
    
    .step:not(:last-child) {
        position: relative;
    }
    
    .step:not(:last-child)::after {
        display: block;
        content: "↓";
        position: absolute;
        left: 30px;
        bottom: -20px;
        transform: translateX(-50%);
        font-size: 1.5rem;
        color: #667eea;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
}

/* 响应式设计 - 小屏幕 */
@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    
    .container {
        width: 95%;
    }
    
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    
    .step-icon {
        margin: 0 auto 15px;
    }
    
    .step-text {
        text-align: center;
    }
    
    .step:not(:last-child)::after {
        left: 50%;
        top: 100%;
        bottom: auto;
        transform: translateX(-50%);
    }
}
