/* 成都嘉美地毯 - 主样式文件 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2D3748;
    text-decoration: none;
}

.logo span {
    color: #FF5A5F;
}

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

.nav-links a {
    color: #4A5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #FF5A5F;
}

.phone-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FF5A5F;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.phone-cta:hover {
    background: #E04449;
}

/* 英雄区域 */
.hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    margin-top: 60px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

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

.hero-phone {
    font-size: 2rem;
    color: white;
    font-weight: bold;
    margin: 30px 0;
}

.phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FF5A5F;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px;
    transition: background 0.3s;
}

.phone-btn:hover {
    background: #E04449;
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #2D3748;
    margin-bottom: 10px;
}

.section-title p {
    color: #718096;
    font-size: 1.1rem;
}

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

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 1.4rem;
    color: #2D3748;
    margin-bottom: 15px;
}

.service-features {
    list-style: none;
    margin-bottom: 20px;
}

.service-features li {
    padding: 5px 0;
    color: #4A5568;
    position: relative;
    padding-left: 20px;
}

.service-features li:before {
    content: "✓";
    color: #FF5A5F;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-btn {
    display: inline-block;
    color: #FF5A5F;
    border: 2px solid #FF5A5F;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.service-btn:hover {
    background: #FF5A5F;
    color: white;
}

/* 精选案例 */
.featured-cases {
    padding: 80px 0;
    background: #F7FAFC;
}

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

.case-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.case-image {
    height: 180px;
    overflow: hidden;
}

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

.case-content {
    padding: 20px;
}

.case-content h4 {
    font-size: 1.2rem;
    color: #2D3748;
    margin-bottom: 10px;
}

.case-info {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    color: #718096;
    font-size: 0.9rem;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    display: inline-block;
    color: #FF5A5F;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #FF5A5F;
    padding: 10px 30px;
    border-radius: 6px;
    transition: all 0.3s;
}

.view-all-btn:hover {
    background: #FF5A5F;
    color: white;
}

/* 统计数据 */
.stats {
    padding: 60px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 30px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: bold;
    color: #FF5A5F;
    margin-bottom: 10px;
}

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

/* CTA区域 */
.bottom-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.bottom-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.bottom-cta p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

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

.cta-btn-primary {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FF5A5F;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.cta-btn-primary:hover {
    background: #E04449;
}

.cta-btn-secondary {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.cta-btn-secondary:hover {
    background: white;
    color: #764ba2;
}

/* 页脚 */
.footer {
    background: #2D3748;
    color: #E2E8F0;
    padding: 60px 0 30px;
}

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

.footer-column h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info a {
    color: #FF5A5F;
    text-decoration: none;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #A0AEC0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FF5A5F;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #4A5568;
}

.footer-bottom p {
    color: #718096;
    margin-bottom: 10px;
}

.footer-bottom a {
    color: #A0AEC0;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-phone {
        font-size: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn-primary, .cta-btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1101px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}