/* 学习资讯页面样式 */

.hero-small {
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  color: white;
  padding: 48px 0;
  text-align: center;
}

.hero-small h1 {
  color: white;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.hero-small p {
  color: rgba(255,255,255,0.85);
  font-size: 1.0625rem;
  margin: 0;
}

/* 布局 */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* 文章列表 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.article-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.article-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.875rem;
}

.article-category {
  background: #3182ce;
  color: white;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.75rem;
}

.article-date {
  color: #718096;
  line-height: 22px;
}

.article-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-title a {
  color: #1a365d;
  text-decoration: none;
}

.article-title a:hover {
  color: #3182ce;
}

.article-desc {
  color: #4a5568;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.article-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-tag {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #718096;
}

.article-read-time {
  color: #a0aec0;
  font-size: 0.8125rem;
  margin-left: auto;
}

.article-link {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #3182ce !important;
}

/* 侧边栏 */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 80px;
}

.sidebar-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 24px;
}

.sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.sidebar-card ul {
  list-style: none;
}

.sidebar-card li {
  margin-bottom: 10px;
}

.sidebar-card li a {
  color: #4a5568;
  font-size: 0.9375rem;
}

.sidebar-card li a:hover {
  color: #3182ce;
}

.sidebar-card p {
  font-size: 0.9rem;
  color: #4a5568;
  margin-bottom: 12px;
}

.sidebar-phone {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a365d !important;
  text-align: center;
  padding: 10px;
  background: #f7fafc;
  border-radius: 4px;
  margin-bottom: 8px;
}

.sidebar-address {
  font-size: 0.875rem !important;
  color: #718096 !important;
  text-align: center;
}

/* 响应式 */
@media (max-width: 900px) {
  .news-layout {
    grid-template-columns: 1fr;
  }
  .news-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}
