:root {
  /* ========== 颜色系统（固定不变） ========== */
  --color-primary: #242525;     /* 主色（一级文字） */
  --color-default: #7A7C88;     /* 默认色（二级文字） */
  --color-hint: #ABB1C1;        /* 提示色（三级文字） */
  --color-active: #3C7EE3;      /* 激活色（链接/交互） */

  /* ========== 导航颜色（固定不变） ========== */
  --nav-primary: rgba(255, 255, 255, 0.8);
  --nav-primary-hover: #ffffff;

  /* ========== 字号系统（1920+大桌面基准） ========== */
  
  --font-hint: 1.4rem;       /* 三级字号（面包屑、辅助信息） */
  --font-default: 1.6rem;    /* 二级字号（通用模块一级、次要文字） */
  --font-primary: 1.8rem;    /* 一级字号（主要文字、文章正文） */
  --font-nav: 2rem;          /* 导航字号（一二级导航默认） */
  --font-nav-active: 2.4rem; /* 导航激活字号（一级导航选中） */
  --font-title: 2.8rem;      /* 文章标题字号 */

}

/* ========== 桌面适配（1280px-1919px）字号适当减小 ========== */
@media (max-width: 1919px) {
  :root {
    --font-hint: 1.4rem;
    --font-default: 1.6rem;
    --font-primary: 1.6rem;   /* 一级字号缩小到二级字号 */
    --font-nav: 1.8rem;       /* 导航字号缩小 */
    --font-nav-active: 2.2rem;/* 导航激活字号缩小 */
    --font-title: 2.4rem;     /* 标题字号缩小 */
  
  }
}
/* ==========自动匹配深色模式========== */
/* @media (prefers-color-scheme: dark) {
  body {
    filter: invert(1) hue-rotate(180deg);
    background: #2c2b2b !important;
    color: white;
  }

  img, svg, video {
    filter: invert(1) hue-rotate(180deg) !important;
  }


  [style*="background-image"],
  .with-bg-image {
    filter: invert(1) hue-rotate(180deg) !important;
  }
} */

/* ========== 平板适配（768px-1279px）字号进一步减小 ========== */
@media (max-width: 1279px) {
  :root {
    --font-hint: 1.2rem;
    --font-default: 1.4rem;
    --font-primary: 1.4rem; /* 继续缩小 */
    --font-nav: 1.6rem;
    --font-nav-active: 2rem;
    --font-title: 2rem;
  }
}

/* ========== 手机适配（小于768px）最小字号 ========== */
@media (max-width: 767px) {
  :root {
    --font-hint: 1rem;
    --font-default: 1.2rem;
    --font-primary: 1.2rem; /* 最小字号 */
    --font-nav: 1.4rem; /* 手机导航字号 */
    --font-nav-active: 1.6rem; /* 手机导航激活字号 */
    --font-title: 1.8rem; /* 手机标题字号 */
    
  }
}

* {
  margin: 0;
  padding: 0;
  border: 0;
}
html {
  color-scheme: light;
}

/* 原生控件、滚动条默认跟随系统，必须单独声明 */
input,
textarea,
select,
button,
::file-selector-button {
  color-scheme: light;
}
/* ========== 通用文字样式 ========== */
/* 一级文字样式 */
.text-primary {
  color: var(--color-primary);
  font-size: var(--font-primary);
}

/* 二级文字样式 */
.text-default {
  color: var(--color-default);
  font-size: var(--font-default);
}

/* 三级文字样式 */
.text-hint {
  color: var(--color-hint);
  font-size: var(--font-hint);
}


.nav-primary:hover {
  color: var(--nav-primary-hover);
}

.nav-primary.active {
  color: var(--nav-primary-hover);
  font-size: var(--font-nav-active);
  font-weight: bold;
}

/* ==================== 基础样式 ==================== */
html {
  font-size: 62.5%;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  background: #F7F9FA;
  color: var(--color-primary);
}

div,
p {
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

.overflow-hidden {
  overflow: hidden;
}
/* ==================== 布局类 ==================== */
.container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.full-container {
  padding: 0 4.8rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-1 {
  flex: 1;
}

/* ==================== 顶部区域 ==================== */
.top-banner {
  padding: 0;
  position: relative;
  height: 9rem;
  overflow: hidden;
}
.top-banner .carousel-containerl, .top-banner .content-carousel__swiper {
  width: 100%;
  height: 100%;
}
.content-carousel__swiper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.top-banner.top-banner_default {
  background: url("https://media.gzstv.com/images/2026/11/04/496f1d824488402b874e80a920e86eea.png") no-repeat center;
  /* background: url("https://media.gzstv.com/images/2026/11/04/496f1d824488402b874e80a920e86eea.png") no-repeat center; */
  background-size: cover;
}

/* ==================== 头部区域 ==================== */
.site-header.has-top-banner {
  position: -webkit-sticky;
  position: sticky;
  background-color: #F2FBFF;
  top: 0;
  z-index: 999;
}
.homepage-site-header {
  top: -90px;
}

.grayscale-mode {
  filter: grayscale(100%) !important;
  -webkit-filter: grayscale(100%) !important;
  will-change: filter;
}

/* 飘红图片 */
.site-header--special-theme {
  color: white;
  background: url("https://media.gzstv.com/images/2026/11/04/0d911802d47e49709a51a65f2918dd6a.png") no-repeat center;
  background-size: cover;
}
.site-header--special-theme .main-nav {
  background: none;
}

.site-header--special-theme .site-name, .site-header--special-theme .matrix, .site-header--special-theme .user-actions a {
  color: white;
}
 /* 飘红文字 */
 .special-theme .topnews-title a {
   color: #E85456 !important;
 }

 .special-theme .topnews-scroll {
   border-color: #E85456 !important;
 }

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 7.5rem;
}

.logo-area {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 4.5rem;
}

.site-name {
  font-size: 1.2rem;
  color: #343434;
}

.header-tools {
  display: flex;
  align-items: center;
}

.matrix {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  color: var(--color-hint);
  margin-right: 2.4rem;
}

.matrix img {
  width: 3rem;
  height: 3rem;
  margin-right: 0.6rem;
}

.search-box {
  position: relative;
  margin-right: 2rem;
}

.search-box input {
  padding: 0.8rem 1.5rem;
  border-radius: 2rem;
  width: 20rem;
  outline: none;
  border: 1px solid #D7DDE5;
  height: 3.8rem;
  box-sizing: border-box;
  transition: all .3s;
}

.search-box button {
  position: absolute;
  background: none;
  border: none;
  cursor: pointer;
  right: 1rem;
  top: 0.2rem;
}

.user-actions a {
  margin-left: 1.5rem;
  color: #666;
  font-size: 1.4rem;
}

/* ==================== 重大主题区域 ==================== */
.top-news-focus {
  padding: 1.5rem 0 0 0;
  margin: 2rem 0 0 0;
}

.homepage_swiper {
  margin: 3.2rem 0;
}
.topnews-title {
  font-size: 3.2rem;
  color: var(--color-active);
  font-weight: bold;
  text-align: center;
}

.topnews-title a {
  color: #305798;
}

.topnews-title__subtitle {
  font-size: 1.2rem;
  color: #7A7C88;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.topnews-scroll {
  height: 3.6rem;
  background: #FFFFFF;
  border-radius: 3px;
  border-top: 3px solid #DBEDF5;
  font-size: 1.2rem;
  color: #7A7C88;
  margin: 1.4rem 0;
}

.report-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 18px;
}
.report-row a {
  font-weight: initial;
}

/* ===== 总书记报道集 ===== */

/* 头条：上下排列、居中，双头条字号/颜色统一 */
.gs-headlines {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 头条整体居中 */
  text-align: center;
  gap: 8px;
}

.gs-headline-item {
  font-size: 36px;
  /* 头条 36px */
  line-height: 1.4;
  color: #305798;
  /* 头条颜色 */
  font-weight: 600;
}

.gs-headline-item a {
  color: inherit;
  text-decoration: none;
}

.gs-headline-item a:hover {
  text-decoration: underline;
}

/* 二条 / 三条：各自单独一行、居中，多个同行不换行、留间距 */
.gs-line {
  display: flex;
  flex-wrap: nowrap;
  /* 不换行 */
  justify-content: center;
  /* 整行居中 */
  align-items: baseline;
  /* gap: 24px; */
  /* 多条之间的间距 */
  margin-top: 10px;
  overflow: hidden;
  /* 极端溢出兜底，避免破版 */
  font-weight: normal;
}

.gs-item {
  flex: 0 0 auto;
  white-space: nowrap;
  /* 单条内部不换行 */
  font-size: 18px;
  /* 二条/三条默认 18px */
  color: #242525;
}

.gs-item a {
  color: inherit;
  text-decoration: none;
}

.gs-item a:hover {
  text-decoration: underline;
}
/* ==================== 专栏Banner ==================== */

.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  /* 间距：保持不动 */
  margin: 24px 0;
}

.banner-grid a {
  display: block;
  text-decoration: none;
  border-radius: 4px;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.banner-grid a:hover {
  opacity: 0.9;
}

.banner-grid img {
  width: 100%;
  /* height: 40px;  删掉固定高度 */
  aspect-ratio: 390 / 40;
  /* 用比例锁定，高度随宽度自动算 */
  display: block;
  object-fit: cover;
  /* 双保险：万一比例有小数误差也不裁切 */
}

/* 移动端适配规则 */
@media (max-width: 767px) {
  .banner-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 移动端一行 2 个 */
    gap: 10px;
    padding: 10px;
  }
}


/* ========== 手机适配（小于768px）最小字号 ========== */
@media (max-width: 767px) {
  .report-row {
    display: block;
  }
}
.report-row a {
  color: #242525 !important;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
  white-space: nowrap;
}
.report-row .report-item {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #242525;
}
.report-item a:hover, .topnews-title a:hover {
  text-decoration: underline;
}
/* ==================== 页面内容区域 ==================== */
.page-content {
  display: grid;
  grid-template-columns: 4fr 27.4rem;
  gap: 3.2rem;
  margin-bottom: 2.4rem;
}

.main-content {
  min-width: 0;
}

.content-module {
  margin-bottom: 2.4rem;
  min-height: 23rem;
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.module-title {
  font-size: var(--font-nav-active);
  color: var(--color-primary);
  font-weight: bold;
}

.module-more {
  font-size: var(--font-default);
  color: var(--color-hint);
  transition: all .3s;
}

.module-more:hover {
  color: var(--color-active);;
}

/* ==================== 侧边栏 ==================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

.sidebar-module {
  width: 100%;
}
/* 侧边栏广告 */
.sidebar a.ad img {
  width: 100%;
  height: 15.4rem;
  object-fit: cover;
  border-radius: 4px;
}

/* ==================== 视图切换 ==================== */
.view-toggle {
  display: flex;
  gap: 0.8rem;
}

.view-btn {
  border-radius: 4px;
  padding: 0.8rem;
  cursor: pointer;
  border: 1px solid #D7DDE5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #ABB1C1;
  font-size: 1.4rem;
  border: 1px solid transparent;
}

.view-btn.active {
  background: #FFFFFF;
  box-shadow: 0px 0 10px 0px rgba(73, 79, 92, 0.2);
  color: #7A7C88;
}

.view-btn img {
  width: 1.6rem;
  height: 1.6rem;
}

.view-btn:not(.active) img {
  filter: grayscale(100%) brightness(175%);
}
.view-btn.active img {
  filter: grayscale(100%) brightness(100%);
}
.view-btn:hover {
  border: 1px solid var(--color-active);
  color: var(--color-active);
}
.view-btn:hover img {
  filter: none;
}

/* ==================== 返回顶部 ==================== */
.back-top {
  position: fixed;
  right: 3rem;
  bottom: 8.2rem;
  z-index: 10;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 0 1rem 0 rgb(105 114 127 / 20%);
  border-radius: 50%;
  transition: all 0.3s;
  color: #9faabd;
  border: 1px solid transparent;
  opacity: 0;
  pointer-events: none;
}
.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-top:hover {
  border: 1px solid #3e7bf3;
  color: #3e7bf3;
}

.back-top:active {
  border: 1px solid #3e7bf3;
  color: #3e7bf3;
  background: #e7edfb;
}

.link-item img {
  width: 100%;
}

/* ==================== 底部样式 ==================== */
.footer {
  background-color: #fff;
  padding: 3rem 0;
  margin-top: 3rem;
  border-top: 1px solid #eee;
  text-align: center;
  color: #999;
  font-size: 1.4rem;
}

.footer-links {
  margin-bottom: 1.5rem;
}

.footer-links a {
  margin: 0 1rem;
}

.beian {
  margin-top: 1rem;
  font-size: 1.2rem;
}

/* ==================== 响应式适配方案 ==================== */

/* 移动设备优先：小屏手机 (320px - 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1.2rem;
    max-width: 100%;
  }

  .full-container {
    padding: 0 1.5rem;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 1rem 0;
  }

  .header-tools {
    margin-top: 1.5rem;
    width: 100%;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
  }

  .matrix {
    margin-right: 0;
    display: none;
  }

  .search-box {
    position: absolute;
    z-index: 9;
    width: 50%;
    right: 0;
    margin-top: 18px;
  }

  .search-box input {
    width: 100%;
    padding: 0.6rem 1.2rem;
    font-size: 1.4rem;
    transition: all .3s;
  }

  .user-actions {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
  }

  .user-actions a {
    margin-left: 0;
    font-size: 1.4rem;
  }

  .nav-links {
    display: none;
  }

  .page-content {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    margin-bottom: 1.6rem;
  }

  .sidebar {
    display: none;
  }

  .content-module {
    margin-bottom: 1.6rem;
    min-height: 18rem;
    padding: 1.5rem;
  }


  .topnews-title {
    font-size: 1.8rem;
  }

  .topnews-title__subtitle {
    font-size: 1.2rem;
    margin-top: 0.6rem;
  }

  .topnews-scroll {
    height: 6rem;
    margin: 1rem 0;
    font-size: 1.1rem;
  }

  .top-banner {
    height: 7rem;
    padding: 0.6rem 0;
  }

  .site-header {
    height: auto;
  }

  .site-logo img {
    height: 3.5rem;
  }

  .site-name {
    font-size: 1.1rem;
  }

  .footer {
    padding: 2rem 0;
    margin-top: 2rem;
    font-size: 1.2rem;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
  }

  .footer-links a {
    margin: 0 0.4rem;
    font-size: 1.2rem;
  }

  .beian {
    margin-top: 0.8rem;
    font-size: 1.1rem;
  }
}

/* 平板设备 (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 1.5rem;
  }

  .full-container {
    padding: 0 2rem;
  }

  .header-content {
    flex-direction: row;
    align-items: center;
    height: 7.5rem;
  }

  .header-tools {
    flex-direction: row;
    margin-top: 0;
  }

  .matrix {
    margin-right: 1.5rem;
    font-size: 1.1rem;
  }

  .matrix img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .search-box input {
    width: 16rem;
    padding: 0.6rem 1.2rem;
    font-size: 1.3rem;
  }

  .nav-links {
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links a {
    padding: 0 1.4rem;
  }


  .page-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .sidebar {
    display: none;
  }

  .content-module {
    margin-bottom: 2rem;
    min-height: 20rem;
  }


  .topnews-title {
    font-size: 2rem;
  }

  .topnews-title__subtitle {
    font-size: 1.2rem;
  }

  .topnews-scroll {
    height: 6.5rem;
    margin: 1.2rem 0;
  }

  .top-banner {
    height: 8rem;
  }

  .site-logo img {
    height: 4rem;
  }

  .site-name {
    font-size: 1.2rem;
  }
}

/* 中等屏幕 (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 120rem;
    padding: 0 2rem;
  }

  .full-container {
    padding: 0 3rem;
  }

  .page-content {
    grid-template-columns: 3fr 27.4rem;
    gap: 2rem;
  }

  .search-box input {
    width: 18rem;
  }

  .nav-links a {
    padding: 0 1.6rem;
  }


  .content-module {
    margin-bottom: 2rem;
  }

  .site-logo img {
    height: 4.2rem;
  }
}

/* 主设计稿尺寸 (1025px - 1439px) */
@media (min-width: 1025px) and (max-width: 1439px) {
  .container {
    max-width: 130rem;
    padding: 0 2rem;
  }

  .full-container {
    padding: 0 4rem;
  }

  .page-content {
    grid-template-columns: 4fr 27.4rem;
    gap: 2.4rem;
  }

  .search-box input {
    width: 20rem;
  }

  .nav-links a {
    padding: 0 1.8rem;
  }

  .site-logo img {
    height: 4.4rem;
  }
}

/* 大屏适配 (1441px - 1919px) */
@media (min-width: 1441px) and (max-width: 191.9px) {
  .container {
    max-width: 130rem;
  }

  .full-container {
    padding: 0 5.2rem;
  }

  body {
    font-size: 1.5rem;
  }

  .site-logo img {
    height: 4.8rem;
  }

  .site-name {
    font-size: 1.3rem;
  }

  .nav-links a {
    padding: 0 2rem;
  }


  .top-news-focus {
    padding: 1.8rem 0;
  }

}

/* 超宽屏适配 (1920px及以上) */
@media (min-width: 1920px) {
  .container {
    max-width: 140rem;
  }

  .full-container {
    padding: 0 6rem;
  }

  body {
    font-size: 1.6rem;
  }

  .site-logo img {
    height: 5rem;
  }

  .site-name {
    font-size: 1.4rem;
  }

  .nav-links a {
    padding: 0 2.2rem;
  }


  .top-news-focus {
    padding: 2rem 0;
  }

  .page-content {
    gap: 2.8rem;
  }

  .content-module {
    margin-bottom: 2.8rem;
    min-height: 25rem;
  }


  .matrix img {
    width: 3.2rem;
    height: 3.2rem;
  }
}

 .text-content video {
   display: block;
   max-width: 40%;
   height: auto;
   margin: 4px 0;
   border-radius: 4px;
 }

 .homepage-first  {
  margin-top: 3.2rem;
 }