/* ==========================================================================
   BCA 官网 · 门户版式
   在原有品牌视觉（墨黑 / 暖白 / 品牌红、零圆角、1px 细线）之上，
   采用政务门户常见的信息结构：顶部信息条 + 报头 + 栏目导航 + 头条/要闻 +
   栏目列表 + 右栏工具区 + 文章页。
   ========================================================================== */

body.portal {
  background: var(--paper);
  color: var(--ink);
}

.portal ::selection { background: var(--red); color: #fff; }

/* --------------------------------------------------------------------------
   顶部信息条
   -------------------------------------------------------------------------- */
.utility {
  background: var(--ink-2);
  color: rgba(242, 239, 233, 0.62);
  border-bottom: 1px solid rgba(242, 239, 233, 0.08);
  font-size: 13px;
}

.utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 38px;
}

.utility__left,
.utility__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.utility__date { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; }

.utility a:hover { color: var(--paper); }

.search-mini { display: flex; align-items: center; border-bottom: 1px solid rgba(242, 239, 233, 0.24); }
.search-mini input {
  width: 148px;
  background: transparent;
  border: 0;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 5px 0;
}
.search-mini input::placeholder { color: rgba(242, 239, 233, 0.4); }
.search-mini input:focus { outline: none; }
.search-mini button {
  color: rgba(242, 239, 233, 0.7);
  padding: 4px 2px 4px 10px;
  display: grid;
  place-items: center;
}
.search-mini button:hover { color: var(--red); }
.search-mini svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* --------------------------------------------------------------------------
   报头
   -------------------------------------------------------------------------- */
.masthead {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(242, 239, 233, 0.1);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 26px;
}

.masthead__brand { display: flex; align-items: center; gap: 18px; }
.masthead__brand img { width: 54px; height: 54px; object-fit: contain; transition: transform 0.6s var(--ease); }
.masthead__brand:hover img { transform: rotate(-90deg); }

.masthead__name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.masthead__name b {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: 0.1em;
}
.masthead__name i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.34em;
  color: var(--ash);
  margin-top: 8px;
}

.masthead__meta {
  display: flex;
  align-items: center;
  gap: 32px;
}

.masthead__item { text-align: right; }
.masthead__item span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--ash);
  margin-bottom: 6px;
}
.masthead__item b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   栏目导航
   -------------------------------------------------------------------------- */
.navbar {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(242, 239, 233, 0.14);
  position: sticky;
  top: 0;
  z-index: 90;
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.navbar.is-stuck {
  background: rgba(12, 12, 13, 0.95);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 1px 0 rgba(242, 239, 233, 0.14);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 54px;
}

.nav-main { display: flex; align-items: stretch; gap: 0; }

.nav-main a {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0 22px;
  min-height: 54px;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: rgba(242, 239, 233, 0.76);
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.nav-main a:hover { color: var(--paper); background: rgba(242, 239, 233, 0.05); }

.nav-main a.is-active { color: var(--paper); }
.nav-main a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--red);
}

.navbar__aside { display: flex; align-items: center; gap: 14px; }
.navbar__aside .btn { padding: 9px 16px; font-size: 12.5px; }

/* --------------------------------------------------------------------------
   内容区基础
   -------------------------------------------------------------------------- */
.portal-main { padding-bottom: clamp(48px, 6vw, 88px); }

.block { padding-block: clamp(44px, 5.2vw, 76px); }
.block--tight { padding-block: clamp(32px, 4vw, 52px); }
.block--ink { background: var(--ink); color: var(--paper); }
.block--paper2 { background: var(--paper-2); }

.block__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 2px;
}

.block--ink .block__head { border-bottom-color: rgba(242, 239, 233, 0.3); }

.block__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0;
}

.block__title i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.26em;
  color: var(--red);
  text-transform: uppercase;
}

.block__more {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--muted, #5f5f63);
  white-space: nowrap;
}
.block__more:hover { color: var(--red); }

/* --------------------------------------------------------------------------
   头条区：轮播 + 要闻
   -------------------------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(0, 0.98fr);
  gap: clamp(20px, 2.4vw, 34px);
  padding-block: clamp(28px, 3.4vw, 44px);
}

.slides {
  position: relative;
  background: var(--ink-2);
  border: 1px solid rgba(12, 12, 13, 0.08);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 320px;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 3vw, 40px);
  padding-bottom: clamp(46px, 5vw, 58px);
  color: var(--paper);
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s var(--ease), transform 1.2s var(--ease);
  pointer-events: none;
}

.slide.is-active { opacity: 1; transform: none; pointer-events: auto; }

.slide__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 26%, rgba(216, 31, 36, 0.34), transparent 52%),
    repeating-linear-gradient(to right, rgba(242, 239, 233, 0.06) 0 1px, transparent 1px 25%),
    linear-gradient(160deg, #17171a 0%, #0c0c0d 62%);
}

.slide__index {
  position: absolute;
  right: -2%;
  top: 4%;
  font-family: var(--font-display);
  font-size: clamp(120px, 15vw, 210px);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 239, 233, 0.14);
  letter-spacing: -0.05em;
  pointer-events: none;
}

.slide__mark {
  position: absolute;
  right: 8%;
  top: 50%;
  width: 26%;
  transform: translateY(-50%);
  opacity: 0.9;
  filter: drop-shadow(0 0 40px rgba(216, 31, 36, 0.3));
}

.slide__inner { position: relative; z-index: 2; max-width: 30em; }

.slide__cat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.slide__cat::before { content: ""; width: 22px; height: 1px; background: var(--red); }

.slide__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.slide__title a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--red); }

.slide__meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: rgba(242, 239, 233, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-dots {
  position: absolute;
  left: clamp(24px, 3vw, 40px);
  right: clamp(24px, 3vw, 40px);
  bottom: 16px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.slide-dots button {
  width: 28px;
  height: 3px;
  background: rgba(242, 239, 233, 0.24);
  transition: background var(--speed) var(--ease), width var(--speed) var(--ease);
}
.slide-dots button.is-active { background: var(--red); width: 44px; }

/* 要闻 */
.headlines { display: flex; flex-direction: column; height: 100%; }

.headlines__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.headlines__head b {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.headlines__head span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.22em; color: var(--red); }

.headlines__list { flex: 1; display: flex; flex-direction: column; }

.headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid rgba(12, 12, 13, 0.1);
}

.headline:last-child { border-bottom: 0; }

.headline__title {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.headline:hover .headline__title { color: var(--red); }

.headline__date { font-family: var(--font-mono); font-size: 12.5px; color: #8a8a8e; white-space: nowrap; }

.headline--top .headline__title { font-weight: 700; }

/* --------------------------------------------------------------------------
   通用列表行
   -------------------------------------------------------------------------- */
.rows { border-top: 1px solid rgba(12, 12, 13, 0.12); }

.block--ink .rows { border-top-color: rgba(242, 239, 233, 0.16); }

.row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 15px 4px;
  border-bottom: 1px solid rgba(12, 12, 13, 0.1);
  transition: background var(--speed) var(--ease), padding var(--speed) var(--ease);
}

.block--ink .row { border-bottom-color: rgba(242, 239, 233, 0.12); }

.row:hover { background: rgba(216, 31, 36, 0.04); padding-left: 10px; }
.block--ink .row:hover { background: rgba(242, 239, 233, 0.04); }

.row__date { font-family: var(--font-mono); font-size: 13px; color: #8a8a8e; letter-spacing: 0.04em; }

.row__title {
  font-size: 16.5px;
  line-height: 1.65;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: color var(--speed) var(--ease);
}

.row:hover .row__title { color: var(--red); }

.row__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--red);
  border: 1px solid rgba(216, 31, 36, 0.35);
  padding: 3px 8px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   业务与案例
   -------------------------------------------------------------------------- */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(12, 12, 13, 0.14);
  border: 1px solid rgba(12, 12, 13, 0.14);
}

.biz-card {
  background: var(--paper);
  padding: clamp(22px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  min-height: 240px;
  position: relative;
  transition: background var(--speed) var(--ease);
}

.biz-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.biz-card:hover { background: #fbf9f5; }
.biz-card:hover::before { transform: scaleX(1); }

.biz-card__num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--red);
}

.biz-card__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 24px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 16px 0 10px;
}

.biz-card__desc {
  font-size: 15px;
  line-height: 1.85;
  color: #55555a;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.biz-card__foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: #8a8a8e;
  border-top: 1px solid rgba(12, 12, 13, 0.1);
  margin-top: 22px;
}

.biz-card:hover .biz-card__foot { color: var(--ink); }

.biz-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

/* --------------------------------------------------------------------------
   通知公告 / 竞赛
   -------------------------------------------------------------------------- */
.notice {
  border: 1px solid rgba(12, 12, 13, 0.14);
  background: #fbf9f5;
}

.notice__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--paper);
}

.notice__head b { font-size: 16px; letter-spacing: 0.04em; }
.notice__head span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.24em; color: var(--red); }

.notice__body { padding: 6px 20px 14px; }

.notice__item {
  display: block;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(12, 12, 13, 0.14);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.notice__item:last-child { border-bottom: 0; }
.notice__item:hover { color: var(--red); }

.promo {
  margin-top: 18px;
  border: 1px solid rgba(216, 31, 36, 0.3);
  background: rgba(216, 31, 36, 0.05);
  padding: 22px 20px;
  display: block;
}
.promo__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--red);
}
.promo__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  margin: 10px 0 8px;
  line-height: 1.3;
}
.promo__desc { font-size: 14px; color: #55555a; line-height: 1.8; margin: 0 0 14px; }
.promo__go { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.12em; color: var(--ink); }
.promo:hover .promo__go { color: var(--red); }

/* --------------------------------------------------------------------------
   数据条
   -------------------------------------------------------------------------- */
.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(242, 239, 233, 0.16);
  border-bottom: 1px solid rgba(242, 239, 233, 0.16);
}

.figure {
  padding: 26px 24px 28px;
  border-right: 1px solid rgba(242, 239, 233, 0.12);
}
.figure:last-child { border-right: 0; }

.figure b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.figure b i {
  font-style: normal;
  color: var(--red);
  font-size: 0.54em;
  vertical-align: 0.3em;
  margin-left: 2px;
}
.figure span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--ash);
}

/* --------------------------------------------------------------------------
   栏目页（列表页）
   -------------------------------------------------------------------------- */
.col-head {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(36px, 4vw, 56px) 0 clamp(28px, 3vw, 40px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(242, 239, 233, 0.12);
}

.col-head__bg {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: min(34vw, 340px);
  opacity: 0.08;
  pointer-events: none;
}

.col-head h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 14px 0 0;
}

.col-head__lead {
  margin: 16px 0 0;
  max-width: 62ch;
  color: rgba(242, 239, 233, 0.62);
  font-size: 15px;
  line-height: 1.9;
}

.crumbs2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: rgba(242, 239, 233, 0.45);
}
.crumbs2 a:hover { color: var(--paper); }
.crumbs2 span.sep { color: rgba(242, 239, 233, 0.28); }

.col-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: clamp(28px, 3.4vw, 52px);
  align-items: start;
  padding-block: clamp(32px, 4vw, 56px);
}

/* 过滤标签 */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tabs a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  padding: 7px 14px;
  border: 1px solid rgba(12, 12, 13, 0.18);
  color: #55555a;
  transition: all var(--speed) var(--ease);
}
.tabs a:hover { border-color: var(--red); color: var(--red); }
.tabs a.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* 列表工具条 */
.list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(12, 12, 13, 0.14);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: #8a8a8e;
}

/* 右栏 */
.sidebar { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 76px; }

.side-box { border: 1px solid rgba(12, 12, 13, 0.14); background: #fbf9f5; }

.side-box__head {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(12, 12, 13, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.side-box__head b { font-size: 15px; letter-spacing: 0.04em; }
.side-box__head span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--red); }

.side-box__body { padding: 6px 18px 14px; }

.side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(12, 12, 13, 0.12);
  font-size: 14.5px;
  color: var(--ink);
}
.side-link:last-child { border-bottom: 0; }
.side-link:hover { color: var(--red); }
.side-link i { font-style: normal; font-family: var(--font-mono); font-size: 11.5px; color: #a0a0a4; }

.side-contact { padding: 16px 18px 18px; }
.side-contact p { margin: 0 0 10px; font-size: 14px; line-height: 1.8; color: #55555a; }
.side-contact b { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.02em; }

/* --------------------------------------------------------------------------
   文章页
   -------------------------------------------------------------------------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: clamp(28px, 3.4vw, 52px);
  align-items: start;
  padding-block: clamp(28px, 3.4vw, 46px);
}

.article { background: #fbf9f5; border: 1px solid rgba(12, 12, 13, 0.12); padding: clamp(24px, 3.4vw, 48px); }

.article__head { border-bottom: 1px solid rgba(12, 12, 13, 0.14); padding-bottom: 20px; margin-bottom: 26px; }

.article__cat {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
}

.article__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 12px 0 0;
  text-wrap: balance;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: #8a8a8e;
}

.article__meta b { font-weight: 400; color: #55555a; }

.article__body { font-size: 17.5px; line-height: 2.05; color: #26262a; }
.article__body > *:first-child { margin-top: 0; }
.article__body p { margin: 0 0 1.1em; }
.article__body h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin: 2em 0 0.7em;
  padding-left: 12px;
  border-left: 3px solid var(--red);
  line-height: 1.4;
}
.article__body h3 { font-size: 18px; font-weight: 700; margin: 1.6em 0 0.5em; }
.article__body ul, .article__body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.article__body li { margin-bottom: 0.45em; }
.article__body ul li { list-style: disc; }
.article__body ol li { list-style: decimal; }
.article__body img { margin: 1.4em 0; border: 1px solid rgba(12, 12, 13, 0.1); }
.article__body a { color: var(--red); border-bottom: 1px solid rgba(216, 31, 36, 0.35); }
.article__body blockquote {
  margin: 1.6em 0;
  padding: 14px 20px;
  background: rgba(12, 12, 13, 0.04);
  border-left: 3px solid var(--ink);
  font-size: 16.5px;
}
.article__body table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15.5px; }
.article__body th, .article__body td { border: 1px solid rgba(12, 12, 13, 0.16); padding: 9px 12px; text-align: left; }
.article__body th { background: rgba(12, 12, 13, 0.05); font-weight: 700; }

.article__foot {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(12, 12, 13, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: #8a8a8e;
}
.article__foot a:hover { color: var(--red); }

.article-nav {
  margin-top: 26px;
  display: grid;
  gap: 1px;
  background: rgba(12, 12, 13, 0.12);
  border: 1px solid rgba(12, 12, 13, 0.12);
}
.article-nav a {
  background: #fbf9f5;
  padding: 14px 18px;
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 15px;
  transition: background var(--speed) var(--ease);
}
.article-nav a:hover { background: #fff; }
.article-nav span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--red); white-space: nowrap; }

/* 分页 */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 28px;
  justify-content: center;
}
.pager .page-numbers {
  min-width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(12, 12, 13, 0.18);
  font-family: var(--font-mono);
  font-size: 13px;
  color: #55555a;
  background: #fbf9f5;
}
.pager .page-numbers:hover { border-color: var(--red); color: var(--red); }
.pager .current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pager .dots { border: 0; background: transparent; }

/* 空状态 */
.empty {
  border: 1px solid rgba(12, 12, 13, 0.14);
  background: #fbf9f5;
  padding: clamp(28px, 4vw, 56px);
  text-align: center;
}
.empty h2 { font-family: var(--font-display); font-size: 22px; margin: 0 0 10px; }
.empty p { color: #55555a; font-size: 15px; margin: 0; }

/* --------------------------------------------------------------------------
   门户页脚
   -------------------------------------------------------------------------- */
.footer--portal {
  background: var(--ink-2);
  color: var(--paper);
  border-top: 1px solid rgba(242, 239, 233, 0.1);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(242, 239, 233, 0.1);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--ash);
  flex-wrap: wrap;
}
.footer-links a { color: rgba(242, 239, 233, 0.7); }
.footer-links a:hover { color: var(--red); }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .feature { grid-template-columns: 1fr; }
  .slides { min-height: 0; }
  .biz-split { grid-template-columns: 1fr; }
  .col-body, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; order: 2; }
  .nav-main a { padding: 0 15px; font-size: 15px; }
}

@media (max-width: 900px) {
  .masthead__meta { display: none; }
  .masthead__inner { padding-block: 18px; }
  .masthead__brand img { width: 44px; height: 44px; }
  .nav-main { overflow-x: auto; scrollbar-width: none; }
  .nav-main::-webkit-scrollbar { display: none; }
  .navbar__inner { gap: 12px; }
  .navbar__aside .btn { display: none; }
  .biz-grid { grid-template-columns: 1fr; }
  .biz-card { min-height: 0; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figure { border-bottom: 1px solid rgba(242, 239, 233, 0.12); }
  .figure:nth-child(2n) { border-right: 0; }
  .figure:nth-child(n + 3) { border-bottom: 0; }
}

@media (max-width: 640px) {
  .utility__left span.hide-sm { display: none; }
  .utility__left span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
  .utility__date { display: none; }
  .utility__inner { min-height: 34px; gap: 10px; }
  .utility__right { margin-left: auto; }
  .search-mini input { width: 88px; }
  .masthead__name b { font-size: 21px; }
  .masthead__name i { font-size: 8px; letter-spacing: 0.24em; }
  .nav-main a { padding: 0 13px; font-size: 14.5px; min-height: 48px; }
  .navbar__inner { min-height: 48px; }
  .row { grid-template-columns: 74px minmax(0, 1fr); gap: 12px; }
  .row__tag { display: none; }
  .row__title { font-size: 15.5px; }
  .feature { padding-block: 20px; }
  .slide { padding: 20px; }
  .slide__mark { display: none; }
  .article { padding: 20px 18px; }
  .article__body { font-size: 17px; }
  .block__head { flex-wrap: wrap; gap: 10px; }
}

/* --------------------------------------------------------------------------
   补充组件
   -------------------------------------------------------------------------- */
.sub-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(28px, 3.2vw, 44px);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(12, 12, 13, 0.14);
}

.sub-head h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0;
}

.crumbs2--ink { color: rgba(12, 12, 13, 0.45); }
.crumbs2--ink a:hover { color: var(--red); }
.crumbs2--ink span.sep { color: rgba(12, 12, 13, 0.25); }

.comp-note { padding-left: clamp(0px, 2vw, 24px); }
.comp-note h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.32;
  margin: 14px 0 12px;
  color: var(--paper);
}
.comp-note p {
  color: rgba(242, 239, 233, 0.6);
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 20px;
  max-width: 34ch;
}

.block--ink .empty h2 { color: var(--paper); }

/* 文章正文里的图片与表格在小屏下的处理 */
@media (max-width: 640px) {
  .article__body table { display: block; overflow-x: auto; }
  .comp-note { padding-left: 0; }
}

/* 平板与手机上的头条比例与导航密度 */
@media (max-width: 1080px) {
  .slides { aspect-ratio: 2 / 1; }
}

@media (max-width: 640px) {
  .slides { aspect-ratio: 4 / 3; }
  .navbar__inner { min-height: 0; }
  .nav-main {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    overflow: visible;
  }
  .nav-main a {
    justify-content: center;
    padding: 0 4px;
    min-height: 42px;
    font-size: 14px;
    border-bottom: 1px solid rgba(242, 239, 233, 0.06);
  }
  .nav-main a.is-active::after { left: 18%; right: 18%; }
}

/* ==========================================================================
   BCASRC 平台组件
   ========================================================================== */

/* 顶栏 */
.snav {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(242, 239, 233, 0.14);
  position: sticky;
  top: 0;
  z-index: 90;
}
.snav.is-stuck {
  background: rgba(12, 12, 13, 0.95);
  backdrop-filter: blur(12px) saturate(140%);
}
.snav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}
.snav__brand { display: flex; align-items: center; gap: 12px; flex: none; }
.snav__brand img { width: 36px; height: 36px; object-fit: contain; }
.snav__name { display: flex; flex-direction: column; line-height: 1.15; }
.snav__name b { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: 0.08em; }
.snav__name i { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ash); margin-top: 3px; }
.snav__menu { display: flex; align-items: stretch; gap: 0; }
.snav__menu a {
  position: relative;
  display: flex; align-items: center;
  padding: 0 16px; min-height: 64px;
  white-space: nowrap; flex: none;
  font-size: 15.5px; color: rgba(242, 239, 233, 0.76);
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.snav__menu a:hover { color: var(--paper); background: rgba(242, 239, 233, 0.05); }
.snav__menu a.is-active { color: var(--paper); }
.snav__menu a.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--red); }
.snav__user { display: flex; align-items: center; gap: 16px; flex: none; }
.snav__points { font-family: var(--font-mono); font-size: 12.5px; color: var(--red); border: 1px solid rgba(216,31,36,.4); padding: 4px 10px; }
.snav__link { font-size: 14.5px; color: rgba(242, 239, 233, 0.78); }
.snav__link:hover { color: var(--red); }

/* 首屏 */
.shero {
  background:
    radial-gradient(circle at 85% 20%, rgba(216, 31, 36, 0.22), transparent 45%),
    repeating-linear-gradient(to right, rgba(242,239,233,0.05) 0 1px, transparent 1px calc(100% / 6)),
    var(--ink);
  color: var(--paper);
  padding-block: clamp(56px, 8vh, 96px) clamp(40px, 6vh, 72px);
  position: relative;
  overflow: hidden;
}
.shero__title { font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 62px); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 20px 0 0; }
.shero__desc { margin: 22px 0 0; max-width: 58ch; color: rgba(242, 239, 233, 0.7); font-size: 16.5px; line-height: 1.9; }
.shero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.shero__actions .btn--ghost { --btn-line: rgba(242,239,233,.3); --btn-fg: var(--paper); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(36px, 5vh, 56px);
  border: 1px solid rgba(242, 239, 233, 0.16);
}
.stat { padding: 22px 24px; border-right: 1px solid rgba(242, 239, 233, 0.12); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; color: var(--paper); }
.stat span { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--ash); }

/* 等级徽标 */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border: 1px solid rgba(12,12,13,.25);
  color: #55555a;
  white-space: nowrap;
}
.badge.sev-sever { background: #7d0a0e; border-color: #7d0a0e; color: #fff; }
.badge.sev-high { background: rgba(216,31,36,.12); border-color: var(--red); color: var(--red); }
.badge.sev-medium { border-color: rgba(12,12,13,.4); color: var(--ink); }
.badge.sev-low { border-style: dashed; }

.row__side { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.src-code { font-family: var(--font-mono); font-size: 12px; color: #5f5f63; }

/* 状态 */
.status { display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; }
.status.is-approved { color: var(--red); }
.status.is-pending { color: #8a8a8e; }
.status.is-rejected { color: #8a8a8e; text-decoration: line-through; }

/* 表格 */
.src-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.src-table th, .src-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(12,12,13,.1); vertical-align: top; }
.src-table th { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; color: #8a8a8e; font-weight: 400; border-bottom: 2px solid var(--ink); }
.src-table__num { font-family: var(--font-mono); }
.src-table__note td { color: #8a8a8e; font-size: 13.5px; padding-top: 0; }

/* 排行 */
.rank { border-top: 2px solid var(--ink); }
.rank__item {
  display: grid; grid-template-columns: 40px minmax(0,1fr) auto;
  gap: 14px; align-items: baseline;
  padding: 12px 4px; border-bottom: 1px solid rgba(12,12,13,.1);
}
.rank__pos { font-family: var(--font-display); font-weight: 800; color: var(--red); }
.rank__name { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank__pts { font-family: var(--font-mono); font-size: 12.5px; color: #5f5f63; }

/* 表单面板 */
.panel {
  background: #fbf9f5;
  border: 1px solid rgba(12,12,13,.14);
  padding: clamp(22px, 3vw, 40px);
}
.panel__section { margin: 6px 0 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(12,12,13,.12); }
.panel__section h3 { font-family: var(--font-display); font-size: 17px; margin: 0; }
.panel__hint { margin: 6px 0 0; font-size: 13.5px; color: #8a8a8e; }
.form__msg.is-ok { border-color: var(--ink); background: rgba(12,12,13,.04); }
.form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field--check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: #55555a; }
.field--check input { width: 15px; height: 15px; }

.side-list { padding: 4px 0; }
.side-list li {
  position: relative;
  padding: 8px 0 8px 16px;
  font-size: 14px; line-height: 1.7; color: #55555a;
  border-bottom: 1px dashed rgba(12,12,13,.1);
}
.side-list li:last-child { border-bottom: 0; }
.side-list li::before { content: ""; position: absolute; left: 0; top: 16px; width: 6px; height: 1px; background: var(--red); }

/* 礼品 */
.gift-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gift {
  background: #fbf9f5;
  border: 1px solid rgba(12,12,13,.14);
  padding: 22px 22px 18px;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color var(--speed) var(--ease);
}
.gift:hover { border-color: rgba(216,31,36,.4); }
.gift__head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.gift__title { font-family: var(--font-display); font-size: 19px; font-weight: 800; margin: 0; }
.gift__pts { font-family: var(--font-mono); font-size: 13px; color: var(--red); white-space: nowrap; }
.gift__desc { margin: 10px 0 14px; font-size: 14px; line-height: 1.8; color: #55555a; }
.gift__desc p { margin: 0 0 .5em; }
.gift__desc p:last-child { margin-bottom: 0; }
.gift__foot {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid rgba(12,12,13,.1);
  display: flex; flex-direction: column; gap: 10px;
}
.gift__stock { font-family: var(--font-mono); font-size: 11.5px; color: #8a8a8e; }
.gift__form { display: flex; gap: 8px; }
.gift__contact {
  flex: 1; min-width: 0;
  background: transparent; border: 1px solid rgba(12,12,13,.2);
  padding: 9px 12px; font-size: 13.5px; font-family: var(--font-sans); border-radius: 0;
}
.gift__contact:focus { outline: none; border-color: var(--red); }
.gift__form .btn { padding: 9px 18px; }

/* 响应式 */
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid rgba(242,239,233,.12); }
  .stat:nth-child(2n) { border-right: 0; }
  .gift-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .snav__name i { display: none; }
  .snav__menu { overflow-x: auto; scrollbar-width: none; }
  .snav__menu::-webkit-scrollbar { display: none; }
  .snav__points { display: none; }
}
@media (max-width: 640px) {
  .snav__inner { flex-wrap: wrap; padding-block: 10px; }
  .snav__menu { order: 3; width: 100%; }
  .snav__menu a { min-height: 44px; font-size: 14px; padding: 0 12px; }
  .form__row--3 { grid-template-columns: 1fr; }
  .row__side { display: none; }
}

/* 输入框带边框 */
.field input,
.field textarea,
.field select {
  border: 1px solid rgba(12,12,13,.24);
  background: #fbf9f5;
  padding: 11px 14px;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--red); }
.field--check input,
.field--check input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 16px !important;
  height: 16px;
  padding: 0;
  border: 1px solid rgba(12,12,13,.3);
  background: #fff;
  accent-color: var(--red);
  flex: none;
}
.field--check { align-items: flex-start; line-height: 1.6; color: #55555a; font-size: 14px; }
.form__note a,
.form__note a:visited { color: var(--red); border-bottom: 1px solid rgba(216,31,36,.4); }
.form__note a:hover { border-bottom-color: var(--red); }
.panel a { color: var(--red); }

.rank-history { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.rank-history__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; color: #8a8a8e; }
.rank-history a {
  font-family: var(--font-mono); font-size: 12px;
  padding: 4px 10px; border: 1px solid rgba(12,12,13,.18); color: #55555a;
}
.rank-history a:hover { border-color: var(--red); color: var(--red); }
.rank-history a.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.notice-list { display: grid; gap: 1px; background: rgba(12,12,13,.12); border: 1px solid rgba(12,12,13,.12); }
.notice-item { background: #fbf9f5; padding: 24px 26px; }
.notice-item__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.notice-item__head h2 { font-family: var(--font-display); font-size: 19px; margin: 0; }
.src-author, .src-type { font-size: 13.5px; color: #5f5f63; }

/* 等级徽标配色区分 */
.badge.sev-high { background: #e8590c; border-color: #e8590c; color: #fff; }
.badge.sev-medium { background: rgba(201, 151, 0, 0.14); border-color: #c99700; color: #8a6d00; }
.badge.sev-low { background: rgba(107, 114, 128, 0.1); border-color: #9ca3af; color: #4b5563; border-style: solid; }

/* 数据条可点击 */
a.stat { display: block; transition: background var(--speed) var(--ease); }
a.stat:hover { background: rgba(242, 239, 233, 0.06); }
a.stat:hover b { color: var(--red); }

/* 验证码 */
.form__row--captcha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}
.captcha-question {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: rgba(216, 31, 36, 0.06);
  border: 1px dashed rgba(216, 31, 36, 0.4);
  padding: 11px 16px;
  white-space: nowrap;
}
.captcha-question strong { color: var(--red); }

/* 排行筛选 */
.rank-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  padding: 16px 0 20px;
  border-bottom: 1px solid rgba(12,12,13,.12);
  margin-bottom: 18px;
}
.rank-filter__group { display: flex; flex-direction: column; gap: 6px; }
.rank-filter__group label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: #8a8a8e;
}
.rank-filter__group select {
  min-width: 130px;
  background: #fbf9f5;
  border: 1px solid rgba(12,12,13,.24);
  padding: 9px 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  border-radius: 0;
  color: var(--ink);
}
.rank-filter .btn { padding: 10px 18px; }

/* 兑换页积分规则 */
.gift-rules { max-width: 560px; }

@media (max-width: 640px) {
  .form__row--captcha { grid-template-columns: 1fr; }
  .captcha-question { justify-self: start; }
}

/* 礼品图与弹窗 */
.gift__thumb {
  margin: -22px -22px 16px;
  border-bottom: 1px solid rgba(12,12,13,.1);
  background: var(--paper-2);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}
.gift__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gift__thumb--empty span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .3em; color: #b5b5b9; }
.gift { padding-top: 0; }
.gift__head { padding-top: 16px; }

.gift-modal {
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0;
  max-width: 520px;
  width: calc(100% - 32px);
  background: #fbf9f5;
  color: var(--ink);
}
.gift-modal::backdrop { background: rgba(12, 12, 13, 0.6); }
.gift-modal__head {
  display: flex; align-items: baseline; gap: 12px;
  background: var(--ink); color: var(--paper);
  padding: 14px 20px;
}
.gift-modal__head h3 { font-family: var(--font-display); font-size: 18px; margin: 0; flex: 1; }
.gift-modal__close { color: var(--paper); font-size: 20px; line-height: 1; padding: 0 4px; }
.gift-modal__close:hover { color: var(--red); }
.gift-modal__body { padding: 20px; }
.gift-modal__body .form { margin-top: 14px; }

/* 公告卡片 */
.notice-card {
  background: #fbf9f5;
  border: 1px solid rgba(12,12,13,.12);
  padding: 20px 22px 16px;
  margin-bottom: 14px;
  transition: border-color var(--speed) var(--ease);
}
.notice-card:hover { border-color: rgba(216,31,36,.4); }
.notice-card.is-top { border-left: 3px solid var(--red); }
.notice-card__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.notice-card__head h2 { font-family: var(--font-display); font-size: 17px; margin: 0; line-height: 1.5; }
.notice-card__head h2 a:hover { color: var(--red); }
.notice-card__meta { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 11px; color: #a0a0a4; white-space: nowrap; }
.notice-card__excerpt { margin: 8px 0 10px; font-size: 14px; line-height: 1.8; color: #55555a; }
.notice-card__more { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--red); }
.src-top {
  display: inline-block;
  background: var(--red); color: #fff;
  font-size: 11px; padding: 1px 7px; margin-right: 8px;
  vertical-align: 2px;
}

/* 驳回重投提示 */
.form__hint {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  color: #8a8a8e; margin-top: 6px; display: block;
}

/* 搜索条 */
.searchbar {
  padding: 14px 0 18px;
  border-bottom: 1px solid rgba(12,12,13,.12);
  margin-bottom: 16px;
}
.searchbar form { display: flex; gap: 10px; flex-wrap: wrap; }
.searchbar input[type="text"] {
  flex: 1; min-width: 220px;
  background: #fbf9f5;
  border: 1px solid rgba(12,12,13,.24);
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--ink);
  border-radius: 0;
}
.searchbar input[type="text"]:focus { outline: none; border-color: var(--red); }
.searchbar .btn { padding: 11px 22px; }

/* 历史榜单（贴合主题） */
.rank-history {
  margin-top: 28px;
  padding: 14px 16px;
  background: #fbf9f5;
  border: 1px solid rgba(12,12,13,.12);
  border-left: 3px solid rgba(12,12,13,.3);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.rank-history__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: #8a8a8e;
  white-space: nowrap;
}
.rank-history__form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rank-history select {
  min-width: 92px;
  background: var(--paper);
  border: 1px solid rgba(12,12,13,.24);
  padding: 8px 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink);
  border-radius: 0;
  appearance: none;
  background-image: none;
}
.rank-history select:focus { outline: none; border-color: var(--red); }
.rank-history select:hover { border-color: rgba(216,31,36,.5); }
.btn--sm { padding: 8px 18px; font-size: 12px; }

/* 文件类型弹窗入口 */
.filetype-link {
  background: none;
  border: 0;
  padding: 0;
  margin: -4px 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--red);
  border-bottom: 1px solid rgba(216,31,36,.4);
  cursor: pointer;
}
.filetype-link:hover { border-bottom-color: var(--red); }
.filetype-modal {
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0;
  max-width: 560px;
  width: calc(100% - 32px);
  background: #fbf9f5;
  color: var(--ink);
}
.filetype-modal::backdrop { background: rgba(12, 12, 13, 0.6); }

/* 详情页返回 */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #55555a;
}
.article-back:hover { color: var(--red); }
.article-back__arrow {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(12,12,13,.25);
  font-size: 15px;
  transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.article-back:hover .article-back__arrow { border-color: var(--red); }

/* 公告卡片分类 */
.notice-card__cat {
  background: rgba(12,12,13,.06);
  padding: 1px 8px;
  color: #55555a;
}

/* 礼品详情弹窗：左图右信息 */
.gift-modal { max-width: 860px; }
.gift-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.gift-gallery__main {
  position: relative;
  background: var(--paper-2);
  border: 1px solid rgba(12,12,13,.12);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gift-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gift-gallery__main--empty span {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em; color: #b5b5b9;
}
.gift-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 44px;
  display: grid; place-items: center;
  background: rgba(12,12,13,.55);
  color: var(--paper);
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--speed) var(--ease);
}
.gift-gallery__nav:hover { background: var(--red); }
.gift-gallery__nav--prev { left: 0; }
.gift-gallery__nav--next { right: 0; }

.gift-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.gift-gallery__thumb {
  flex: 0 0 auto;
  width: 60px; height: 60px;
  padding: 0;
  border: 1px solid rgba(12,12,13,.18);
  background: var(--paper-2);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--speed) var(--ease);
}
.gift-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gift-gallery__thumb.is-active { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.gift-gallery__thumb:hover { border-color: rgba(216,31,36,.5); }

.gift-info__price {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(12,12,13,.12);
  font-family: var(--font-mono);
  font-size: 13px; color: #55555a;
}
.gift-info__price b {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 800;
  color: var(--red);
  letter-spacing: -0.01em;
}
.gift-info__stock { margin-left: auto; font-size: 11.5px; color: #8a8a8e; }
.gift-info__desc { margin: 14px 0 4px; font-size: 14.5px; line-height: 1.9; color: #55555a; }
.gift-info .panel__section { margin-top: 18px; }
.gift-info .form__note { margin-bottom: 10px; }
.gift-info .js-gift-msg { margin-bottom: 10px; }
.gift-info .js-gift-msg[hidden] { display: none; }

/* 附件选择控件 */
.filefield {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 12px;
  border: 1px solid rgba(12,12,13,.24);
  background: var(--paper);
  padding: 8px;
  cursor: pointer;
  transition: border-color var(--speed) var(--ease);
}
.filefield:hover { border-color: rgba(216,31,36,.5); }
.filefield:focus-within { border-color: var(--red); }
.filefield__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.filefield__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  pointer-events: none;
  transition: background var(--speed) var(--ease);
}
.filefield:hover .filefield__btn { background: var(--red); }
.filefield__text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 13.5px;
  color: #8a8a8e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 760px) {
  .gift-detail { grid-template-columns: 1fr; }
  .gift-gallery__main { aspect-ratio: 4 / 3; }
}

/* 弹窗在矮屏可滚动 */
.gift-modal { max-height: 90vh; overflow: auto; }
.gift-modal__body { max-height: none; }
