/* 墨凉网络工作室 — 活动中心专题页（头图 / Tab / 三列卡片） */
:root {
  --bg-deep: #030608;
  --bg-page: #061018;
  --bg-panel: #0a1624;
  --bg-card: #0f1f2e;
  --bd: rgba(56, 189, 248, 0.18);
  --bd-strong: rgba(56, 189, 248, 0.38);
  --cyan: #5eead4;
  --cyan-hot: #7dd3fc;
  --text: #eef6ff;
  --muted: #8aa4bd;
  --muted2: #5c728a;
  --badge: #d92d20;
  --nav-h: 58px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body.ref-page {
  margin: 0;
  min-height: 100%;
  background: var(--bg-page);
  color: var(--text);
  font: 14px/1.6 "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.ref-page a {
  color: inherit;
  text-decoration: none;
}

.ref-inner {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== 顶栏 ========== */
.ref-top {
  background: linear-gradient(180deg, #050d14 0%, #030910 100%);
  border-bottom: 1px solid var(--bd);
}

.ref-top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
}

.ref-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ref-brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: linear-gradient(145deg, #14b8a6, #0d9488);
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.35);
}

.ref-brand__logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.ref-brand__txt {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--text);
}

.ref-topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  justify-content: flex-end;
}

.ref-topnav a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 2px;
}

.ref-topnav a:hover {
  color: var(--text);
  background: rgba(94, 234, 212, 0.06);
}

.ref-topnav .is-on {
  color: var(--cyan);
  font-weight: 700;
  background: rgba(94, 234, 212, 0.1);
}

/* ========== 通栏头图 / 轮播 ========== */
.ref-hero {
  position: relative;
  width: 100%;
  min-height: 360px;
  background: #020508;
}

.ref-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ref-hero__carousel {
  z-index: 0;
}

.ref-hero__track {
  display: flex;
  height: 100%;
  min-height: 360px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.ref-hero__slide {
  flex-shrink: 0;
  height: 100%;
  min-height: 360px;
}

.ref-hero__slide-link {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.ref-hero__img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.ref-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(3, 8, 12, 0.15) 0%,
    rgba(3, 8, 12, 0.55) 55%,
    rgba(6, 16, 24, 0.96) 100%
  );
  pointer-events: none;
}

.ref-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 20px;
  background: rgba(3, 8, 12, 0.45);
}

.ref-hero__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ref-hero__dot:hover {
  background: rgba(255, 255, 255, 0.65);
}

.ref-hero__dot.is-active {
  background: #5eead4;
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.5);
}

.ref-hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 44px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(6, 14, 22, 0.45);
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ref-hero__arrow:hover {
  background: rgba(15, 31, 46, 0.75);
  border-color: rgba(94, 234, 212, 0.45);
  color: #5eead4;
}

.ref-hero__arrow--prev {
  left: 12px;
}

.ref-hero__arrow--prev::before {
  content: '\2039';
}

.ref-hero__arrow--next {
  right: 12px;
}

.ref-hero__arrow--next::before {
  content: '\203A';
}

.ref-hero__caption {
  position: relative;
  z-index: 2;
  padding-top: 200px;
  padding-bottom: 36px;
  pointer-events: none;
}

.ref-hero__caption a {
  pointer-events: auto;
}

.ref-hero__pretitle {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 400;
  color: rgba(238, 246, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.ref-hero__title {
  margin: 0;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 12px;
  color: #fff;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.55);
}

/* ========== 面包屑工具条 ========== */
.ref-strip {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--bd);
}

.ref-strip__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
}

.ref-crumb {
  font-size: 12px;
  color: var(--muted2);
}

.ref-crumb a {
  color: var(--cyan-hot);
}

.ref-crumb a:hover {
  text-decoration: underline;
}

.ref-crumb__sep {
  margin: 0 6px;
  opacity: 0.55;
}

.ref-strip__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.ref-toolbar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 12px;
}

.ref-toolbar a {
  color: var(--cyan-dim);
}

.ref-toolbar a:hover {
  color: var(--cyan);
}

.ref-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ref-filter__lbl {
  font-size: 12px;
  color: var(--muted2);
}

.ref-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 18px;
  border-radius: 3px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--bd);
  background: rgba(15, 31, 46, 0.95);
  color: var(--text);
}

.ref-btn:hover {
  border-color: var(--bd-strong);
  color: var(--cyan);
}

.ref-btn--back {
  border-color: rgba(94, 234, 212, 0.35);
  background: transparent;
}

.ref-btn--go {
  min-width: 52px;
  height: 32px;
  padding: 0 14px;
  border-radius: 3px;
  border: 1px solid rgba(251, 191, 36, 0.55);
  background: linear-gradient(180deg, #fcd34d, #d97706);
  color: #1a0f05;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.ref-btn--go:hover {
  filter: brightness(1.06);
  color: #1a0f05;
}

.ref-chip {
  height: 32px;
  padding: 0 16px;
  border-radius: 3px;
  border: 1px solid var(--bd);
  background: rgba(6, 14, 22, 0.9);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.ref-chip.is-on {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(94, 234, 212, 0.08);
}

.ref-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ========== 横向 Tab ========== */
.ref-tabs-wrap {
  background: var(--bg-panel);
  border-bottom: 2px solid rgba(20, 56, 71, 0.85);
}

.ref-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ref-tabs li a {
  display: block;
  padding: 16px 26px 14px;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.ref-tabs li a:hover {
  color: var(--text);
}

.ref-tabs li.is-active a {
  color: var(--text);
  font-weight: 700;
  border-bottom-color: var(--cyan);
}

/* ========== 主内容区 ========== */
.ref-main {
  padding: 28px 0 56px;
  background: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(56, 189, 248, 0.06), transparent 55%),
    var(--bg-page);
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 20px;
}

.ref-card {
  background: var(--bg-card);
  border: 1px solid var(--bd);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ref-card:hover {
  border-color: var(--bd-strong);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42);
}

.ref-card__link {
  display: block;
  color: inherit;
}

.ref-card__pic {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050a10;
  overflow: hidden;
}

.ref-card__pic img,
.ref-card__img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.3s ease;
}

.ref-card:hover .ref-card__pic img,
.ref-card:hover .ref-card__img {
  transform: scale(1.02) translateZ(0);
}

.ref-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--badge);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.ref-card__body {
  padding: 14px 16px 18px;
}

.ref-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ref-card__title {
  margin: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

.ref-card__fav {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted2);
  padding-top: 2px;
  white-space: nowrap;
}

.ref-card:hover .ref-card__fav {
  color: var(--cyan);
}

.ref-card__time {
  margin: 0 0 10px;
  font-size: 12px;
  color: rgba(125, 211, 252, 0.85);
}

.ref-card__addr {
  margin: -4px 0 10px;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

.ref-card__desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== 分页：融合（首页/尾页/页码带 + 当前/总数 + 到 + GO） ========== */
.ref-pagebar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--bd);
  box-sizing: border-box;
}

.ref-pagebar__fuse {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 12px 20px 14px;
  border-radius: 4px;
  border: 1px solid var(--bd);
  background: rgba(6, 14, 22, 0.65);
  box-sizing: border-box;
}

.ref-pagebar__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
}

.ref-pagebar__jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  padding-top: 12px;
  margin-top: 2px;
  border-top: 1px solid rgba(56, 189, 248, 0.22);
  border-left: none;
  margin-left: 0;
  padding-left: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .ref-pagebar__fuse {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: center;
    gap: 16px 24px;
  }

  .ref-pagebar__links {
    width: auto;
    max-width: none;
    justify-content: center;
  }

  .ref-pagebar__jump {
    width: auto;
    max-width: none;
    padding-top: 0;
    margin-top: 0;
    border-top: none;
    padding-left: 18px;
    margin-left: 4px;
    border-left: 1px solid rgba(56, 189, 248, 0.22);
  }
}

.ref-pagebtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 31, 46, 0.92);
  font-size: 13px;
  color: var(--text);
}

.ref-pagebtn--num {
  min-width: 38px;
  padding: 0 8px;
  font-weight: 600;
}

.ref-pagebtn--edge {
  padding: 0 12px;
  font-size: 13px;
}

.ref-pagebtn:hover:not(.is-disabled):not(.is-current) {
  border-color: var(--cyan);
  color: var(--cyan);
}

.ref-pagebtn.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.ref-pagebtn.is-current {
  border-color: #ea580c;
  background: linear-gradient(180deg, #fb923c, #ea580c);
  color: #fff;
  cursor: default;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.35);
}

.ref-page-ell {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted2);
  user-select: none;
}

.ref-pagebar__ratio {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}

.ref-pagebar__ratio-cur {
  color: #fbbf24;
  font-size: 16px;
  font-weight: 800;
}

.ref-pagebar__ratio-total {
  color: rgba(238, 246, 255, 0.82);
  font-weight: 500;
}

.ref-pagebar__to {
  font-size: 13px;
  color: #fbbf24;
  font-weight: 600;
}

.ref-pagebar__input {
  width: 56px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  background: #fff;
  color: #0f172a;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.ref-pagebar__input:focus {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.25);
}

.ref-muted {
  color: var(--muted2);
}

/* ========== 页脚 ========== */
.ref-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--bd);
  padding: 22px 0 32px;
}

.ref-footer__line {
  margin: 0;
  font-size: 12px;
  line-height: 2;
  color: var(--muted2);
  text-align: center;
}

.ref-footer__rich {
  margin: 0 auto;
  max-width: 920px;
  font-size: 12px;
  line-height: 1.85;
  color: var(--muted2);
  text-align: center;
}

.ref-footer__rich p {
  margin: 0.35em 0;
}

.ref-footer__rich a {
  color: var(--muted);
  text-decoration: underline;
}

.ref-footer__rich a:hover {
  color: var(--cyan);
}

@media (max-width: 1024px) {
  .ref-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ref-hero__title {
    font-size: 32px;
    letter-spacing: 8px;
  }

  .ref-hero__caption {
    padding-top: 140px;
  }

  .ref-hero__arrow {
    width: 36px;
    height: 56px;
    font-size: 18px;
  }

  .ref-hero__arrow--prev {
    left: 6px;
  }

  .ref-hero__arrow--next {
    right: 6px;
  }
}

@media (max-width: 640px) {
  .ref-grid {
    grid-template-columns: 1fr;
  }

  .ref-topnav {
    justify-content: flex-start;
  }
}
