* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    opacity: 0.8;
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s;
}

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

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* 统计数据 */
.stats {
    padding: 4rem 0;
    background: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 1.1rem;
}

/* 服务区域 */
.services {
    padding: 4rem 0;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

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

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

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

.service-card .icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

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

/* 联系区域 */
.contact {
    padding: 4rem 0;
    background: #f8f9fa;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.contact-item p {
    font-size: 1.1rem;
    color: #333;
}

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

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

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .services-grid,
    .stats-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* ========== 悬浮客服样式 ========== */

.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.contact-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
#667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    position: relative;
}

.contact-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

.contact-toggle i {
    font-size: 28px;
    color: white;
    animation: pulse 2s infinite;
}

.contact-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: 
#10b981;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.contact-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    max-height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.contact-panel.active {
    display: flex;
}

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

.contact-header {
    background: linear-gradient(135deg, 
#667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-header h3 {
    margin: 0;
    font-size: 18px;
}

.contact-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.contact-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.contact-content {
    padding: 20px;
    overflow-y: auto;
    max-height: 500px;
}

/* 快捷联系方式 */
.quick-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: 
#f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: 
#333;
}

.quick-contact-item:hover {
    background: 
#e9ecef;
    transform: translateX(-5px);
}

.quick-contact-item i {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.quick-contact-item.phone i {
    background: 
#10b981;
    color: white;
}

.quick-contact-item.wechat i {
    background: 
#09bb07;
    color: white;
}

.quick-contact-item.email i {
    background: 
#3b82f6;
    color: white;
}

.quick-contact-item .label {
    font-size: 12px;
    color: 
#666;
}

.quick-contact-item .value {
    font-size: 14px;
    font-weight: 600;
    color: 
#333;
}

/* 留言表单 */
.message-form {
    border-top: 1px solid 
#e5e7eb;
    padding-top: 20px;
}

.message-form h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: 
#333;
}

.message-form input,
.message-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid 
#e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.message-form input:focus,
.message-form textarea:focus {
    outline: none;
    border-color: 
#667eea;
}

.message-form textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, 
#667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.form-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: 
#d1fae5;
    color: 
#065f46;
    display: block;
}

.form-message.error {
    background: 
#fee2e2;
    color: 
#991b1b;
    display: block;
}

/* 微信二维码弹窗 */
.wechat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.wechat-modal.active {
    display: flex;
}

.wechat-modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    max-width: 90%;
}

.wechat-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: 
#f3f4f6;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-qrcode {
    padding: 20px;
}

/* 响应式 */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        right: 20px;
    }
    
    .contact-panel {
        width: calc(100vw - 40px);
        right: -10px;
        max-height: 70vh;
    }
    
    .contact-toggle {
        width: 50px;
        height: 50px;
    }
    
    .contact-toggle i {
        font-size: 24px;
    }
}

/* ========== 增强的移动端适配 ========== */
@media (max-width: 768px) {
    /* 基础字体调整 */
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* 导航栏优化 */
    .navbar {
        padding: 0.8rem 0;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 14px;
    }
    
    /* Hero区域优化 */
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 14px;
        margin-top: 1rem;
    }
    
    /* 统计数据优化 */
    .stats {
        padding: 2rem 0;
    }
    
    .stats-grid {
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* 服务区域优化 */
    .services {
        padding: 2rem 0;
    }
    
    .services h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .services-grid {
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card .icon {
        font-size: 2.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p {
        font-size: 14px;
    }
    
    /* 联系区域优化 */
    .contact {
        padding: 2rem 0;
    }
    
    .contact h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-info {
        gap: 1rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    .contact-item i {
        font-size: 2rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
    
    /* 页脚优化 */
    .footer {
        padding: 1.5rem 0;
        font-size: 14px;
    }
}

/* 小屏手机特殊优化 */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero .subtitle {
        font-size: 0.9rem;
    }
    
    .services h2,
    .contact h2 {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}
