/* ========================================
   首页专属样式
   ======================================== */

/* 首屏Banner */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('../images/hero-bg.png') no-repeat center right;
    opacity: 0.1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 48px;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text .highlight {
    color: var(--gold-color);
}

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

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--gold-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: bold;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.hero-note {
    font-size: 14px;
    opacity: 0.8;
}

/* 首屏表单 */
.hero-form {
    background: #fff;
    border-radius: 10px;
    padding: 4px;
    color: var(--text-dark);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.consult-form h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.consult-form > p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.consult-form .form-group {
    margin-bottom: 15px;
}

.consult-form .form-control {
    padding: 12px;
    font-size: 14px;
}

.form-privacy {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 15px;
}

/* 数据统计 */
.stats-section {
    background: var(--bg-light);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-number span {
    font-size: 24px;
}

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

/* 核心业务 */
.services-section {
    padding: 80px 0;
}

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

.service-card {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

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

.service-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.service-link {
    color: var(--accent-color);
    font-weight: 500;
}

.service-link:hover {
    color: var(--accent-hover);
}

.section-cta {
    text-align: center;
}

/* 核心优势 */
.advantages-section {
    background: var(--bg-light);
    padding: 80px 0;
}

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

.advantage-item {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.advantage-item h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

/* 律师团队 */
.team-section {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.team-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-img {
    height: 340px;
    overflow: hidden;
    background: var(--bg-light);
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 25px;
}

.team-info h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.team-title {
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.team-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.team-tags {
    margin-bottom: 20px;
}

/* 胜诉案例 */
.cases-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.case-card {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.case-type {
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.case-result {
    background: var(--accent-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.case-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.case-summary {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.case-highlight {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.case-highlight span {
    font-size: 13px;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 5px 12px;
    border-radius: 15px;
}

.case-link {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 14px;
}

/* 离婚流程 */
.process-section {
    padding: 80px 0;
}

.process-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.process-tab {
    padding: 12px 40px;
    background: var(--bg-light);
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.process-tab.active,
.process-tab:hover {
    background: var(--accent-color);
    color: #fff;
}

.process-content {
    display: none;
}

.process-content.active {
    display: block;
}

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

.process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--border-color);
}

.process-step {
    text-align: center;
    width: 18%;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process-step h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.process-step p {
    font-size: 14px;
    color: var(--text-gray);
}

/* 常见问题 */
.faq-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
}

.faq-icon {
    font-size: 24px;
    color: var(--accent-color);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 200px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* 用户评价 */
.testimonials-section {
    padding: 80px 0;
}

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

.testimonial-card {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
}

.testimonial-content p {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 13px;
    color: var(--text-light);
}

/* 底部CTA */
.cta-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    padding: 80px 0;
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ========================================
   响应式适配
   ======================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-form {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .services-grid,
    .advantages-grid,
    .team-grid,
    .cases-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .services-grid,
    .advantages-grid,
    .team-grid,
    .cases-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .process-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 30px;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .process-step {
        width: 100%;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-form {
        padding: 4px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .service-card,
    .advantage-item,
    .case-card,
    .testimonial-card {
        padding: 25px 20px;
    }
}
