/* 顶部公告 / 活动共用轨道，以及公告列表的精致化覆盖。 */
.top-rail {
  position: relative;
  overflow: hidden;
  margin: 0 0 12px;
  border-radius: var(--r-card, 16px);
  box-shadow: 0 9px 24px rgba(42, 29, 22, 0.12);
}

.top-rail-viewport {
  overflow: hidden;
}

.top-rail-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.22, 0.78, 0.2, 1);
  will-change: transform;
}

.top-rail-slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
}

.top-rail-dots {
  position: absolute;
  z-index: 4;
  bottom: 7px;
  left: 50%;
  display: flex;
  gap: 4px;
  transform: translateX(-50%);
}

.activity-dot {
  width: 5px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.38);
  cursor: pointer;
  transition:
    width 0.18s ease,
    background 0.18s ease;
}

.activity-dot.on {
  width: 14px;
  background: rgba(255, 248, 238, 0.92);
}

/* ---------- 公告 slide ---------- */
.top-rail .nt-banner {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 88px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #fff8ee;
  box-shadow: none;
}

.top-rail .nt-banner::after {
  content: "NOTICE";
  position: absolute;
  right: -2px;
  bottom: -17px;
  color: rgba(255, 248, 238, 0.08);
  font: 700 48px/1 var(--font-mono, monospace);
  letter-spacing: 0.08em;
  pointer-events: none;
}

.top-rail .nt-b-urgent {
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 238, 220, 0.18), transparent 28%),
    linear-gradient(135deg, #5d201a 0%, #913b31 56%, #c36350 100%);
}

.top-rail .nt-b-warn {
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 247, 220, 0.22), transparent 28%),
    linear-gradient(135deg, #5b3b12 0%, #8e6420 56%, #c6953f 100%);
}

.top-rail .nt-b-info {
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #343638 0%, #5f6265 58%, #8b8d8e 100%);
}

.top-rail .nt-b-news {
  background:
    radial-gradient(circle at 92% 18%, rgba(230, 255, 245, 0.18), transparent 28%),
    linear-gradient(135deg, #183f37 0%, #276d5f 58%, #4b9b86 100%);
}

.top-rail .nt-main {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 14px 52px 19px 16px;
  border: 0;
  color: #fff8ee;
  background: transparent;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.top-rail .nt-main:active {
  background: rgba(255, 255, 255, 0.05);
}

.top-rail .nt-row1 {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.top-rail .nt-chip {
  flex: none;
  padding: 3px 8px;
  border: 1px solid rgba(255, 248, 238, 0.22);
  border-radius: 999px;
  color: rgba(255, 248, 238, 0.88);
  background: rgba(255, 248, 238, 0.13);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.top-rail .nt-title {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #fff8ee;
  font: 700 14.5px/1.3 var(--font-display, serif);
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-rail .nt-open {
  flex: none;
  color: rgba(255, 248, 238, 0.72);
  font-size: 10px;
}

.top-rail .nt-snip {
  display: block;
  overflow: hidden;
  margin-top: 6px;
  padding-right: 15px;
  color: rgba(255, 248, 238, 0.73);
  font-size: 10.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-rail .nt-all {
  position: absolute;
  z-index: 3;
  right: 36px;
  bottom: 9px;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 248, 238, 0.18);
  border-radius: 999px;
  color: rgba(255, 248, 238, 0.76);
  background: rgba(40, 18, 12, 0.12);
  font-size: 9px;
  line-height: 1.3;
  cursor: pointer;
}

.top-rail .nt-x {
  position: absolute;
  z-index: 5;
  top: 8px;
  right: 8px;
  display: grid;
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 248, 238, 0.72);
  background: rgba(40, 18, 12, 0.17);
  font-size: 11px;
  cursor: pointer;
}

/* ---------- 活动 slides ---------- */
.activity-slide {
  position: relative;
  min-height: 88px;
  overflow: hidden;
  color: #fff8ee;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 244, 220, 0.2), transparent 28%),
    linear-gradient(135deg, #713225 0%, #a74933 58%, #c46d4d 100%);
}

.activity-slide::after {
  content: "SHARE";
  position: absolute;
  right: -2px;
  bottom: -17px;
  color: rgba(255, 248, 238, 0.08);
  font: 700 48px/1 var(--font-mono, monospace);
  letter-spacing: 0.08em;
  pointer-events: none;
}

.activity-slide-sub {
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 247, 219, 0.18), transparent 28%),
    linear-gradient(135deg, #5a2b20 0%, #8d3d2b 54%, #b96646 100%);
}

.activity-main {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  min-height: 88px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 48px 19px 16px;
  border: 0;
  color: #fff8ee;
  background: transparent;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.activity-main:active {
  background: rgba(255, 255, 255, 0.05);
}

.activity-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.activity-copy b {
  overflow: hidden;
  color: #fff8ee;
  font: 700 14.5px/1.3 var(--font-display, serif);
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-copy span {
  overflow: hidden;
  color: rgba(255, 248, 238, 0.74);
  font-size: 10.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-cta {
  flex: none;
  padding: 7px 10px;
  border: 1px solid rgba(255, 248, 238, 0.3);
  border-radius: 999px;
  color: #fff8ee;
  background: rgba(255, 248, 238, 0.1);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.activity-cta-ghost {
  background: transparent;
}

.activity-close {
  position: absolute;
  z-index: 5;
  top: 8px;
  right: 8px;
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 248, 238, 0.72);
  background: rgba(40, 18, 12, 0.17);
  font-size: 11px;
  cursor: pointer;
}

/* ---------- 公告列表 / 详情 ---------- */
.notice-list {
  padding-top: 2px;
}

.notice-list .nt-sec {
  margin: 17px 3px 7px;
  color: var(--on-surface-variant);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.notice-list .nt-row {
  position: relative;
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: flex-start;
  margin-bottom: 8px;
  padding: 13px 14px;
  border: 1px solid var(--outline);
  border-radius: 14px;
  color: var(--on-surface);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), transparent 55%),
    var(--surface);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.notice-list .nt-row:active {
  background: var(--surface-variant);
}

.notice-list .nt-row.is-ended {
  opacity: 0.58;
}

.notice-list .nt-row .nt-chip {
  margin-right: 10px;
  margin-top: 1px;
}

.notice-list .nt-row-main {
  min-width: 0;
  flex: 1;
}

.notice-list .nt-row-title {
  color: var(--on-surface);
  font: 700 13.5px/1.4 var(--font-display, serif);
}

.notice-list .nt-row-sub,
.notice-list .nt-row-snip {
  color: var(--on-surface-variant);
  line-height: 1.55;
}

.nt-meta {
  margin-bottom: 16px;
}

.notice-body {
  color: var(--on-surface);
  font-size: var(--fs-body);
  line-height: 1.95;
}

.notice-card {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(32, 20, 14, 0.24);
}

.notice-card .modal-title {
  font-family: var(--font-display, serif);
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
  .top-rail-track {
    transition: none;
  }
}

@media (max-width: 420px) {
  .top-rail .nt-main,
  .activity-main {
    min-height: 84px;
    padding: 12px 44px 18px 13px;
  }
  .top-rail .nt-title,
  .activity-copy b {
    font-size: 13.5px;
  }
  .top-rail .nt-snip,
  .activity-copy span {
    font-size: 10px;
  }
  .activity-cta {
    padding: 6px 9px;
    font-size: 9.5px;
  }
}
