/* ===== 91网 主样式表 ===== */
/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: #f5f6fa;
  color: #222;
  line-height: 1.7;
}
a { color: #d0021b; text-decoration: none; transition: color .2s; }
a:hover { color: #ff3a3a; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== Layout ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.col-main { flex: 1 1 680px; min-width: 0; }
.col-side { flex: 0 0 280px; min-width: 0; }

/* ===== Top Bar ===== */
.topbar {
  background: #1a1a2e;
  color: #aaa;
  font-size: 12px;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #ccc; }
.topbar a:hover { color: #fff; }
.topbar-date { font-size: 12px; }
.topbar-links a { margin-left: 12px; }

/* ===== Header ===== */
.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #d0021b 0%, #ff6b35 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
}
.logo-text { line-height: 1.2; }
.logo-text .brand { font-size: 22px; font-weight: 800; color: #d0021b; }
.logo-text .slogan { font-size: 11px; color: #888; }

/* ===== Search Bar ===== */
.search-bar {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  background: #f5f6fa;
  border: 2px solid #e8e8e8;
  border-radius: 24px;
  overflow: hidden;
  transition: border-color .2s;
}
.search-bar:focus-within { border-color: #d0021b; }
.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 16px;
  font-size: 14px;
  outline: none;
  color: #333;
}
.search-bar button {
  background: #d0021b;
  border: none;
  color: #fff;
  padding: 9px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
  white-space: nowrap;
}
.search-bar button:hover { background: #b0011a; }

/* ===== Navigation ===== */
.main-nav { background: #d0021b; }
.main-nav .container { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 0; }
.nav-list li a {
  display: block;
  padding: 13px 18px;
  color: rgba(255,255,255,.9);
  font-size: 15px;
  font-weight: 500;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-list li a:hover,
.nav-list li a.active {
  background: rgba(0,0,0,.18);
  color: #fff;
}
.nav-hot { position: relative; }
.nav-hot::after {
  content: "热";
  position: absolute;
  top: 6px;
  right: 4px;
  background: #ff6b35;
  color: #fff;
  font-size: 9px;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 700;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 8px 0;
  font-size: 13px;
  color: #888;
}
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #d0021b; }
.breadcrumb span { margin: 0 6px; }

/* ===== Banner / Hero ===== */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  overflow: hidden;
  margin-bottom: 0;
}
.hero-banner img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  opacity: .85;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.65) 0%, transparent 60%);
  display: flex;
  align-items: center;
}
.hero-content { padding: 0 48px; color: #fff; }
.hero-tag {
  display: inline-block;
  background: #d0021b;
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
  font-weight: 600;
}
.hero-content h1 { font-size: 32px; font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.hero-content p { font-size: 15px; opacity: .85; margin-bottom: 20px; max-width: 480px; }
.btn-primary {
  display: inline-block;
  background: #d0021b;
  color: #fff;
  padding: 10px 28px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  transition: background .2s, transform .1s;
}
.btn-primary:hover { background: #b0011a; color: #fff; transform: translateY(-1px); }

/* ===== Section Title ===== */
.section { padding: 32px 0; }
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}
.section-title h2 {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
}
.section-title .title-bar {
  width: 4px;
  height: 22px;
  background: #d0021b;
  border-radius: 2px;
}
.section-title .more-link {
  margin-left: auto;
  font-size: 13px;
  color: #888;
}
.section-title .more-link:hover { color: #d0021b; }

/* ===== News Card ===== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.news-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.news-card-img { position: relative; overflow: hidden; height: 180px; }
.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-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #d0021b;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
}
.news-card-body { padding: 14px 16px; }
.news-card-body h3 { font-size: 15px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; color: #1a1a2e; }
.news-card-body h3 a { color: inherit; }
.news-card-body h3 a:hover { color: #d0021b; }
.news-card-meta { font-size: 12px; color: #999; display: flex; gap: 12px; align-items: center; }
.news-card-meta .author { color: #d0021b; font-weight: 500; }

/* ===== Video Card ===== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.video-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.video-thumb {
  position: relative;
  overflow: hidden;
  height: 160px;
  background: #111;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; }
.video-card:hover .video-thumb img { transform: scale(1.06); opacity: .75; }
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}
.video-card:hover .video-play-btn { opacity: 1; }
.video-play-btn .play-icon {
  width: 56px;
  height: 56px;
  background: rgba(208,2,27,.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  transition: transform .2s;
}
.video-card:hover .play-icon { transform: scale(1.1); }
.play-icon svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}
.video-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff6b35;
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 700;
}
.video-card-body { padding: 12px 14px; }
.video-card-body h3 { font-size: 14px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; color: #1a1a2e; }
.video-card-body h3 a { color: inherit; }
.video-card-body h3 a:hover { color: #d0021b; }
.video-stats { display: flex; gap: 12px; font-size: 12px; color: #999; align-items: center; }
.video-stats span { display: flex; align-items: center; gap: 3px; }

/* ===== Hot List ===== */
.hot-list { background: #fff; border-radius: 10px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.hot-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.hot-item:last-child { border-bottom: none; }
.hot-rank {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #eee;
  color: #888;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hot-rank.top1 { background: #d0021b; color: #fff; }
.hot-rank.top2 { background: #ff6b35; color: #fff; }
.hot-rank.top3 { background: #f5a623; color: #fff; }
.hot-item-title { font-size: 14px; line-height: 1.5; color: #1a1a2e; }
.hot-item-title a { color: inherit; }
.hot-item-title a:hover { color: #d0021b; }
.hot-item-views { font-size: 11px; color: #bbb; margin-top: 2px; }

/* ===== Topic Cards ===== */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.topic-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 10px;
  padding: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform .2s;
}
.topic-card:hover { transform: translateY(-3px); }
.topic-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(208,2,27,.25);
  border-radius: 50%;
}
.topic-card .topic-icon { font-size: 28px; margin-bottom: 10px; }
.topic-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.topic-card p { font-size: 12px; opacity: .75; line-height: 1.5; }
.topic-card .topic-count { margin-top: 12px; font-size: 12px; opacity: .6; }

/* ===== Author Cards ===== */
.author-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.author-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.author-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 3px solid #f0f0f0;
}
.author-name { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.author-title { font-size: 12px; color: #d0021b; margin-bottom: 8px; }
.author-bio { font-size: 12px; color: #888; line-height: 1.5; margin-bottom: 12px; }
.author-stats { display: flex; justify-content: center; gap: 20px; font-size: 12px; color: #999; }
.author-stats strong { display: block; font-size: 16px; color: #1a1a2e; font-weight: 700; }
.btn-follow {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 20px;
  border: 1px solid #d0021b;
  color: #d0021b;
  border-radius: 20px;
  font-size: 13px;
  transition: all .2s;
}
.btn-follow:hover { background: #d0021b; color: #fff; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  user-select: none;
  transition: background .15s;
}
.faq-question:hover { background: #fafafa; }
.faq-question .q-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #d0021b;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-right: 10px;
}
.faq-question .faq-arrow {
  transition: transform .25s;
  color: #bbb;
  font-size: 18px;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 20px 16px 54px;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  border-top: 1px solid #f5f5f5;
}
.faq-item.open .faq-answer { display: block; }

/* ===== Reviews ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.review-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d0021b, #ff6b35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.review-user { font-size: 14px; font-weight: 600; color: #1a1a2e; }
.review-date { font-size: 12px; color: #bbb; }
.review-stars { color: #f5a623; font-size: 14px; margin-bottom: 8px; }
.review-text { font-size: 13px; color: #555; line-height: 1.7; }
.review-tag { display: inline-block; margin-top: 8px; background: #fff0f0; color: #d0021b; font-size: 11px; padding: 2px 8px; border-radius: 10px; }

/* ===== Contact / Submit ===== */
.contact-box {
  background: linear-gradient(135deg, #d0021b 0%, #ff6b35 100%);
  border-radius: 12px;
  padding: 32px;
  color: #fff;
  text-align: center;
}
.contact-box h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.contact-box p { font-size: 14px; opacity: .9; margin-bottom: 20px; }
.contact-btn {
  display: inline-block;
  background: #fff;
  color: #d0021b;
  padding: 10px 32px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
  transition: transform .15s, box-shadow .15s;
}
.contact-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); color: #d0021b; }

/* ===== Tags ===== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  background: #f5f6fa;
  color: #555;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #e8e8e8;
  transition: all .2s;
}
.tag:hover { background: #d0021b; color: #fff; border-color: #d0021b; }

/* ===== Sidebar Widgets ===== */
.widget {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  margin-bottom: 20px;
}
.widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: #d0021b;
  border-radius: 2px;
}

/* ===== Footer ===== */
.site-footer {
  background: #1a1a2e;
  color: #aaa;
  padding: 40px 0 0;
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-brand .brand-name { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.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: #d0021b; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: #666;
}
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: #d0021b; }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-size: 14px;
  border: 1px solid #e8e8e8;
  color: #555;
  background: #fff;
  transition: all .2s;
}
.pagination a:hover, .pagination .current {
  background: #d0021b;
  color: #fff;
  border-color: #d0021b;
}

/* ===== Article Page ===== */
.article-header { background: #fff; padding: 28px 0 20px; border-bottom: 1px solid #eee; }
.article-title { font-size: 26px; font-weight: 800; color: #1a1a2e; line-height: 1.4; margin-bottom: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #999; align-items: center; }
.article-meta .author { color: #d0021b; font-weight: 600; }
.article-body { background: #fff; padding: 24px; border-radius: 10px; margin-top: 20px; }
.article-body p { margin-bottom: 16px; font-size: 15px; line-height: 1.9; color: #333; }
.article-body h2 { font-size: 20px; font-weight: 700; color: #1a1a2e; margin: 24px 0 12px; }
.article-body h3 { font-size: 17px; font-weight: 700; color: #1a1a2e; margin: 18px 0 10px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .row { flex-direction: column; }
  .col-side { flex: none; width: 100%; }
  .hero-content h1 { font-size: 22px; }
  .hero-content { padding: 0 24px; }
  .header-inner { flex-wrap: wrap; }
  .search-bar { max-width: 100%; flex: 1 1 100%; order: 3; }
}
@media (max-width: 600px) {
  .nav-list li a { padding: 11px 10px; font-size: 13px; }
  .news-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .author-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-banner img { max-height: 220px; }
  .hero-content h1 { font-size: 18px; }
  .logo-text .brand { font-size: 18px; }
}

/* ===== Utilities ===== */
.text-red { color: #d0021b; }
.text-muted { color: #999; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.badge-new { background: #d0021b; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 3px; font-weight: 700; margin-left: 4px; vertical-align: middle; }
.badge-hot { background: #ff6b35; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 3px; font-weight: 700; margin-left: 4px; vertical-align: middle; }
.divider { border: none; border-top: 1px solid #f0f0f0; margin: 20px 0; }
.text-center { text-align: center; }
.inline-list { display: flex; flex-wrap: wrap; gap: 8px; }
