/* ===== 全局重置 ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:"Microsoft YaHei","PingFang SC","Hiragino Sans GB",sans-serif;background:#f5f5f5;color:#333;line-height:1.7}
a{color:#c0392b;text-decoration:none}
a:hover{color:#e74c3c;text-decoration:underline}
img{max-width:100%;height:auto;display:block}
ul,ol{list-style:none}

/* ===== 容器 ===== */
.container{max-width:1200px;margin:0 auto;padding:0 15px}

/* ===== 顶部导航 ===== */
#header{background:#c0392b;box-shadow:0 2px 6px rgba(0,0,0,.3);position:sticky;top:0;z-index:999}
#header .header-inner{display:flex;align-items:center;justify-content:space-between;height:60px}
.logo{font-size:22px;font-weight:700;color:#fff;letter-spacing:1px}
.logo span{color:#ffe066}
nav.main-nav ul{display:flex;gap:0}
nav.main-nav ul li a{display:block;padding:0 16px;height:60px;line-height:60px;color:#fff;font-size:15px;transition:background .2s}
nav.main-nav ul li a:hover,nav.main-nav ul li a.active{background:rgba(0,0,0,.2);text-decoration:none}
.header-search{display:flex;align-items:center;gap:6px}
.header-search input{border:none;border-radius:20px;padding:6px 14px;font-size:14px;width:180px;outline:none}
.header-search button{background:#ffe066;border:none;border-radius:20px;padding:6px 14px;font-size:14px;cursor:pointer;font-weight:600;color:#c0392b}

/* ===== 面包屑 ===== */
.breadcrumb{background:#fff;border-bottom:1px solid #e8e8e8;padding:8px 0;font-size:13px;color:#888}
.breadcrumb a{color:#c0392b}
.breadcrumb span{margin:0 5px}

/* ===== 主体布局 ===== */
.main-layout{display:flex;gap:20px;padding:20px 0}
.main-content{flex:1;min-width:0}
.sidebar{width:280px;flex-shrink:0}

/* ===== 轮播Banner ===== */
.banner{position:relative;overflow:hidden;border-radius:8px;margin-bottom:20px;background:#222}
.banner-slides{display:flex;transition:transform .5s ease}
.banner-slide{min-width:100%;position:relative}
.banner-slide img{width:100%;height:360px;object-fit:cover;opacity:.85}
.banner-caption{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(0,0,0,.75));padding:30px 20px 16px;color:#fff}
.banner-caption h2{font-size:20px;font-weight:700;margin-bottom:6px;line-height:1.4}
.banner-caption p{font-size:13px;opacity:.85}
.banner-dots{position:absolute;bottom:12px;right:16px;display:flex;gap:6px}
.banner-dots span{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.5);cursor:pointer;transition:background .2s}
.banner-dots span.active{background:#ffe066}
.banner-prev,.banner-next{position:absolute;top:50%;transform:translateY(-50%);background:rgba(0,0,0,.4);color:#fff;border:none;width:36px;height:36px;border-radius:50%;cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;transition:background .2s}
.banner-prev{left:10px}
.banner-next{right:10px}
.banner-prev:hover,.banner-next:hover{background:rgba(192,57,43,.8)}

/* ===== 板块标题 ===== */
.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;padding-bottom:10px;border-bottom:2px solid #c0392b}
.section-title h2{font-size:18px;font-weight:700;color:#c0392b;display:flex;align-items:center;gap:8px}
.section-title h2::before{content:"";display:inline-block;width:4px;height:18px;background:#c0392b;border-radius:2px}
.section-title a{font-size:13px;color:#888}
.section-title a:hover{color:#c0392b}

/* ===== 资讯卡片网格 ===== */
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}
.news-card{background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.08);transition:transform .2s,box-shadow .2s}
.news-card:hover{transform:translateY(-3px);box-shadow:0 4px 16px rgba(0,0,0,.13)}
.news-card-img{position:relative;overflow:hidden;height:160px}
.news-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.news-card:hover .news-card-img img{transform:scale(1.05)}
.news-card-tag{position:absolute;top:8px;left:8px;background:#c0392b;color:#fff;font-size:11px;padding:2px 8px;border-radius:3px}
.news-card-body{padding:12px}
.news-card-title{font-size:15px;font-weight:600;line-height:1.5;margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.news-card-title a{color:#222}
.news-card-title a:hover{color:#c0392b;text-decoration:none}
.news-card-meta{font-size:12px;color:#aaa;display:flex;justify-content:space-between}

/* ===== 资讯列表（大图+文字） ===== */
.news-list-item{display:flex;gap:14px;background:#fff;border-radius:8px;padding:14px;margin-bottom:12px;box-shadow:0 1px 4px rgba(0,0,0,.07);transition:box-shadow .2s}
.news-list-item:hover{box-shadow:0 3px 12px rgba(0,0,0,.12)}
.news-list-thumb{width:140px;height:95px;flex-shrink:0;border-radius:6px;overflow:hidden}
.news-list-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.news-list-item:hover .news-list-thumb img{transform:scale(1.05)}
.news-list-body{flex:1;min-width:0}
.news-list-title{font-size:16px;font-weight:600;margin-bottom:8px;line-height:1.5}
.news-list-title a{color:#222}
.news-list-title a:hover{color:#c0392b;text-decoration:none}
.news-list-desc{font-size:13px;color:#666;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:8px}
.news-list-meta{font-size:12px;color:#aaa;display:flex;gap:14px}
.news-list-meta .tag{background:#fff0f0;color:#c0392b;padding:1px 8px;border-radius:3px;font-size:11px}

/* ===== 侧栏 ===== */
.sidebar-block{background:#fff;border-radius:8px;padding:16px;margin-bottom:16px;box-shadow:0 1px 4px rgba(0,0,0,.07)}
.sidebar-title{font-size:15px;font-weight:700;color:#c0392b;padding-bottom:10px;border-bottom:1px solid #f0f0f0;margin-bottom:12px;display:flex;align-items:center;gap:6px}
.sidebar-title::before{content:"";display:inline-block;width:3px;height:15px;background:#c0392b;border-radius:2px}
.hot-list li{padding:8px 0;border-bottom:1px solid #f5f5f5;display:flex;align-items:flex-start;gap:8px}
.hot-list li:last-child{border-bottom:none}
.hot-rank{width:20px;height:20px;border-radius:3px;background:#e8e8e8;color:#888;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px}
.hot-rank.r1{background:#c0392b;color:#fff}
.hot-rank.r2{background:#e74c3c;color:#fff}
.hot-rank.r3{background:#e67e22;color:#fff}
.hot-list a{font-size:13px;color:#333;line-height:1.5}
.hot-list a:hover{color:#c0392b;text-decoration:none}
.tag-cloud{display:flex;flex-wrap:wrap;gap:8px}
.tag-cloud a{background:#f5f5f5;color:#555;padding:4px 12px;border-radius:20px;font-size:13px;transition:all .2s}
.tag-cloud a:hover{background:#c0392b;color:#fff;text-decoration:none}

/* ===== 分页 ===== */
.pagination{display:flex;justify-content:center;gap:6px;padding:20px 0}
.pagination a,.pagination span{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:6px;font-size:14px;background:#fff;border:1px solid #e0e0e0;color:#333;transition:all .2s}
.pagination a:hover{background:#c0392b;color:#fff;border-color:#c0392b;text-decoration:none}
.pagination .current{background:#c0392b;color:#fff;border-color:#c0392b}

/* ===== 详情页 ===== */
.article-header{background:#fff;border-radius:8px;padding:24px;margin-bottom:16px;box-shadow:0 1px 4px rgba(0,0,0,.07)}
.article-title{font-size:24px;font-weight:700;line-height:1.5;margin-bottom:12px;color:#1a1a1a}
.article-meta{font-size:13px;color:#aaa;display:flex;gap:16px;flex-wrap:wrap;padding-bottom:14px;border-bottom:1px solid #f0f0f0;margin-bottom:16px}
.article-meta span{display:flex;align-items:center;gap:4px}
.article-cover{width:100%;max-height:420px;object-fit:cover;border-radius:6px;margin-bottom:16px}
.article-body{font-size:16px;line-height:1.9;color:#333}
.article-body p{margin-bottom:16px}
.article-body h2{font-size:20px;font-weight:700;color:#c0392b;margin:24px 0 12px;padding-left:12px;border-left:4px solid #c0392b}
.article-body h3{font-size:17px;font-weight:600;margin:18px 0 10px}
.article-body img{border-radius:6px;margin:12px auto}
.article-body blockquote{background:#fff8f8;border-left:4px solid #c0392b;padding:12px 16px;margin:16px 0;color:#555;font-style:italic}
.article-tags{margin-top:20px;padding-top:16px;border-top:1px solid #f0f0f0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.article-tags span{font-size:13px;color:#888}
.article-tags a{background:#fff0f0;color:#c0392b;padding:3px 12px;border-radius:20px;font-size:13px}

/* ===== 相关推荐 ===== */
.related-news{background:#fff;border-radius:8px;padding:20px;margin-bottom:16px;box-shadow:0 1px 4px rgba(0,0,0,.07)}
.related-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:14px}
.related-card img{width:100%;height:100px;object-fit:cover;border-radius:6px;margin-bottom:6px}
.related-card p{font-size:13px;color:#333;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.related-card p a{color:#333}
.related-card p a:hover{color:#c0392b;text-decoration:none}

/* ===== 内页（关于/联系） ===== */
.inner-page{background:#fff;border-radius:8px;padding:30px;box-shadow:0 1px 4px rgba(0,0,0,.07)}
.inner-page h1{font-size:22px;font-weight:700;color:#c0392b;margin-bottom:20px;padding-bottom:12px;border-bottom:2px solid #f0f0f0}
.inner-page h2{font-size:18px;font-weight:600;margin:20px 0 10px;color:#333}
.inner-page p{font-size:15px;line-height:1.9;color:#555;margin-bottom:12px}

/* ===== 底部 ===== */
#footer{background:#222;color:#aaa;margin-top:30px}
.footer-main{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:30px;padding:30px 0}
.footer-brand .logo{color:#fff;font-size:20px;margin-bottom:10px}
.footer-brand p{font-size:13px;line-height:1.8;color:#888}
.footer-col h3{font-size:14px;font-weight:600;color:#fff;margin-bottom:12px}
.footer-col ul li{margin-bottom:8px}
.footer-col ul li a{font-size:13px;color:#888;transition:color .2s}
.footer-col ul li a:hover{color:#ffe066;text-decoration:none}
.footer-bottom{border-top:1px solid #333;padding:14px 0;text-align:center;font-size:12px;color:#666}
.footer-bottom a{color:#888}

/* ===== 响应式 ===== */
@media(max-width:900px){
  .news-grid{grid-template-columns:repeat(2,1fr)}
  .main-layout{flex-direction:column}
  .sidebar{width:100%}
  .footer-main{grid-template-columns:1fr 1fr}
  .related-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
  nav.main-nav{display:none}
  .news-grid{grid-template-columns:1fr}
  .banner-slide img{height:200px}
  .article-title{font-size:18px}
  .footer-main{grid-template-columns:1fr}
  .header-search{display:none}
}

/* ===== 工具类 ===== */
.text-red{color:#c0392b}
.bg-red{background:#c0392b}
.mt10{margin-top:10px}
.mb10{margin-bottom:10px}
.clearfix::after{content:"";display:table;clear:both}
