/* 全局样式 */
* {
    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: #c1272d;
    /* 红色，象征沙县小吃的传统 */
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.logo p {
    font-size: 14px;
    opacity: 0.9;
}

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

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

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    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 - 140px);
}

/* 页面头部 */
.page-header {
    background: linear-gradient(rgba(193, 39, 45, 0.8), rgba(193, 39, 45, 0.9)), 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="%23c1272d"/><path d="M20,20 Q50,5 80,20 T80,80 Q50,95 20,80 T20,20" fill="none" stroke="%23ffffff" stroke-width="0.5"/></svg>');
    background-size: cover;
    color: white;
    text-align: center;
    padding: 60px 0;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* 首页英雄区域 */
.hero {
    background: linear-gradient(rgba(193, 39, 45, 0.8), rgba(193, 39, 45, 0.9)), 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="%23c1272d"/><path d="M20,20 Q50,5 80,20 T80,80 Q50,95 20,80 T20,20" fill="none" stroke="%23ffffff" stroke-width="0.5"/></svg>');
    background-size: cover;
    color: white;
    text-align: center;
    padding: 80px 0;
}

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

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background-color: #fdb913;
    /* 金色，象征品质 */
    color: #c1272d;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: #e5a811;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.btn-outline:hover {
    background-color: #c1272d;
    color: white;
}

/* 关于我们区域 */
.intro {
    padding: 80px 0;
    background-color: white;
}

.intro h2,
.news h2,
.services h2,
.cases h2,
.careers h2,
.page-header h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    color: #c1272d;
    position: relative;
}

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

.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: #f5f5f5;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

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

/* 新闻动态 */
.news {
    padding: 80px 0;
    background-color: #f5f5f5;
}

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

.news-item {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.news-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

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

.read-more {
    color: #c1272d;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 15px;
}

.read-more:hover {
    text-decoration: underline;
}

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

/* 业务范围 */
.services {
    padding: 80px 0;
    background-color: white;
}

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

.service-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #c1272d;
}

/* 成功案例 */
.cases {
    padding: 80px 0;
    background-color: #f5f5f5;
}

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

.case-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #fdb913;
}

.case-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

/* 人才发展 */
.careers {
    padding: 80px 0;
    background-color: white;
}

.careers-content {
    display: flex;
    gap: 40px;
}

.careers-text {
    flex: 2;
}

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

.careers-positions {
    flex: 1;
}

.careers-positions h3 {
    margin-bottom: 20px;
    color: #c1272d;
}

.careers-positions ul {
    list-style: none;
    margin-bottom: 25px;
}

.careers-positions ul li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    position: relative;
    padding-left: 20px;
}

.careers-positions ul li:before {
    content: '▶';
    color: #fdb913;
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 12px;
}

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

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

.footer-section h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #fdb913;
}

.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 ease;
}

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

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

/* 新闻页面样式 */
.news-content {
    padding: 50px 0;
}

.news-filter {
    text-align: center;
    margin-bottom: 40px;
}

.news-filter button {
    background-color: #f5f5f5;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-filter button.active,
.news-filter button:hover {
    background-color: #c1272d;
    color: white;
}

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

.page-link {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.page-link.active,
.page-link:hover {
    background-color: #c1272d;
    color: white;
    border-color: #c1272d;
}

/* 产品页面样式 */
.products-content {
    padding: 50px 0;
}

.category-filter {
    text-align: center;
    margin-bottom: 40px;
}

.category-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.category-list a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.category-list a.active,
.category-list a:hover {
    background-color: #c1272d;
    color: white;
}

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

.product-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-image {
    height: 200px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 60px;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    margin-bottom: 10px;
    color: #333;
}

.product-desc {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.product-price {
    font-weight: bold;
    color: #c1272d;
    margin-bottom: 15px;
    font-size: 18px;
}

/* 服务中心页面样式 */
.services-overview {
    padding: 50px 0;
    background-color: #f5f5f5;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-card h3 {
    color: #c1272d;
    margin-bottom: 15px;
}

.service-details {
    padding: 50px 0;
    background-color: white;
}

.service-detail-item {
    margin-bottom: 40px;
}

.service-detail-item h3 {
    color: #c1272d;
    margin-bottom: 20px;
}

.service-detail-item ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.service-detail-item ul li {
    margin-bottom: 10px;
}

.service-process {
    padding: 50px 0;
    background-color: #f5f5f5;
}

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

.step {
    text-align: center;
    background-color: white;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #c1272d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 15px;
    color: #333;
}

/* 知识库页面样式 */
.knowledge-content {
    padding: 50px 0;
}

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

.category-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h3 {
    color: #c1272d;
    margin-bottom: 15px;
}

.featured-articles {
    margin-bottom: 50px;
}

.article-list {
    display: grid;
    gap: 30px;
}

.article-item {
    display: flex;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.article-image {
    width: 200px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-content {
    padding: 25px;
    flex: 1;
}

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

.article-excerpt {
    margin-bottom: 20px;
    color: #666;
}

.knowledge-tips {
    background-color: #f5f5f5;
    padding: 40px;
    border-radius: 8px;
}

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

.tip-item {
    text-align: center;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.tip-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.tip-item h3 {
    margin-bottom: 15px;
    color: #333;
}

/* 常见问题页面样式 */
.faq-content {
    padding: 50px 0;
}

.faq-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto 40px;
}

.faq-search input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 30px 0 0 30px;
    outline: none;
}

.faq-search button {
    border-radius: 0 30px 30px 0;
}

.faq-categories {
    text-align: center;
    margin-bottom: 40px;
}

.category-btn {
    background-color: #f5f5f5;
    border: none;
    padding: 10px 20px;
    margin: 0 5px 10px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active,
.category-btn:hover {
    background-color: #c1272d;
    color: white;
}

.faq-list {
    margin-bottom: 50px;
}

.faq-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #c1272d;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
    border-top: 1px solid #eee;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    margin-bottom: 15px;
    line-height: 1.8;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 20px;
}

.faq-contact {
    text-align: center;
    background-color: #f5f5f5;
    padding: 50px;
    border-radius: 8px;
}

.faq-contact h2 {
    color: #c1272d;
    margin-bottom: 20px;
}

/* 联系方式页面样式 */
.contact-content {
    padding: 50px 0;
}

.contact-intro {
    text-align: center;
    margin-bottom: 50px;
}

.contact-intro h2 {
    color: #c1272d;
    margin-bottom: 20px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.contact-card h3 {
    color: #c1272d;
    margin-bottom: 20px;
}

.contact-person p {
    margin: 5px 0;
    font-weight: 500;
}

.contact-info {
    margin-bottom: 50px;
}

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

.info-item {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.info-item h3 {
    color: #c1272d;
    margin-bottom: 15px;
}

.business-hours {
    background-color: #f5f5f5;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.business-hours h2 {
    color: #c1272d;
    margin-bottom: 20px;
}

.business-hours p {
    margin: 10px 0;
    font-size: 16px;
}

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

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

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

    .hero {
        padding: 50px 0;
    }

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

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

    .intro-stats {
        grid-template-columns: 1fr 1fr;
    }

    .article-item {
        flex-direction: column;
    }

    .article-image {
        width: 100%;
        height: 150px;
    }
}

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

    .intro-stats {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .cases-grid,
    .news-list,
    .products-grid,
    .knowledge-categories,
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .faq-search {
        flex-direction: column;
        gap: 10px;
    }

    .faq-search input,
    .faq-search button {
        border-radius: 30px;
        width: 100%;
    }
}