body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}
body::-webkit-scrollbar {
    display: none;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部样式 */
.top-bar {
  background-color: #ff9900;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}

.nav-bar {
  background-color: #fff;
  color: #333;
  border-bottom: 2px solid #ff9900;
}

.menu-link a {
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
}

.menu-link a:hover {
  color: #ff9900;
}

.menu-link {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.menu-link li {
  margin: 0 20px;
  line-height: 1;
}

.menu-link a {
  font-weight: 500;
  transition: all 0.3s ease;
}


/* 主内容区域 */
.main-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  margin: 30px 0;
}

/* 增强的悬停效果 */
.news-item:hover .news-title {
  color: #ff9900;
  transition: all 0.3s ease;
}

.news-card:hover .news-card-title {
  color: #ff9900;
  transition: all 0.3s ease;
}

.popular-item:hover .popular-title {
  color: #ff9900;
  transition: all 0.3s ease;
}

/* 图片悬停效果 */
.news-image {
  transition: all 0.5s ease;
}

.news-item:hover .news-image {
  transform: scale(1.05);
}

.news-card-image {
  transition: all 0.5s ease;
}

.news-card:hover .news-card-image {
  transform: scale(1.05);
}

/* 标题动画 */
h2,
h3 {
  position: relative;
  display: inline-block;
}

h2::after,
h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ff9900;
  transition: width 0.3s ease;
}

h2:hover::after,
h3:hover::after {
  width: 100%;
}

/* 标签动画 */
.tag {
  position: relative;
  overflow: hidden;
}

.tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3);
  transition: left 0.3s ease;
}

.tag:hover::before {
  left: 100%;
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 153, 0, 0.3);
  border-radius: 50%;
  border-top-color: #ff9900;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 新闻列表 */
.news-section {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-item {
  display: flex;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

.news-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-image {
  width: 120px;
  height: 120px;
  background-color: #e4e4e4;
  border-radius: 4px;
  margin-right: 15px;
  overflow: hidden;
}

.news-content {
  flex: 1;
}

.news-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  line-height: 1.4;
  color: #333;
  margin-top: 12px;
}

.news-meta {
  font-size: 12px;
  color: #999;
}

/* 侧边栏 */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ad-section {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.ad-placeholder {
  width: 100%;
  height: 200px;
  background-color: #e4e4e4;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.popular-news {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.popular-news h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.popular-item {
  display: flex;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.popular-item:hover {
  transform: translateX(5px);
}

.popular-rank {
  font-size: 20px;
  font-weight: bold;
  color: #ff9900;
  margin-right: 10px;
  min-width: 20px;
}

.popular-content {
  flex: 1;
}

.popular-title {
  font-size: 14px;
  line-height: 1.4;
}

/* 更多新闻区域 */
.more-news {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
}

.more-news h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.news-card {
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-card-image {
  width: 100%;
  height: 150px;
  background-color: #e4e4e4;
}

.news-card-content {
  padding: 15px;
}

.news-card-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card-meta {
  font-size: 12px;
  color: #999;
}

/* 标签区域 */
.tags-section {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tags-section h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background-color: #f0f0f0;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.tag:hover {
  background-color: #ff9900;
  color: #fff;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes bounceIn {

  from,
  20%,
  40%,
  60%,
  80%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  }

  0% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }

  20% {
    transform: scale3d(1.1, 1.1, 1.1);
  }

  40% {
    transform: scale3d(0.9, 0.9, 0.9);
  }

  60% {
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1.03);
  }

  80% {
    transform: scale3d(0.97, 0.97, 0.97);
  }

  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

@keyframes flipInY {
  from {
    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    animation-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    animation-timing-function: ease-in;
  }

  60% {
    transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    opacity: 1;
  }

  80% {
    transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
  }

  to {
    transform: perspective(400px) rotate3d(0, 1, 0, 0deg);
  }
}

@keyframes rotateIn {
  from {
    transform-origin: center;
    transform: rotate3d(0, 0, 1, -200deg);
    opacity: 0;
  }

  to {
    transform-origin: center;
    transform: rotate3d(0, 0, 1, 0deg);
    opacity: 1;
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
  animation: fadeInLeft 0.6s ease forwards;
}

.fade-in-right {
  animation: fadeInRight 0.6s ease forwards;
}

.zoom-in {
  animation: zoomIn 0.6s ease forwards;
}

.pulse {
  animation: pulse 2s infinite;
}

.slide-in {
  animation: slideIn 0.6s ease forwards;
}

.bounce-in {
  animation: bounceIn 0.8s ease forwards;
}

.flip-in-y {
  animation: flipInY 0.8s ease forwards;
}

.rotate-in {
  animation: rotateIn 0.8s ease forwards;
}

.shake {
  animation: shake 0.8s ease forwards;
}

/* 滚动动画 */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 视差效果 */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

.delay-6 {
  animation-delay: 0.6s;
}

.delay-7 {
  animation-delay: 0.7s;
}

.delay-8 {
  animation-delay: 0.8s;
}

.delay-9 {
  animation-delay: 0.9s;
}

.delay-10 {
  animation-delay: 1s;
}

/* 区块标题样式 */
.section-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .menu-link {
    flex-wrap: wrap;
  }

  .menu-link li {
    margin: 0 15px;
  }
}

@media (max-width: 768px) {
  .main-content {
    grid-template-columns: 1fr;
    margin: 10px 0;
  }

  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .menu-link {
    flex-wrap: wrap;
  }

  .menu-link li {
    margin: 0 10px;
  }

  .news-item {
    flex-direction: column;
  }

  .news-image {
    width: 100%;
    height: 150px;
    margin-bottom: 10px;
  }

  .top-bar {
    padding: 10px;
  }

  .logo {
    font-size: 20px;
  }

  .search-box {
    max-width: 200px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 10px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .menu-link li {
    margin: 0 8px;
  }

  .menu-link a {
    font-size: 14px;
    padding: 0px 8px;
  }

  .news-item {
    flex-direction: column;
  }.news-title {
    margin-top: 0px;
}

  .news-image {
    width: 100%;
    height: 200px;
    margin-bottom: 10px;
  }

  .top-bar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo {
    order: 1;
  }

  .search-box {
    order: 3;
    flex: 100%;
    max-width: 100%;
    margin: 0;
  }

  .uin {
    order: 2;
  }

  .news-section,
  .more-news,
  .tags-section,
  .popular-news {
    padding: 15px;
  }

  .tags-section {

    margin-top: 10px;
  }

  h2,
  .section-title {
    font-size: 18px;
    margin-bottom: 15px;
  }

  h3 {
    font-size: 16px;
  }

  .news-title,
  .news-card-title,
  .popular-title {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 8px;
  }

  .top-bar {
    padding: 8px;
  }

  .logo {
    font-size: 18px;
  }

  .menu-link li {
    margin: 0 6px;
  }

  .menu-link a {
    font-size: 12px;
    padding: 4px 6px;
  }

  .news-image {
    height: 100px;
  }

  .news-section,
  .more-news,
  .tags-section,
  .popular-news {
    padding: 10px;
  }

  h2,
  .section-title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  h3 {
    font-size: 14px;
  }

  .news-title,
  .news-card-title,
  .popular-title {
    font-size: 12px;
  }
}