/* 全局样式 */
:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --secondary: #c9a227;
    --secondary-light: #d4af37;
    --bg-light: #f7f7f7;
    --bg-white: #ffffff;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --border: #e5e5e5;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 8px;
}

/* 本地图片支持 - 有图片时显示图片，无图片时显示渐变 */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
}

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

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* 头部 */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i { color: var(--secondary); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { 
    color: var(--text-dark); 
    font-weight: 500;
    position: relative;
    padding: 10px 0;
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: 0.3s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

.btn-nav {
    background: var(--primary) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: var(--radius);
}
.btn-nav::after { display: none !important; }
.btn-nav:hover { background: var(--primary-light) !important; }

.mobile-menu-btn { 
    display: none; 
    border: none; 
    background: none; 
    font-size: 24px; 
    cursor: pointer; 
    color: var(--primary);
    padding: 10px;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}
.page-header h1 { font-size: 36px; margin-bottom: 10px; }
.page-header p { font-size: 16px; opacity: 0.9; }

/* 通用区块 */
.section { padding: 80px 0; }
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
}
.section-title p { color: var(--text-gray); }

/* 首页Banner */
.hero {
    height: 600px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" x="50" font-size="30" text-anchor="middle" fill="rgba(255,255,255,0.1)">🏢</text></svg>') center/200px no-repeat;
}
.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}
.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s both;
}
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: var(--radius);
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}
.btn-primary { background: var(--secondary); color: white; }
.btn-primary:hover { background: var(--secondary-light); transform: translateY(-2px); }
.btn-outline { border: 2px solid white; color: white; background: transparent; }
.btn-outline:hover { background: white; color: var(--primary); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 特点 */
.features { background: var(--bg-white); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--radius);
    transition: 0.3s;
}
.feature-card:hover {
    background: var(--bg-light);
    transform: translateY(-5px);
}
.feature-card i {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 10px; color: var(--primary); }
.feature-card p { color: var(--text-gray); font-size: 14px; }

/* 服务项目 */
.services-section { background: var(--bg-light); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.service-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
}
.service-card:hover { transform: translateY(-10px); }
.service-img {
    height: 200px;
    background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=600&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-img i { font-size: 60px; color: white; }
.service-info { padding: 25px; }
.service-info h3 { margin-bottom: 10px; color: var(--primary); }
.service-info p { color: var(--text-gray); font-size: 14px; margin-bottom: 15px; }
.service-info a { color: var(--secondary); font-weight: bold; }

/* 案例列表 */
.cases-section { background: var(--bg-white); }
.cases-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}
.filter-btn:hover, .filter-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.case-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
    cursor: pointer;
}
.case-card:hover { transform: translateY(-10px); }
.case-img {
    height: 250px;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.case-img::after {
    content: attr(data-title);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 15px;
    font-size: 14px;
    display: none;
}
.case-img:hover::after {
    display: block;
}
    position: relative;
}
.case-img::after {
    content: '查看详情';
    position: absolute;
    inset: 0;
    background: rgba(26,54,93,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    opacity: 0;
    transition: 0.3s;
}
.case-card:hover .case-img::after { opacity: 1; }
.case-info { padding: 20px; }
.case-info h3 { margin-bottom: 8px; color: var(--primary); font-size: 18px; }
.case-info p { color: var(--text-gray); font-size: 14px; }
.case-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--secondary);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    margin-top: 10px;
}

/* 施工工艺 */
.craft-section { background: var(--bg-light); }
.craft-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.craft-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
}
.craft-img {
    width: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.craft-img i { font-size: 50px; color: white; }
.craft-content { padding: 30px; flex: 1; }
.craft-content h3 { color: var(--primary); margin-bottom: 15px; font-size: 22px; }
.craft-content ul { margin-top: 15px; }
.craft-content li {
    padding: 8px 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 20px;
}
.craft-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* 团队 */
.team-section { background: var(--bg-white); }
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.team-card {
    text-align: center;
}
.team-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.team-avatar i { font-size: 80px; color: white; }
.team-card h3 { color: var(--primary); margin-bottom: 5px; }
.team-card .title { color: var(--secondary); font-weight: bold; margin-bottom: 10px; }
.team-card p { color: var(--text-gray); font-size: 14px; }

/* 评价 */
.reviews-section { background: var(--bg-light); }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.review-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.review-stars { color: var(--secondary); margin-bottom: 15px; }
.review-card p { color: var(--text-gray); margin-bottom: 20px; line-height: 1.8; }
.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}
.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}
.review-info h4 { color: var(--primary); }
.review-info span { color: var(--text-light); font-size: 14px; }

/* 知识文章 */
.knowledge-section { background: var(--bg-white); }
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.knowledge-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
}
.knowledge-card:hover { transform: translateY(-5px); }
.knowledge-img {
    height: 180px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}
.knowledge-content { padding: 20px; }
.knowledge-content h3 { 
    margin-bottom: 10px; 
    color: var(--primary); 
    font-size: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.knowledge-content p { 
    color: var(--text-gray); 
    font-size: 14px; 
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.knowledge-meta { 
    color: var(--text-light); 
    font-size: 13px; 
    display: flex;
    justify-content: space-between;
}

/* 关于我们 */
.about-section { background: var(--bg-white); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-img {
    height: 400px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    background-image: linear-gradient(135deg, rgba(26,54,93,0.75) 0%, rgba(44,82,130,0.75) 100%), url('../images/company.jpeg');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-img i { font-size: 150px; color: white; }
.about-content h2 { font-size: 32px; color: var(--primary); margin-bottom: 20px; }
.about-content p { color: var(--text-gray); margin-bottom: 20px; line-height: 1.8; }
.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.about-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}
.about-feature i {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 资质证书 */
.certificates { background: var(--bg-light); padding: 60px 0; }
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.cert-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.3s;
}
.cert-card:hover { transform: translateY(-5px); }
.cert-card i { font-size: 50px; color: var(--secondary); margin-bottom: 15px; }
.cert-card h4 { color: var(--primary); margin-bottom: 10px; }
.cert-card p { color: var(--text-gray); font-size: 14px; }

/* 联系表单 */
.contact-section { background: var(--bg-light); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-info h3 { color: var(--primary); margin-bottom: 20px; font-size: 24px; }
.contact-info p { color: var(--text-gray); margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.contact-info i { color: var(--secondary); width: 24px; }
.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-dark); font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
}
.form-group textarea { height: 120px; resize: vertical; }

/* 底部 */
.footer { background: var(--primary); color: white; padding: 60px 0 20px; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 { margin-bottom: 20px; font-size: 18px; position: relative; }
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}
.footer-col p { opacity: 0.8; margin-bottom: 10px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { opacity: 0.8; }
.footer-col a:hover { opacity: 1; color: var(--secondary); }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 1200px) {
    .container { max-width: 960px; }
}

@media (max-width: 992px) {
    .features-grid, .services-grid, .team-grid, .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .cases-grid, .reviews-grid, .knowledge-grid { grid-template-columns: repeat(2, 1fr); }
    .craft-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .header-inner { padding: 0 10px; }
    .logo { font-size: 20px; }
    .section { padding: 50px 0; }
    .section-title h2 { font-size: 28px; }
}

@media (max-width: 768px) {
    /* 导航 */
    .nav { 
        display: none; 
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        z-index: 999;
        gap: 0;
    }
    .nav.active { display: flex; }
    .nav a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
        text-align: center;
    }
    .nav a:last-child { border-bottom: none; }
    .mobile-menu-btn { display: block; }
    
    /* Banner */
    .hero { height: 350px; padding: 0 20px; }
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 14px; }
    .hero-btns { flex-direction: column; gap: 10px; }
    .hero-btns .btn { width: 200px; }
    
    /* 页面标题 */
    .page-header { padding: 40px 0; }
    .page-header h1 { font-size: 24px; }
    .page-header p { font-size: 14px; }
    
    /* 栅格布局 */
    .features-grid, .services-grid, .cases-grid, .team-grid, .reviews-grid, .knowledge-grid, .cert-grid { grid-template-columns: 1fr; }
    
    /* 关于我们 */
    .about-grid { grid-template-columns: 1fr; }
    .about-img { height: 250px; }
    .about-features { grid-template-columns: repeat(2, 1fr); }
    
    /* 联系方式 */
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    
    /* 页脚 */
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-col { text-align: center; }
    .footer-col ul { display: inline-block; text-align: left; }
    
    /* 案例卡片 */
    .case-card { margin-bottom: 15px; }
    .case-img { height: 180px; }
    
    /* 服务卡片 */
    .service-card { margin-bottom: 15px; }
    .service-img { height: 180px; }
    
    /* 团队卡片 */
    .team-card { margin-bottom: 15px; }
    .team-avatar { width: 100px; height: 100px; }
    
    /* 施工工艺 */
    .craft-grid { grid-template-columns: 1fr; }
    .craft-step { margin-bottom: 20px; }
    
    /* 表单 */
    .form-group { margin-bottom: 15px; }
    .contact-form { padding: 20px; }
    
    /* 筛选按钮 */
    .cases-filters { 
        display: flex; 
        flex-wrap: wrap; 
        justify-content: center;
        gap: 8px;
    }
    .filter-btn { padding: 8px 12px; font-size: 13px; }
    
    /* 按钮 */
    .btn { padding: 10px 20px; font-size: 14px; }
    
    /* 分页 */
    .pagination { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .hero { height: 300px; }
    .hero-content h1 { font-size: 22px; }
    .section-title h2 { font-size: 24px; }
    .about-features { grid-template-columns: 1fr; }
    .feature-card, .service-card, .case-card, .team-card, .cert-card, .review-card { padding: 15px; }
    .team-avatar { width: 80px; height: 80px; }
    .team-avatar i { font-size: 30px; }
    .cert-card i { font-size: 36px; }
}
