/* ========== 资讯页面专用样式 ========== */

.news-page {
  padding: 24px 0 40px;
}

/* 页面标题 */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-header h2 {
  font-size: 24px;
  color: var(--primary-dark);
  font-weight: 700;
}

/* 分类标签 */
.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.category-tabs button {
  padding: 10px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text2);
  cursor: pointer;
  transition: all .2s;
}
.category-tabs button:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.category-tabs button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 布局 */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

/* 置顶要闻 */
.featured-news {
  display: flex;
  margin-bottom: 24px;
  overflow: hidden;
}
.featured-img {
  width: 280px;
  background: linear-gradient(135deg, #1a6b3c 0%, #0d3d22 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.featured-content {
  padding: 24px;
  position: relative;
  flex: 1;
}
.featured-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--red);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
}
.featured-content h3 {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}
.featured-content p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 16px;
}
.news-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #888;
}
.news-meta .category {
  background: var(--bg2);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 3px;
}

/* 资讯列表 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.news-item {
  display: flex;
  padding: 20px;
}
.news-img {
  width: 140px;
  height: 100px;
  background: var(--bg2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #ccc;
  flex-shrink: 0;
  margin-right: 20px;
}
.news-content {
  flex: 1;
}
.category-tag {
  display: inline-block;
  background: var(--bg2);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 11px;
  margin-bottom: 8px;
}
.news-content h4 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.news-content h4:hover {
  color: var(--primary);
}
.news-content p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* 侧边栏 */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-card {
  padding: 20px;
}
.sidebar-card h4 {
  font-size: 15px;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* 热门列表 */
.hot-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hot-list li:last-child {
  border-bottom: none;
}
.hot-list .num {
  width: 20px;
  height: 20px;
  background: #e0e0e0;
  border-radius: 4px;
  text-align: center;
  font-size: 12px;
  line-height: 20px;
  color: #666;
  flex-shrink: 0;
}
.hot-list li:nth-child(1) .num {
  background: #ffebee;
  color: var(--red);
}
.hot-list li:nth-child(2) .num {
  background: #fff3e0;
  color: #e65100;
}
.hot-list li:nth-child(3) .num {
  background: #e3f2fd;
  color: #1565c0;
}
.hot-list a {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.hot-list a:hover {
  color: var(--primary);
}

/* 市场概况 */
.market-overview .overview-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.market-overview .overview-item:last-child {
  border-bottom: none;
}
.overview-item .label {
  font-size: 13px;
  color: var(--text2);
}
.overview-item .value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

/* 订阅 */
.subscribe-card p {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 12px;
}
.subscribe-form {
  display: flex;
  gap: 8px;
}
.subscribe-form input {
  flex: 1;
}
.subscribe-form .btn {
  white-space: nowrap;
}

/* 联系卡片 */
.contact-card p {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 4px;
}
.contact-card .phone {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 8px 0;
}
.contact-card .email {
  font-size: 13px;
  color: var(--primary);
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  z-index: 1000;
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* 响应式 */
@media(max-width: 1024px) {
  .news-layout {
    grid-template-columns: 1fr;
  }
  .news-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-card {
    flex: 1;
    min-width: 280px;
  }
}
@media(max-width: 768px) {
  .featured-news {
    flex-direction: column;
  }
  .featured-img {
    width: 100%;
    height: 180px;
  }
  .news-item {
    flex-direction: column;
  }
  .news-img {
    width: 100%;
    height: 120px;
    margin-right: 0;
    margin-bottom: 12px;
  }
  .category-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }
  .category-tabs button {
    white-space: nowrap;
  }
}
@media(max-width: 600px) {
  .news-sidebar {
    flex-direction: column;
  }
  .sidebar-card {
    min-width: 100%;
  }
}
