/* =============================================
   热门资讯 - 独立样式
   ============================================= */

/* ===== Hero ===== */
.n-hero {
  text-align: center;
  padding: 56px 16px 40px;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #fff;
}

.n-hero-title {
  font-size: 34px;
  margin-bottom: 10px;
  font-weight: 700;
}

.n-hero-desc {
  font-size: 15px;
  opacity: .75;
}

/* ===== Section ===== */
.n-section {
  padding: 40px 0;
  background: #f4f5f7;
  min-height: 400px;
}

.n-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Grid ===== */
.n-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

/* ===== Card ===== */
.n-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}

.n-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

.n-card-sm .n-card-title {
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Card Image ===== */
.n-card-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #e8edf3;
}

.n-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.n-card:hover .n-card-img {
  transform: scale(1.05);
}

/* ===== Card Body ===== */
.n-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.n-card-title {
  font-size: 16px;
  line-height: 1.5;
  color: #222;
  font-weight: 600;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.n-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 12px;
  color: #999;
}

.n-card-logo {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: contain;
}

.n-card-actions {
  display: flex;
  gap: 8px;
}

.n-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.n-card-detail {
  background: #e8f0fe;
  color: #1a73e8;
}

.n-card-detail:hover {
  background: #d2e3fc;
}

.n-card-link {
  background: #e8f5e9;
  color: #2e7d32;
}

.n-card-link:hover {
  background: #c8e6c9;
}

/* ===== Archive Bar (on news.php) ===== */
.n-archive-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.n-archive-link {
  display: block;
  padding: 16px 24px;
  background: #fff;
  border-radius: 12px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  flex: 1;
  text-align: center;
  max-width: 400px;
}

.n-archive-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  color: #1a73e8;
}

.n-archive-link strong {
  color: #1a73e8;
}

.n-archive-refresh {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  background: #e8f0fe;
  color: #1a73e8;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
}

.n-archive-refresh:hover {
  background: #d2e3fc;
}

/* ===== Archive Page (timeline) ===== */
.na-hero {
  background: linear-gradient(135deg, #2c3e50, #4ca1af);
  color: #fff;
  text-align: center;
  padding: 48px 20px 36px;
}

.na-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.na-hero-title {
  font-size: 30px;
  margin-bottom: 8px;
}

.na-hero-desc {
  font-size: 15px;
  opacity: .85;
  margin-bottom: 20px;
}

.na-hero-desc strong {
  color: #ffd700;
}

.na-hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.na-hero-btn {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 20px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s;
}

.na-hero-btn:hover {
  background: rgba(255,255,255,.25);
}

.na-section {
  padding: 32px 0;
  background: #f4f5f7;
}

.na-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Timeline */
.na-timeline {
  position: relative;
}

.na-timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 20px;
  width: 2px;
  background: #e0e0e0;
}

.na-date-sep {
  position: relative;
  z-index: 2;
  margin: 28px 0 16px;
}

.na-date-badge {
  display: inline-block;
  padding: 4px 16px;
  background: #4ca1af;
  color: #fff;
  border-radius: 16px;
  font-size: 13px;
  margin-left: 36px;
}

.na-item {
  display: flex;
  gap: 16px;
  padding: 16px 0 16px 44px;
  position: relative;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: box-shadow .2s;
}

.na-item:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

.na-item::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4ca1af;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #4ca1af;
}

.na-item-img {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #e8edf3;
}

.na-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.na-item-body {
  flex: 1;
  min-width: 0;
}

.na-item-title {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 6px;
}

.na-item-title a {
  color: #333;
  text-decoration: none;
  transition: color .2s;
}

.na-item-title a:hover {
  color: #1a73e8;
}

.na-item-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.na-item-source {
  color: #4ca1af;
  font-weight: 600;
}

.na-item-actions {
  display: flex;
  gap: 8px;
}

.na-item-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  text-decoration: none;
  transition: background .2s;
}

.na-item-detail {
  background: #e8f0fe;
  color: #1a73e8;
}

.na-item-detail:hover {
  background: #d2e3fc;
}

.na-item-link {
  background: #e8f5e9;
  color: #2e7d32;
}

.na-item-link:hover {
  background: #c8e6c9;
}

.na-footer {
  text-align: center;
  padding: 24px 0;
}

.na-total {
  font-size: 13px;
  color: #bbb;
}

.n-card-no-thumb .n-card-body {
  border-top: 3px solid #4ca1af;
}

/* ===== Empty ===== */
.n-empty {
  text-align: center;
  padding: 80px 20px;
  color: #999;
  font-size: 16px;
}

/* ===== Detail Page ===== */
.nd-section {
  padding: 32px 0;
}

.nd-container {
  max-width: 800px;
}

.nd-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.nd-img-wrap {
  margin: -32px -32px 24px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  max-height: 400px;
}

.nd-img {
  width: 100%;
  display: block;
}

.nd-title {
  font-size: 24px;
  line-height: 1.5;
  color: #222;
  margin-bottom: 16px;
}

.nd-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #999;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.nd-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
}

.nd-body {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 24px;
}

.nd-summary {
  font-size: 15px;
  color: #666;
  margin-bottom: 12px;
}

.nd-text {
  font-size: 18px;
  color: #333;
  padding: 16px 20px;
  background: #f8f9ff;
  border-radius: 10px;
  margin-bottom: 12px;
  border-left: 4px solid #667eea;
}

.nd-note {
  font-size: 14px;
  color: #888;
}

.nd-note a {
  color: #1a73e8;
  text-decoration: underline;
}

.nd-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}

.nd-btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}

.nd-btn-primary:hover {
  transform: translateY(-2px);
  opacity: .9;
}

.nd-btn-secondary {
  background: #f0f0f0;
  color: #555;
}

.nd-btn-secondary:hover {
  background: #e0e0e0;
}

/* ===== Archive Badge ===== */
.nd-card-archive {
  position: relative;
}

.nd-archive-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 14px;
  background: #ff6b6b;
  color: #fff;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.n-card-archive-item {
  opacity: .75;
}

/* ===== Related ===== */
.nd-related {
  margin-top: 40px;
}

.nd-related-title {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
}

/* ===== Date picker ===== */
.n-date-picker {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.n-date-picker input[type="date"] {
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.n-date-picker input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}
.n-date-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.n-date-btn:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .n-hero-title { font-size: 26px; }
  .n-grid { grid-template-columns: 1fr; }
  .n-card-img-wrap { height: 160px; }
  .nd-card { padding: 20px; }
  .nd-img-wrap { margin: -20px -20px 16px; }
  .nd-title { font-size: 20px; }
}

@media (max-width: 480px) {
  .n-hero { padding: 40px 16px 32px; }
  .n-section { padding: 24px 0; }
  .n-card-actions { flex-direction: column; }
  .nd-actions { flex-direction: column; }
}
