:root {
  --primary: #8B1A1A;
  --primary-dark: #5C0F0F;
  --primary-light: #B33030;
  --secondary: #1A1A2E;
  --accent: #E63946;
}

/* 内容资讯 · 清爽门户风 */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #0d9488; }
::selection { background: #0d9488; color: #fff; }

/* 文章卡片 */
.news-card { transition: box-shadow .25s ease, transform .25s ease; }
.news-card:hover { box-shadow: 0 12px 30px -12px rgba(15,23,42,.2); transform: translateY(-3px); }
.news-card .news-title { transition: color .2s ease; }
.news-card:hover .news-title { color: #0f766e; }

/* 图片缩放 */
.zoom-img { overflow: hidden; }
.zoom-img img { transition: transform .5s ease; }
.zoom-img:hover img { transform: scale(1.06); }

/* 分类标签 */
.cat-chip { transition: background-color .2s ease, color .2s ease; }

/* 移动端抽屉导航 */
.nav { transition: transform .35s ease; }
@media (max-width: 1023px) {
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 84%; max-width: 340px;
    flex-direction: column; align-items: flex-start;
    background: #fff; padding: 5.5rem 1.5rem 2rem;
    transform: translateX(100%);
    z-index: 60; overflow-y: auto; gap: .35rem;
    display: flex !important;
    box-shadow: -10px 0 40px rgba(0,0,0,.1);
  }
  .nav.active { transform: translateX(0); }
  .nav a { width: 100%; }
  .menu-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.45);
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease; z-index: 55;
  }
  .menu-overlay.active { opacity: 1; visibility: visible; }
  body.menu-open { overflow: hidden; }
}

/* FAQ 折叠 */
.faq-answer {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .4s ease, opacity .4s ease;
}
.faq-icon { transition: transform .35s ease; }

/* 回到顶部 */
.back-to-top { opacity: 0; visibility: hidden; transition: opacity .35s ease; }
.back-to-top.visible { opacity: 1; visibility: visible; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .7s ease both; }

@media print {
  header, footer, .nav, .no-print { display: none !important; }
}
