/**
 * 首页专用样式
 * 遵循 DESIGN_SYSTEM.md 设计规范
 * 
 * @package MTO Moving
 * @since 1.0.0
 */

/* ==========================================================================
   首页布局容器
   ========================================================================== */

.front-page {
    background: #ffffff;
}

/* 容器宽度限制 - 遵循 DESIGN_SYSTEM.md (最大宽度1200px) */
.container,
.front-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Hero区 - 首屏3秒建立信任
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #2c5f8d;
    margin-top: -80px; /* 补偿固定头部的高度 */
    padding-top: 80px; /* 确保内容不被头部遮挡 */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 95, 141, 0.9) 0%, rgba(44, 95, 141, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: 32px 16px 64px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 32px;
    color: #ecf0f1;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 48px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.feature-icon {
    width: 20px;
    height: 20px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-trust-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.badge-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.trust-badge span {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

/* ==========================================================================
   按钮样式
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Noto Sans SC', sans-serif;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* .btn-primary 样式已移至全局 css/style.css */

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #2c5f8d;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: #2c5f8d;
    border: 2px solid #2c5f8d;
}

.btn-outline:hover {
    background: #2c5f8d;
    color: #ffffff;
    text-decoration: none;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 20px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 16px;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   服务流程区
   ========================================================================== */

.process-section {
    padding: 80px 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: #555555;
    font-weight: 400;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.process-step {
    flex: 1;
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #f39c12;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.step-icon {
    margin: 24px auto 16px;
    color: #2c5f8d;
}

.step-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.step-description {
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
}

.process-arrow {
    flex-shrink: 0;
    color: #2c5f8d;
}

/* ==========================================================================
   服务展示区
   ========================================================================== */

.services-section {
    padding: 80px 0;
    background: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.service-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.service-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f39c12;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.service-content {
    padding: 24px;
}

.service-icon {
    color: #2c5f8d;
    margin-bottom: 16px;
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-features {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.service-features span {
    font-size: 14px;
    color: #27ae60;
    font-weight: 500;
}

.section-footer {
    text-align: center;
    margin-top: 48px;
}

/* ==========================================================================
   优势展示区
   ========================================================================== */

.advantages-section {
    padding: 80px 0;
    background: #f8fafc;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.advantage-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.advantage-icon {
    color: #f39c12;
    margin-bottom: 20px;
}

.advantage-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.advantage-desc {
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
}

/* ==========================================================================
   数据统计区
   ========================================================================== */

.stats-section {
    padding: 64px 0;
    background: linear-gradient(135deg, #2c5f8d 0%, #4a90c5 100%);
    color: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 18px;
    color: #ecf0f1;
    font-weight: 500;
}

/* ==========================================================================
   客户评价区
   ========================================================================== */

.testimonials-section {
    padding: 80px 0;
    background: #ffffff;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.testimonial-card {
    background: #f8fafc;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info {
    flex: 1;
}

.customer-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.customer-location {
    font-size: 14px;
    color: #555555;
}

.testimonial-rating {
    font-size: 18px;
}

.testimonial-content {
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-type {
    background: #2c5f8d;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

.testimonial-date {
    font-size: 14px;
    color: #999999;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #2c5f8d;
    background: transparent;
    color: #2c5f8d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: #2c5f8d;
    color: #ffffff;
}

/* ==========================================================================
   常见问题区
   ========================================================================== */

.faq-section {
    padding: 80px 0;
    background: #f8fafc;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto 48px;
}

.faq-item {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #2c5f8d;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   底部CTA区 - 样式已移至 css/cta-section.css
   ========================================================================== */

/* CTA样式现在由独立的 cta-section.css 文件管理 */

/* ==========================================================================
   响应式设计 - 平板 (768px - 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .testimonials-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-arrow {
        display: none;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* ==========================================================================
   响应式设计 - 移动端 (< 768px)
   ========================================================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    /* Hero区移动端优化 */
    .hero-section {
        min-height: 100vh;
        margin-top: -64px; /* 补偿移动端头部高度 */
        padding-top: 100px; /* 增加顶部间距，确保内容不被头部遮挡 */
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-features {
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-feature {
        font-size: 14px;
        padding: 10px 16px;
        justify-content: center;
        width: 100%;
    }
    
    .hero-feature .feature-icon {
        width: 16px;
        height: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-trust-badges {
        gap: 12px;
        grid-template-columns: repeat(2, 1fr); /* 移动端改为2列 */
    }
    
    .trust-badge {
        flex-direction: column;
        padding: 12px 8px;
    }
    
    .badge-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    
    .trust-badge span {
        font-size: 12px;
    }
    
    /* 服务流程移动端优化 */
    .process-section {
        padding: 48px 0;
    }
    
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .process-steps {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }
    
    .process-step {
        flex: none; /* 重置桌面端的 flex: 1 */
        width: 100%; /* 确保每个步骤占满整行 */
        padding: 32px 20px;
        position: relative;
    }
    
    .step-number {
        position: absolute;
        top: -16px;
        left: 20px; /* 移动端左对齐 */
        transform: none;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .step-icon {
        margin: 16px 0 16px 0;
        text-align: left;
    }
    
    .step-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .step-title {
        font-size: 20px;
        text-align: left;
        margin-bottom: 8px;
    }
    
    .step-description {
        font-size: 15px;
        text-align: left;
        line-height: 1.6;
    }
    
    /* 隐藏箭头 */
    .process-arrow {
        display: none;
    }
    
    /* 添加连接线 */
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 38px; /* 与数字对齐 */
        bottom: -32px;
        width: 2px;
        height: 32px;
        background: linear-gradient(to bottom, #2c5f8d, transparent);
    }
    
    /* 服务网格移动端优化 */
    .services-section {
        padding: 48px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* 优势网格移动端优化 */
    .advantages-section {
        padding: 48px 0;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* 数据统计移动端优化 */
    .stats-section {
        padding: 48px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 16px;
    }
    
    /* 客户评价移动端优化 */
    .testimonials-section {
        padding: 48px 0;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* 常见问题移动端优化 */
    .faq-section {
        padding: 48px 0;
    }
    
    .faq-question {
        font-size: 16px;
        padding: 16px 20px;
    }
    
    .faq-answer p {
        padding: 0 20px 16px;
        font-size: 15px;
    }
    
    /* CTA区移动端优化 - 样式已移至 css/cta-section.css */
}

/* ==========================================================================
   响应式设计 - 小屏手机 (< 480px)
   ========================================================================== */

@media (max-width: 480px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 80px; /* 小屏幕上减少顶部间距 */
    }
    
    .hero-content {
        padding: 16px 12px 48px;
    }
    
    .hero-title {
        font-size: 26px;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .hero-features {
        margin-bottom: 32px;
    }
    
    .hero-feature {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .hero-trust-badges {
        gap: 8px;
    }
    
    .trust-badge span {
        font-size: 11px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    /* 流程步骤小屏优化 */
    .process-step {
        padding: 24px 16px;
    }
    
    .step-number {
        left: 16px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .step-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .step-description {
        font-size: 14px;
    }
    
    .process-step:not(:last-child)::after {
        left: 32px; /* 与小屏数字对齐 */
        height: 32px;
    }
}

