/* ============================================================
   资讯模块样式（在 style.css 之后加载）
   包含：资讯中心（列表）、资讯详情、资讯后台管理
   浅色主题，沿用 style.css 里的 CSS 变量
   ============================================================ */

/* 顶栏导航链接的样式定义在 style.css（个人中心/资讯页都要用），此处不再重复 */

/* ---------------- 资讯中心：头图 + 搜索 ---------------- */

.news-hero {
  position: relative;
  overflow: hidden;
  padding: 38px 26px 34px;
  color: #fff;
  background: linear-gradient(135deg, #1e2a78 0%, #3055f5 55%, #6d4dfc 100%);
}

.news-hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.news-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.news-hero h1 {
  font-size: 27px;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.news-hero p {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

.news-search {
  display: flex;
  gap: 8px;
  flex: 0 0 340px;
  max-width: 100%;
}

.news-search .input-wrap {
  flex: 1;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.5);
}

.news-search .btn {
  width: auto;
  flex: none;
  padding: 11px 20px;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  backdrop-filter: blur(4px);
}

.news-search .btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.26);
}

/* ---------------- 分类筛选 ---------------- */

.cat-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 16px 0 4px;
}

.cat-chip {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.cat-chip:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.cat-chip.active {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(48, 85, 245, 0.24);
}

.cat-chip .count {
  opacity: 0.72;
  font-size: 12px;
  margin-left: 4px;
}

/* ---------------- 页面布局 ---------------- */

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 302px;
  gap: 22px;
  align-items: start;
}

.news-main {
  min-width: 0;
}

.news-side {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 78px;
}

/* ---------------- 列表头：结果数 + 排序 / 视图切换 ---------------- */

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 16px;
}

.list-head .summary {
  font-size: 13px;
  color: var(--text-2);
}

.list-head .summary .hl {
  color: var(--brand-dark);
  font-weight: 600;
}

.seg {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface);
}

.seg button {
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 13px;
  padding: 7px 15px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.seg button + button {
  border-left: 1px solid var(--border);
}

.seg button:hover {
  background: var(--surface-2);
}

.seg button.active {
  background: var(--brand);
  color: #fff;
}

.seg button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------------- 置顶焦点 ---------------- */

.focus-card {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s, transform 0.18s;
}

.focus-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}

.focus-card .focus-cover {
  position: relative;
  min-height: 168px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 3px;
}

.focus-card .focus-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.focus-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
}

.focus-card .focus-summary {
  margin: 0;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge-top {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: linear-gradient(120deg, #f5a524 0%, #e5484d 100%);
  color: #fff;
}

/* ---------------- 资讯卡片 ---------------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 16px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}

.news-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: #d6ddf5;
  text-decoration: none;
}

.news-cover {
  position: relative;
  height: 132px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #3055f5 0%, #6d4dfc 100%);
}

.news-cover .cover-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  backdrop-filter: blur(3px);
}

.news-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.news-body h3 {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-body .news-summary {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-3);
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.news-foot .left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.news-foot .stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* 标签 */
.tag-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  margin-right: 5px;
}

.tag-chip.grey {
  background: #f1f3f8;
  color: var(--text-2);
}

/* ---------------- 侧栏 ---------------- */

.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.side-card-head {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.side-card-head .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.side-card-body {
  padding: 12px 16px 14px;
}

.hot-list {
  display: grid;
  gap: 2px;
}

.hot-item {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  text-decoration: none;
  color: inherit;
}

.hot-item:last-child {
  border-bottom: 0;
}

.hot-item:hover {
  text-decoration: none;
}

.hot-item .rank {
  flex: none;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  background: #f1f3f8;
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.hot-item:nth-child(1) .rank {
  background: linear-gradient(120deg, #e5484d 0%, #f5a524 100%);
  color: #fff;
}

.hot-item:nth-child(2) .rank {
  background: linear-gradient(120deg, #f5a524 0%, #f7c948 100%);
  color: #fff;
}

.hot-item:nth-child(3) .rank {
  background: linear-gradient(120deg, #3055f5 0%, #6d4dfc 100%);
  color: #fff;
}

.hot-item .hot-title {
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-item:hover .hot-title {
  color: var(--brand);
}

.hot-item .hot-meta {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 3px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-cloud button {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.tag-cloud button:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.tag-cloud button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------------- 分页 ---------------- */

.news-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-2);
  flex-wrap: wrap;
}

.news-pager .pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-pager button {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.news-pager button:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.news-pager button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 5px;
}

.page-numbers button {
  min-width: 32px;
  padding: 6px 0;
}

.page-numbers button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------------- 空状态 / 骨架 ---------------- */

.empty-state {
  padding: 54px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 13.5px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  line-height: 1.9;
}

.empty-state strong {
  display: block;
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 6px;
}

/* ---------------- 资讯详情 ---------------- */

.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 262px;
  gap: 22px;
  align-items: start;
}

.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 34px 34px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-3);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-2);
}

.article-title {
  font-size: 25px;
  line-height: 1.5;
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12.5px;
  color: var(--text-3);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.article-meta .item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-tags {
  margin-top: 14px;
}

/* 正文排版 */
.article-body {
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.95;
  color: #232a3d;
  word-break: break-word;
}

.article-body p {
  margin: 0 0 17px;
}

.article-body h2 {
  font-size: 18.5px;
  margin: 30px 0 12px;
  padding-left: 11px;
  border-left: 3px solid var(--brand);
  line-height: 1.5;
}

.article-body h3 {
  font-size: 16.5px;
  margin: 24px 0 10px;
}

.article-body h4 {
  font-size: 15px;
  margin: 20px 0 8px;
  color: var(--text-2);
}

.article-body ul,
.article-body ol {
  margin: 0 0 17px;
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 7px;
}

.article-body blockquote {
  margin: 0 0 17px;
  padding: 12px 16px;
  border-left: 3px solid #cfd8ff;
  background: #f7f9ff;
  border-radius: 0 8px 8px 0;
  color: var(--text-2);
}

.article-body code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  background: #f4f6fc;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1.5px 5px;
  color: #b0356b;
}

.article-body pre {
  background: #1c2333;
  color: #e6eaf5;
  border-radius: 10px;
  padding: 15px 17px;
  overflow-x: auto;
  margin: 0 0 18px;
  line-height: 1.7;
}

.article-body pre code {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
  font-size: 12.8px;
}

.article-body hr {
  border: 0;
  border-top: 1px dashed var(--border-strong);
  margin: 26px 0;
}

.article-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 操作区 */
.article-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  border-radius: 999px;
  padding: 8px 17px;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.16s;
}

.action-btn:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.action-btn.active {
  border-color: #f5a524;
  background: #fff8e8;
  color: #8a6417;
}

/* 上一篇 / 下一篇 */
.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.nav-card {
  display: block;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s, box-shadow 0.16s;
  min-width: 0;
}

.nav-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.nav-card .label {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 5px;
}

.nav-card .title {
  font-size: 13.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nav-card.disabled {
  opacity: 0.62;
  pointer-events: none;
}

.nav-card.right {
  text-align: right;
}

/* 目录 */
.toc {
  display: grid;
  gap: 5px;
}

.toc a {
  display: block;
  font-size: 12.8px;
  line-height: 1.6;
  color: var(--text-2);
  padding: 4px 0 4px 10px;
  border-left: 2px solid var(--border);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.toc a:hover {
  color: var(--brand-dark);
  border-color: var(--brand);
}

.toc a.level-3 {
  padding-left: 22px;
  font-size: 12.3px;
}

/* 相关推荐（详情页侧栏） */
.related-list {
  display: grid;
  gap: 4px;
}

.related-item {
  display: block;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  text-decoration: none;
  color: inherit;
}

.related-item:last-child {
  border-bottom: 0;
}

.related-item .t {
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item .m {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 4px;
}

.related-item:hover .t {
  color: var(--brand);
  text-decoration: none;
}

/* ---------------- 后台管理：编辑器 ---------------- */

.editor-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  overflow: hidden;
}

.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.editor-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.editor-body {
  padding: 18px 20px 20px;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.editor-grid .span-2 {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field > label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.field > label .hint {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-3);
}

.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}

.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3.5px rgba(48, 85, 245, 0.13);
}

.field textarea {
  resize: vertical;
  line-height: 1.75;
}

.field textarea.content-input {
  min-height: 260px;
  font-size: 13.8px;
}

.field .counter {
  font-size: 12px;
  color: var(--text-3);
  text-align: right;
}

.field .counter.over {
  color: var(--danger);
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}

.switch input {
  appearance: none;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #d7dced;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
  flex: none;
  margin: 0;
}

.switch input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 26, 43, 0.22);
  transition: transform 0.18s;
}

.switch input:checked {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
}

.switch input:checked::after {
  transform: translateX(18px);
}

.editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.editor-actions .spacer {
  flex: 1;
}

/* 分类管理小列表 */
.cat-manage {
  display: grid;
  gap: 8px;
}

.cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 13.5px;
}

.cat-row .name {
  font-weight: 500;
}

.cat-row .meta {
  color: var(--text-3);
  font-size: 12.5px;
}

.cat-row .spacer {
  flex: 1;
}

.inline-form {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.inline-form .input-wrap {
  flex: 1;
  min-width: 160px;
}

.inline-form .btn {
  width: auto;
  flex: none;
}

/* 列表里的小按钮（admin.css 里也有 btn-xs，这里兜底给资讯页单独用） */
.btn-xs {
  width: auto;
  padding: 5px 11px;
  font-size: 12.5px;
  border-radius: 7px;
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 1000px) {
  .news-layout,
  .article-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-side {
    position: static;
  }

  .focus-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .focus-card .focus-cover {
    min-height: 118px;
  }
}

@media (max-width: 700px) {
  .news-hero {
    padding: 26px 18px 24px;
  }

  .news-hero h1 {
    font-size: 21px;
  }

  .news-search {
    flex: 1 1 100%;
  }

  .article {
    padding: 22px 18px 26px;
  }

  .article-title {
    font-size: 20px;
  }

  .article-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-card.right {
    text-align: left;
  }

  .editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-pager {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================================================
   资讯中心改版（对齐首页 bank-shell 风格）
   仅作用于 news.html / news-detail.html 的新壳层，不改卡片本体样式
   ============================================================ */

/* 分类芯片：绿色胶囊，横向可滚动 */
.bank-shell .cat-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 2px 2px;
  scrollbar-width: none;
}
.bank-shell .cat-bar::-webkit-scrollbar { display: none; }
.bank-shell .cat-chip {
  flex: none;
  border: 1px solid var(--home-line, #e6ece9);
  background: #fff;
  color: #4d5c55;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.bank-shell .cat-chip:hover { color: var(--home-green, #1f6f5c); border-color: var(--home-green, #1f6f5c); }
.bank-shell .cat-chip.active {
  background: var(--home-green, #1f6f5c);
  border-color: var(--home-green, #1f6f5c);
  color: #fff;
}
.bank-shell .cat-chip .count { opacity: 0.75; font-weight: 500; }

/* 列表头：摘要 + 切换器 */
.bank-shell .news-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 12px;
  padding: 0 2px;
}
.bank-shell .news-list-head .summary { font-size: 13px; color: #7d8c84; }
.bank-shell .news-list-segs { display: flex; gap: 8px; }
.bank-shell .seg {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--home-line, #e6ece9);
  border-radius: 999px;
  padding: 3px;
}
.bank-shell .seg button {
  border: none;
  background: none;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: #7d8c84;
  cursor: pointer;
  white-space: nowrap;
}
.bank-shell .seg button.active {
  background: var(--home-green-soft, #eaf4ef);
  color: var(--home-green, #1f6f5c);
}
.bank-shell .seg button:disabled { opacity: 0.45; cursor: not-allowed; }

/* 资讯列表：单列卡片，严格收在视口内 */
.bank-shell .news-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}
.bank-shell .news-grid > * { min-width: 0; }

/* 热门/标签/收藏：桌面三列、手机单列 */
.bank-side {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 8px;
}
.bank-side .side-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(31, 111, 92, 0.07);
  padding: 14px 16px;
}
.bank-side .side-card-head {
  font-size: 14px;
  font-weight: 800;
  color: #1f2d27;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bank-side .side-card-head .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--home-green, #1f6f5c);
}

/* 详情页：正文 + 侧栏改为单列堆叠 */
.bank-shell .article-wrap {
  grid-template-columns: 1fr;
  gap: 0;
}
.bank-shell .article-wrap .news-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}
.bank-shell .article-wrap .side-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(31, 111, 92, 0.07);
  padding: 14px 16px;
}
.bank-shell .article-wrap .side-card-head {
  font-size: 14px;
  font-weight: 800;
  color: #1f2d27;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bank-shell .article-wrap .side-card-head .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--home-green, #1f6f5c);
}

/* 入口图标配色（资讯中心三宫格） */
.entry-icon.icon-news-all { background: linear-gradient(135deg, #5aa9f7, #2f7de8); }
.entry-icon.icon-news-fav { background: linear-gradient(135deg, #f795b6, #ef5f8f); }
.entry-icon.icon-news-hot { background: linear-gradient(135deg, #ffb56b, #f4694c); }

@media (max-width: 700px) {
  .bank-side { grid-template-columns: 1fr; }
  .bank-shell .news-list-head .summary { width: 100%; }
}
