/* 全局样式 */
* {
    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: linear-gradient(to right, #8B4513, #DAA520);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

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

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

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 主体内容 */
main {
    min-height: calc(100vh - 180px);
}

.page-header {
    background: linear-gradient(to right, #CD7F32, #FFD700);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
}

.page-header h2 {
    font-size: 32px;
}

/* 首页特有样式 */
.hero {
    background: linear-gradient(rgba(139, 69, 19, 0.8), rgba(218, 165, 32, 0.8)), 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="%23DAA520"/><circle cx="20" cy="20" r="5" fill="%238B4513"/><circle cx="50" cy="50" r="8" fill="%238B4513"/><circle cx="80" cy="80" r="6" fill="%238B4513"/></svg>');
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: #ffbf00;
}

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

.intro,
.news,
.services,
.cases {
    padding: 50px 0;
}

.intro {
    background-color: white;
}

.news,
.services,
.cases {
    background-color: #f5f5f5;
}

section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #8B4513;
    position: relative;
}

section h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #DAA520, #8B4513);
    margin: 10px auto;
}

.news-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.news-item {
    flex: 0 0 calc(50% - 20px);
    background: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

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

.service-list,
.case-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.service-item,
.case-item {
    flex: 0 0 calc(33.333% - 30px);
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.service-item:hover,
.case-item:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

/* 内页通用样式 */
.about-content,
.products,
.news-content,
.services-content,
.knowledge-content,
.contact-content,
.faq-content,
.careers-content,
.news-detail,
.knowledge-detail {
    padding: 30px 0;
    background-color: white;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.about-section,
.service-category,
.knowledge-category,
.career-section,
.product-category {
    margin-bottom: 40px;
}

.about-section h3,
.service-category h3,
.knowledge-category h3,
.career-section h3,
.product-category h3 {
    color: #8B4513;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #DAA520;
}

.about-section p,
.service-item p,
.knowledge-item p,
.career-section p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-section ul {
    padding-left: 20px;
}

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

/* 产品页面样式 */
.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product-item {
    flex: 0 0 calc(33.333% - 20px);
    background: #fffaf0;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(45deg, #DAA520, #8B4513);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* 新闻列表样式 */
.news-meta {
    color: #888;
    font-size: 14px;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    background: linear-gradient(to right, #8B4513, #DAA520);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: linear-gradient(to right, #DAA520, #8B4513);
    transform: translateX(5px);
}

.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 4px;
    text-decoration: none;
    color: #8B4513;
    border: 1px solid #DAA520;
}

.pagination .current {
    background: #8B4513;
    color: white;
}

.service-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 联系我们页面样式 */
.contacts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-person {
    background: #fffaf0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-person p:first-child {
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 10px;
}

.contact-person p:nth-child(2) {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-person p:last-child {
    color: #666;
}

/* FAQ页面样式 */
.faq-item {
    background: #fffaf0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
    color: #8B4513;
    margin-bottom: 10px;
}

.faq-answer {
    line-height: 1.8;
}

/* 人才发展页面样式 */
.development-paths {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
}

.path {
    flex: 0 0 calc(33.333% - 20px);
    background: #fffaf0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.path h4 {
    color: #8B4513;
    margin-bottom: 10px;
}

.job-list {
    margin-top: 20px;
}

.job-item {
    background: #fffaf0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.job-item h4 {
    color: #8B4513;
    margin-bottom: 10px;
}

.contact-info {
    margin-top: 30px;
    text-align: center;
    font-size: 18px;
}

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

.contact-info a:hover {
    text-decoration: underline;
}

/* 服务流程样式 */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
}

.step {
    flex: 0 0 calc(20% - 10px);
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(to right, #8B4513, #DAA520);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    margin: 0 auto 15px;
}

/* 详情页导航 */
.news-nav,
.knowledge-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.news-nav a,
.knowledge-nav a {
    color: #8B4513;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.news-nav a:hover,
.knowledge-nav a:hover {
    background-color: #fffaf0;
}

/* 页脚样式 */
footer {
    background: linear-gradient(to right, #8B4513, #DAA520);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

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

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin-right: 0;
        margin-bottom: 10px;
    }

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

    .hero p {
        font-size: 18px;
    }

    .news-item,
    .service-item,
    .case-item,
    .product-item {
        flex: 0 0 100%;
    }

    .path,
    .contact-person {
        flex: 0 0 100%;
    }

    .step {
        flex: 0 0 calc(50% - 10px);
        margin-bottom: 30px;
    }

    .news-nav,
    .knowledge-nav {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 0;
    }

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

    section h2 {
        font-size: 28px;
    }

    .service-item,
    .case-item,
    .product-item,
    .news-item {
        padding: 20px;
    }
}