/* ========================================
   导航站 · 全局样式
   ======================================== */

:root {
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-dark: #3730a3;
  --bg-page: #f0f2f7;
  --bg-sidebar: #1e1e2e;
  --bg-sidebar-hover: #2a2a3e;
  --bg-card: #ffffff;
  --text-main: #1f2937;
  --text-sub: #6b7280;
  --text-sidebar: #c8cfe0;
  --text-sidebar-active: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-card: 0 4px 16px rgba(0,0,0,.08);
  --shadow-card-hover: 0 8px 32px rgba(79,70,229,.18);
  --radius-card: 14px;
  --radius-logo: 50%;
  --sidebar-w: 220px;
  --header-h: 64px;
  --transition: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== 顶部 Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  box-shadow: 0 2px 12px rgba(79,70,229,.35);
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon { font-size: 26px; }

.site-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
  white-space: nowrap;
}

.header-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 100px;
  overflow: hidden;
  transition: background var(--transition), border-color var(--transition);
}

.header-search:focus-within {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.6);
}

.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 16px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.header-search input::placeholder { color: rgba(255,255,255,.65); }

.header-search button {
  padding: 8px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #fff;
  transition: opacity var(--transition);
}
.header-search button:hover { opacity: .7; }

.header-meta {
  color: rgba(255,255,255,.7);
  font-size: 13px;
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
}

/* ===== 主体布局 ===== */
.site-body {
  flex: 1;
  display: flex;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 24px 0;
  gap: 0;
}

/* ===== 左侧边栏 ===== */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-radius: 0 18px 18px 0;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }

.sidebar-title {
  color: rgba(200,207,224,.5);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 18px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 分类列表 */
.cat-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }

.cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-sidebar);
  text-decoration: none;
  font-size: 14px;
  transition: background var(--transition), color var(--transition);
  position: relative;
  cursor: pointer;
}

.cat-item:hover {
  background: var(--bg-sidebar-hover);
  color: var(--text-sidebar-active);
}

.cat-item.active {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-sidebar-active);
  box-shadow: 0 4px 12px rgba(79,70,229,.4);
}

.cat-icon { font-size: 17px; flex-shrink: 0; }
.cat-label { flex: 1; white-space: nowrap; }

.cat-count {
  font-size: 11px;
  background: rgba(255,255,255,.15);
  padding: 1px 7px;
  border-radius: 100px;
  min-width: 22px;
  text-align: center;
}

.cat-item.active .cat-count { background: rgba(255,255,255,.3); }

/* 侧边栏底部 */
.sidebar-footer {
  padding: 16px 18px 4px;
  color: rgba(200,207,224,.4);
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 12px;
}

.sidebar-footer strong { color: rgba(200,207,224,.7); }

/* ===== 右侧主内容 ===== */
.main-content {
  flex: 1;
  padding: 0 0 0 24px;
  overflow: hidden;
  min-width: 0;
}

/* ===== 搜索结果提示条 ===== */
.search-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--primary-light);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--primary-dark);
  animation: fadeInUp .25s ease;
}

.search-banner-icon { font-size: 18px; }

.search-clear-btn {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 4px 14px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 12px;
  transition: opacity var(--transition);
}
.search-clear-btn:hover { opacity: .8; }

/* ===== 分类区块 ===== */
.cat-section {
  margin-bottom: 36px;
  animation: fadeInUp .3s ease both;
}

/* 分类区块标题 */
.cat-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.cat-section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
}

.cat-section-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(79,70,229,.3);
}

.cat-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.cat-section-count {
  font-size: 12px;
  color: var(--text-sub);
  background: #f0f2f7;
  padding: 2px 10px;
  border-radius: 100px;
}

.cat-section-more {
  margin-left: auto;
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: opacity var(--transition);
}
.cat-section-more:hover { opacity: .7; }

/* ===== 卡片网格 ===== */
.site-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ===== 单个网站卡片 ===== */
.site-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 20px 16px 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  border: 1.5px solid transparent;
  position: relative;
  overflow: hidden;
}

.site-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}

.site-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary-light);
}

.site-card:hover::before { opacity: .04; }

/* 圆形 Logo */
.card-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 2.5px solid var(--border);
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: transform var(--transition);
}

.site-card:hover .card-logo { transform: scale(1.1); }

.card-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* 网站名称 */
.card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 网站简介 */
.card-desc {
  font-size: 11.5px;
  color: var(--text-sub);
  line-height: 1.55;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* 卡片底部信息行 */
.card-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* 浏览次数 */
.card-views {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text-sub);
  background: #f5f6fa;
  padding: 3px 9px;
  border-radius: 100px;
  transition: background var(--transition), color var(--transition);
  cursor: default;
}

.card-views .views-icon { font-size: 11px; }

.site-card:hover .card-views {
  background: rgba(79,70,229,.08);
  color: var(--primary);
}

/* 点击涟漪动画 */
@keyframes ripple {
  0%   { transform: scale(0); opacity: .4; }
  100% { transform: scale(4); opacity: 0; }
}

.card-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(79,70,229,.25);
  width: 40px;
  height: 40px;
  pointer-events: none;
  animation: ripple .5s ease-out forwards;
  z-index: 10;
  margin-left: -20px;
  margin-top: -20px;
}

/* ===== 无结果 ===== */
.no-result {
  text-align: center;
  padding: 80px 0;
  color: var(--text-sub);
}
.no-result span { font-size: 48px; display: block; margin-bottom: 12px; }
.no-result p { font-size: 15px; }
.hidden { display: none !important; }

/* ===== 底部 ===== */
.site-footer {
  background: var(--bg-sidebar);
  color: rgba(200,207,224,.4);
  text-align: center;
  padding: 20px;
  font-size: 13px;
}

/* ===== 移动端 ===== */
.mobile-menu-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(79,70,229,.4);
  cursor: pointer;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 149;
}

/* ===== 回到顶部按钮 ===== */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(79,70,229,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 99;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover { transform: translateY(-3px); }

/* ===== 响应式断点 ===== */

/* 1400px 以下：3列 */
@media (max-width: 1400px) {
  .site-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 1200px 以下 */
@media (max-width: 1200px) {
  .header-meta { display: none; }
}

/* 900px 以下：2列 */
@media (max-width: 900px) {
  .site-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 768px 以下：移动端 */
@media (max-width: 768px) {
  .site-body { padding: 16px; }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    border-radius: 0 18px 18px 0;
    z-index: 150;
    transform: translateX(-100%);
    transition: transform .3s ease;
    padding-top: calc(var(--header-h) + 12px);
  }

  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .main-content { padding: 0; }
  .mobile-menu-btn { display: flex; align-items: center; gap: 6px; }
  .site-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-section { margin-bottom: 24px; }
  .back-to-top { right: 16px; bottom: 70px; }
}

/* 480px 以下：1列 */
@media (max-width: 480px) {
  .site-grid { grid-template-columns: 1fr; }
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.site-card { animation: fadeInUp .28s ease both; }

.site-card:nth-child(4n+1) { animation-delay: .04s; }
.site-card:nth-child(4n+2) { animation-delay: .08s; }
.site-card:nth-child(4n+3) { animation-delay: .12s; }
.site-card:nth-child(4n+4) { animation-delay: .16s; }

.cat-section:nth-child(1) { animation-delay: .05s; }
.cat-section:nth-child(2) { animation-delay: .10s; }
.cat-section:nth-child(3) { animation-delay: .15s; }
.cat-section:nth-child(n+4) { animation-delay: .20s; }

/* ===== 顶部提交按钮 & 管理入口 ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-submit-site {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-submit-site:hover { background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.7); }

.btn-admin-link {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: rgba(255,255,255,.8);
  font-size: 16px;
  text-decoration: none;
  transition: background .2s;
}
.btn-admin-link:hover { background: rgba(255,255,255,.25); color: #fff; }

/* ===== 提交弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 16px;
}
.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 16px; font-weight: 700; flex: 1; }
.modal-close {
  background: #f3f4f6;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.modal-close:hover { background: var(--border); }

.modal-body  { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 14px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
}

/* ===== 提交表单内元素 ===== */
.modal-tip {
  font-size: 13px;
  color: var(--text-sub);
  background: #f8f9ff;
  border: 1px solid #e0e4ff;
  border-radius: 8px;
  padding: 9px 13px;
  margin-bottom: 16px;
}

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
}
.form-group textarea { resize: vertical; }
.form-required { color: #ef4444; margin-left: 2px; }
.form-hint { color: var(--text-sub); font-size: 11px; font-weight: 400; margin-left: 4px; }

.char-count {
  display: block;
  text-align: right;
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 3px;
}

.icon-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-input-row input { flex: 1; }
.icon-preview {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
}

.btn-cancel {
  background: #f3f4f6;
  color: var(--text-main);
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}
.btn-cancel:hover { background: var(--border); }

.btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 9px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-submit:hover { opacity: .88; }

/* ===== 前台 Toast ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1f2937;
  color: #fff;
  padding: 11px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 9999;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-success { background: #10b981; }
.toast.toast-error   { background: #ef4444; }
.toast.toast-info    { background: #374151; }

/* ===== 高亮（搜索命中文字） ===== */
.highlight {
  background: rgba(79,70,229,.15);
  color: var(--primary-dark);
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 600;
}

/* ===== 最新动态卡片 ===== */
.news-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp .3s ease both;
}

.news-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
}

.news-panel-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
}

.news-panel-title-text { white-space: nowrap; }

/* 箭头：跳转完整早报 */
.news-panel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e8f0fe;
  color: #1a73e8;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.news-panel-arrow:hover {
  background: #1a73e8;
  color: #fff;
  transform: translateX(2px);
}

/* 日期下拉选择器 */
.news-date-select {
  margin-left: 2px;
  padding: 2px 22px 2px 8px;
  font-size: 11.5px;
  color: #1a73e8;
  background: #e8f0fe url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M1 3l4 4 4-4' fill='none' stroke='%231a73e8' stroke-width='1.5'/></svg>") no-repeat right 7px center;
  border: 1px solid #c5d9fb;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.news-date-select:hover { border-color: #1a73e8; }
.news-date-select option { color: #1f2937; }

/* 每日医疗新闻汇总链接 */
.news-summary-link {
  font-size: 11.5px;
  font-weight: 600;
  color: #1a73e8;
  text-decoration: none;
  padding: 2px 8px;
  border: 1px solid #c5d9fb;
  border-radius: 6px;
  background: #fff;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.news-summary-link:hover {
  background: #1a73e8;
  color: #fff;
}

.news-panel-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-panel-date {
  font-size: 11px;
  color: var(--text-sub);
}

/* 进度点 */
.news-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.news-dot-item {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  transition: background .3s, width .3s;
  cursor: pointer;
}

.news-dot-item.active {
  background: var(--primary);
  width: 14px;
  border-radius: 3px;
}

.news-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.65); }
}

/* 轮播窗口 */
.news-panel-viewport {
  overflow: hidden;
  position: relative;
}

.news-panel-list {
  display: flex;
  flex-direction: column;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}

.news-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  flex-shrink: 0;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: #f8f7ff;
}

.news-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1.6;
  border: 1px solid transparent;
  transition: filter .15s ease;
}

.news-tag:hover {
  filter: brightness(1.1);
}

.news-text {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.45;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-item:hover .news-text {
  color: var(--primary);
}



