/* 美夕儿 · 内容站首页 — 酒红丝绒 + 玫瑰香槟（与情缘典 style.css 同系） */
:root {
  --hub-bg: #0c060a;
  --hub-bg-mid: #1a0a12;
  --hub-bg-plum: #2a1020;
  --hub-surface: rgba(42, 16, 32, 0.82);
  --hub-surface-2: rgba(255, 249, 246, 0.07);
  --hub-border: rgba(242, 221, 184, 0.18);
  --hub-border-strong: rgba(242, 221, 184, 0.32);

  --hub-gold: #f2ddb8;
  --hub-gold-dim: #d4a86a;
  --hub-gold-soft: rgba(242, 221, 184, 0.38);
  --hub-gold-glow: rgba(242, 221, 184, 0.14);

  --hub-rose: #e87898;
  --hub-rose-deep: #c44a6a;
  --hub-rose-soft: rgba(232, 120, 152, 0.28);
  --hub-blush: #f0b8c8;
  --hub-champagne: #ffe8d0;

  --hub-accent: #e87898;
  --hub-accent-dim: #c44a6a;
  --hub-jade: var(--hub-accent);
  --hub-jade-dim: var(--hub-accent-dim);

  --hub-violet: #c49ab8;
  --hub-plum-light: #4a2838;

  --hub-text: #fff8f5;
  --hub-text-soft: rgba(255, 248, 252, 0.84);
  --hub-muted: rgba(255, 236, 244, 0.56);

  --hub-radius: 18px;
  --hub-font-display: 'STKaiti', 'KaiTi', '楷体', 'FangSong', cursive;
  --hub-font-body: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --hub-shadow: 0 20px 48px rgba(8, 2, 6, 0.55);
  --hub-shadow-rose: 0 12px 36px rgba(196, 74, 106, 0.18);
}

body.hub-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--hub-font-body);
  color: var(--hub-text);
  background: var(--hub-bg);
  line-height: 1.55;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.hub-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 55% at 50% -8%, rgba(232, 120, 152, 0.14), transparent 58%),
    radial-gradient(ellipse 55% 45% at 100% 25%, rgba(212, 168, 106, 0.1), transparent 52%),
    radial-gradient(ellipse 50% 40% at 0% 75%, rgba(196, 74, 106, 0.12), transparent 48%),
    linear-gradient(175deg, var(--hub-bg) 0%, var(--hub-bg-mid) 38%, var(--hub-bg-plum) 68%, var(--hub-bg) 100%);
}

.hub-bg__grid {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(242, 221, 184, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 221, 184, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hub-wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 32px;
}

/* Header · v22 玻璃顶栏（无右上角「我」） */
.hub-header {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 -16px 10px;
  padding: 0 16px;
  padding-top: env(safe-area-inset-top, 0px);
}

.hub-header__bar {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 10px 9px;
  border-radius: 0 0 20px 20px;
  border: 1px solid color-mix(in srgb, var(--hub-border-strong) 75%, transparent);
  border-top: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--hub-bg-plum) 92%, transparent), color-mix(in srgb, var(--hub-bg-mid) 88%, transparent)),
    linear-gradient(90deg, color-mix(in srgb, var(--hub-rose) 6%, transparent), transparent 40%, color-mix(in srgb, var(--hub-gold-dim) 5%, transparent));
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow:
    0 10px 36px color-mix(in srgb, var(--hub-bg) 55%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 7%, transparent);
  overflow: hidden;
}

.hub-header__bar::after {
  content: '';
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hub-gold-soft), transparent);
  pointer-events: none;
}

/* 手机 · 汉堡菜单 */
.hub-menu-btn {
  display: none;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--hub-bg-plum) 72%, transparent);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s, background 0.15s;
}

.hub-menu-btn:hover,
.hub-menu-btn:active {
  border-color: var(--hub-border-strong);
  background: var(--hub-rose-soft);
}

.hub-menu-btn__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--hub-champagne), var(--hub-gold));
}

.hub-hide-mobile {
  display: flex;
}

.hub-show-mobile {
  display: none;
}

@media (max-width: 719px) {
  .hub-hide-mobile {
    display: none !important;
  }

  .hub-show-mobile {
    display: block;
  }

  .hub-show-mobile.hub-guides-quick {
    display: flex;
  }

  .hub-menu-btn {
    display: inline-flex;
  }

  .hub-header {
    margin-bottom: 6px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .hub-header__bar {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 8px;
    padding: 7px 8px 8px;
    border-radius: 0 0 16px 16px;
  }

  .hub-header .hub-menu-btn {
    grid-column: 1;
    grid-row: 1;
  }

  .hub-header .hub-brand {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .hub-header .hub-header__actions {
    grid-column: 3;
    grid-row: 1;
    gap: 0;
  }

  .hub-header .hub-site-nav {
    display: none !important;
  }

  .hub-header .hub-btn-theme {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .hub-brand__mark {
    font-size: 1.22rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hub-site-nav--sub {
    display: none !important;
  }
}

/* 左侧抽屉 · 手机导航 */
.hub-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  visibility: hidden;
}

.hub-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.hub-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--hub-bg) 62%, transparent);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.hub-drawer.is-open .hub-drawer__backdrop {
  opacity: 1;
}

.hub-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 300px);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--hub-bg-plum) 98%, transparent) 0%,
    color-mix(in srgb, var(--hub-bg-mid) 99%, transparent) 55%,
    var(--hub-bg) 100%
  );
  border-right: 1px solid var(--hub-border-strong);
  box-shadow: 12px 0 40px color-mix(in srgb, var(--hub-bg) 45%, transparent);
  transform: translateX(-104%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.hub-drawer.is-open .hub-drawer__panel {
  transform: translateX(0);
}

.hub-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--hub-border);
}

.hub-drawer__mark {
  display: block;
  font-family: var(--hub-font-display);
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  background: linear-gradient(118deg, var(--hub-champagne), var(--hub-rose), var(--hub-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hub-drawer__sub {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  color: var(--hub-muted);
  letter-spacing: 0.1em;
}

.hub-drawer__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--hub-border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--hub-bg-mid) 80%, transparent);
  color: var(--hub-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.hub-drawer__scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 12px 16px;
  -webkit-overflow-scrolling: touch;
}

.hub-drawer__group {
  margin-bottom: 18px;
}

.hub-drawer__group-title {
  margin: 0 0 8px;
  padding: 0 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--hub-gold-dim);
  text-transform: uppercase;
}

.hub-drawer__group-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hub-drawer__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--hub-text-soft);
  font-family: inherit;
  font-size: 0.88rem;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.hub-drawer__item:hover,
.hub-drawer__item:active,
.hub-drawer__item.is-active {
  background: var(--hub-rose-soft);
  border-color: var(--hub-border);
  color: var(--hub-champagne);
}

.hub-drawer__item.is-active .hub-drawer__item-icon {
  box-shadow: 0 0 0 1px var(--hub-gold-soft);
}

.hub-drawer__item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--hub-surface-2);
  font-size: 1.05rem;
}

.hub-drawer__item-label {
  flex: 1;
  min-width: 0;
}

.hub-drawer__item-arrow {
  flex-shrink: 0;
  color: var(--hub-muted);
  font-size: 1rem;
  opacity: 0.7;
}

.hub-drawer__badge {
  position: absolute;
  top: 8px;
  left: 38px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff3b4a;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 16px;
  border: 2px solid var(--hub-bg-mid);
}

.hub-drawer__foot {
  padding: 12px 16px 16px;
  font-size: 0.68rem;
  color: var(--hub-muted);
  text-align: center;
  border-top: 1px solid var(--hub-border);
  letter-spacing: 0.06em;
}

body.hub-drawer-open {
  overflow: hidden;
}

@media (min-width: 720px) {
  .hub-drawer {
    display: none;
  }
}

.hub-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.hub-brand__mark {
  font-family: var(--hub-font-display);
  font-size: 1.42rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  background: linear-gradient(118deg, var(--hub-champagne) 0%, var(--hub-rose) 48%, var(--hub-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.hub-brand__sub {
  display: block;
  font-size: 0.68rem;
  color: var(--hub-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hub-nav {
  display: none;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (min-width: 720px) {
  .hub-nav {
    display: flex;
  }
}

.hub-nav a {
  font-size: 0.78rem;
  color: var(--hub-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.hub-nav a:hover,
.hub-nav a.is-active {
  color: var(--hub-champagne);
  border-color: var(--hub-border-strong);
  background: var(--hub-rose-soft);
}

/* 全站顶栏：茶肆 / 攻略 / 活动 / 游戏（含手机端） */
.hub-site-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.hub-header .hub-site-nav a {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 719px) {
  .hub-header .hub-site-nav {
    display: none;
  }
}

@media (min-width: 720px) and (max-width: 860px) {
  .hub-header .hub-site-nav a {
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  .hub-brand__mark {
    font-size: 1.28rem;
  }
}

.hub-site-nav a {
  font-size: 0.74rem;
  color: var(--hub-muted);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.hub-site-nav a:hover,
.hub-site-nav a.is-active {
  color: var(--hub-champagne);
  border-color: var(--hub-border-strong);
  background: var(--hub-rose-soft);
}

.tea-wrap > .hub-site-nav,
.guide-wrap > .hub-site-nav,
.games-page .hub-site-nav--sub {
  margin: 0 0 14px;
  padding: 8px 10px;
  border-radius: var(--hub-radius, 14px);
  border: 1px solid var(--hub-border-strong);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--hub-bg-plum) 75%, transparent),
    color-mix(in srgb, var(--hub-bg) 80%, transparent)
  );
}

.hub-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  position: relative;
}

.hub-header__tools-inner {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 3px 2px 4px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--hub-border) 90%, transparent);
  background: color-mix(in srgb, var(--hub-bg) 45%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 5%, transparent);
  flex-shrink: 0;
}

.hub-header__tools-inner .hub-mood {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 2px;
}

.hub-header__tools-inner .hub-btn-theme {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border-color: transparent;
  background: transparent;
}

.hub-header__tools-inner .hub-btn-theme:hover,
.hub-header__tools-inner .hub-btn-theme[aria-expanded='true'] {
  background: var(--hub-rose-soft);
  border-color: color-mix(in srgb, var(--hub-border-strong) 60%, transparent);
}

@media (min-width: 720px) {
  .hub-header__bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    padding: 8px 12px 9px;
  }

  .hub-header .hub-brand {
    grid-column: 1;
  }

  .hub-header .hub-site-nav {
    grid-column: 2;
    justify-content: center;
  }

  .hub-header .hub-header__actions {
    grid-column: 3;
  }

  .hub-site-nav a {
    padding: 5px 11px;
    font-size: 0.76rem;
  }
}

/* 安心 / 开心 · header 模式切换（紧凑分段） */
.hub-mood-mount {
  flex-shrink: 0;
}

.hub-mood {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--hub-border) 88%, transparent);
  background: color-mix(in srgb, var(--hub-bg-plum) 55%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 6%, transparent);
  gap: 0;
}

.hub-mood__track {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--hub-rose-soft) 92%, transparent),
    color-mix(in srgb, var(--hub-gold-glow) 75%, transparent)
  );
  border: 1px solid color-mix(in srgb, var(--hub-gold-dim) 45%, transparent);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--hub-rose) 22%, transparent);
  transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
  pointer-events: none;
}

.hub-mood:has(.hub-mood__seg[data-mood='happy'].is-active) .hub-mood__track {
  transform: translateX(100%);
}

.hub-mood__seg {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 5px 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--hub-muted);
  font-family: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s;
}

.hub-mood__seg.is-active {
  color: var(--hub-champagne);
}

.hub-mood__seg:not(.is-active):hover {
  color: var(--hub-text-soft);
}

.hub-mood__glyph {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.hub-mood__glyph--calm {
  background: linear-gradient(145deg, #9eb8ff, #6a8fd4);
  box-shadow: 0 0 0 1px color-mix(in srgb, #fff 25%, transparent);
}

.hub-mood__glyph--calm::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(circle at 35% 35%, #fff 8%, transparent 45%);
  opacity: 0.85;
}

.hub-mood__glyph--happy {
  background: linear-gradient(145deg, #ff9eb8, #ffb86c);
  box-shadow: 0 0 0 1px color-mix(in srgb, #fff 20%, transparent);
}

.hub-mood__glyph--happy::after {
  content: '✦';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.52rem;
  color: #fff;
  line-height: 1;
}

@media (max-width: 719px) {
  .hub-mood__seg {
    padding: 6px 8px;
    gap: 0;
  }

  .hub-mood__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hub-mood__glyph {
    width: 16px;
    height: 16px;
  }

  .hub-header .hub-mood {
    padding: 2px;
  }

  .hub-header .hub-mood__seg {
    padding: 7px 9px;
  }
}

/* 开心模式页顶栏复用 */
.hm-topbar .hub-mood {
  margin-right: 2px;
}

.hub-theme-mount {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
}

.hub-btn-theme {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--hub-border);
  background: color-mix(in srgb, var(--hub-bg-plum) 82%, transparent);
  color: var(--hub-gold);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.hub-btn-theme:hover,
.hub-btn-theme[aria-expanded='true'] {
  border-color: var(--hub-border-strong);
  background: var(--hub-rose-soft);
  transform: scale(1.02);
}

.hub-theme-pop {
  display: none;
  width: min(320px, calc(100vw - 32px));
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid var(--hub-border-strong);
  background: color-mix(in srgb, var(--hub-bg-mid) 94%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: var(--hub-shadow);
}

.hub-theme-pop.is-open {
  display: block;
}

.hub-theme-pop__title {
  margin: 0 0 10px;
  font-family: var(--hub-font-display);
  font-size: 1.1rem;
  color: var(--hub-gold);
}

.hub-theme-pop__group {
  margin: 8px 0 6px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--hub-muted);
}

.hub-theme-pop__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hub-theme-pop__chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--hub-border);
  background: var(--hub-surface-2);
  color: var(--hub-text-soft);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.72rem;
  transition: border-color 0.15s, background 0.15s;
}

.hub-theme-pop__chip:hover,
.hub-theme-pop__chip.is-active {
  border-color: var(--hub-gold-dim);
  background: var(--hub-gold-glow);
}

.hub-theme-pop__chip.is-active .hub-theme-pop__name {
  color: var(--hub-champagne);
}

.hub-theme-pop__swatch {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.hub-theme-pop__swatch i {
  display: block;
  width: 14px;
  height: 5px;
  border-radius: 2px;
}

.hub-theme-pop__hint {
  margin: 10px 0 0;
  font-size: 0.65rem;
  color: var(--hub-muted);
  line-height: 1.4;
}

.hub-btn-my {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.hub-btn-my__ring {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--hub-border-strong);
  background: linear-gradient(145deg, var(--hub-bg-plum), var(--hub-bg-mid));
  box-shadow: var(--hub-shadow-rose), inset 0 0 12px var(--hub-gold-glow);
}

.hub-btn-my__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hub-btn-my__img[hidden] {
  display: none;
}

.hub-btn-my__fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 44px;
  font-family: var(--hub-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--hub-gold);
  line-height: 1;
  user-select: none;
}

.hub-btn-my__badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff3b4a;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border: 2px solid #1a0a12;
  box-shadow: 0 0 0 1px rgba(255, 59, 74, 0.5), 0 2px 8px rgba(255, 59, 74, 0.45);
  z-index: 2;
  pointer-events: none;
}

.hub-btn-my--has-badge .hub-btn-my__ring {
  border-color: rgba(255, 59, 74, 0.55);
}

/* 幻灯片 · 更多入口（默认折叠，避免与主导航重复） */
.hub-hero-entries {
  margin: -8px 0 18px;
}

.hub-hero-entries.hidden {
  display: none;
}

.hub-hero-entries__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px dashed var(--hub-border);
  background: rgba(26, 10, 18, 0.55);
  color: var(--hub-muted);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.hub-hero-entries__toggle:hover,
.hub-hero-entries__toggle:active {
  border-color: var(--hub-border-strong);
  background: rgba(42, 16, 32, 0.65);
  color: var(--hub-champagne);
}

.hub-hero-entries__toggle-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--hub-gold-glow);
  color: var(--hub-gold);
  font-size: 0.95rem;
}

.hub-hero-entries__toggle-text {
  font-weight: 600;
  color: var(--hub-text-soft);
  letter-spacing: 0.06em;
}

.hub-hero-entries__toggle-hint {
  flex: 1;
  min-width: 0;
  font-size: 0.68rem;
  color: var(--hub-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.hub-hero-entries__toggle-caret {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--hub-gold-dim);
  border-bottom: 2px solid var(--hub-gold-dim);
  transform: rotate(-45deg);
  transition: transform 0.2s;
}

.hub-hero-entries--expanded .hub-hero-entries__toggle-caret {
  transform: rotate(45deg);
  margin-top: 4px;
}

.hub-hero-entries__panel {
  padding-top: 10px;
}

.hub-hero-entries__scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hub-hero-entries__scroll::-webkit-scrollbar {
  display: none;
}

.hub-hero-entry {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hub-border);
  background: rgba(42, 16, 32, 0.65);
  color: var(--hub-text-soft);
  font-family: inherit;
  font-size: 0.78rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.hub-hero-entry:hover,
.hub-hero-entry:active {
  border-color: var(--hub-border-strong);
  background: rgba(74, 28, 44, 0.45);
  color: var(--hub-champagne);
}

.hub-hero-entry__icon {
  font-size: 0.9rem;
  line-height: 1;
}

@media (min-width: 720px) {
  .hub-hero-entries__scroll {
    flex-wrap: wrap;
    overflow: visible;
  }
}

@media (max-width: 719px) {
  .hub-hero-entries__toggle-hint {
    display: none;
  }
}

/* Hero · 轮播 */
.hub-hero {
  position: relative;
  border-radius: calc(var(--hub-radius) + 4px);
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--hub-border);
  box-shadow: var(--hub-shadow);
}

.hub-hero--carousel {
  min-height: min(48vw, 260px);
}

.hub-hero__slides {
  position: relative;
  min-height: inherit;
}

.hub-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s;
  pointer-events: none;
}

.hub-hero__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hub-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hub-border-strong);
  background: rgba(12, 6, 10, 0.65);
  color: var(--hub-gold);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.hub-hero__nav--prev {
  left: 10px;
}

.hub-hero__nav--next {
  right: 10px;
}

.hub-hero__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hub-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 248, 252, 0.35);
  cursor: pointer;
}

.hub-hero__dot.is-active {
  background: var(--hub-gold);
  box-shadow: 0 0 8px var(--hub-gold-glow);
}

.hub-hero__media {
  position: relative;
  height: min(48vw, 260px);
  min-height: 200px;
}

.hub-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.03) sepia(0.06);
}

.hub-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    rgba(12, 6, 10, 0.94) 0%,
    rgba(42, 16, 32, 0.42) 50%,
    rgba(26, 10, 18, 0.88) 100%
  );
}

.hub-hero__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 22px;
}

.hub-hero__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--hub-blush);
  margin: 0 0 6px;
}

.hub-hero__title {
  font-family: var(--hub-font-display);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 8px;
  line-height: 1.2;
}

.hub-hero__desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--hub-muted);
  max-width: 32em;
}

/* 主导航 · 好友 / 好友帖 / 茶肆 / 攻略 / 活动 / 档案 */
.hub-pnav {
  --pnav-icon: 36px;
}

.hub-pnav--quick {
  display: none;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.hub-pnav--dock {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  padding: 7px 4px 5px;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--hub-bg-mid) 96%, transparent) 0%,
    color-mix(in srgb, var(--hub-bg) 98%, transparent) 100%
  );
  border: 1px solid var(--hub-border-strong);
  backdrop-filter: blur(18px);
  box-shadow: var(--hub-shadow), inset 0 1px 0 color-mix(in srgb, var(--hub-gold) 8%, transparent);
}

@media (min-width: 720px) {
  .hub-pnav--quick {
    display: grid;
  }
  .hub-pnav--dock {
    display: none;
  }
}

.hub-pnav__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 8px 4px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--hub-muted);
  font-family: inherit;
  font-size: 0.68rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.hub-pnav--quick .hub-pnav__item {
  padding: 12px 6px;
  border: 1px solid var(--hub-border);
  background: rgba(26, 10, 18, 0.55);
  backdrop-filter: blur(8px);
}

.hub-pnav__item:hover,
.hub-pnav__item:active,
.hub-pnav__item.is-active {
  color: var(--hub-champagne);
  background: var(--hub-rose-soft);
}

.hub-pnav--quick .hub-pnav__item:hover,
.hub-pnav--quick .hub-pnav__item.is-active {
  border-color: var(--hub-border-strong);
}

.hub-pnav__item--friends,
.hub-pnav__item--friends.is-active {
  color: var(--hub-gold);
}

.hub-pnav__icon {
  width: var(--pnav-icon);
  height: var(--pnav-icon);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hub-pnav--dock .hub-pnav__icon {
  --pnav-icon: 32px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.hub-pnav__icon--friends {
  background: linear-gradient(145deg, #ffb84d, #e89050);
}
.hub-pnav__icon--friends::before { content: '🤝'; }

.hub-pnav__icon--ffeed {
  background: linear-gradient(145deg, #c9a0ff, #8b6fd4);
}
.hub-pnav__icon--ffeed::before { content: '◎'; }

.hub-pnav__icon--tea {
  background: linear-gradient(145deg, var(--hub-rose), var(--hub-gold-dim));
}
.hub-pnav__icon--tea::before { content: '🍵'; }

.hub-pnav__icon--guide {
  background: linear-gradient(145deg, #7eb8ff, #4a7fd4);
}
.hub-pnav__icon--guide::before { content: '📖'; }

.hub-pnav__icon--event {
  background: linear-gradient(145deg, var(--hub-gold), var(--hub-rose-deep));
}
.hub-pnav__icon--event::before { content: '🎋'; }

.hub-pnav__icon--profile {
  background: linear-gradient(145deg, var(--hub-violet), var(--hub-rose));
}
.hub-pnav__icon--profile::before { content: '💝'; }

.hub-pnav__icon--happy {
  background: linear-gradient(145deg, #ff9eb8, #ffb86c);
}
.hub-pnav__icon--happy::before { content: '🎉'; }

.hub-pnav__icon--cocreate {
  background: rgba(232, 120, 152, 0.14);
  border: 1px solid rgba(232, 120, 152, 0.35);
  font-family: var(--hub-font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--hub-champagne);
}
.hub-pnav__icon--cocreate::before { content: '创'; }

.hub-pnav__item--cocreate.is-active .hub-pnav__icon--cocreate,
.hub-pnav__item--cocreate:hover .hub-pnav__icon--cocreate {
  background: rgba(232, 120, 152, 0.28);
  border-color: var(--hub-rose);
}

.hub-pnav__item--duo {
  gap: 4px;
}

.hub-pnav__duo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.hub-pnav__duo-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.hub-pnav__duo-btn.is-active,
.hub-pnav__duo-btn:hover {
  background: var(--hub-rose-soft);
  color: var(--hub-champagne);
}

.hub-pnav__icon--duo {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 0.95rem;
}

.hub-pnav__duo .hub-pnav__badge {
  top: -4px;
  right: -2px;
}

.hub-pnav__item--happy {
  border: 1px solid rgba(255, 180, 140, 0.35);
  background: rgba(255, 140, 100, 0.1);
}

.hub-pnav__label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.hub-pnav--dock .hub-pnav__label {
  font-size: 0.58rem;
  transform: scale(0.95);
}

.hub-pnav__badge {
  position: absolute;
  top: 2px;
  right: 8%;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff3b4a;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 16px;
  border: 2px solid #1a0a12;
  pointer-events: none;
}

.hub-pnav__badge--quick {
  top: 6px;
  right: 14%;
}

/* Sections */
.hub-section {
  margin-bottom: 36px;
  scroll-margin-top: 72px;
}

.hub-section__head {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hub-section__title-block {
  flex: 1;
  min-width: 0;
}

.hub-section__head h2 {
  font-family: var(--hub-font-display);
  font-size: clamp(1.28rem, 4vw, 1.55rem);
  font-weight: 400;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.25;
}

.hub-section__glyph {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--hub-font-display);
  font-size: 1rem;
  color: var(--hub-champagne);
  border: 1px solid var(--hub-border);
  background: linear-gradient(145deg, var(--hub-rose-soft), color-mix(in srgb, var(--hub-bg-plum) 80%, transparent));
  box-shadow: inset 0 1px 0 var(--hub-gold-glow);
}

.hub-section__glyph--tea::before { content: '茶'; }
.hub-section__glyph--guide::before { content: '略'; }
.hub-section__glyph--bounty::before { content: '赏'; }
.hub-section__glyph--events::before { content: '典'; }

.hub-section__sub {
  margin: 0;
  font-size: 0.74rem;
  color: var(--hub-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-section__actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  align-items: center;
}

.hub-action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--hub-border);
  background: var(--hub-surface-2);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.hub-action-chip:hover {
  border-color: var(--hub-border-strong);
  background: var(--hub-gold-glow);
  transform: translateY(-1px);
}

.hub-action-chip__glyph {
  font-family: var(--hub-font-display);
  font-size: 1rem;
  color: var(--hub-gold);
  line-height: 1;
}

.hub-action-chip--gold {
  border-color: color-mix(in srgb, var(--hub-gold-dim) 45%, transparent);
  background: color-mix(in srgb, var(--hub-gold) 12%, transparent);
}

.hub-action-chip--gold .hub-action-chip__glyph {
  color: var(--hub-champagne);
}

.hub-action-chip--guide .hub-action-chip__glyph { color: var(--hub-rose); }
.hub-action-chip--bounty .hub-action-chip__glyph { color: var(--hub-gold); }
.hub-action-chip--events .hub-action-chip__glyph { color: var(--hub-blush); }

.hub-link-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--hub-border);
  background: color-mix(in srgb, var(--hub-bg-plum) 55%, transparent);
  color: var(--hub-text-soft);
  text-decoration: none;
  font-size: 0.82rem;
  transition: border-color 0.15s, color 0.15s;
}

.hub-link-more:hover {
  border-color: var(--hub-border-strong);
  color: var(--hub-gold);
}

.hub-link-more__glyph {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--hub-font-display);
  font-size: 0.85rem;
  color: var(--hub-gold);
  border: 1px solid var(--hub-border);
  background: var(--hub-surface-2);
}

.hub-link-more__arrow {
  color: var(--hub-muted);
  font-size: 1rem;
}

.hub-guide-rail__foot {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.68rem;
  color: var(--hub-muted);
  letter-spacing: 0.06em;
}

.hub-guide-rail--home .hub-guide-rail__viewport {
  margin: 0 -4px;
}

@media (max-width: 719px) {
  .hub-section__head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .hub-section__sub {
    font-size: 0.68rem;
  }

  .hub-section__glyph {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .hub-action-chip {
    width: 36px;
    height: 36px;
  }
}

/* Guide tabs */
.hub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.hub-tab {
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--hub-border);
  background: transparent;
  color: var(--hub-muted);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}

.hub-tab.is-active {
  color: #fff8f5;
  background: linear-gradient(135deg, var(--hub-rose-deep), var(--hub-rose));
  border-color: transparent;
  box-shadow: var(--hub-shadow-rose);
}

.hub-guide-panel {
  display: none;
}

.hub-guide-panel.is-active {
  display: block;
}

.hub-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.hub-card {
  border-radius: var(--hub-radius);
  overflow: hidden;
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  backdrop-filter: blur(12px);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--hub-border-strong);
  box-shadow: var(--hub-shadow), var(--hub-shadow-rose);
}

.hub-card--link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.hub-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hub-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-card__thumb--video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.hub-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--hub-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hub-card__dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}

.hub-card__body {
  padding: 14px 16px 16px;
}

.hub-card__tag {
  display: inline-block;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--hub-rose-soft);
  color: var(--hub-blush);
  margin-bottom: 8px;
}

.hub-card__title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.hub-card__excerpt {
  margin: 0;
  font-size: 0.8rem;
  color: var(--hub-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hub-card__meta {
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--hub-muted);
}

/* Weekly realm */
.hub-realm {
  display: grid;
  gap: 16px;
  border-radius: calc(var(--hub-radius) + 2px);
  overflow: hidden;
  border: 1px solid var(--hub-border);
  background: var(--hub-surface);
  backdrop-filter: blur(14px);
}

@media (min-width: 640px) {
  .hub-realm {
    grid-template-columns: 1.1fr 1fr;
  }
}

.hub-realm__cover {
  position: relative;
  min-height: 200px;
}

.hub-realm__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
}

.hub-realm__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  background: rgba(12, 6, 10, 0.82);
  border: 1px solid var(--hub-border-strong);
  color: var(--hub-gold);
}

.hub-realm__content {
  padding: 20px 22px;
}

.hub-realm__week {
  font-size: 0.75rem;
  color: var(--hub-gold);
  letter-spacing: 0.1em;
  margin: 0 0 4px;
}

.hub-realm__name {
  font-family: var(--hub-font-display);
  font-size: 1.5rem;
  margin: 0 0 10px;
}

.hub-realm__summary {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--hub-muted);
}

.hub-realm__diff {
  font-size: 0.82rem;
  color: var(--hub-rose);
  margin-bottom: 12px;
}

.hub-realm__rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.hub-realm__rewards span {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--hub-surface-2);
  border: 1px solid var(--hub-border);
}

.hub-realm__tips {
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.82rem;
  color: var(--hub-muted);
}

.hub-realm__tips li {
  margin-bottom: 6px;
}

/* Dungeons scroll */
.hub-dungeon-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.hub-dungeon {
  flex: 0 0 min(280px, 85vw);
  scroll-snap-align: start;
  padding: 18px;
  border-radius: var(--hub-radius);
  border: 1px solid var(--hub-border);
  background: var(--hub-surface);
  position: relative;
  overflow: hidden;
}

.hub-dungeon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--dungeon-accent, var(--hub-jade));
}

.hub-dungeon[data-accent='gold']::before { background: var(--hub-gold); }
.hub-dungeon[data-accent='jade']::before { background: var(--hub-blush); }
.hub-dungeon[data-accent='rose']::before { background: var(--hub-rose); }
.hub-dungeon[data-accent='violet']::before { background: var(--hub-violet); }

.hub-dungeon__name {
  font-family: var(--hub-font-display);
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.hub-dungeon__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--hub-muted);
  margin-bottom: 4px;
}

.hub-dungeon__drops {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--hub-blush);
}

.hub-dungeon__note {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--hub-gold);
}

/* Hidden quests */
.hub-quest-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hub-quest {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--hub-radius);
  border: 1px solid var(--hub-border);
  background: linear-gradient(90deg, rgba(42, 16, 32, 0.65), var(--hub-surface));
}

.hub-quest__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--hub-rose-soft);
  border: 1px dashed var(--hub-border-strong);
  color: var(--hub-gold);
}

.hub-quest__title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
}

.hub-quest__hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--hub-muted);
}

.hub-quest__region {
  font-size: 0.7rem;
  color: var(--hub-gold-dim);
}

.hub-quest__status {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.hub-quest__status--ok {
  background: var(--hub-rose-soft);
  color: var(--hub-blush);
}

.hub-quest__status--wait {
  background: rgba(232, 200, 120, 0.15);
  color: var(--hub-gold);
}

.hub-quest__status--lock {
  background: rgba(255, 255, 255, 0.06);
  color: var(--hub-muted);
}

.hub-section__cta {
  flex-shrink: 0;
  white-space: nowrap;
}

.hub-section__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.hub-btn--gold {
  border-color: rgba(201, 162, 39, 0.55);
  color: var(--hub-gold);
  background: rgba(201, 162, 39, 0.12);
}

.hub-section__cta--sm {
  font-size: 0.78rem;
  padding: 6px 12px;
}

/* 最新活动 */
.hub-events {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .hub-events {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.hub-event-item:hover {
  transform: translateY(-2px);
  border-color: var(--hub-border-strong);
  box-shadow: var(--hub-shadow-rose);
}

.hub-event-item__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hub-event-item__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hub-event-item__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12, 6, 10, 0.85) 100%);
}

.hub-event-item__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(12, 6, 10, 0.75);
  border: 1px solid var(--hub-border);
  color: var(--hub-gold);
}

.hub-event-item__badge--live {
  color: #fff;
  background: linear-gradient(135deg, var(--hub-rose-deep), var(--hub-rose));
  border-color: transparent;
}

.hub-event-item__badge--archive {
  color: var(--hub-muted);
}

.hub-event-item__badge--soon {
  color: var(--hub-blush);
  border-color: var(--hub-rose-soft);
}

.hub-event-item__body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hub-event-item__title {
  margin: 0 0 6px;
  font-family: var(--hub-font-display);
  font-size: 1.15rem;
  color: var(--hub-champagne);
}

.hub-event-item__sub {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: var(--hub-muted);
  flex: 1;
  line-height: 1.5;
}

.hub-event-item__date {
  margin: 0 0 10px;
  font-size: 0.72rem;
  color: var(--hub-rose);
}

.hub-event-item__cta {
  font-size: 0.82rem;
  color: var(--hub-gold);
  letter-spacing: 0.04em;
}

.hub-qi--event::before {
  background: linear-gradient(135deg, var(--hub-gold-dim), var(--hub-rose));
}

.hub-qi--profile::before {
  background: linear-gradient(135deg, var(--hub-violet), var(--hub-rose));
}

.hub-event-card {
  border-radius: var(--hub-radius);
  padding: 22px;
  border: 1px solid var(--hub-border-strong);
  background: linear-gradient(148deg, rgba(74, 28, 44, 0.55) 0%, rgba(26, 10, 18, 0.95) 55%, rgba(12, 6, 10, 0.98) 100%);
  box-shadow: var(--hub-shadow-rose), inset 0 1px 0 var(--hub-gold-glow);
}

.hub-event-card__badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--hub-gold);
  margin-bottom: 10px;
}

.hub-event-card__title {
  font-family: var(--hub-font-display);
  font-size: 1.35rem;
  margin: 0 0 8px;
}

.hub-event-card__sub {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--hub-muted);
}

.hub-event-card__date {
  font-size: 0.78rem;
  color: var(--hub-rose);
  margin-bottom: 16px;
}

.hub-event-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.hub-btn--primary {
  background: linear-gradient(135deg, var(--hub-gold) 0%, var(--hub-gold-dim) 100%);
  color: #2a1018;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(212, 168, 106, 0.35);
}

.hub-btn--ghost {
  background: transparent;
  color: var(--hub-text);
  border: 1px solid var(--hub-border);
}

.hub-btn:hover {
  transform: translateY(-1px);
}

/* Forum */
.hub-forum {
  border-radius: var(--hub-radius);
  border: 1px solid var(--hub-border);
  background: var(--hub-surface);
  overflow: hidden;
}

.hub-forum__head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--hub-border);
}

.hub-forum__head h3 {
  font-family: var(--hub-font-display);
  font-size: 1.2rem;
  margin: 0 0 4px;
}

.hub-thread {
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.hub-thread:last-child {
  border-bottom: none;
}

.hub-thread:hover {
  background: rgba(255, 255, 255, 0.04);
}

.hub-thread__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.hub-thread__author {
  font-size: 0.75rem;
  color: var(--hub-blush);
}

.hub-thread__hot {
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(232, 144, 168, 0.25);
  color: var(--hub-rose);
}

.hub-thread__title {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 600;
}

.hub-thread__excerpt {
  margin: 0;
  font-size: 0.78rem;
  color: var(--hub-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hub-thread__foot {
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--hub-muted);
}

.hub-forum__more {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-top: 1px solid var(--hub-border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--hub-muted);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.hub-thread__zone {
  font-size: 0.65rem;
  color: var(--hub-gold-dim);
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--hub-gold-glow);
}

.hub-thread__pin {
  font-size: 0.6rem;
  color: var(--hub-gold);
}

.hub-forum__more:hover {
  color: var(--hub-gold);
}

/* 手机底栏留白 */
@media (max-width: 719px) {
  body.hub-page {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 720px) {
  body.hub-page {
    padding-bottom: 32px;
  }
}

.hub-footer {
  text-align: center;
  padding: 24px 0 8px;
  font-size: 0.75rem;
  color: var(--hub-muted);
}

.hub-footer__links a {
  color: var(--hub-blush);
  text-decoration: none;
}

.hub-footer__links a:hover {
  color: var(--hub-gold);
}

.hub-footer__links span {
  margin: 0 8px;
  opacity: 0.45;
}

.hub-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  z-index: 60;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(42, 16, 32, 0.96);
  border: 1px solid var(--hub-border);
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.hub-toast.is-show {
  opacity: 1;
}

.hub-skeleton {
  animation: hubPulse 1.2s ease-in-out infinite;
  background: var(--hub-surface-2);
  border-radius: var(--hub-radius);
  min-height: 120px;
}

@keyframes hubPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* v2 · 动效与组件增强 */
.hub-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: hubOrb 18s ease-in-out infinite alternate;
}

.hub-bg__orb--1 {
  width: 280px;
  height: 280px;
  top: 12%;
  left: -8%;
  background: color-mix(in srgb, var(--hub-rose) 20%, transparent);
}

.hub-bg__orb--2 {
  width: 220px;
  height: 220px;
  top: 45%;
  right: -6%;
  background: color-mix(in srgb, var(--hub-gold-dim) 16%, transparent);
  animation-delay: -6s;
}

.hub-bg__orb--3 {
  width: 180px;
  height: 180px;
  bottom: 8%;
  left: 30%;
  background: color-mix(in srgb, var(--hub-rose-deep) 14%, transparent);
  animation-delay: -12s;
}

@keyframes hubOrb {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(24px, -18px) scale(1.08); }
}

.hub-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hub-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hub-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hub-bg__orb {
    animation: none;
  }
}

/* 首屏：JS 未就绪前区块立即可见，避免长时间 opacity:0 */
.hub-page:not(.hub-motion-ready) .hub-reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.hub-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hub-hero__actions .hub-btn {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.hub-stats.hidden {
  display: none;
}

.hub-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.hub-stat {
  text-align: center;
  padding: 14px 10px;
  border-radius: 14px;
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  backdrop-filter: blur(10px);
}

.hub-stat__value {
  display: block;
  font-family: var(--hub-font-display);
  font-size: 1.45rem;
  color: var(--hub-gold);
  line-height: 1.2;
}

.hub-stat__label {
  font-size: 0.68rem;
  color: var(--hub-muted);
  letter-spacing: 0.08em;
}

@media (max-width: 719px) {
  #hubStats {
    display: none !important;
  }
}

.hub-qi {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: -2px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--hub-rose), var(--hub-rose-deep));
}

.hub-qi--realm { background: linear-gradient(135deg, var(--hub-blush), var(--hub-violet)); }
.hub-qi--dungeon { background: linear-gradient(135deg, var(--hub-gold), var(--hub-gold-dim)); }
.hub-qi--hidden { background: linear-gradient(135deg, var(--hub-violet), var(--hub-rose-deep)); }
.hub-qi--tea { background: linear-gradient(135deg, var(--hub-rose), var(--hub-gold-dim)); }
.hub-qi--game { background: linear-gradient(135deg, var(--hub-violet), var(--hub-rose)); }

.hub-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hub-filter--scroll {
  scrollbar-width: none;
}

.hub-filter--scroll::-webkit-scrollbar {
  display: none;
}

@media (max-width: 719px) {
  .hub-section--guides .hub-tabs {
    margin-bottom: 10px;
  }

  .hub-section--guides .hub-tab {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .hub-section--guides .hub-filter--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 8px;
    padding-bottom: 2px;
  }

  .hub-section--guides .hub-filter__btn {
    flex-shrink: 0;
  }

  .hub-section--guides .guide-stats-line {
    margin: 0 0 8px;
    font-size: 0.72rem;
  }

  .hub-section--guides .hub-guide-preview__more {
    margin-top: 8px;
    padding: 10px;
    font-size: 0.82rem;
  }
}

.hub-filter__btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--hub-border);
  background: transparent;
  color: var(--hub-muted);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}

.hub-filter__btn.is-active {
  color: #fff8f5;
  background: linear-gradient(135deg, var(--hub-rose-deep), var(--hub-rose));
  border-color: transparent;
}

.hub-filter__btn:hover:not(.is-active) {
  color: var(--hub-champagne);
  border-color: var(--hub-border-strong);
}

.hub-card-grid--uniform {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.hub-card-grid--uniform .hub-card__thumb {
  aspect-ratio: 16 / 10;
}

.hub-card.is-filtered-out {
  display: none;
}

.hub-card__thumb img {
  transition: transform 0.4s ease;
}

.hub-card:hover .hub-card__thumb img {
  transform: scale(1.04);
}

.hub-scroll-ctrl {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.hub-scroll-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hub-border);
  background: var(--hub-surface);
  color: var(--hub-text);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.hub-scroll-btn:hover {
  border-color: var(--hub-border-strong);
  color: var(--hub-gold);
}

.hub-dungeon-wrap {
  position: relative;
}

.hub-dungeon-wrap::before,
.hub-dungeon-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 8px;
  width: 28px;
  z-index: 2;
  pointer-events: none;
}

.hub-dungeon-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--hub-bg), transparent);
}

.hub-dungeon-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--hub-bg), transparent);
}

.hub-quest {
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.hub-quest.is-expanded {
  border-color: var(--hub-border-strong);
  background: linear-gradient(90deg, rgba(74, 28, 44, 0.4), var(--hub-surface));
}

.hub-quest__detail {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 0 0 58px;
  font-size: 0.82rem;
  color: var(--hub-muted);
  display: none;
}

.hub-quest.is-expanded .hub-quest__detail {
  display: block;
}

.hub-quest-list .hub-quest {
  grid-template-columns: auto 1fr auto;
}

.hub-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hub-sheet.hidden {
  display: none;
}

.hub-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.hub-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 78vh;
  overflow: auto;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, var(--hub-bg-plum) 0%, var(--hub-bg-mid) 45%, var(--hub-bg) 100%);
  border: 1px solid var(--hub-border-strong);
  animation: hubSheetUp 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hubSheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.hub-sheet__head {
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--hub-border);
}

.hub-sheet__close {
  float: right;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--hub-surface-2);
  color: var(--hub-text);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.hub-sheet__tag {
  margin: 0 0 6px;
  font-size: 0.72rem;
  color: var(--hub-gold-dim);
}

.hub-sheet__title {
  margin: 0 0 8px;
  font-family: var(--hub-font-display);
  font-size: 1.35rem;
  font-weight: 400;
  clear: left;
}

.hub-sheet__meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--hub-muted);
}

.hub-sheet__body {
  padding: 16px 20px 28px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--hub-text-soft, var(--hub-muted));
}

.hub-sheet__body p {
  margin: 0 0 12px;
  color: var(--hub-text-soft);
}

.hub-sheet__h {
  margin: 18px 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hub-gold);
}

.hub-sheet__h:first-child {
  margin-top: 0;
}

.hub-sheet__ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
  color: var(--hub-text-soft);
}

.hub-sheet__ul li {
  margin-bottom: 8px;
  line-height: 1.55;
}

.hub-sheet__ul li::marker {
  color: var(--hub-rose);
}

.hub-top {
  position: fixed;
  right: 16px;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hub-border-strong);
  background: rgba(26, 10, 18, 0.92);
  color: var(--hub-gold);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--hub-shadow);
  transition: opacity 0.2s, transform 0.2s;
}

.hub-top:not([hidden]) {
  display: block;
}

.hub-top:hover {
  transform: translateY(-2px);
}

@media (min-width: 720px) {
  .hub-top {
    bottom: 24px;
  }
  .hub-sheet {
    align-items: center;
  }
  .hub-sheet__panel {
    border-radius: var(--hub-radius);
    max-height: 70vh;
  }
}

.hub-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 16px;
  color: var(--hub-muted);
  font-size: 0.88rem;
}
