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

:root {
    --primary: #1b4332;
    --primary-dark: #081c15;
    --secondary: #d4a574;
    --secondary-light: #e8c39e;
    --text: #333;
    --text-light: #666;
    --bg: #f5f7fa;
    --white: #fff;
    --transition: all 0.3s ease;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

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

/* ===== 导航栏 ===== */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 20px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav a {
    padding: 10px 22px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
}

.nav a:hover,
.nav a.active {
    background: var(--primary);
    color: var(--white);
}

/* ===== 横幅区域 ===== */
.banner {
    background: var(--primary);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.banner h1 span {
    color: var(--secondary);
}

.banner p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 35px;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* ===== 统计栏 ===== */
.stats-bar {
    background: var(--white);
    padding: 50px 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

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

.stat-item h3 {
    font-size: 36px;
    color: var(--primary);
    font-weight: 700;
}

.stat-item h3 span {
    color: var(--secondary);
}

.stat-item p {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 5px;
}

/* ===== 通用区块标题 ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
}

.section-header .line {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ===== 服务区块 ===== */
.section {
    padding: 100px 0;
}

.bg-white {
    background: var(--white);
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--secondary);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 28px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
}

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

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

/* ===== 关于我们区块 ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-placeholder {
    width: 100%;
    height: 400px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.about-text h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin: 25px 0;
}

.feature-list li {
    padding: 8px 0;
    color: var(--text);
    display: flex;
    align-items: center;
}

.feature-list li::before {
    content: '✓';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
    margin-right: 12px;
    font-weight: bold;
}

/* ===== 新闻区块 ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #eee;
}

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

.news-img {
    height: 200px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
}

.news-body {
    padding: 25px;
}

.news-date {
    color: var(--secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
}

.news-body h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-body p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand p {
    line-height: 1.8;
    font-size: 14px;
}

.company-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.company-info p {
    font-size: 13px;
    line-height: 2;
    color: rgba(255,255,255,0.6);
}

.footer-links h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 25px;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-bottom p {
    margin-bottom: 8px;
}

.beian {
    color: rgba(255,255,255,0.5);
}

.beian:hover {
    color: var(--secondary);
}

/* ===== 页面标题横幅 ===== */
.page-banner {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.breadcrumb {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--secondary);
}

/* ===== 团队成员 ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    text-align: center;
}

.team-avatar {
    width: 150px;
    height: 150px;
    background: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
    border: 4px solid var(--secondary);
}

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

.team-card p {
    color: var(--secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.team-card .desc {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* ===== 联系表单 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

/* ===== 服务详情页 ===== */
.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-detail-item {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid #eee;
}

.service-detail-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: var(--secondary);
}

.service-detail-item .num {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.service-detail-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.service-detail-item p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .services-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
    }
    
    .banner h1 {
        font-size: 32px;
    }
    
    .services-grid,
    .team-grid,
    .news-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-outline {
        margin-left: 0;
        margin-top: 15px;
    }
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}
