/* 91网电脑版 - 现代门户样式 */
:root {
  --primary: #0d47a1;
  --primary-dark: #093478;
  --primary-light: #1976d2;
  --accent: #c62828;
  --accent-dark: #8e1a1a;
  --bg: #f5f5f5;
  --bg-white: #ffffff;
  --text: #212121;
  --text-secondary: #616161;
  --text-light: #9e9e9e;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 8px;
  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'ZCOOL XiaoWei', 'Noto Sans SC', serif;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--bg-white);
  border-bottom: 3px solid var(--primary);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}

.header-top a {
  color: #fff;
  margin-left: 16px;
  opacity: 0.9;
}

.header-top a:hover {
  opacity: 1;
  text-decoration: underline;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 22px;
  font-weight: bold;
}

.logo-text h1 {
  font-size: 24px;
  color: var(--primary);
}

.logo-text span {
  font-size: 12px;
  color: var(--text-secondary);
}

.search-box {
  display: flex;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
  width: 320px;
}

.search-box input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  outline: none;
  font-size: 14px;
}

.search-box button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.search-box button:hover {
  background: var(--primary-dark);
}

/* Navigation */
.main-nav {
  background: var(--primary);
}

.main-nav .container {
  display: flex;
  gap: 0;
}

.main-nav a {
  color: #fff;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary-dark);
  color: #fff;
}

/* Hero / Banner */
.hero-section {
  margin: 24px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.banner-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/9;
}

.banner-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 24px 20px 16px;
  color: #fff;
}

.banner-caption h2 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 6px;
}

.banner-caption p {
  font-size: 14px;
  opacity: 0.9;
}

.banner-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.banner-side-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  flex: 1;
}

.banner-side-item h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.banner-side-item ul {
  list-style: none;
}

.banner-side-item li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

.banner-side-item li:last-child {
  border-bottom: none;
}

.banner-side-item li a {
  color: var(--text);
}

.banner-side-item li a:hover {
  color: var(--accent);
}

.banner-side-item li .tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 6px;
}

/* Main Layout */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  margin-bottom: 40px;
}

.content-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

/* Section Cards */
.section-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 2px solid var(--primary);
}

.section-header h2 {
  font-size: 18px;
  color: var(--primary);
}

.section-header .more {
  font-size: 13px;
  color: var(--text-secondary);
}

.section-header .more:hover {
  color: var(--accent);
}

.section-body {
  padding: 20px;
}

/* Channel Grid */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.channel-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: block;
  color: var(--text);
  border: 1px solid var(--border);
}

.channel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: var(--primary);
}

.channel-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.channel-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.channel-card p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* News List */
.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.news-item:last-child {
  border-bottom: none;
}

.news-thumb {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-item:hover .news-thumb img {
  transform: scale(1.05);
}

.news-info h3 {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-info h3 a {
  color: var(--text);
}

.news-info h3 a:hover {
  color: var(--accent);
}

.news-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.news-meta .sep {
  margin: 0 8px;
}

.news-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 6px;
}

.news-tag.hot {
  background: var(--accent);
}

.news-tag.new {
  background: #43a047;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.video-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-card:hover .video-thumb img {
  transform: scale(1.05);
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 3px;
}

.video-info {
  padding: 12px 14px;
}

.video-info h4 {
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.video-info h4 a {
  color: var(--text);
}

.video-info h4 a:hover {
  color: var(--accent);
}

.video-meta {
  font-size: 12px;
  color: var(--text-light);
}

.video-meta .views {
  color: var(--accent);
}

/* Sidebar Widgets */
.widget {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.widget-title {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
}

.widget-body {
  padding: 16px;
}

.hot-list {
  list-style: none;
  counter-reset: hot-counter;
}

.hot-list li {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  counter-increment: hot-counter;
}

.hot-list li:last-child {
  border-bottom: none;
}

.hot-list li::before {
  content: counter(hot-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--text-light);
  color: #fff;
  font-size: 12px;
  border-radius: 4px;
  margin-right: 10px;
  flex-shrink: 0;
  font-weight: bold;
}

.hot-list li:nth-child(1)::before,
.hot-list li:nth-child(2)::before,
.hot-list li:nth-child(3)::before {
  background: var(--accent);
}

.hot-list li a {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.hot-list li a:hover {
  color: var(--accent);
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.tag-cloud a:hover {
  background: var(--primary);
  color: #fff;
}

/* Category Filter */
.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cat-filter a {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.cat-filter a:hover,
.cat-filter a.active {
  background: var(--primary);
  color: #fff;
}

/* Article List */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.article-item:last-child {
  border-bottom: none;
}

.article-thumb {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.article-info h3 a {
  color: var(--text);
}

.article-info h3 a:hover {
  color: var(--accent);
}

.article-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.article-meta .sep {
  margin: 0 8px;
}

.article-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 10px;
}

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Content Page Styles */
.content-page {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  margin-bottom: 30px;
}

.content-page h1 {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--primary);
}

.content-page h2 {
  font-size: 24px;
  margin: 32px 0 16px;
  color: var(--primary);
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

.content-page h3 {
  font-size: 18px;
  margin: 24px 0 12px;
  color: var(--text);
}

.content-page p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--text);
}

.content-page ul,
.content-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-page li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.content-page img {
  border-radius: var(--radius);
  margin: 16px 0;
}

.content-page .lead {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.content-page .highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 24px;
  border-radius: var(--radius);
  margin: 24px 0;
}

.content-page .highlight h2,
.content-page .highlight h3 {
  color: #fff;
}

/* Contact Form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-dark);
}

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

.contact-item {
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
}

.contact-item h4 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-item p {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-item .icon {
  font-size: 28px;
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 48px 0 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
  font-family: 'ZCOOL XiaoWei', serif;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #ccc;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-logo {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 22px;
  color: #fff;
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #888;
}

.footer-bottom a {
  color: #888;
  margin: 0 6px;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
}

.pagination a:hover,
.pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Breadcrumb */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .sep {
  margin: 0 8px;
  color: var(--text-light);
}

.breadcrumb .current {
  color: var(--text);
}

/* Page Title */
.page-title {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 40px 0;
  margin-bottom: 30px;
}

.page-title h1 {
  color: #fff;
  font-size: 36px;
  margin-bottom: 8px;
}

.page-title p {
  font-size: 16px;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar .widget {
    flex: 1;
    min-width: 280px;
  }

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

  .channel-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 768px) {
  .header-main {
    flex-direction: column;
    gap: 16px;
  }

  .search-box {
    width: 100%;
  }

  .main-nav .container {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .main-nav a {
    padding: 12px 16px;
    font-size: 14px;
  }

  .channel-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-item,
  .article-item {
    grid-template-columns: 100px 1fr;
    gap: 12px;
  }

  .news-thumb,
  .article-thumb {
    aspect-ratio: 16/10;
  }

  .content-page {
    padding: 24px 20px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-title h1 {
    font-size: 28px;
  }

  .header-top {
    font-size: 12px;
  }

  .header-top a {
    margin-left: 10px;
  }
}

@media (max-width: 480px) {
  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .news-item,
  .article-item {
    grid-template-columns: 1fr;
  }

  .news-thumb,
  .article-thumb {
    max-width: 100%;
    aspect-ratio: 16/9;
  }

  .logo-text h1 {
    font-size: 20px;
  }
}