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

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

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

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

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

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

.logo a {
    text-decoration: none;
}

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

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

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

.header-search form {
    display: flex;
}

.header-search input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px 0 0 20px;
    outline: none;
    width: 200px;
}

.header-search button {
    padding: 8px 15px;
    border: 1px solid #e74c3c;
    background: #e74c3c;
    color: #fff;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    border-left: none;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    color: #999;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #e74c3c;
}

/* 详情页公共布局（新闻详情 / 供应商详情） */
.detail-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

.detail-main {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-sidebar,
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* 区块标题 */
.section-title {
    font-size: 28px;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e74c3c;
    display: inline-block;
}

/* 推荐新闻 */
.hero-section {
    margin: 30px 0;
}

.news-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.hero-news {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.hero-news img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hero-content {
    padding: 20px;
}

.hero-content h3 {
    font-size: 18px;
    margin: 10px 0;
}

.hero-content h3 a {
    color: #333;
    text-decoration: none;
}

.hero-content h3 a:hover {
    color: #e74c3c;
}

.news-category {
    background: #e74c3c;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.hero-content p {
    color: #666;
    margin: 10px 0;
    font-size: 14px;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

/* 城市网格 */
.cities-section {
    margin: 40px 0;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.city-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.city-card:hover {
    background: #e74c3c;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(231,76,60,0.3);
}

.city-name {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.city-card:hover .city-name,
.city-card:hover .province-name {
    color: #fff;
}

.province-name {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* 供应商网格 */
.suppliers-section {
    margin: 40px 0;
}

.suppliers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.supplier-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.supplier-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.supplier-logo {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}

.supplier-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.supplier-card h3 a {
    color: #333;
    text-decoration: none;
}

.supplier-card h3 a:hover {
    color: #e74c3c;
}

.supplier-category {
    color: #e74c3c;
    font-size: 14px;
    margin: 5px 0;
}

.supplier-location,
.supplier-phone {
    font-size: 13px;
    color: #666;
    margin: 5px 0;
}

/* 新闻列表 */
.news-section {
    margin: 40px 0;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    transition: all 0.3s;
}

.news-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.news-image {
    width: 280px;
    height: 200px;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    flex: 1;
}

.news-content h3 {
    font-size: 20px;
    margin: 10px 0;
}

.news-content h3 a {
    color: #333;
    text-decoration: none;
}

.news-content h3 a:hover {
    color: #e74c3c;
}

.news-summary {
    color: #666;
    margin: 10px 0;
    line-height: 1.6;
}

.badge-top {
    background: #ff9800;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.page-link {
    padding: 8px 15px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.page-link:hover {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.page-link.active {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

/* 按钮 */
.btn-more {
    display: inline-block;
    padding: 10px 30px;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
}

.btn-more:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.text-center {
    text-align: center;
    margin: 20px 0;
}

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

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

.footer-col h3,
.footer-col h4 {
    margin-bottom: 15px;
    color: #fff;
}

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

.footer-col li {
    margin: 8px 0;
}

.footer-col a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #e74c3c;
}

.footer-col p {
    margin: 8px 0;
    color: #bdc3c7;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom a {
    color: #e74c3c;
    text-decoration: none;
}

/* 空状态 */
.empty-state {
    background: #fff;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    color: #999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .detail-container {
        grid-template-columns: 1fr;
    }

    .detail-main {
        padding: 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .news-image {
        width: 100%;
    }

    .cities-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .suppliers-grid {
        grid-template-columns: 1fr;
    }
}
