/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



:root {
    /* 主色调 */
    --primary-blue: #0B3C5D;
    --primary-green: #2C5F2D;
    --secondary-gray: #6b7280;
    --accent-orange: #E67E22;
    --accent-yellow: #fbbf24;
    
    /* 中性色 */
    --white: #ffffff;
    --light-gray: #f9fafb;
    --medium-gray: #e5e7eb;
    --dark-gray: #374151;
    --black: #111827;
    
    /* 字体 */
    --font-family: 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
    
    /* 间距 */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    --border-radius: 8px;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 媒体元素自适应 */
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 触控目标尺寸优化 */
button,
.cta-button,
.service-detail-btn,
.team-more-btn,
.blog-more-btn,
.form-submit-btn {
    min-height: 44px;
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 2px;
}

.slogan {
    font-size: 12px;
    color: var(--secondary-gray);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-blue);
}

.cta-button {
    background: var(--accent-orange);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    margin: 3px 0;
    transition: 0.3s;
}

/* 首屏英雄区 */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    opacity: 0.9;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.5;
}

.hero-cta-button {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--white);
    padding: 18px 36px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 60px;
}

.hero-cta-button:hover {
    background: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 126, 34, 0.4);
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
}

.trust-item i {
    font-size: 20px;
    color: var(--accent-yellow);
}

.trust-text {
    font-size: 14px;
    text-align: center;
}

/* 通用区块样式 */
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-blue);
}

/* 核心服务优势 */
.advantages-section {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.advantage-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 95, 45, 0.1);
    border-radius: 50%;
}

.advantage-icon i {
    font-size: 24px;
}

.advantage-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.advantage-desc {
    color: var(--secondary-gray);
    line-height: 1.6;
}

/* 服务项目概览 */
.services-overview {
    padding: var(--section-padding);
}

.services-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--medium-gray);
    gap: 20px;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button.active {
    color: var(--primary-blue);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-blue);
}

.tab-content {
    min-height: 250px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.service-content {
    text-align: center;
    padding: 40px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.service-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.service-content p {
    color: var(--secondary-gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.service-features {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.feature-tag {
    background: var(--primary-green);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.service-detail-btn {
    display: inline-block;
    background: var(--primary-green);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-detail-btn:hover {
    background: #1e4620;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 流程介绍 */
.process-section {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 180px;
    position: relative;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: var(--accent-orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    z-index: 3;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.step-content p {
    color: var(--secondary-gray);
    font-size: 14px;
    line-height: 1.5;
}

.process-arrow {
    font-size: 20px;
    color: var(--primary-green);
    font-weight: 700;
}

/* 专家团队预览 */
.team-preview {
    padding: var(--section-padding);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.expert-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.expert-photo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--white);
}

.expert-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.expert-title {
    color: var(--primary-green);
    font-weight: 500;
    margin-bottom: 10px;
}

.expert-credentials {
    color: var(--secondary-gray);
    font-size: 14px;
    margin-bottom: 10px;
}

.expert-specialty {
    color: var(--secondary-gray);
    font-size: 14px;
    line-height: 1.5;
}

.team-cta {
    text-align: center;
}

.team-more-btn {
    display: inline-block;
    background: var(--primary-green);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.team-more-btn:hover {
    background: #1e4620;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 客户证言 */
.testimonials {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.testimonials-slider {
    position: relative;
    max-width: 700px;
    margin: 0 auto 30px;
    height: 280px;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.5s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
}

.testimonial-text {
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
}

.testimonial-author {
    color: var(--secondary-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.testimonial-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: var(--primary-blue);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--medium-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-blue);
}

/* 文章资讯板块 */
.blog-preview {
    padding: var(--section-padding);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-category {
    padding: 20px 20px 0;
}

.category-tag {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
}

.category-tag.repair {
    background: var(--accent-orange);
}

.category-tag.legal {
    background: var(--primary-blue);
}

.category-tag.psychology {
    background: var(--primary-green);
}

.blog-title {
    padding: 10px 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
    line-height: 1.4;
}

.blog-excerpt {
    padding: 15px 20px;
    color: var(--secondary-gray);
    line-height: 1.6;
    font-size: 14px;
}

.blog-meta {
    padding: 0 20px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--secondary-gray);
}

.blog-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-read-more {
    padding: 15px 20px 20px;
    display: block;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.blog-read-more:hover {
    color: var(--primary-blue);
}

.blog-cta {
    text-align: center;
}

.blog-more-btn {
    display: inline-block;
    background: var(--primary-green);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-more-btn:hover {
    background: #1e4620;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 最终行动召唤 */
.final-cta {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.consultation-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: var(--font-family);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 14px;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
}

.form-checkbox a {
    color: var(--accent-yellow);
    text-decoration: underline;
}

.form-submit-btn {
    width: 100%;
    background: var(--accent-orange);
    color: var(--white);
    padding: 18px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.form-submit-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(230, 126, 34, 0.4);
}

.privacy-notice {
    font-size: 14px;
    opacity: 0.8;
    color: var(--white);
}

/* 页脚 */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: 10px;
}

.footer-slogan {
    color: var(--medium-gray);
    margin-bottom: 10px;
}

.footer-license {
    font-size: 12px;
    color: var(--secondary-gray);
}

.footer-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--medium-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-yellow);
}

.contact-info {
    color: var(--medium-gray);
}

.contact-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    color: var(--accent-yellow);
    width: 16px;
}

.contact-label {
    font-weight: 500;
}

.contact-link {
    color: var(--accent-yellow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #4b5563;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: var(--medium-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--accent-yellow);
}

.copyright {
    color: var(--secondary-gray);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--white);
        border-top: 1px solid var(--medium-gray);
        box-shadow: var(--shadow-md);
        z-index: 1001;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    .nav-menu.active { display: flex; }
    .navbar .container { position: relative; overflow: visible; }
    .nav-link { padding: 12px 20px; display: block; }
    .header { overflow: visible; }
    .mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translateY(6px); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translateY(-6px); }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .process-timeline {
        flex-direction: column;
    }
    
    .process-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .trust-indicators {
        gap: 20px;
        flex-direction: column;
    }
    
    .tab-buttons {
        flex-direction: column;
        border-bottom: none;
        gap: 0;
    }
    
    .tab-button {
        border-bottom: 1px solid var(--medium-gray);
        text-align: left;
        padding: 15px 0;
        justify-content: flex-start;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-card,
    .expert-card {
        padding: 20px;
    }
}
