/* ============================================================
   culture-redesign.css — 咨询动态页（culture.html 专属）
   大图标新闻卡 / 焦点新闻 / 分类筛选 / 入场动效
   ============================================================ */

/* ---------------- 分类筛选吸顶条 ---------------- */
.nw-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nw-tab {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 10px 16px;
  border-radius: 10px;
  position: relative;
  transition: color .35s, background .35s, transform .4s cubic-bezier(.22, 1, .36, 1);
}
.nw-tab:hover { color: var(--blue); background: rgba(0, 106, 255, .07); transform: translateY(-2px); }
.nw-tab.is-here {
  color: #fff;
  background: var(--grad-brand-135);
  box-shadow: 0 8px 20px rgba(0, 106, 255, .28);
}

/* ---------------- 焦点新闻 ---------------- */
.nw-feat {
  --c: #006aff;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 26px;
  scroll-margin-top: 120px;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), box-shadow .55s, border-color .45s;
}
.nw-feat:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--c) 36%, #fff);
  box-shadow: 0 28px 64px color-mix(in srgb, var(--c) 15%, rgba(10, 25, 60, .08));
}
.nw-feat__icon {
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--c) 0%, color-mix(in srgb, var(--c) 62%, #00d168) 100%);
  min-height: 240px;
  overflow: hidden;
}
.nw-feat__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .28), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(255, 255, 255, .16), transparent 40%);
}
.nw-feat__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 85%);
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 85%);
}
.nw-feat__icon svg {
  position: relative;
  width: 108px;
  height: 108px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 10px 24px rgba(0, 20, 60, .3));
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1);
}
.nw-feat:hover .nw-feat__icon svg { transform: scale(1.1) rotate(-5deg); }
.nw-feat__body {
  position: relative;
  padding: clamp(26px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.nw-feat__body h2 {
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.nw-feat__body p {
  margin: 0;
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
  max-width: 62ch;
}
.nw-go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}
.nw-go i {
  width: 34px; height: 2px;
  background: var(--grad-brand);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.nw-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.nw-feat:hover .nw-go i { transform: scaleX(1.5); }
.nw-feat:hover .nw-go svg { transform: translateX(5px); }

/* 元信息行 */
.nw-meta { display: flex; align-items: center; gap: 14px; }
.nw-meta time { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }
.nw-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #fff;
  background: var(--grad-brand-135);
  border-radius: 999px;
  padding: 3px 12px;
}

/* ---------------- 新闻网格（大图标卡） ---------------- */
.nw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.nw-card {
  --c: #006aff;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 20px;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s, border-color .4s;
}
.nw-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 55%, #00d168));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}
.nw-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--c) 42%, #fff);
  box-shadow: 0 22px 48px color-mix(in srgb, var(--c) 16%, rgba(10, 25, 60, .09));
}
.nw-card:hover::after { transform: scaleX(1); }

.nw-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nw-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--c) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 24%, #fff);
  color: var(--c);
  transition: background .45s, color .45s, transform .5s cubic-bezier(.34, 1.56, .64, 1), box-shadow .5s, border-color .4s;
}
.nw-icon svg {
  width: 30px; height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nw-card:hover .nw-icon {
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #00d168));
  color: #fff;
  border-color: transparent;
  transform: rotate(-7deg) scale(1.1);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--c) 36%, transparent);
}
.nw-card__cat { display: flex; }
.nw-card__top time { margin-left: auto; font-size: 12px; color: var(--muted); letter-spacing: .05em; }

.nw-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 22%, #fff);
  border-radius: 999px;
  padding: 3px 12px;
}
.nw-cat::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c);
}

.nw-card h3 {
  margin: 2px 0 0;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.65;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .35s;
}
.nw-card:hover h3 { color: var(--c); }
.nw-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.95;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nw-card__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .4s, transform .5s cubic-bezier(.22, 1, .36, 1);
}
.nw-card__go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nw-card:hover .nw-card__go { opacity: 1; transform: none; }

/* ---------------- 入场动效 ---------------- */
.js .nw-feat, .js .nw-card {
  opacity: 0;
  transform: translateY(28px);
}
.js .nw-feat.visible, .js .nw-card.visible {
  opacity: 1;
  transform: none;
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1) calc(var(--i, 0) * .06s),
              transform .8s cubic-bezier(.22, 1, .36, 1) calc(var(--i, 0) * .06s),
              box-shadow .5s, border-color .4s;
}
.js .nw-feat.visible:hover, .js .nw-card.visible:hover {
  transform: translateY(-7px);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s, border-color .4s;
}
.js .nw-feat.visible:hover { transform: translateY(-5px); }

/* 尾注 */
.nw-more {
  margin: 40px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1060px) {
  .nw-grid { grid-template-columns: repeat(2, 1fr); }
  .nw-feat { grid-template-columns: 220px minmax(0, 1fr); }
  .nw-feat__icon svg { width: 84px; height: 84px; }
}
@media (max-width: 640px) {
  .nw-feat { grid-template-columns: 1fr; }
  .nw-feat__icon { min-height: 170px; }
  .nw-grid { grid-template-columns: 1fr; }
  .nw-tab { padding: 9px 13px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .nw-feat, .nw-card, .nw-icon, .nw-feat__icon svg, .nw-go i, .nw-go svg, .nw-tab { transition: none !important; animation: none !important; }
  .js .nw-feat, .js .nw-card { opacity: 1; transform: none; }
  .nw-card:hover, .nw-feat:hover { transform: none; }
}

/* ============================================================
   nw-hero — 咨询动态页专属 Banner（资讯流主题）
   墨青夜色 + 流动数据光带 + 日期转轮 + 头条打字机
   ============================================================ */
.nw-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 110px;
  color: #fff;
  background: linear-gradient(152deg, #0b2f6e 0%, #071e4d 40%, #051233 68%, #030b20 100%);
}
.nwh-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 200, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 200, 255, .07) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 86% 90% at 30% 42%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 86% 90% at 30% 42%, #000 30%, transparent 100%);
}
/* 浮尘粒子：缓缓上升的琥珀光点 */
.nwh-dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.nwh-dust i {
  position: absolute;
  left: var(--x, 50%);
  bottom: -12px;
  width: var(--sz, 4px);
  height: var(--sz, 4px);
  border-radius: 50%;
  background: rgba(120, 205, 255, .6);
  box-shadow: 0 0 8px rgba(0, 209, 104, .5);
  animation: nwhRise var(--dur, 14s) linear infinite;
  animation-delay: var(--dl, 0s);
}
@keyframes nwhRise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  12% { opacity: .8; }
  80% { opacity: .35; }
  100% { transform: translateY(-560px) translateX(26px); opacity: 0; }
}
/* 巨型衬线字块：缓浮的知 / 博 / 学 */
.nwh-glyph {
  position: absolute;
  top: 18%;
  right: 4%;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(150px, 18vw, 280px);
  line-height: 1;
  color: rgba(150, 205, 255, .07);
  pointer-events: none;
  user-select: none;
  translate: calc(var(--hx, 0) * 30px) calc(var(--hy, 0) * 22px);
  transition: translate .4s ease-out;
}
.nwh-glyph--a { animation: nwhGlyphFloat 9s ease-in-out infinite alternate; }
.nwh-glyph--b { top: 38%; right: 13%; color: rgba(150, 205, 255, .055); animation: nwhGlyphFloat 11s ease-in-out -3s infinite alternate; }
.nwh-glyph--c { top: 58%; right: 6%; color: rgba(0, 209, 104, .05); animation: nwhGlyphFloat 13s ease-in-out -6s infinite alternate; }
@keyframes nwhGlyphFloat { from { margin-top: 0; } to { margin-top: -22px; } }

.nwh-ghost {
  position: absolute;
  top: 26px; right: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(120px, 15vw, 230px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(140, 200, 255, .16);
  pointer-events: none;
  user-select: none;
  translate: calc(var(--hx, 0) * -24px) calc(var(--hy, 0) * -14px);
  transition: translate .35s ease-out;
  animation: nwhIn 1.3s cubic-bezier(.22, 1, .36, 1) .1s backwards;
}
@keyframes nwhIn { from { opacity: 0; transform: translateX(56px); } to { opacity: 1; transform: none; } }
.nwh-wheel {
  position: absolute;
  top: 46%;
  right: 7%;
  width: 330px;
  height: 330px;
  margin-top: -165px;
  pointer-events: none;
  translate: calc(var(--hx, 0) * 26px) calc(var(--hy, 0) * 18px);
  transition: translate .35s ease-out;
  animation: nwhIn 1.2s cubic-bezier(.22, 1, .36, 1) .3s backwards;
}
.nwh-wheel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(120, 200, 255, .32);
  background: repeating-conic-gradient(rgba(120, 200, 255, .26) 0deg 0.6deg, transparent 0.6deg 15deg);
  -webkit-mask-image: radial-gradient(circle, transparent 0 62%, #000 63% 76%, transparent 77%);
  mask-image: radial-gradient(circle, transparent 0 62%, #000 63% 76%, transparent 77%);
  animation: nwhWheelSpin 36s linear infinite;
}
.nwh-wheel::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(120, 200, 255, .22);
  animation: nwhWheelSpin 60s linear infinite reverse;
}
@keyframes nwhWheelSpin { to { transform: rotate(360deg); } }
.nwh-wheel-core {
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(10, 18, 42, .65);
  border: 1px solid rgba(120, 200, 255, .34);
  box-shadow: 0 0 40px rgba(0, 164, 255, .2), inset 0 0 30px rgba(0, 164, 255, .08);
}
.nwh-wheel-core b {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: #cfeaff;
  font-family: var(--serif);
}
.nwh-wheel-core span {
  font-size: 12px;
  letter-spacing: .3em;
  color: rgba(207, 234, 255, .78);
  text-transform: uppercase;
}
.nwh-tag {
  position: absolute;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(207, 234, 255, .94);
  background: rgba(120, 200, 255, .08);
  border: 1px solid rgba(120, 200, 255, .3);
  pointer-events: none;
  user-select: none;
  translate: calc(var(--hx, 0) * var(--gp, 20px)) calc(var(--hy, 0) * var(--gp, 14px));
  transition: translate .35s ease-out;
  animation: nwhFloat 6.5s ease-in-out infinite alternate;
}
.nwh-tag--a { top: 22%; right: 33%; --gp: 32px; }
.nwh-tag--b { bottom: 26%; right: 26%; --gp: 22px; animation-delay: -3s; }
@keyframes nwhFloat { from { margin-top: 0; } to { margin-top: -16px; } }
.nwh-ticker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 10px 18px 10px 14px;
  max-width: min(560px, 100%);
  min-width: 0;
  border-radius: 999px;
  background: rgba(120, 200, 255, .08);
  border: 1px solid rgba(120, 200, 255, .26);
  animation: nwhIn .9s ease .8s backwards;
}
.nwh-ticker-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #40b6ff;
  box-shadow: 0 0 0 0 rgba(64, 182, 255, .5);
  animation: nwhDotPulse 2.2s ease-out infinite;
}
@keyframes nwhDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(64, 182, 255, .5); }
  100% { box-shadow: 0 0 0 12px rgba(64, 182, 255, 0); }
}
.nwh-ticker-label {
  flex: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  padding: 3px 10px;
  border-radius: 6px;
  color: #052a5e;
  background: linear-gradient(135deg, #40b6ff, #7de8b8);
}
.nwh-ticker-text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
  transition: color .3s;
}
.nwh-ticker-text::after {
  content: "|";
  margin-left: 2px;
  color: #40b6ff;
  animation: nwhCaret 1s steps(1) infinite;
}
@keyframes nwhCaret { 50% { opacity: 0; } }
.nwh-ticker-text:hover { color: #7de8b8; }
.nw-hero .ph-crumbs a, .nw-hero .ph-crumbs span { color: rgba(255, 255, 255, .8); }
.nw-hero .ph-crumbs i { color: rgba(255, 255, 255, .45); }
.nw-hero h1 { color: #fff; animation: nwhIn .9s cubic-bezier(.22, 1, .36, 1) .15s backwards; }
.nw-hero .ph-lead { color: rgba(255, 255, 255, .82); animation: nwhIn .8s ease .45s backwards; }
@media (max-width: 1060px) {
  .nwh-wheel { width: 240px; height: 240px; margin-top: -120px; right: 2%; opacity: .65; }
  .nwh-wheel-core b { font-size: 40px; }
  .nwh-ghost { font-size: 110px; }
}
@media (max-width: 640px) {
  .nw-hero { padding: 120px 0 76px; }
  .nwh-wheel, .nwh-tag { display: none; }
  .nwh-ticker { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .nwh-dust i, .nwh-glyph, .nwh-ghost, .nwh-wheel, .nwh-wheel::before, .nwh-wheel::after,
  .nwh-tag, .nwh-ticker, .nwh-ticker-dot, .nwh-ticker-text::after,
  .nw-hero h1, .nw-hero .ph-lead { animation: none !important; }
}

/* ============================================================
   移动端分类标签：单行横向滚动（原来 flex-wrap 会掉行，最后一行只剩一个）
   ============================================================ */
@media (max-width: 640px) {
  .nw-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    gap: 6px;
  }
  .nw-filter::-webkit-scrollbar { display: none; }
  /* 右缘渐隐，提示可横向滑动 */
  .nw-filter {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
  }
  .nw-tab { flex: 0 0 auto; }
}
