/* ========================================
   News (Platform Info) Page Styles
   ======================================== */

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
}

/* Hero Section */
.news-hero {
  margin-top: 64px;
  background: #f9f9fb;
  height: 355px;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 87px 0;
}

.news-hero-decoration {
  position: absolute;
  pointer-events: none;
  top: 0;
}

.news-hero-decoration.left {
  right: calc(50% + 230px);
  width: 461px;
  height: 419px;
}

.news-hero-decoration.right {
  left: calc(50% + 230px);
  width: 571px;
  height: 419px;
}

.news-hero-decoration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  width: 940px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.news-hero-badge {
  display: inline-block;
  background: rgba(70, 129, 255, 0.1);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  color: #2b55ea;
  margin-bottom: 10px;
}

.news-hero-title {
  font-size: 50px;
  font-weight: 600;
  color: #000;
  line-height: 60px;
  margin-bottom: 16px;
}

.news-hero-desc {
  font-size: 20px;
  color: #4a5565;
  line-height: 28px;
}

/* Main Content */
.news-content {
  width: 1360px;
  margin: 0 auto;
  padding: 0 0 80px;
  margin-top: -60px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

@media (max-width: 1400px) {
  .news-content {
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Knowledge Section */
.knowledge-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.knowledge-title {
  font-size: 20px;
  font-weight: 500;
  color: #101828;
  line-height: 30px;
}

.knowledge-list {
  width: 800px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.knowledge-item {
  background: white;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: box-shadow 0.2s;
  text-decoration: none;
}

.knowledge-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.knowledge-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.knowledge-item-title {
  font-size: 20px;
  font-weight: 500;
  color: #000;
  line-height: 31.2px;
}

.knowledge-item-date {
  font-size: 14px;
  color: #8b8d98;
  line-height: 20px;
}

.knowledge-item-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.knowledge-item-arrow img {
  width: 100%;
  height: 100%;
}

/* Pagination */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 24px 0;
}

.news-page-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #364153;
  cursor: pointer;
  transition: all 0.2s;
}
.news-pagination a {
  text-decoration: none;
}

.news-page-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.news-page-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.news-page-btn img {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .knowledge-list {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* ===== Mobile Hero ===== */
  .news-hero {
    margin-top: 96px;
    height: 115px;
    padding: 8px 16px 16px;
    overflow: hidden;
    position: relative;
  }
  
  .news-hero-decoration {
    display: block;
    position: absolute;
    top: 0;
    height: 115px;
    opacity: 0.8;
  }
  
  .news-hero-decoration.left {
    right: auto;
    left: -60px;
    width: 200px;
    height: 200px;
    top: -20px;
  }
  
  .news-hero-decoration.right {
    left: auto;
    right: -80px;
    width: 220px;
    height: 200px;
    top: -20px;
  }
  
  .news-hero-decoration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .news-hero-content {
    width: 100%;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .news-hero-badge {
    font-size: 12px;
    padding: 1px 8px;
    margin-bottom: 6px;
  }
  
  .news-hero-title {
    font-size: 30px;
    line-height: 36px;
    margin-bottom: 6px;
  }
  
  .news-hero-desc {
    font-size: 14px;
    line-height: 28px;
    padding: 0;
  }
  
  /* ===== Mobile Main Content ===== */
  .news-content {
    padding: 16px 16px 0;
    margin-top: 0;
    gap: 16px;
  }
  
  /* ===== Mobile Knowledge Section ===== */
  .knowledge-section {
    gap: 16px;
  }
  
  .knowledge-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
  }
  
  .knowledge-list {
    width: 100%;
    background: white;
    border-radius: 16px;
    padding: 16px;
    gap: 8px;
  }
  
  .knowledge-item {
    padding: 0;
    padding-bottom: 8px;
    border-radius: 0;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .knowledge-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .knowledge-item:hover {
    box-shadow: none;
  }
  
  .knowledge-item-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }
  
  .knowledge-item-date {
    font-size: 14px;
    line-height: 20px;
  }
  
  .knowledge-item-arrow {
    width: 20px;
    height: 20px;
  }
  
  /* ===== Mobile Pagination ===== */
  .news-pagination {
    padding: 16px 0;
    gap: 6px;
  }
  
  .news-page-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
    border-radius: 6px;
  }
  
  .news-page-btn img {
    width: 16px;
    height: 16px;
  }
}
