/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    color: #8B4513;
    font-size: 24px;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.2rem;
    transition: color 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
}

nav ul li a:hover,
nav ul li a.active {
    color: #8B4513;
    background-color: #f8f4f0;
}

/* 主体内容 */
main {
    margin: 30px 0;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(139, 69, 19, 0.7), rgba(139, 69, 19, 0.7)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%238B4513"/><path d="M20,20 Q50,5 80,20 T80,80 Q50,95 20,80 T20,20" fill="none" stroke="%23D2B48C" stroke-width="2"/></svg>');
    background-size: cover;
    color: white;
    text-align: center;
    padding: 100px 0;
    margin-bottom: 50px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.cta-button {
    background-color: #D2B48C;
    color: #8B4513;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #c1a074;
}

/* 公司简介 */
.intro {
    margin-bottom: 50px;
}

.intro h2,
.news h2,
.services h2,
.cases h2,
.careers h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #8B4513;
    font-size: 32px;
    position: relative;
}

.intro h2::after,
.news h2::after,
.services h2::after,
.cases h2::after,
.careers h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #D2B48C;
    margin: 10px auto;
}

.services,
.cases,
.careers {
    margin-top: 50px;
}

.intro-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.intro-text {
    flex: 2;
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.intro-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-item h3 {
    font-size: 36px;
    color: #8B4513;
    margin-bottom: 10px;
}

/* 新闻动态 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

.news-item h3 {
    color: #8B4513;
    margin-bottom: 10px;
    font-size: 20px;
}

.date {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

/* 业务范围 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    text-align: center;
    background-color: #fff;
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

.icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #8B4513;
}

.service-item h3 {
    margin-bottom: 15px;
    color: #8B4513;
}

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

.case-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #8B4513;
}

.case-item h3 {
    color: #8B4513;
    margin-bottom: 15px;
}

/* 人才发展 */
.careers-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.careers-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

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

.benefit {
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f4f0;
}

.benefit h3 {
    color: #8B4513;
    margin-bottom: 10px;
}

/* 页脚 */
footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    color: #D2B48C;
}

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

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 15px 0;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h2 {
        font-size: 28px;
    }

    .intro-content {
        flex-direction: column;
    }

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

    .careers-benefits {
        grid-template-columns: 1fr;
    }
}

/* 新闻页面样式 */
.news-page h2 {
    color: #8B4513;
    margin-bottom: 30px;
}

.news-article {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.news-article h3 {
    color: #8B4513;
    margin-bottom: 10px;
}

.news-article .date {
    color: #999;
    margin-bottom: 20px;
    display: block;
}

/* 产品中心样式 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.product-item .icon {
    font-size: 64px;
}

/* 服务中心样式 */
.services-page .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* 知识库样式 */
.knowledge-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.knowledge-category {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.knowledge-category .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.knowledge-category h3 {
    color: #8B4513;
    margin-bottom: 10px;
}

.knowledge-list {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.knowledge-list ul {
    list-style-type: none;
}

.knowledge-list ul li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.knowledge-list ul li:last-child {
    border-bottom: none;
}

.knowledge-list ul li a {
    color: #333;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    transition: color 0.3s;
}

.knowledge-list ul li a:hover {
    color: #8B4513;
}

/* 常见问题样式 */
.faq-item {
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: #f8f4f0;
    cursor: pointer;
    font-weight: bold;
    color: #8B4513;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-answer.open {
    padding: 20px;
    max-height: 500px;
}

/* 联系我们样式 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.department {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.department .icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #8B4513;
}

.department h3 {
    color: #8B4513;
    margin-bottom: 15px;
}

.contact-person,
.contact-email {
    margin: 8px 0;
    color: #666;
}