/* 前台网站样式 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

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

/* Tailwind card-hover 效果补充 */
.card-hover {
    transition: all 0.3s ease;
}

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

/* 头部导航 */
.site-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-size: 24px;
    color: #2c3e50;
}

.logo img {
    max-height: 50px;
}

.main-nav a {
    margin-left: 30px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #3498db;
}

/* 主内容区 */
.site-main {
    min-height: calc(100vh - 200px);
}

/* 轮播图 */
.carousel-section {
    background: white;
    padding: 30px 0;
}

.carousel {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px;
    font-size: 18px;
}

/* 公司简介 */
.about-section {
    background: white;
    padding: 60px 0;
    margin-top: 30px;
}

.about-section h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* 分类网格 */
.categories-section {
    padding: 60px 0;
}

.categories-section h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.category-card h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.category-card p {
    color: #666;
    font-size: 14px;
}

/* 最新公示 */
.latest-section {
    padding: 60px 0;
    background: white;
}

.latest-section h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.announce-list {
    max-width: 900px;
    margin: 0 auto;
}

.announce-item {
    padding: 25px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.announce-item:hover {
    background: #f8f9fa;
}

.announce-item h2,
.announce-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.announce-item h2 a,
.announce-item h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.announce-item h2 a:hover,
.announce-item h3 a:hover {
    color: #3498db;
}

.announce-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.announce-preview {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

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

.more-link a {
    color: #3498db;
    text-decoration: none;
    font-size: 16px;
}

.more-link a:hover {
    text-decoration: underline;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* 分类页面 */
.category-page {
    padding: 40px 0;
}

.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 按钮 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* 分页 */
.pagination {
    display: flex;
    gap: 5px;
    margin-top: 40px;
    justify-content: center;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.page-link:hover {
    background: #f5f5f5;
}

.page-link.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* 详情页 */
.detail-page {
    padding: 40px 0;
}

.announce-detail {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
}

.detail-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.detail-header h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.detail-tags {
    margin-top: 15px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 8px;
}

.detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.structured-data {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.structured-data h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.data-list dt {
    font-weight: 600;
    color: #555;
    margin-top: 10px;
}

.data-list dd {
    color: #666;
    margin-left: 20px;
    margin-bottom: 10px;
}

.detail-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* 页脚 */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.8;
}

.footer-copyright {
    text-align: right;
}

.footer-copyright p {
    font-size: 14px;
    opacity: 0.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav a {
        margin-left: 15px;
        font-size: 14px;
    }
    
    .carousel {
        height: 250px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-copyright {
        text-align: left;
    }
    
    .announce-detail {
        padding: 20px;
    }
    
    .detail-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== 新增板块样式 ===== */

/* 通用区块头部 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #167751, #36CFC9);
    margin: 0 auto 15px;
}

.section-desc {
    color: #666;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
}

/* 英雄区域（轮播图） */
.hero-section {
    position: relative;
}

/* 统计数字板块 */
.stats-section {
    background: linear-gradient(135deg, #167751 0%, #36CFC9 100%);
    padding: 60px 0;
    color: white;
}

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

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* 服务项目板块 */
.services-section {
    padding: 80px 0;
    background: white;
}

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

.service-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #167751;
}

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

.service-card h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* 关于我们强化版 */
.about-enhanced-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.intro-content {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}

.intro-content p {
    margin-bottom: 15px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.advantage-item {
    display: flex;
    align-items: start;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.advantage-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.advantage-info h4 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.advantage-info p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* 资质荣誉板块 */
.certificates-section {
    padding: 80px 0;
    background: white;
}

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

.certificate-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.certificate-item img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}

.certificate-item p {
    font-size: 14px;
    color: #666;
}

/* 联系方式板块 */
.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 14px;
    color: #666;
}

.contact-map iframe {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 合作伙伴板块 */
.partners-section {
    padding: 80px 0;
    background: white;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 30px;
}

.partner-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

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

.partner-item img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.partner-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #167751, #36CFC9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.partner-item p {
    font-size: 14px;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .services-grid,
    .certificates-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content-wrapper,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
}
