/* ===== 全局变量 ===== */
:root {
  --primary: #c0392b;
  --primary-dark: #a93226;
  --nav-bg: #1a1a2e;
  --bg: #f5f5f5;
  --card-bg: #ffffff;
  --text: #222222;
  --text-muted: #888888;
  --border: #e0e0e0;
}

* { box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; }

/* ===== 通知栏 ===== */
.notice-bar {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}
.notice-bar .label {
  background: #fff;
  color: var(--primary);
  font-weight: bold;
  padding: 1px 8px;
  border-radius: 2px;
  margin-right: 10px;
  white-space: nowrap;
}
.notice-bar .marquee-wrap {
  overflow: hidden;
  flex: 1;
}
.notice-bar marquee { width: 100%; }
.notice-bar .lang-menu { gap: 12px; flex-shrink: 0; margin-left: 10px; }
.notice-bar .lang-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
  transition: color 0.3s;
}
.notice-bar .lang-link:hover,
.notice-bar .lang-link.active {
  color: #fff;
}

/* ===== 导航 ===== */
.main-nav {
  background: var(--nav-bg);
  padding: 0;
}
.main-nav .navbar-toggler .bi-list {
  color: #fff !important;
}
.main-nav .navbar-brand {
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
}
.main-nav .navbar-brand span { color: var(--primary); }
.main-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  padding: 18px 14px !important;
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: #fff !important;
  background: var(--primary);
}
.main-nav .search-form {
  background: #2d3748 !important;
  border-radius: 50px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  display: flex !important;
  align-items: center !important;
  height: 34px !important;
  width: 200px !important;
}
.main-nav .search-form input {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  flex: 1 !important;
  min-width: 120px !important;
  height: 100% !important;
  line-height: 34px !important;
}
.main-nav .search-form input::placeholder { color: rgba(255,255,255,0.5) !important; }
.main-nav .search-form input:focus {
  outline: none !important;
  box-shadow: none !important;
}
.main-nav .search-form button {
  background: #c53030 !important;
  border: none !important;
  color: #fff !important;
  height: 34px !important;
  width: 38px !important;
  border-radius: 0 50px 50px 0 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
}
.main-nav .search-form button:hover {
  background: #9b2c2c !important;
}
.main-nav .search-form button svg {
  display: block !important;
}

/* ===== 轮播 ===== */
.hero-carousel { position: relative; }

/* ===== 焦点新闻轮播 ===== */
.focus-carousel {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 4px;
}
.focus-slide-outer {
  width: 100%;
  height: auto;
  display: flex;
  transition: transform 0.5s ease;
}
.focus-slide-item {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  display: block;
  position: relative;
  overflow: hidden;
}
.focus-slide-item img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  display: block;
  background: #f5f5f5;
}
.focus-slide-item:hover img {
  transform: scale(1.03);
}
.focus-slide-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
}
.focus-slide-info .cat-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
  display: inline-block;
}
.focus-slide-info h4 {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 6px 0;
  color: #fff;
  line-height: 1.4;
}
.focus-slide-info .date {
  font-size: 12px;
  opacity: 0.8;
}
.focus-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background: rgba(0,0,0,0.3);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 5;
  transition: background 0.3s;
  user-select: none;
}
.focus-arrow:hover { background: rgba(0,0,0,0.6); }
.focus-arr-left { left: 6px; }
.focus-arr-right { right: 6px; }
.focus-dot-group {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 5;
}
.focus-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.4s;
}
.focus-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* ===== 新闻列表 ===== */
.news-list-box {
  background: var(--card-bg);
  border-radius: 4px;
  padding: 8px 12px;
  height: calc(50% - 6px);
}
.news-list-box .section-title {
  margin: 0 0 2px 0;
  padding: 0 0 4px 0;
}
.news-list-box .section-title h3 {
  font-size: 14px;
  padding: 0 8px 0 0;
  border-right-width: 2px;
}
.news-list-box .section-title .more {
  font-size: 11px;
}
.news-list-content {
  margin: 0;
  padding: 0;
}
.news-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed #eee;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
  line-height: 1.3;
}
.news-list-item:last-child {
  border-bottom: none;
}
.news-list-item:hover {
  color: var(--primary);
}
.news-list-title {
  flex: 1;
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 10px;
}
.news-list-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.hero-carousel .carousel-item {
  height: 460px;
  background: #333;
  overflow: hidden;
}
.hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}
.hero-carousel .carousel-caption {
  bottom: 40px;
  left: 40px;
  right: 40px;
  text-align: left;
}
.hero-carousel .carousel-caption .cat-tag {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 10px;
}
.hero-carousel .carousel-caption h2 {
  font-size: 26px;
  font-weight: bold;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  margin-bottom: 8px;
}
.hero-carousel .carousel-caption p {
  font-size: 13px;
  opacity: 0.85;
  margin: 0;
}
.hero-carousel .carousel-indicators button {
  width: 30px;
  height: 3px;
  border-radius: 0;
}
.hero-carousel .carousel-indicators button.active {
  background-color: red;
}

/* ===== 通用区块标题 ===== */
.section-title {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 18px;
  padding-bottom: 8px;
}
.section-title h3 {
  font-size: 17px;
  font-weight: bold;
  margin: 0;
  padding: 4px 14px 4px 0;
  border-right: 3px solid var(--primary);
  color: var(--text);
}
.section-title .more {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
}
.section-title .more:hover { color: var(--primary); }

/* ===== 新闻卡片 ===== */
.news-card {
  background: var(--card-bg);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s;
  height: 100%;
}
.news-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.news-card .card-img-wrap {
  overflow: hidden;
  position: relative;
}
.news-card .card-img-wrap img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s;
}
.news-card:hover .card-img-wrap img { transform: scale(1.04); }
.news-card .cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 2px;
}
.news-card .card-body { padding: 14px; }
.news-card .card-title {
  font-size: 15px;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}
.news-card .card-meta i { margin-right: 3px; }

/* 大卡片 */
.news-card-lg .card-img-wrap img { height: 280px; }
.news-card-lg .card-title { font-size: 18px; }

/* ===== 焦点新闻区 ===== */
.focus-section { padding: 28px 0 10px; }

/* ===== 分类新闻区 ===== */
.category-section { padding: 10px 0 20px; }

/* ===== 侧边栏 ===== */
.sidebar { padding-top: 0; }

.sidebar-widget {
  background: var(--card-bg);
  border-radius: 4px;
  margin-bottom: 24px;
  overflow: hidden;
}
.sidebar-widget .widget-title {
  background: var(--nav-bg);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-widget .widget-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--primary);
  border-radius: 2px;
}
.sidebar-widget .widget-body { padding: 14px 14px 4px 14px; }

/* 热门排行 */
.hot-list { list-style: none; padding: 0; margin: 0; }
.hot-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
}
.hot-list li:last-child { border-bottom: none; }
.hot-list .rank {
  min-width: 22px;
  height: 22px;
  background: #ddd;
  color: #666;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  flex-shrink: 0;
}
.hot-list li:nth-child(1) .rank { background: var(--primary); color: #fff; }
.hot-list li:nth-child(2) .rank { background: #e67e22; color: #fff; }
.hot-list li:nth-child(3) .rank { background: #f39c12; color: #fff; }
.hot-list .title {
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hot-list .title:hover { color: var(--primary); }
.hot-list .date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.focus-headline {
  display: block;
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
  text-align: center;
}
.focus-headline:hover { color: var(--primary); }
.focus-headline h4 {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  margin: 0 0 6px 0;
}
.focus-headline .focus-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}
.focus-headline .date {
  font-size: 12px;
  color: var(--text-muted);
}
.focus-headline .date i { margin-right: 3px; }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 2px;
  transition: all 0.2s;
}
.tag-cloud a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== 列表页 ===== */
.news-list-item {
  background: var(--card-bg);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  transition: box-shadow 0.2s;
}
.news-list-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.news-list-item .thumb {
  width: 160px;
  height: 110px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 3px;
}
.news-list-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.news-list-item:hover .thumb img { transform: scale(1.05); }
.news-list-item .info { flex: 1; }
.news-list-item .info .cat-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 6px;
}
.news-list-item .info h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 6px;
  line-height: 1.5;
}
.news-list-item .info h4:hover { color: var(--primary); }
.news-list-item .info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-list-item .info .meta {
  font-size: 12px;
  color: #aaa;
  display: flex;
  gap: 14px;
}

/* 面包屑 */
.breadcrumb-wrap {
  background: var(--card-bg);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.breadcrumb { margin: 0; font-size: 13px; }
.breadcrumb-item + .breadcrumb-item::before { color: #aaa; }
.breadcrumb-item.active { color: var(--text-muted); }

/* 分页 */
.pagination .page-link {
  color: var(--text);
  border-color: var(--border);
  font-size: 13px;
  padding: 6px 12px;
}
.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pagination .page-link:hover { color: var(--primary); }

/* ===== 详情页 ===== */
.article-wrap {
  background: var(--card-bg);
  border-radius: 4px;
  padding: 30px;
}
.article-wrap .article-cat {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 14px;
}
.article-wrap h1 {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 14px;
}
.article-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.article-meta i { margin-right: 4px; }
.article-body {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}
.article-body p { margin-bottom: 18px; }
.article-body img {
  border-radius: 4px;
  margin: 10px 0;
}
.article-body blockquote {
  border-left: 4px solid var(--primary);
  background: #fdf5f5;
  padding: 12px 18px;
  margin: 20px 0;
  color: #555;
  font-style: italic;
}

/* 文章标签 */
.article-tags {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.article-tags .label { font-size: 13px; color: var(--text-muted); }
.article-tags a {
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 2px;
  color: var(--text-muted);
}
.article-tags a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 上下篇 */
.article-nav {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.article-nav .nav-item {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 13px;
}
.article-nav .nav-item .dir { color: var(--text-muted); margin-bottom: 4px; font-size: 12px; }
.article-nav .nav-item .title { font-weight: bold; }
.article-nav .nav-item:hover { border-color: var(--primary); }
.article-nav .nav-item:hover .title { color: var(--primary); }

/* 相关推荐 */
.related-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.related-item:last-child { border-bottom: none; }
.related-item img {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}
.related-item .title {
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-item .title:hover { color: var(--primary); }

/* ===== Footer ===== */
.main-footer {
  background: var(--nav-bg);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 0;
  margin-top: 40px;
}
.main-footer h5 {
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.main-footer ul { list-style: none; padding: 0; margin: 0; }
.main-footer ul li { margin-bottom: 8px; font-size: 13px; }
.main-footer ul li a { color: rgba(255,255,255,0.6); }
.main-footer ul li a:hover { color: var(--primary); }
.footer-bottom {
  background: rgba(0,0,0,0.2);
  text-align: center;
  padding: 14px 0;
  margin-top: 30px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  /* 轮播适配 */
  .hero-carousel .carousel-item { height: auto; }
  .hero-carousel .carousel-item img { height: auto; max-height: none; object-fit: contain; }
  .hero-carousel .carousel-caption h2 { font-size: 16px; }
  .hero-carousel .carousel-caption { bottom: 16px; left: 16px; right: 16px; }
  
  /* 焦点轮播适配 */
  .focus-carousel { height: auto; min-height: 180px; }
  .focus-slide-item img { width: 100%; height: auto; object-fit: cover; }
  .focus-slide-info h4 { font-size: 14px; }
  .focus-slide-info { padding: 12px; }
  
  /* 焦点新闻区内部布局垂直堆叠 */
  .focus-section .row.g-3 > div { flex: 0 0 100%; max-width: 100%; }
  
  /* 新闻卡片适配 */
  .news-card .card-img-wrap img { height: 150px; }
  .news-card .card-title { font-size: 14px; }
  .news-card .card-body { padding: 10px; }
  
  /* 列表页适配 */
  .news-list-item .thumb { width: 100px; height: 80px; }
  .news-list-item { padding: 12px; gap: 12px; }
  .news-list-item .info h4 { font-size: 14px; }
  .news-list-item .info .news-desc { display: none; }
  
  /* 文章详情页适配 */
  .article-wrap { padding: 16px; }
  .article-wrap h1 { font-size: 18px; }
  .article-nav { flex-direction: column; }
  
  /* 导航搜索适配 */
  .main-nav .search-form { width: 150px !important; }
  .main-nav .search-form input { width: 80px !important; min-width: 80px !important; }
  .main-nav .nav-link { padding: 12px 10px !important; font-size: 13px; }
  
  /* 通知栏适配 */
  .notice-bar .lang-menu { display: none; }
  
  /* 区块标题适配 */
  .section-title h3 { font-size: 15px; }
  .section-title .more { font-size: 11px; }
  
  /* 热门列表适配 */
  .hot-list .title { font-size: 12px; -webkit-line-clamp: 1; }
  .hot-list li { padding: 7px 0; }
  
  /* 侧边栏适配 */
  .sidebar { padding-top: 0; }
  .sidebar-widget .widget-body { padding: 10px; }
  
  /* 间距调整 */
  .focus-section { padding: 20px 0 10px; }
  .category-section { padding: 10px 0 16px; }
  
  /* 广告位置适配 */
  .ad-flash-block { padding: 24px 0; font-size: 16px; }
  
  /* 底部适配 */
  .main-footer { padding: 24px 0 0; margin-top: 24px; }
}

/* ===== 广告位置Flash ===== */
.ad-flash-block {
  background: #00008b;
  color: rgba(255, 255, 255, 0.85);
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  padding: 36px 0;
  border-radius: 4px;
  letter-spacing: 2px;
}

/* ===== 工商广告列表 ===== */
.ad-list {
  display: flex;
  flex-direction: column;
}
.ad-item {
  display: block;
  border-bottom: 11px solid #fff;
}
.ad-item:last-child {
  border-bottom: none;
}
.ad-item img {
  width: 100%;
  height: 85px;
  object-fit: cover;
  display: block;
}

/* partner-link 樣式已移至 ad_home_mid.ascx / ad_home_bottom.ascx 內聯 */

@media(max-width:768px){
  .ad-item img{height:auto!important;max-height:none!important;object-fit:contain!important}
}
