/* ============================================
   news.css — V2 最新消息區塊

   改進：
   - 更乾淨的排版和間距
   - 精緻的 hover 交互效果
   - 更好的視覺層次
   ============================================ */

.news-section {
  background: var(--bg-surface);
  position: relative;
}

.news-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}

/* --- 左側標題 --- */
.news-header {
  position: sticky;
  top: 120px;
}

.news-update-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 24px;
  letter-spacing: 1px;
  padding: 8px 12px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: inline-block;
}

/* --- 新聞列表 --- */
.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.news-item:first-child { padding-top: 0; }

.news-item:hover {
  background: rgba(202, 138, 4, 0.03);
}

.news-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--duration-normal) var(--ease-out);
}

.news-item:hover::after { width: 100%; }

.news-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 96px;
  padding-top: 2px;
}

.news-body { flex: 1; }

.news-title {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  transition: color var(--duration-fast) var(--ease-out);
}

.news-item:hover .news-title { color: var(--gold); }

.news-arrow {
  font-size: 14px;
  color: var(--text-muted);
  transition: all var(--duration-fast) var(--ease-out);
  padding-top: 2px;
}

.news-item:hover .news-arrow {
  color: var(--gold);
  transform: translateX(4px);
}

.news-empty {
  padding: 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-base);
}

.news-loading { padding: 20px 0; }
