/* 提取自 NewsView.vue */
.news-page {
  min-height: 100vh;
  padding: 150px 0 110px;
  background: var(--bg);
}

.news-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.news-hero {
  margin-bottom: 46px;
}

.news-title {
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: -0.02em;
  margin-top: 14px;
  line-height: 1.05;
}

.news-sub {
  margin-top: 16px;
  max-width: 680px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* 状态条 */
.news-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}

.nb-date {
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 600;
}

.nb-count {
  font-size: 12px;
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-weight: 700;
}

.nb-auto {
  font-size: 11px;
  color: var(--ink-faint);
  flex: 1;
}

.nb-update {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s;
  flex-shrink: 0;
}

.nb-update:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-ink);
}

.nb-update:disabled {
  opacity: 0.55;
  cursor: wait;
}

.nb-status {
  font-size: 12.5px;
  font-weight: 700;
}

.nb-status.ok { color: #2f8f5b; }
.nb-status.bad { color: #d32f2f; }

.nb-msg {
  margin-top: 10px;
  font-size: 12px;
  color: var(--accent);
}

.nb-warn {
  margin-top: 10px;
  font-size: 12px;
  color: #b8860b;
}

.spin {
  display: inline-block;
  animation: nspin 1s linear infinite;
}

.spin.big {
  font-size: 26px;
  color: var(--accent);
}

@keyframes nspin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 状态占位 */
.news-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 70px 0;
  color: var(--ink-faint);
}

.news-empty-hint {
  font-size: 13px;
  color: var(--ink-faint);
}

.retry-btn {
  padding: 9px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.22s;
}

.retry-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 卡片网格 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: var(--bg);
  cursor: pointer;
  transition: all 0.25s;
  animation: ncard 0.5s ease backwards;
  position: relative;
  overflow: hidden;
}

@keyframes ncard {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 14px 36px rgba(6, 20, 27, 0.12);
}

.news-card:hover::before {
  opacity: 1;
}

.nc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nc-source {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-weight: 700;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nc-time {
  font-size: 11px;
  color: var(--ink-faint);
  flex-shrink: 0;
}

.nc-title {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nc-summary {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nc-more {
  margin-top: auto;
  font-size: 11px;
  color: var(--ink-faint);
  transition: color 0.22s;
}

.news-card:hover .nc-more {
  color: var(--accent);
}

/* 详情弹层 */
.nd-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(4, 12, 18, 0.66);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: ndfade 0.25s ease;
}

@keyframes ndfade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nd-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: 82vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 34px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: ndpop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes ndpop {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.nd-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.22s;
}

.nd-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nd-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.nd-source {
  font-size: 11px;
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.nd-time {
  font-size: 12px;
  color: var(--ink-faint);
}

.nd-title {
  font-size: clamp(19px, 2.6vw, 25px);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 16px;
}

.nd-summary {
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink-soft);
  white-space: pre-line;
  margin-bottom: 24px;
}

.nd-content {
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink);
  white-space: pre-line;
  margin-bottom: 24px;
}

.nd-loading {
  font-size: 12.5px;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nd-none {
  color: var(--ink-faint);
}

.nd-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.nd-label {
  font-size: 12px;
  color: var(--ink-faint);
}

.nd-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.22s;
}

.nd-link:hover {
  filter: brightness(1.12);
}

@media (max-width: 700px) {
  .news-title {
    font-size: 40px;
  }

  .nd-modal {
    padding: 26px 20px;
  }
}