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

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #8B4513;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #8B4513;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    background: #A0522D;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.btn-outline {
    border: 2px solid #8B4513;
    color: #8B4513;
    background: transparent;
}

.btn-outline:hover {
    background: #8B4513;
    color: white;
    transform: translateY(-2px);
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0;
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 100%;
}

.nav-brand {
    flex-shrink: 0;
    margin-right: auto;
}

.nav-brand h1 {
    font-size: 1.8rem;
    color: #8B4513;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: #8B4513;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8B4513;
    transition: width 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* 首页横幅 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* 工地案例 */
.cases {
    background: #f8f9fa;
}

/* 定制流程 */
.process {
    background: white;
}

.process-image {
    text-align: center;
    margin-bottom: 50px;
}

.process-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

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

.step {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: #8B4513;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.step h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step p {
    color: #666;
    font-size: 0.95rem;
}

/* 关于我们 */
.about {
    background: #f8f9fa;
}

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

.about-text h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
}

.about-text > p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.feature i {
    font-size: 2rem;
    color: #8B4513;
    margin-top: 5px;
}

.feature h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.feature p {
    color: #666;
    font-size: 0.95rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* 工厂环境 */
.factory {
    background: white;
}

.factory-gallery {
    margin-bottom: 60px;
}

.gallery-main {
    margin-bottom: 20px;
}

.gallery-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.gallery-thumbs {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumb {
    width: 120px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.thumb:hover,
.thumb.active {
    opacity: 1;
    transform: scale(1.05);
}

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

.production-process h3 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 40px;
}

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

.process-item {
    text-align: center;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.process-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.process-item h4 {
    color: #2c3e50;
    font-size: 1.1rem;
}

/* 联系我们 */
.contact {
    background: #f8f9fa;
}

.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: center;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-item i {
    font-size: 1.8rem;
    color: #8B4513;
    width: 50px;
    text-align: center;
}

.contact-item h3 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-item p {
    color: #666;
    font-size: 1rem;
}

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

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Logo样式 */
.logo-link {
    text-decoration: none;
    display: block;
}

.company-subtitle {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
    margin-top: 2px;
    display: block;
}

/* 首页横幅样式 */
.hero-home {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #F5E6D3 0%, #E8D5C4 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-home .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-home .hero-text h1 {
    font-size: 2.8rem;
    color: #8B4513;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-home .hero-text h2 {
    font-size: 1.8rem;
    color: #A0522D;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-home .hero-text p {
    font-size: 1.2rem;
    color: #654321;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-home .hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.2);
}

/* 公司简介样式 */
.company-intro {
    background: white;
    padding: 80px 0;
}

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

.intro-text h2 {
    color: #8B4513;
    font-size: 2.5rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.intro-text p {
    color: #654321;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.company-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.highlight-item {
    text-align: center;
    padding: 25px 15px;
    background: #F5E6D3;
    border-radius: 15px;
}

.highlight-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 8px;
}

.highlight-text {
    color: #654321;
    font-weight: 500;
}

.intro-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.15);
}

/* 核心优势样式 */
.core-advantages {
    background: #F9F4F0;
    padding: 80px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.advantage-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.15);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: #F5E6D3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.advantage-icon i {
    font-size: 2.5rem;
    color: #8B4513;
}

.advantage-card h3 {
    color: #8B4513;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.advantage-card p {
    color: #654321;
    line-height: 1.6;
}

/* 服务流程概览样式 */
.service-overview {
    background: white;
    padding: 80px 0;
}

.process-overview {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.process-step {
    text-align: center;
    padding: 30px 20px;
    background: #F9F4F0;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: #8B4513;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-icon i {
    font-size: 2rem;
    color: white;
}

.process-step h4 {
    color: #8B4513;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.process-step p {
    color: #654321;
    font-size: 0.95rem;
}

/* 页面头部样式 */
.page-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #F5E6D3 0%, #E8D5C4 100%);
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    color: #8B4513;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-hero p {
    font-size: 1.2rem;
    color: #654321;
    max-width: 600px;
    margin: 0 auto;
}

/* 企业数据统计 */
.company-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
    padding: 60px 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #8B4513;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    margin-top: 10px;
}

/* 工厂优势 */
.factory-advantages {
    margin-top: 60px;
    text-align: center;
}

.factory-advantages h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 40px;
}

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

.advantage-item {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.advantage-item i {
    font-size: 2.5rem;
    color: #8B4513;
    margin-bottom: 20px;
}

.advantage-item h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* 服务承诺 */
.service-features {
    margin-top: 60px;
    text-align: center;
}

.service-features h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 40px;
}

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

.service-item {
    background: #f8f9fa;
    padding: 25px 20px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-item i {
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 15px;
}

.service-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* 表单样式增强 */
.contact-form h3 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.contact-form label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-form select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    background: white;
}

.contact-form select:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

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

.footer h3, .footer h4 {
    color: #F5E6D3;
}

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

.footer a:hover {
    color: #8B4513;
}

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

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

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #8B4513;
}

.footer-section i {
    margin-right: 10px;
    color: #8B4513;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #95a5a6;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

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

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

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

    .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .process-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
    }

    .image-container {
        height: 300px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}
