/**
 * 小程序 UI 设计同步 — 默认 theme-lavender（与 miniprogram theme-behavior 一致）
 * rpx 换算：750 设计稿 → calc(N * 100vw / 750)，桌面用 min() 封顶
 */
:root {
  --rpx: calc(100vw / 750);
}

/* —— 主题 token —— */
.theme-wrap {
  --color-primary: #b8a4d4;
  --color-primary-dark: #a088c4;
  --color-primary-soft: #f0eaf8;
  --color-accent: #c9b8e0;
  --color-accent-soft: #f5f0fa;
  --color-bg-top: #faf8fc;
  --color-bg-mid: #f3eef8;
  --color-bg-bottom: #f8f5fb;
  --color-text: #5f536b;
  --color-text-soft: #9a8da8;
  --color-card: rgba(255, 255, 255, 0.92);
  --color-border: rgba(201, 184, 224, 0.55);
  --color-cover-placeholder: #f0eaf8;
  --color-error-bg: #f5f0fa;
  --color-error-border: #d4c4e8;
  --color-error-text: #8a6fa8;
  --shadow-cute: 0 4px 12px rgba(184, 164, 212, 0.16);
  --entry-gradient: linear-gradient(135deg, #f0eaf8 0%, #f5f0fa 100%);
  --entry-gradient-strong: linear-gradient(135deg, #b8a4d4 0%, #c9b8e0 100%);

  /* 兼容 user.css 旧变量 */
  --bg: var(--color-bg-bottom);
  --card: var(--color-card);
  --text: var(--color-text);
  --muted: var(--color-text-soft);
  --accent: var(--color-primary);
  --accent-dark: var(--color-primary-dark);
  --border: var(--color-border);
  --radius: 10px;
  --shadow: var(--shadow-cute);

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background: linear-gradient(
    180deg,
    var(--color-bg-top) 0%,
    var(--color-bg-mid) 50%,
    var(--color-bg-bottom) 100%
  );
}

.theme-wrap > .container,
.theme-wrap > main.container {
  flex: 1;
  position: relative;
  z-index: 2;
}

/* —— 首页背景光晕 —— */
.home-page .home-bg-overlay,
.home-page .home-bg-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.home-page .home-bg-overlay {
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--color-bg-top) 0%,
    var(--color-bg-mid) 48%,
    var(--color-bg-bottom) 100%
  );
  opacity: 0.92;
}

.home-page .home-bg-glow {
  border-radius: 50%;
  filter: blur(30px);
}

.home-page .home-bg-glow-a {
  width: min(180px, 48vw);
  height: min(180px, 48vw);
  top: 60px;
  right: -40px;
  background: var(--color-primary);
  opacity: 0.18;
}

.home-page .home-bg-glow-b {
  width: min(150px, 40vw);
  height: min(150px, 40vw);
  bottom: 100px;
  left: -30px;
  background: var(--color-accent);
  opacity: 0.16;
}

.home-container {
  padding-top: 8px;
}

/* 首页按小程序手机屏宽展示（750 设计稿 ≈ 375~430px） */
body.home-page {
  overflow-x: hidden;
}

body.home-page .container,
body.home-page .home-container {
  max-width: 430px;
  padding-left: 12px;
  padding-right: 12px;
}

body.home-page .site-footer {
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}

body.home-page .anime-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* —— 顶栏品牌行（对齐 MP top-nav） —— */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.home-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.home-brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 8px rgba(184, 164, 212, 0.25);
  object-fit: cover;
  background: var(--entry-gradient-strong);
}

.home-brand-text {
  min-width: 0;
}

.home-brand-mini {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: 0.5px;
}

.home-brand-tagline {
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-text-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-link {
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  padding: 4px 2px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover {
  text-decoration: none;
  opacity: 0.85;
}

/* —— 玻璃卡片 —— */
.theme-wrap .card {
  background: var(--color-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-cute);
  border-radius: 10px;
}

.theme-wrap .card-glass {
  background: var(--color-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* —— 搜索区（MP search-section） —— */
.search-section {
  padding: 12px;
  margin-bottom: 12px;
}

.search-shell {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  min-width: 0;
}

.search-field--wide {
  flex: 1;
}

.search-icon {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--color-text-soft);
  line-height: 1;
}

.search-section .search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 15px;
  color: var(--color-text);
  outline: none;
}

.search-action {
  flex-shrink: 0;
  min-width: 56px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 10px;
  box-shadow: var(--shadow-cute);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.search-action:hover {
  opacity: 0.92;
}

.search-action--ghost {
  background: var(--color-card);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.search-action--ghost:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.98);
}

/* —— ACG 区块标题 —— */
.acg-hub {
  margin-bottom: 16px;
  padding-top: 4px;
}

.acg-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.acg-hub-title,
.theme-wrap .section-title {
  font-size: 22px;
  font-weight: 800;
  color: #6f5f88;
  letter-spacing: 1px;
  line-height: 1.2;
}

.tools-hub-more,
.theme-wrap .section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.tools-hub-more:hover,
.theme-wrap .section-link:hover {
  text-decoration: none;
  opacity: 0.85;
}

/* —— ACG 情报站入口卡 —— */
.acg-portal-card {
  position: relative;
  display: block;
  margin-bottom: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 5px 14px rgba(111, 95, 136, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, opacity 0.15s;
}

.acg-portal-card:last-child {
  margin-bottom: 0;
}

.acg-portal-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.acg-portal-card--news {
  background: linear-gradient(135deg, #eef6ff 0%, #e3f0fb 52%, #f3f8ff 100%);
  border-color: rgba(147, 197, 253, 0.35);
}

.acg-portal-card--anime {
  background: linear-gradient(135deg, #f3effa 0%, #f8edf5 50%, #faf0f8 100%);
  border-color: rgba(216, 180, 232, 0.4);
}

.acg-portal-card--event {
  background: linear-gradient(135deg, #fff8ed 0%, #fff1e6 52%, #fff9f2 100%);
  border-color: rgba(253, 186, 140, 0.35);
}

.acg-portal-card--goods {
  background: linear-gradient(135deg, #edfafa 0%, #e8f6fc 50%, #f0f9ff 100%);
  border-color: rgba(125, 211, 192, 0.35);
}

.acg-portal-card__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(6px);
}

.acg-portal-card__glow-a {
  width: 100px;
  height: 100px;
  top: -30px;
  right: 24px;
  background: rgba(255, 255, 255, 0.55);
}

.acg-portal-card__glow-b {
  width: 80px;
  height: 80px;
  bottom: -30px;
  left: -5px;
  background: rgba(255, 255, 255, 0.38);
}

.acg-portal-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  min-height: 110px;
  padding: 13px 12px 13px 15px;
  box-sizing: border-box;
}

.acg-portal-card__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 6px;
}

.acg-portal-card__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #6f5f88;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.acg-portal-card--news .acg-portal-card__badge { color: #5b8fc9; }
.acg-portal-card--anime .acg-portal-card__badge { color: #9a6bb8; }
.acg-portal-card--event .acg-portal-card__badge { color: #c98a52; }
.acg-portal-card--goods .acg-portal-card__badge { color: #5da89a; }

.acg-portal-card__name {
  margin-top: 8px;
  font-size: 19px;
  font-weight: 800;
  color: #6f5f88;
  line-height: 1.2;
}

.acg-portal-card__line {
  margin-top: 5px;
  font-size: 12px;
  color: #8f7fa8;
  line-height: 1.4;
  font-weight: 600;
}

.acg-portal-card__line--soft {
  margin-top: 2px;
  font-size: 11px;
  color: #a89bba;
  font-weight: 500;
}

.acg-portal-card__art-wrap {
  position: relative;
  width: 124px;
  flex-shrink: 0;
  align-self: center;
  min-height: 84px;
}

.acg-portal-card__art {
  width: 100%;
  height: 84px;
  display: block;
  object-fit: cover;
  border-radius: 11px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 10px rgba(111, 95, 136, 0.1);
  background: rgba(255, 255, 255, 0.45);
}

/* —— 奇妙工具屋 Bento —— */
.tools-hub {
  margin-bottom: 16px;
}

.tools-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 100px 100px 48px;
  gap: 7px;
  grid-template-areas:
    "hero sideTop"
    "hero sideBottom"
    "compact more";
}

.tools-bento-cell {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 11px rgba(111, 95, 136, 0.07);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s;
}

.tools-bento-cell:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.tools-bento-cell--hero { grid-area: hero; }
.tools-bento-cell--side-top { grid-area: sideTop; }
.tools-bento-cell--side-bottom { grid-area: sideBottom; }
.tools-bento-cell--compact { grid-area: compact; }

.tools-bento-cell--text {
  background: linear-gradient(145deg, #eef6ff 0%, #e8f0ff 42%, #f5f0ff 100%);
  border-color: rgba(147, 197, 253, 0.42);
}

.tools-bento-cell--play-test {
  background: linear-gradient(135deg, #f3effa 0%, #f8edf5 55%, #faf0f8 100%);
  border-color: rgba(216, 180, 232, 0.4);
}

.tools-bento-cell--play-fun {
  background: linear-gradient(135deg, #fff8ed 0%, #fff1e6 55%, #fff9f2 100%);
  border-color: rgba(253, 186, 140, 0.38);
}

.tools-bento-cell--goods {
  background: linear-gradient(135deg, #edfafa 0%, #e8f6fc 55%, #f0f9ff 100%);
  border-color: rgba(125, 211, 192, 0.38);
}

.tools-bento-cell__body {
  position: relative;
  z-index: 1;
  height: 100%;
  box-sizing: border-box;
}

.tools-bento-cell__body--hero,
.tools-bento-cell__body--side {
  display: flex;
  flex-direction: column;
}

.tools-bento-cell__body--compact {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
}

.tools-bento-cell__art-frame {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
}

.tools-bento-cell__art {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tools-bento-cell__icon-inline {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.85);
  padding: 2px;
  box-sizing: border-box;
  object-fit: contain;
}

.tools-bento-cell__icon-inline--compact {
  width: 18px;
  height: 18px;
}

.tools-bento-cell__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  min-height: 26px;
  padding: 0 6px;
}

.tools-bento-cell__meta--side {
  justify-content: flex-start;
  padding: 0 7px;
}

.tools-bento-cell__name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  color: #6f5f88;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tools-bento-cell__name--hero {
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.tools-bento-more {
  grid-area: more;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-decoration: none;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 243, 252, 0.96) 100%);
  border: 1px dashed rgba(201, 184, 224, 0.55);
  box-shadow: 0 4px 11px rgba(184, 164, 212, 0.08);
  color: inherit;
}

.tools-bento-more:hover {
  text-decoration: none;
  opacity: 0.88;
}

.tools-bento-more__label {
  font-size: 11px;
  font-weight: 700;
  color: #8f7fa8;
}

.tools-bento-more__arrow {
  font-size: 14px;
  font-weight: 700;
  color: #b8a4d4;
}

/* —— 热门官图 Showcase —— */
.hot-anime-hub {
  margin-bottom: 16px;
  padding-top: 4px;
}

.hot-anime-showcase {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: none;
  background: linear-gradient(125deg, #ff6b57 0%, #ff4f8b 42%, #b46bff 100%);
  box-shadow: 0 9px 24px rgba(255, 79, 139, 0.28);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s;
}

.hot-anime-showcase:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.hot-anime-showcase__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(6px);
}

.hot-anime-showcase__glow-a {
  width: 140px;
  height: 140px;
  top: -40px;
  right: -20px;
  background: rgba(255, 255, 255, 0.22);
}

.hot-anime-showcase__glow-b {
  width: 110px;
  height: 110px;
  bottom: -45px;
  left: -15px;
  background: rgba(255, 214, 120, 0.28);
}

.hot-anime-showcase__body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  min-height: 130px;
  padding: 14px 12px 14px 15px;
  box-sizing: border-box;
}

.hot-anime-showcase__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hot-anime-showcase__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #ff4f7d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.hot-anime-showcase__title {
  margin-top: 9px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(120, 24, 72, 0.22);
}

.hot-anime-showcase__sub {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
}

.hot-anime-showcase__cta {
  margin-top: 11px;
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #ff4f7d;
  font-size: 13px;
  font-weight: 700;
}

.hot-anime-showcase__stage {
  position: relative;
  width: 150px;
  flex-shrink: 0;
  min-height: 110px;
}

.hot-anime-showcase__cover {
  position: absolute;
  width: 66px;
  height: 88px;
  border-radius: 9px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 14px rgba(48, 16, 64, 0.24);
  background: rgba(255, 255, 255, 0.35);
}

.hot-anime-showcase__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hot-anime-showcase__cover--0 {
  right: 59px;
  top: 9px;
  transform: rotate(-10deg);
  z-index: 1;
}

.hot-anime-showcase__cover--1 {
  right: 31px;
  top: 4px;
  transform: rotate(-2deg);
  z-index: 2;
}

.hot-anime-showcase__cover--2 {
  right: 4px;
  top: 11px;
  transform: rotate(8deg);
  z-index: 3;
}

.hot-anime-showcase__cover--skel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.18));
}

/* —— 横向入口卡（画稿等） —— */
.entry-grid-primary {
  margin-bottom: 12px;
}

.theme-wrap .entry-card {
  background: var(--entry-gradient);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-cute);
}

.theme-wrap .entry-card-accent {
  border-color: var(--color-border);
  background: var(--entry-gradient);
}

/* —— 官图区块 —— */
.official-section-header .section-actions .btn.secondary {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
}

.theme-wrap .anime-card {
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-cute);
}

.theme-wrap .anime-cover {
  background: var(--color-cover-placeholder);
}

/* —— 页面标题区 —— */
.page-hero {
  margin-bottom: 12px;
  padding: 4px 0;
}

.page-hero-title {
  font-size: 22px;
  font-weight: 800;
  color: #6f5f88;
  letter-spacing: 1px;
  margin: 0 0 4px;
}

.page-hero-sub {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-soft);
}

/* —— 官图搜索页 sticky 搜索条 —— */
.official-search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(201, 184, 224, 0.35);
  box-shadow: 0 4px 12px rgba(184, 164, 212, 0.14);
}

.official-search-bar__icon {
  flex-shrink: 0;
  font-size: 17px;
  color: #9a8bb8;
}

.official-search-bar .search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 14px;
  outline: none;
}

/* —— Tab / 分类 —— */
.theme-wrap .tab.active,
.theme-wrap .news-category-bar .tab.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-color: transparent;
  color: #fff;
}

.theme-wrap .tab {
  border-color: var(--color-border);
  color: var(--color-text-soft);
}

.theme-wrap .news-category-bar {
  background: var(--color-card);
  border-color: var(--color-border);
  backdrop-filter: blur(12px);
}

.theme-wrap .news-item,
.theme-wrap .ranking-item {
  border-color: var(--color-border);
  box-shadow: var(--shadow-cute);
}

.theme-wrap .news-item:hover {
  border-color: var(--color-primary);
}

/* —— 顶栏 —— */
.theme-wrap .site-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  box-shadow: 0 4px 16px rgba(184, 164, 212, 0.22);
}

.theme-wrap .announcement-float-btn {
  border-color: rgba(184, 164, 212, 0.45);
  color: #6f5f88;
}

.theme-wrap .announcement-float.is-open .announcement-float-btn {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.theme-wrap .btn {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.theme-wrap .btn.secondary {
  background: var(--color-card);
  color: var(--color-text);
  border-color: var(--color-border);
}

.theme-wrap .profile-avatar {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

/* —— 首页 Spotlight（运势 + 新番榜） —— */
.home-spotlight {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.home-spotlight--duo .home-spot-card--fortune {
  flex: 0 0 34%;
  min-width: 0;
}

.home-spotlight--duo .home-spot-card--ranking {
  flex: 1;
  min-width: 0;
}

.home-spot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, opacity 0.15s;
}

.home-spot-card:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.home-spot-card__aurora {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
  animation: home-spot-aurora 7s ease-in-out infinite;
}

.home-spot-card__aurora-b {
  animation-delay: 2.4s;
}

.home-spot-card__shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.34) 48%, rgba(255,255,255,0) 100%);
  animation: home-spot-shine 4.8s ease-in-out infinite;
}

.home-spot-card__edge-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.55;
}

.home-spot-card__spark {
  position: absolute;
  z-index: 2;
  font-size: 11px;
  line-height: 1;
  color: rgba(154, 139, 184, 0.38);
  pointer-events: none;
}

.home-spot-card__spark--a { top: 8px; right: 10px; }
.home-spot-card__spark--b { bottom: 26px; left: 7px; }

.home-spot-card--fortune {
  min-height: 150px;
  padding: 10px 8px 8px;
  background: linear-gradient(155deg, #f7f3ff 0%, #eef6ff 52%, #faf8ff 100%);
  border: 1px solid rgba(154, 139, 184, 0.22);
  box-shadow: 0 5px 14px rgba(111, 95, 136, 0.08);
}

.home-spot-card--fortune .home-spot-card__aurora-a {
  width: 95px; height: 95px; top: -32px; right: -17px;
  background: rgba(255, 255, 255, 0.62);
}

.home-spot-card--fortune .home-spot-card__aurora-b {
  width: 75px; height: 75px; bottom: -26px; left: -13px;
  background: rgba(219, 234, 254, 0.55);
}

.home-spot-card--ranking {
  min-height: 150px;
  padding: 10px 8px 8px;
  background: linear-gradient(145deg, #f3effa 0%, #f8edf5 48%, #faf0f8 100%);
  border: 1px solid rgba(216, 180, 232, 0.42);
  box-shadow: 0 5px 14px rgba(154, 107, 184, 0.12);
}

.home-spot-card--ranking .home-spot-card__aurora-a {
  width: 105px; height: 105px; top: -36px; right: -11px;
  background: rgba(255, 255, 255, 0.55);
}

.home-spot-card--ranking .home-spot-card__aurora-b {
  width: 84px; height: 84px; bottom: -31px; left: -9px;
  background: rgba(237, 223, 247, 0.52);
}

.home-spot-card__fortune-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.home-spot-card__seal-wrap {
  position: relative;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: home-spot-float 3.2s ease-in-out infinite;
}

.home-spot-card__seal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(154, 139, 184, 0.42);
  animation: home-spot-ring 10s linear infinite;
}

.home-spot-card__seal {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: 0 5px 11px rgba(154, 139, 184, 0.28);
}

.home-spot-card__seal-text {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
}

.home-spot-card__copy {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  width: 100%;
  text-align: center;
}

.home-spot-card__copy--ranking {
  flex: 1;
  padding-right: 3px;
  text-align: left;
}

.home-spot-card__title {
  font-size: 14px;
  font-weight: 800;
  color: #6f5f88;
  line-height: 1.3;
  display: block;
}

.home-spot-card__title--ranking {
  flex: 1;
  min-width: 0;
  margin-top: 0;
}

.home-spot-card__sub {
  margin-top: 5px;
  font-size: 10px;
  color: #9a8bb8;
  line-height: 1.4;
  display: block;
}

.home-spot-card__teaser {
  margin-top: 4px;
  font-size: 10px;
  color: var(--color-text-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.home-spot-card__name-list {
  margin-top: 5px;
  display: block;
}

.home-spot-card__name-item {
  font-size: 10px;
  color: #8f7fa8;
  line-height: 1.45;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-spot-card__name-item + .home-spot-card__name-item {
  margin-top: 2px;
}

.home-spot-card__foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.home-spot-card__foot--ranking {
  justify-content: flex-end;
}

.home-spot-card__cta-pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #8f7fa8;
  font-size: 10px;
  font-weight: 700;
}

.home-spot-card__cta-pill--ranking {
  color: #9a6bb8;
}

.home-spot-card__ranking-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-spot-card__chip {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #9a6bb8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.home-spot-card__ranking-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-height: 0;
  margin-top: 6px;
}

.home-spot-card__stage {
  position: relative;
  width: 88px;
  flex-shrink: 0;
  min-height: 72px;
}

.home-spot-card__cover-slot {
  position: absolute;
  width: 42px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 10px rgba(48, 16, 64, 0.18);
  background: rgba(255, 255, 255, 0.35);
}

.home-spot-card__cover-slot--0 { right: 38px; top: 8px; transform: rotate(-10deg); z-index: 1; }
.home-spot-card__cover-slot--1 { right: 20px; top: 4px; transform: rotate(-2deg); z-index: 2; }
.home-spot-card__cover-slot--2 { right: 2px; top: 10px; transform: rotate(8deg); z-index: 3; }

.home-spot-card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-spot-card__cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #9a8bb8;
}

.home-spot-card__rank-mark {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff7eb3, #a78bfa);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
}

.home-spot-card__rank-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  opacity: 0.85;
}

@keyframes home-spot-shine {
  0%, 100% { transform: translateX(-120%); opacity: 0; }
  45% { opacity: 0.55; }
  55% { transform: translateX(180%); opacity: 0.45; }
}

@keyframes home-spot-aurora {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.75; }
  50% { transform: translate(6px, -4px) scale(1.06); opacity: 1; }
}

@keyframes home-spot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes home-spot-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (min-width: 720px) {
  .tools-bento {
    grid-template-rows: 120px 120px 52px;
  }

  .acg-portal-card__body {
    min-height: 120px;
  }

  .hot-anime-showcase__stage {
    width: 180px;
  }

  /* 首页保持手机比例，不随桌面拉宽 */
  body.home-page .tools-bento {
    grid-template-rows: 100px 100px 48px;
  }

  body.home-page .acg-portal-card__body {
    min-height: 110px;
  }

  body.home-page .hot-anime-showcase__stage {
    width: 150px;
  }
}

@media (max-width: 480px) {
  .acg-hub-title,
  .theme-wrap .section-title {
    font-size: 20px;
  }

  .acg-portal-card__art-wrap {
    width: 100px;
  }
}

/* —— 子功能页：对齐小程序 Shell 子页布局 —— */
body.sub-page {
  overflow-x: hidden;
}

body.sub-page #siteHeader {
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 12px 0;
  background: linear-gradient(180deg, var(--color-bg-top) 72%, transparent);
}

body.sub-page .container {
  max-width: 430px;
  padding-left: 12px;
  padding-right: 12px;
  padding-top: 4px;
  padding-bottom: 28px;
}

body.sub-page .page-hero {
  display: none;
}

.mp-sub-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 4px;
}

.mp-sub-nav__back {
  flex-shrink: 0;
  min-width: 52px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  padding: 6px 2px;
}

.mp-sub-nav__back:hover {
  text-decoration: none;
  opacity: 0.85;
}

.mp-sub-nav__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--color-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-sub-nav__actions {
  flex-shrink: 0;
  min-width: 52px;
  text-align: right;
}

body.sub-page .tabs,
body.sub-page .news-category-bar {
  display: flex;
  padding: 4px;
  gap: 4px;
  margin-bottom: 12px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-cute);
}

body.sub-page .tabs .tab,
body.sub-page .news-category-bar .tab {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 10px 6px;
  font-size: 12px;
  line-height: 1.3;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--color-text-soft);
  cursor: pointer;
}

body.sub-page .tabs .tab.active,
body.sub-page .news-category-bar .tab.active {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary-dark);
  font-weight: 700;
  box-shadow: none;
}

body.sub-page .anime-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

body.sub-page .anime-card {
  border-radius: 12px;
  overflow: hidden;
}

body.sub-page .anime-card .anime-name {
  font-size: 13px;
  font-weight: 700;
}

body.sub-page .anime-card .anime-count {
  font-size: 11px;
  color: var(--color-text-soft);
}

body.sub-page .search-section.card-glass {
  margin-bottom: 12px;
}

body.sub-page .search-section .search-action {
  min-width: 52px;
  height: 32px;
  font-size: 13px;
  border-radius: 999px;
}

body.sub-page .sub-page-tip {
  margin: -4px 0 12px;
  font-size: 13px;
  color: var(--color-text-soft);
}

body.sub-page .sub-page-tip a {
  color: var(--color-primary);
  font-weight: 600;
}

body.sub-page .news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
  background: var(--color-card);
  border-radius: 14px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-cute);
}

body.sub-page .news-item {
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  margin: 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(201, 184, 224, 0.35);
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  background: transparent;
}

body.sub-page .news-item:last-child {
  border-bottom: none;
}

body.sub-page .news-item:hover {
  background: rgba(240, 234, 248, 0.45);
}

body.sub-page .news-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-cover-placeholder);
}

body.sub-page .news-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0;
}

body.sub-page .news-cat-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border-radius: 999px;
  padding: 2px 8px;
}

body.sub-page .news-item-title {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-text);
}

body.sub-page .news-item-orig {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text-soft);
}

body.sub-page .news-item-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-text-soft);
}

body.sub-page .ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
}

body.sub-page .ranking-item {
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-cute);
}

body.sub-page .ranking-rank {
  flex-shrink: 0;
  width: 28px;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-align: center;
}

body.sub-page .ranking-cover {
  width: 52px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-cover-placeholder);
  cursor: pointer;
}

body.sub-page .ranking-main {
  flex: 1;
  min-width: 0;
}

body.sub-page .ranking-title {
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}

body.sub-page .ranking-title-cn {
  color: var(--color-text-soft);
  font-weight: 400;
}

body.sub-page .ranking-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-soft);
}

body.sub-page .ranking-official-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

body.sub-page .ranking-item .btn {
  flex-shrink: 0;
  padding: 8px 10px;
  font-size: 12px;
  white-space: nowrap;
}

body.sub-page .profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  margin-bottom: 12px;
}

body.sub-page .profile-card h2 {
  margin: 12px 0 4px;
  font-size: 18px;
  font-weight: 800;
}

body.sub-page .profile-account {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-soft);
}

body.sub-page .menu-group {
  background: var(--color-card);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow-cute);
  border: 1px solid var(--color-border);
}

body.sub-page .menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 184, 224, 0.35);
}

body.sub-page .menu-item:last-child {
  border-bottom: none;
}

body.sub-page .menu-item:hover {
  background: rgba(240, 234, 248, 0.45);
  text-decoration: none;
}

body.sub-page .menu-item .arrow {
  color: var(--color-text-soft);
  font-size: 18px;
}

body.sub-page .gallery-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

body.sub-page .gallery-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-cute);
}

body.sub-page .anime-header-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

body.sub-page .anime-header-cover {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-cover-placeholder);
  border: 1px solid var(--color-border);
}

body.sub-page .anime-header-name {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--color-text);
}

body.sub-page .anime-header-desc,
body.sub-page .anime-header-count {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-soft);
}

body.sub-page .image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

body.sub-page .image-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-cute);
}

body.sub-page .sub-page-back-link {
  text-align: center;
  margin-top: 16px;
}

body.sub-page .sub-page-back-link a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

body.sub-page .acg-hub-header {
  margin: 8px 0 10px;
}

body.sub-page .acg-hub-title {
  font-size: 16px;
}

/* 工具箱子页：手机列宽 + 折叠侧栏 */
body.sub-page.itools-page-body .itools-page.container {
  max-width: 430px;
  padding: 0 12px 28px;
  margin: 0 auto;
}

body.sub-page.itools-page-body .itools-page > .hero-title,
body.sub-page.itools-page-body .itools-page > .itools-desc {
  display: none;
}

body.sub-page.itools-page-body .itools-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.sub-page.itools-page-body .itools-shell-sidebar {
  position: static;
  width: 100%;
  max-height: none;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-cute);
  background: var(--color-card);
}

body.sub-page.itools-page-body .itools-page > .hero-title,
body.sub-page.itools-page-body .itools-page > .itools-meta-bar,
body.sub-page.itools-page-body .itools-page > #itoolsToolBar,
body.sub-page.itools-page-body .itools-shell-main {
  margin-left: 0;
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

body.sub-page.itools-page-body .itools-meta-bar {
  margin-top: 0;
}

body.sub-page .itools-standalone-panel {
  margin-top: 4px;
  padding: 14px 12px 16px;
}

body.sub-page .itools-standalone-panel .itools-panel-title {
  font-size: 18px;
  margin-bottom: 6px;
}

body.sub-page .itools-hub-page {
  padding-bottom: 28px;
}

body.sub-page .itools-hub-shell {
  padding: 14px 12px 16px;
}

body.sub-page .itools-hub-tree {
  margin-top: 8px;
}

/* —— 子页互动工具（与小程序 tool-page-body 一致） —— */
body.sub-page .ptest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

body.sub-page .ptest-card {
  width: calc(50% - 4px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 130px;
  padding: 12px 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #fff;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

body.sub-page .ptest-card.on {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  box-shadow: 0 4px 10px rgba(184, 164, 212, 0.18);
}

body.sub-page .ptest-cover {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 7px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  object-fit: cover;
  flex-shrink: 0;
}

body.sub-page .ptest-emoji {
  width: 60px;
  height: 60px;
  margin-bottom: 7px;
  font-size: 32px;
  line-height: 60px;
  text-align: center;
  flex-shrink: 0;
}

body.sub-page .ptest-name {
  display: block;
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
  word-break: break-all;
}

body.sub-page .ptest-card.on .ptest-name {
  color: var(--color-primary-dark);
}

body.sub-page .ptest-count {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
}

body.sub-page .panel-personality .quiz-field,
body.sub-page .panel-quiz .quiz-field {
  margin-top: 4px;
}

body.sub-page .field {
  margin-bottom: 10px;
}

body.sub-page .field--inline .field-row-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.sub-page .field--inline .field-label {
  flex-shrink: 0;
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-text);
}

body.sub-page .input.goods-input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--color-text);
  background: #fff;
  box-sizing: border-box;
}

body.sub-page .test-intro-hint {
  margin: 4px 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-soft);
  text-align: center;
}

body.sub-page .test-start-btn {
  display: block;
  width: 100%;
  margin-top: 4px;
}

body.sub-page .btn-primary {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  padding: 10px 0;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
}

body.sub-page .btn-primary:active {
  opacity: 0.88;
}

body.sub-page .btn-ghost {
  display: block;
  box-sizing: border-box;
  margin-top: 8px;
  text-align: center;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  font-size: 14px;
  background: #fff;
  cursor: pointer;
}

body.sub-page .chip-row,
body.sub-page .quiz-pool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

body.sub-page .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.3;
  box-sizing: border-box;
  background: var(--color-primary-soft);
  color: var(--color-text-soft);
  border: none;
  cursor: pointer;
  font: inherit;
}

body.sub-page .chip.on {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
}

body.sub-page .quiz-pool-hint {
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-soft);
}

body.sub-page .hint {
  font-size: 12px;
  color: var(--color-text-soft);
  margin-bottom: 8px;
}

body.sub-page .q-text {
  font-size: 15px;
  font-weight: 600;
  margin: 8px 0;
  line-height: 1.45;
}

body.sub-page .opt-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.sub-page .opt-list .opt {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin: 0;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-size: 13px;
  text-align: left;
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  font: inherit;
  line-height: 1.45;
}

body.sub-page .opt-list .opt:active {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

body.sub-page .result-share-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  align-items: stretch;
}

body.sub-page .result-share-row .btn-ghost,
body.sub-page .result-share-row .btn-primary {
  margin-top: 0;
  flex: 1;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.sub-page .half {
  flex: 1;
}

body.sub-page .share-hint {
  margin-top: 8px;
  font-size: 11px;
  color: var(--color-text-soft);
  text-align: center;
  line-height: 1.5;
}

body.sub-page .btn-text-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-primary);
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
}

body.sub-page .itools-standalone-panel.panel-personality,
body.sub-page .itools-standalone-panel.panel-quiz {
  padding-top: 12px;
}
