/* 文件描述：品牌动态页共享样式（Hero + 双栏布局 + 分组侧栏） */

body.nws-page {
  padding-top: 0;
  background: var(--slate-50, #f8fafc);
  color: var(--on-surface, #181c21);
}

body.nws-page .nav.nav-over-hero:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

/* ── Hero（视频背景 + 标题描述） ── */
.nws-phead {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: var(--inner-topbanner-h);
  padding: calc(var(--nav-height) + clamp(48px, calc(100vw * 80 / 1440), 80px)) 0 clamp(40px, calc(100vw * 72 / 1440), 72px);
  color: #fff;
  /* 浅色底：避免 video 默认黑底/编码边缘露出黑边 */
  background: #e4eef9;
}

.nws-phead-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  background: transparent;
  /* 轻微放大裁掉片源边缘可能的黑边/缝 */
  transform: scale(1.04);
  transform-origin: center center;
}

.nws-phead-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 40, 71, 0.45) 0%, rgba(0, 40, 71, 0.65) 100%);
}

.nws-phead-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  width: 100%;
  box-sizing: border-box;
 
}

.nws-phead-title {
  font-size: var(--fs-block-head);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(10px, calc(100vw * 14 / 1920), 14px);
}

.nws-phead-desc {
  margin: 15px 0 0;
  font-size: var(--fs-14);
  color: #414752;
  line-height: 1.65;
  max-width: 720px;
}

/* ── 主布局 ── */
.nws-main {
  padding: clamp(28px, calc(100vw * 44 / 1440), 44px) 0 clamp(48px, calc(100vw * 70 / 1440), 70px);
}

.nws-main .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.nws-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, calc(100vw * 44 / 1440), 44px);
  align-items: start;
}

.nws-content {
  min-width: 0;
}

/* ── 资讯搜索工具条（左摘要 / 右表单） ── */
.nws-search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 0 0 clamp(18px, calc(100vw * 24 / 1440), 24px);
  padding: 0 0 16px;
  border-bottom: 1px solid var(--slate-200, #e2e8f0);
}

.nws-search-summary {
  min-width: 0;
  flex: 1 1 auto;
}

.nws-search-summary-text {
  margin: 0;
  font-size: var(--fs-16, 16px);
  font-weight: 600;
  color: var(--on-surface, #181c21);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nws-search-kw {
  color: var(--primary, #115391);
}

.nws-search-form {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: min(100%, 240px);
  height: 40px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--slate-200, #e2e8f0);
  box-sizing: border-box;
  overflow: hidden;
}

.nws-search-field {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  height: 100%;
  margin: 0;
}

.nws-search-field .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nws-search-input {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 12px;
  font-size: var(--fs-14, 14px);
  color: var(--on-surface, #181c21);
  outline: none;
  box-sizing: border-box;
}

.nws-search-input::placeholder {
  color: var(--slate-400, #94a3b8);
}

.nws-search-btn {
  position: relative;
  flex-shrink: 0;
  height: 100%;
  min-width: 64px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--primary, #115391);
  color: #fff;
  font-size: var(--fs-14, 14px);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.nws-search-btn:hover {
  background: #0d4374;
}

.nws-search-btn:active {
  opacity: 0.92;
}

.nws-search-btn:disabled,
.nws-search-btn.is-loading {
  cursor: wait;
  opacity: 0.85;
}

.nws-search-btn-spinner {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  box-sizing: border-box;
  animation: nws-search-spin 0.7s linear infinite;
}

.nws-search-btn.is-loading .nws-search-btn-label {
  visibility: hidden;
}

.nws-search-btn.is-loading .nws-search-btn-spinner {
  display: block;
}

@keyframes nws-search-spin {
  to {
    transform: rotate(360deg);
  }
}

.nws-search-empty {
  grid-column: 1 / -1;
  margin: 28px 0 8px;
  padding: 28px 16px;
  text-align: center;
  font-size: var(--fs-14, 14px);
  color: var(--on-surface-variant, #414752);
  background: #fff;
  border: 1px dashed var(--slate-200, #e2e8f0);
  border-radius: 12px;
}

@media (max-width: 720px) {
  .nws-search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nws-search-summary-text {
    white-space: normal;
  }

  .nws-search-form {
    width: 100%;
  }
}

/* ── 分组侧栏 ── */
.nws-side {
  position: sticky;
  top: calc(var(--nav-height) + 16px);
  align-self: start;
}

.nws-sgroup {
  margin-bottom: 28px;
}

.nws-sgroup:last-child {
  margin-bottom: 0;
}

.nws-sgroup-title {
  margin: 0 0 10px;
  padding-left: 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.nws-sitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  margin-bottom: 2px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nws-sitem:hover {
  background: var(--slate-50);
  color: var(--primary);
}

.nws-sitem.is-active {
  background: var(--blue-bg);
  color: var(--primary);
  font-weight: 700;
  border-left-color: var(--primary);
}

.nws-sitem-cnt {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-400);
  background: var(--slate-100);
  padding: 0 8px;
  border-radius: 9px;
  line-height: 1.6;
}

.nws-sitem.is-active .nws-sitem-cnt {
  background: rgba(17, 83, 145, 0.12);
  color: var(--primary);
}

/* ── 详情页返回链接 ── */
.nws-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: var(--fs-14);
  color: var(--primary);
  text-decoration: none;
}

.nws-back:hover {
  text-decoration: underline;
}

.nws-back-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

@media (max-width: 1080px) {
  .nws-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .nws-side {
    position: static;
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .nws-side::-webkit-scrollbar {
    display: none;
  }

  .nws-sgroup {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .nws-sgroup-title {
    margin: 0 6px 0 0;
    padding: 0;
    white-space: nowrap;
  }

  .nws-sitem {
    border-left: none;
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    padding: 6px 16px;
    white-space: nowrap;
    margin-bottom: 0;
  }

  .nws-sitem.is-active {
    border-color: var(--primary);
    border-left: 1px solid var(--primary);
  }

  .nws-sitem-cnt {
    display: none;
  }
}

@media (max-width: 680px) {
  .nws-phead {
    min-height: clamp(220px, 62vw, 320px);
    padding-top: calc(var(--nav-height) + 36px);
    padding-bottom: 40px;
  }

  .nws-phead-title {
    font-size: 22px;
  }

  .nws-phead-desc {
    font-size: 13px;
  }
}
