/* 移动端导航栏 */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
}

.mobile-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  height: 60px;
}

.mobile-logo {
  display: flex;
  align-items: center;
}

.mobile-logo img {
  height: 40px;
  width: auto;
}

.mobile-title {
  display: flex;
  align-items: center;
}

.mobile-title img {
  height: 30px;
  width: auto;
}

/* 移动端导航菜单 */
.mobileNav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  max-width: 85%;
  height: 100vh;
  background: #fff;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobileNav.showNav {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #e8e8e8;
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
}

.mobile-nav-logo img {
  height: 40px;
  width: auto;
}

.close-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.close-btn span {
  width: 24px;
  height: 2px;
  background: #fff;
  position: relative;
}

.close-btn span::before,
.close-btn span::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #fff;
  left: 0;
}

.close-btn span::before {
  top: -8px;
  transform: rotate(45deg);
}

.close-btn span::after {
  top: 8px;
  transform: rotate(-45deg);
}

.mobile-nav-list {
  padding: 20px 0;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  color: #333;
  font-size: 16px;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.mobile-nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #1a73e8;
  transition: width 0.3s ease;
}

.mobile-nav-item:hover::before,
.mobile-nav-item.active::before {
  width: 100%;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  background: rgba(26, 115, 232, 0.05);
  color: #1a73e8;
  transform: translateX(5px);
}

.nav-icon {
  font-size: 20px;
  margin-right: 12px;
  width: 24px;
  text-align: center;
}

.mobile-nav-footer {
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid #e8e8e8;
  background: #fafafa;
}

.mobile-nav-footer img {
  height: 40px;
  width: auto;
  opacity: 0.6;
}

/* 遮罩层 */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.showOverlay {
  opacity: 1;
  visibility: visible;
}

/* 移动端导航显示 */
@media (max-width: 992px) {
  .mobile-header {
    display: block;
  }

  .top .right {
    display: none;
  }

  .top .handle {
    display: none;
  }

  .sub-nav {
    display: none;
  }
}

/* 首页移动端样式 */
@media (max-width: 768px) {
  /* 导航栏 */
  .top{
    display: none;
  }
  .banner{
    height:200px;
  }
    .banner img{
      object-fit: cover;
    }
    .drop-nav{
      height:50px;
    }
  .gxHead {
    padding: 10px 0;
  }
  .news .news-main{
    display: flex;
    flex-wrap: wrap;
    height:auto;
  }
  .news .news-main .cover{
    width:100%;
    height:200px;

  }
  .news-list .item{
    width:100%;
    height:auto;
  }
  .news-list .item .cover{
    height: 200px;
  }
  .news .news-main .cover img{
    object-fit: cover;
  }
.drop-nav .wrapper .left{
  width:40%;
}
.drop-nav .wrapper .left .wrap{
  font-size: 16px;
}
.drop-nav .wrapper .left .wrap img{
  width:20px;
  height:20px;
}
.drop-nav .wrapper .left .wrap .line{
  height:20px;
  margin:0px 10px;
}
.drop-nav .wrapper ul li{
  display:flex;
  align-items: center;
}
  .gxHead .logo img {
    height: 35px;
  }
  .about .about-header{
    flex-wrap:wrap;
  }
  .about .about-header .about-count .item .num{
    font-size:32px;
  }
  .about .about-header .about-count{
    margin-top:20px;
  }
  .about .dsj{
    flex-wrap:wrap;
  }
  .about .dsj .dsj-title h2{
   writing-mode: horizontal-tb;

  }
  .about .dsj .dsj-title{
    flex-wrap:wrap;
  }

  .about .dsj .dsj-wrap{
    flex-wrap:wrap;
    margin-top:10px;
  }
  .about .dsj .dsj-wrap .line{
    width:100%;
    height:1px;
    background:#e8e8e8;
    margin:20px 0px;
  }
  .about .dsj .dsj-wrap .year{
    margin-top:20px;
  }
  .menu_btn {
    width: 28px;
    height: 22px;
  }

  .menu_btn span {
    height: 2px;
  }

  /* 首页主容器 */
  .index-container {
    padding-top: 60px;
  }

  /* 新闻中心区域 */
  .news-section {
    padding: 20px 0;
  }

  .news-section .wrapper {
    padding: 0 15px;
  }

  .news-content {
    flex-direction: column;
    gap: 20px;
    padding:0px 20px
  }

  /* 新闻左侧 - 大新闻轮播 */
  .news-left {
    width: 100%;
    height: auto;
  }

  .big-news {
    width: 100%;
    height: 250px;
  }

  .news-title {
    font-size: 20px;
    padding: 15px;
  }

  /* 新闻右侧 */
  .news-right {
    width: 100%;
    height: auto;
  }

  .news-right .news-header {
    /* flex-direction: column; */
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 15px;
  }

  .news-right .news-header .title {
    font-size: 20px;
    line-height: 32px;
  }

  .news-right .news-header .more {
    font-size: 14px;
  }

  /* 新闻列表 */
  .news-list {
    display: flex;
    /* flex-direction: column; */
    gap: 10px;
  }
.news-list .item .info .more{
  width:100px;
  height:30px;
  line-height:30px;
  border-radius:15px;
}
.info-wrap .wrapper .item .date .day{
  font-size:22px;
}
.info-wrap .wrapper .item{
  height:80px;
}
.info-wrap .wrapper .item .date{
  flex-shrink:0;
}
.info-wrap .wrapper .item .info h3{
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size:18px;
}
.info-wrap .wrapper .item .info p{
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size:14px;
}
.report .report-list{
  flex-wrap:wrap;
}
.report .report-list .item{
  width: 100%;
  height:auto;
}
  .news-item {
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .news-item-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
  }

  .news-item-title {
    font-size: 15px;
    line-height: 24px;
    margin: 0;
  }

  .news-item-date {
    font-size: 13px;
    margin: 0;
  }

  /* 油价中心 */
  .news-center {
    width: 100%;
    height: auto;
    padding: 20px 15px;
    margin-top: 0;
  }

  .news-top {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
  }

  .news-top .box {
    width: 100%;
    height: 45px;
    font-size: 18px;
  }

  .news-center .location {
    width: 100%;
    justify-content: center;
    font-size: 14px;
  }

  .news-center .location a {
    font-size: 13px;
  }

  .wd-search {
    height: 50px;
    margin-top: 15px;
    font-size: 14px;
  }

  .news-center table {
    font-size: 13px;
  }

  .news-center table thead th,
  .news-center table tbody td {
    padding: 10px 8px;
  }

  /* slogan图片 */
  .slogn {
    margin-top: 20px;
    padding: 0 15px;
  }

  .slogn img {
    width: 100%;
    height: auto;
  }

  /* 党建区域 */
  .partner-section {
    padding: 20px 0;
  }

  .partner-section .wrapper {
    padding: 0 15px;
  }

  .partner-section .wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .partner-section .wrapper .news-container {
    width: 100%;
    height: auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
  }

  .party-top {
    /* flex-direction: column; */
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
  }

  .party-top .tit {
    font-size: 20px;
    line-height: 32px;
  }

  .party-top .more {
    font-size: 14px;
    white-space: nowrap;
  }

  .party-top .tabs {
    margin-left: 0;
    width: 100%;
    display: flex;
    gap: 10px;
  }

  .party-top .tabs .tab {
    padding: 8px 16px;
    width: auto;
    height: auto;
    line-height: 1.5;
    font-size: 14px;
  }

  /* 党建列表 */
  .party-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .party-list .first-news {
    flex-direction: column;
    margin: 0 0 15px 0;
  }

  .party-list .first-news .cover {
    width: 100%;
    height: 180px;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .party-list .first-news .info {
    padding: 0;
  }

  .party-list .first-news .info .party-title {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 8px;
  }

  .party-list .first-news .info .party-desc {
    font-size: 13px;
    line-height: 22px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .party-list .first-news .info .party-time {
    font-size: 13px;
  }

  .party-list .party-it {
    padding: 0px;
    border-bottom: 1px solid #f0f0f0;
  }

  .party-list .party-it .party-title {
    font-size: 15px;
    line-height: 24px;
    margin-bottom: 5px;
  }

  .party-list .party-it .party-time {
    font-size: 13px;
  }
  .news-center .location img{
    width:15px;
    height:15px;
  }
  .wd-search span{
    width:150px;
    height:30px;
    border-radius:15px;
  }
  .wd-search img{
    width:15px;
    height:15px;
    flex-shrink:0;
  }
  .wd-search{
    background-size:100% 100%
  }
  .party-list .first-news .info .party-title{
    font-size:18px;
  }
}

@media (max-width: 576px) {
  /* 导航栏 */
  .gxHead {
    padding: 8px 0;
  }

  .gxHead .logo img {
    height: 30px;
  }

  .menu_btn {
    width: 24px;
    height: 18px;
  }

  /* 首页主容器 */
  .index-container {
    padding-top: 80px;
  }

  /* 新闻中心区域 */
  .news-section {
    padding: 15px 0;
  }

  .news-section .wrapper {
    padding: 0px;
  }

  .news-content {
    gap: 15px;
  }

  /* 新闻左侧 */
  .big-news {
    height: 200px;
  }

  .news-title {
    font-size: 18px;
    padding: 12px;
  }

  /* 新闻右侧 */
  .news-right .news-header .title {
    font-size: 18px;
    line-height: 28px;
  }

  /* 新闻列表 */
  .news-item {
    padding: 10px;
  }

  .news-item-title {
    font-size: 18px;
    line-height: 22px;
  }

  .news-item-date {
    font-size: 14px;
  }

  /* 油价中心 */
  .news-center {
    padding: 15px 12px;
  }

  .news-top .box {
    height: 40px;
    font-size: 16px;
  }

  .news-center .location {
    font-size: 13px;
  }

  .news-center .location a {
    font-size: 12px;
  }

  .wd-search {
    height: 45px;
    font-size: 13px;
  }

  .news-center table {
    font-size: 12px;
  }

  .news-center table thead th,
  .news-center table tbody td {
    padding: 8px 6px;
  }

  /* slogan图片 */
  .slogn {
    padding: 0;
  }

  /* 党建区域 */
  .partner-section {
    padding: 15px 0;
  }

  .partner-section .wrapper {
    padding: 0 12px;
  }

  .partner-section .wrapper .news-container {
    padding: 15px;
  }

  .party-top .tit {
    font-size: 18px;
    line-height: 28px;
  }

  .party-top .tabs .tab {
    font-size: 13px;
    padding: 6px 12px;
  }

  /* 党建列表 */
  .party-list {
    gap: 10px;
  }

  .party-list .first-news .cover {
    height: 150px;
  }

  .party-list .first-news .info .party-title {
    font-size: 18px;
    line-height: 24px;
  }

  .party-list .first-news .info .party-desc {
    font-size: 14px;
    line-height: 20px;
  }

  .party-list .party-it {
    padding: 0px;
  }

  .party-list .party-it .party-title {
    font-size: 18px;
    line-height: 22px;
    width:70%;
    padding-left:15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .party-list .party-it .party-title::after{
    width:6px;
    height:6px;
    bottom:35%;
    border-radius:50%;
  }
  .party-list .party-it .party-time {
    font-size: 14px;
  }
  .news-center table thead th, .news-center table tbody td{
    font-size:16px;
  }
  .notice-container{
    flex-wrap:wrap
  }
  .notice-container .notice-left{
    width:100%;
  }
  .notice-container .notice-right{
    width:100%;
  }
  .footer-section .footer-item{
    height: auto;
  }
  .footer-section .wrapper{
    height:auto;
  }
  .news-section, .partner-section, .footer-section{
    padding:0 !important;
  }
  .footer-section .footer-item h3{
    white-space: nowrap;
  }
  .footer-section .footer-item ul{
    flex-wrap:wrap;
  }
  .notice-container .notice-left .search-wrap{
    height:40px;
    margin-top:20px;
  }
  .notice-container .notice-left .search-wrap button{
    height:40px;
    width:100px;
  }
  .notice-container .notice-left .notice-title{
    width:70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left:15px;
  }
}

/* 平板适配 */
@media (min-width: 768px) and (max-width: 1200px) {
  .news-content {
    gap: 20px;
    padding:0px 20px;
  }

  .news-left {
    width: 5.5rem;
  }

  .news-right {
    width: 5rem;
  }

  .news-center {
    width: 3.2rem;
  }

  .partner-section .wrapper .news-container {
    width: 7rem;
  }
}

/* 动画效果 */
/* 新闻卡片悬停动画 */
.news-item {
  animation: fadeInUp 0.5s ease;
}

.news-item:hover {
  animation: pulse 0.3s ease;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

/* 按钮悬停动画 */
.more-link,
.wd-search {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.more-link:hover,
.wd-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

/* 标签页切换动画 */
.party-top .tabs .tab {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.party-top .tabs .tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.party-top .tabs .tab:hover::before {
  left: 100%;
}

/* 新闻列表项进入动画 */
.party-list .party-it {
  animation: slideInLeft 0.5s ease;
  animation-fill-mode: both;
}

.party-list .party-it:nth-child(1) {
  animation-delay: 0.1s;
}

.party-list .party-it:nth-child(2) {
  animation-delay: 0.2s;
}

.party-list .party-it:nth-child(3) {
  animation-delay: 0.3s;
}

.party-list .party-it:nth-child(4) {
  animation-delay: 0.4s;
}

.party-list .party-it:nth-child(5) {
  animation-delay: 0.5s;
}

.party-list .party-it:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 页面加载动画 */
.news-section,
.partner-section {
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 表格行悬停效果 */
.news-center table tbody tr {
  transition: all 0.3s ease;
}

.news-center table tbody tr:hover {
  background-color: #f8f8f8;
  transform: scale(1.01);
}

/* 价格数字动画 */
.news-center table tbody tr span {
  transition: all 0.3s ease;
}

.news-center table tbody tr:hover span {
  transform: scale(1.1);
  color: #ff0000;
}

/* 党建新闻卡片动画 */
.party-list .first-news {
  animation: zoomIn 0.6s ease;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 油价区域动画 */
.wd-search {
  position: relative;
  overflow: hidden;
}

.wd-search::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(26, 115, 232, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.wd-search:hover::after {
  width: 200px;
  height: 200px;
}

/* 页脚链接动画 */
.footer-links a {
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #1a73e8;
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

/* 链接图标动画 */
.more-link img,
.news-link img {
  transition: transform 0.3s ease;
}

.more-link:hover img,
.news-link:hover img {
  transform: translateX(5px);
}

/* 卡片阴影动画 */
.big-news,
.news-item,
.party-list .first-news {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.big-news:hover,
.news-item:hover,
.party-list .first-news:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 油价表格动画 */
.news-center table {
  animation: slideInUp 0.8s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式字体大小 */
@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 375px) {
  html {
    font-size: 13px;
  }
}

/* 安全区域适配 */
@supports (padding: max(0px)) {
 
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  .news-item-title,
  .party-title {
    color: #000;
  }

  .news-item-date,
  .party-time {
    color: #333;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .news-section,
  .partner-section {
    background-color: #1a1a1a;
  }

  .news-center {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
  }

  .news-center table tbody tr {
    background-color: #2a2a2a;
    color: #e0e0e0;
  }

  .news-item-title,
  .party-title {
    color: #e0e0e0;
  }
}