/* no000新闻 - 今日头条风格 + 移动端适配 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #f1f2f3; color: #222; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* 头部 */
header { background: #fff; border-bottom: 1px solid #e0e0e0; position: sticky; top: 0; z-index: 100; }
.header-wrap { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 26px; font-weight: bold; color: #e63946; }
.logo span { color: #333; }
.nav-toggle { display: none; font-size: 24px; cursor: pointer; }
nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a { color: #555; font-size: 15px; padding: 6px 12px; border-radius: 4px; }
nav a:hover { background: #e63946; color: #fff; }

/* 横幅 */
.banner { background: linear-gradient(120deg, #e63946, #ff6b6b); color: #fff; padding: 30px 20px; }
.banner-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.banner h1 { font-size: 28px; }
.banner p { opacity: 0.9; margin-top: 5px; }

/* 主体 */
main { max-width: 1200px; margin: 20px auto; padding: 0 15px; display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
.main-left { display: flex; flex-direction: column; gap: 16px; }

/* 轮播 */
.hero-slider { position: relative; height: 280px; overflow: hidden; border-radius: 8px; }
.hero-item { position: absolute; inset: 0; opacity: 0; transition: 0.5s; }
.hero-item.active { opacity: 1; }
.hero-item img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: #fff; padding: 20px; }
.hero-overlay h3 { font-size: 20px; margin-bottom: 5px; }
.hero-overlay h3 a { color: #fff; }
.hero-overlay p { font-size: 14px; opacity: 0.9; }

/* 新闻列表 */
.news-item { background: #fff; border-radius: 8px; overflow: hidden; display: flex; }
.news-item a img { width: 180px; height: 120px; object-fit: cover; }
.news-item a { display: block; }
.news-content { padding: 12px 16px; flex: 1; }
.news-content h3 { font-size: 16px; margin-bottom: 8px; line-height: 1.3; }
.news-content h3:hover { color: #e63946; }
.news-content p { color: #888; font-size: 13px; margin-bottom: 10px; }
.meta { display: flex; gap: 10px; font-size: 12px; }
.tag { background: #e63946; color: #fff; padding: 2px 8px; border-radius: 4px; }
.hot { color: #ff6b6b; font-weight: bold; }

/* 侧边栏 */
aside { display: flex; flex-direction: column; gap: 16px; }
aside > div { background: #fff; border-radius: 8px; padding: 16px; }
aside h3 { font-size: 16px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #e63946; }
.hot-list { list-style: none; }
.hot-list li { padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.hot-list li:last-child { border: none; }
.hot-list .num { display: inline-block; width: 20px; height: 20px; background: #e63946; color: #fff; text-align: center; line-height: 20px; border-radius: 4px; margin-right: 8px; font-size: 12px; }
.hot-list li:nth-child(1) .num, .hot-list li:nth-child(2) .num, .hot-list li:nth-child(3) .num { background: #ff6b6b; }

/* 文章页 */
.article-page { max-width: 800px; margin: 20px auto; padding: 0 15px; }
.article-page article { background: #fff; border-radius: 8px; overflow: hidden; }
.article-hero { width: 100%; height: 300px; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-header { padding: 20px; }
.article-header h1 { font-size: 24px; line-height: 1.4; margin-bottom: 10px; }
.article-subtitle { font-size: 16px; color: #666; margin-bottom: 15px; }
.article-meta { font-size: 13px; color: #999; padding-bottom: 15px; border-bottom: 1px solid #eee; display: flex; gap: 15px; flex-wrap: wrap; }
.article-body { padding: 20px; font-size: 17px; line-height: 1.8; }
.article-body p { margin-bottom: 15px; text-indent: 2em; }
.article-actions { padding: 15px 20px; border-top: 1px solid #eee; display: flex; gap: 10px; }
.article-actions button { padding: 8px 20px; border: 1px solid #ddd; background: #fff; border-radius: 20px; cursor: pointer; font-size: 14px; }
.article-actions button:hover { background: #e63946; color: #fff; border-color: #e63946; }

/* 底部 */
footer { background: #fff; padding: 25px 20px; text-align: center; color: #999; font-size: 13px; margin-top: 30px; }

/* 分类页 */
.category-header { background: #fff; padding: 30px 20px; text-align: center; margin-bottom: 20px; border-radius: 8px; }
.category-header h1 { font-size: 28px; margin-bottom: 10px; }
.category-header p { color: #999; }
.category-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 分类页 */
.category-header { background: #fff; padding: 30px 20px; text-align: center; margin-bottom: 20px; border-radius: 8px; }
.category-header h1 { font-size: 28px; margin-bottom: 10px; }
.category-header p { color: #999; }
.category-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.category-list .news-item { background: #fff; border-radius: 8px; overflow: hidden; }

/* 响应式 */
@media (max-width: 768px) {
  main { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 15px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
  nav.active { display: flex; }
  nav a { padding: 12px; border-bottom: 1px solid #f0f0f0; }
  .hero-slider { height: 200px; }
  .news-item { flex-direction: column; }
  .news-item a img { width: 100%; height: 180px; }
  .article-hero { height: 200px; }
  .article-header h1 { font-size: 20px; }
  .banner h1 { font-size: 22px; }
}