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

:root {
    --primary-color: #459fd4;
    --primary-dark: #3482b0;
    --primary-light: #6bb3dc;
    --secondary-color: #f8f9fa;
    --text-dark: #333;
    --text-gray: #666;
    --text-light: #999;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
                 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* 头部导航 */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.logo .slogan {
    font-size: 12px;
    color: var(--text-gray);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.header-contact {
    display: flex;
    align-items: center;
}

.phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

.phone-icon {
    font-size: 20px;
}

/* 横幅区域 */
.banner {
    background: linear-gradient(135deg, #459fd4 0%, #3482b0 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.banner-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
}

.banner-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.banner-features {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 40px;
}

.feature-item {
    text-align: center;
}

.feature-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
}

.feature-text {
    font-size: 16px;
    opacity: 0.9;
}

.cta-button {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* 通用板块样式 */
.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 50px;
}

/* 服务项目 */
.services {
    padding: 80px 0;
    background: var(--secondary-color);
}

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

.service-card {
    background: var(--white);
    border-radius: 10px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
}

.service-card.featured {
    border: 2px solid var(--primary-color);
}

.featured-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(69, 159, 212, 0.2);
}

.service-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.service-list {
    list-style: none;
    margin-bottom: 25px;
    text-align: left;
}

.service-list li {
    padding: 8px 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 20px;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-price {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--secondary-color);
    border-radius: 5px;
}

.price-label {
    color: var(--text-gray);
    font-size: 14px;
}

.price-value {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    margin-left: 10px;
}

.service-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.service-button:hover {
    background: var(--primary-dark);
}

/* 服务优势 */
.advantages {
    padding: 80px 0;
    background: var(--white);
}

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

.advantage-item {
    text-align: center;
    padding: 20px;
}

.advantage-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.advantage-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.advantage-item p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* 成功案例 */
.cases {
    padding: 80px 0;
    background: var(--secondary-color);
}

.cases-slider-wrapper {
    overflow: hidden;
    position: relative;
}

.cases-slider {
    display: flex;
    gap: 25px;
    animation: scroll-cases 40s linear infinite;
    will-change: transform;
}

.cases-slider:hover {
    animation-play-state: paused;
}

@keyframes scroll-cases {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.case-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
    min-width: 320px;
    flex-shrink: 0;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.case-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.case-service,
.case-result {
    color: var(--text-gray);
    margin-bottom: 10px;
    font-size: 14px;
}

.case-tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-top: 10px;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background: var(--white);
}

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

.about-text p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-gray);
    font-size: 14px;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #459fd4 0%, #3482b0 100%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
}

.placeholder-icon {
    font-size: 100px;
    margin-bottom: 20px;
}

.image-placeholder p {
    font-size: 24px;
    font-weight: bold;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background: var(--secondary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.contact-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.contact-detail h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-detail p {
    color: var(--text-gray);
    font-size: 16px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-button {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-button:hover {
    background: var(--primary-dark);
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: var(--white);
    padding: 50px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.qrcode-container {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.qrcode-item {
    text-align: center;
}

.qrcode-placeholder {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.qrcode-icon {
    font-size: 50px;
}

.qrcode-item p {
    font-size: 14px;
    margin: 0;
}

/* 浮动咨询按钮 */
.float-consult {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(69, 159, 212, 0.4);
    transition: all 0.3s;
    z-index: 999;
    font-weight: bold;
}

.float-consult:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(69, 159, 212, 0.5);
}

/* 在线咨询弹窗 */
.chat-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    max-height: 600px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

.chat-popup.show {
    display: flex;
}

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

.chat-header {
    background: linear-gradient(135deg, #459fd4 0%, #3482b0 100%);
    color: var(--white);
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.chat-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    max-height: 200px;
}

.chat-welcome {
    background: var(--secondary-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.chat-welcome p {
    margin: 8px 0;
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

.chat-welcome p:first-child {
    font-weight: bold;
    color: var(--text-dark);
}

.chat-footer {
    padding: 15px 20px 20px;
    border-top: 1px solid var(--border-color);
}

.chat-form input,
.chat-form select,
.chat-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.chat-form input:focus,
.chat-form select:focus,
.chat-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-submit {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-submit:hover {
    background: var(--primary-dark);
}

.chat-message {
    background: var(--secondary-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-dark);
}

.chat-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .banner-title {
        font-size: 32px;
    }

    .banner-subtitle {
        font-size: 18px;
    }

    .banner-features {
        flex-direction: column;
        gap: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        justify-content: space-around;
    }

    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 24px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .phone-number {
        font-size: 14px;
    }

    .float-consult {
        right: 15px;
        bottom: 15px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .chat-popup {
        right: 15px;
        bottom: 80px;
        width: calc(100% - 30px);
        max-width: 360px;
    }
}
