:root {
  /* 与主站 xintingedu.com tailwind paper/ink 对齐，便于日后同域接入 */
  --bg: #f9f8f4;
  --paper: #ffffff;
  --paper-soft: rgba(255, 255, 255, 0.96);
  --ink: #1a1816;
  --muted: #6b6560;
  --line: rgba(26, 24, 22, 0.1);
  --accent: #b85c38;
  --accent-deep: #8a3d22;
  --accent-soft: #f0dcc8;
  --green: #5a7a3a;
  --shadow-card: 0 12px 24px rgba(0, 0, 0, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --surface-muted: #f3f2ef;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(480px, 100%);
  margin: 0 auto;
  padding: 12px 16px 96px;
}

.app-page {
  min-height: 100vh;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-deep);
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 600;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin-bottom: 14px;
}

/* ── 顶栏 ── */
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 4px;
}

.app-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-topbar-brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.app-topbar-brand small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.app-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #c45c3e, #dba07a);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 6px 14px rgba(184, 92, 56, 0.22);
}

.app-topbar-actions {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

.app-topbar-actions a:active {
  color: var(--accent-deep);
}

/* ── 全站锁顶引导栏 ── */
.app-sticky-topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(42, 33, 25, 0.04);
}

.app-sticky-topbar-inner {
  width: min(480px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  min-height: 48px;
}

.sticky-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.site-logo-wrap {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}

.site-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.site-logo-fallback {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.sticky-brand strong {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.sticky-top-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.sticky-top-links a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--ink);
}

.sticky-top-links a:active {
  opacity: 0.75;
}

.sticky-divider {
  width: 1px;
  height: 14px;
  background: #ddd;
  margin: 0 2px;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.nav-icon--sm img {
  width: 16px;
  height: 16px;
}

.nav-icon--tab img {
  width: 22px;
  height: 22px;
}

.nav-icon-fallback {
  font-size: 14px;
  line-height: 1;
}

/* ── 首页顶栏（已废弃，保留兼容） ── */
.home-header {
  margin-bottom: 14px;
  padding: 8px 4px 0;
}

.home-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.home-header-brand strong {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.app-search--home {
  margin-bottom: 0;
}

.app-topbar--inner {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 10px 4px;
  margin-bottom: 14px;
}

.app-topbar-back {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 20px;
  color: var(--muted);
}

.app-topbar-back:active {
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent-deep);
}

.app-topbar-title-wrap {
  text-align: center;
}

.app-topbar-title-wrap strong {
  font-size: 16px;
  font-weight: 700;
}

.app-topbar-spacer {
  width: 36px;
}

/* ── 搜索 ── */
.app-search {
  margin-bottom: 14px;
}

.app-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
  font-size: 14px;
  color: var(--ink);
}

.app-search input::placeholder {
  color: #a89486;
}

/* ── 首页广告轮播 ── */
.hero-carousel {
  position: relative;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(90, 122, 58, 0.12);
  background: #f3e8cf;
}

.hero-carousel-viewport {
  overflow: hidden;
}

.hero-carousel-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.hero-carousel-slide {
  flex: 0 0 100%;
  display: block;
}

.hero-carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f3e8cf;
}

.hero-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.hero-carousel-dot {
  pointer-events: auto;
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-carousel-dot.is-active {
  width: 18px;
  background: #fff;
}

/* ── 首页横幅（单张，保留兼容） ── */
.hero-banner-link {
  display: block;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(90, 122, 58, 0.12);
}

.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f3e8cf;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 22px 20px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(90, 122, 58, 0.16);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.65), transparent 36%),
    linear-gradient(135deg, #e7f2d8 0%, #f3e8cf 48%, #edd9c0 100%);
  box-shadow: var(--shadow-card);
}

.hero-banner-tag {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

.hero-banner h1 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.hero-banner .lede {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.app-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 12px;
  margin-bottom: 10px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 249, 237, 0.95) 0%, rgba(255, 246, 232, 0.88) 100%);
  font-size: 13px;
  color: var(--ink);
  text-align: left;
}

.app-notice--tap {
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.app-notice--tap:active {
  opacity: 0.82;
}

.app-notice-icon {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
}

.app-notice p {
  flex: 1;
  margin: 0;
  line-height: 1.45;
}

.app-notice-arrow {
  flex: 0 0 auto;
  color: #b8a494;
  font-size: 18px;
  line-height: 1;
}

/* 公告 → 八宫格：自然渐变过渡，不要硬边框大框 */
.home-soft-zone {
  margin: 0 -16px 14px;
  padding: 10px 16px 16px;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 240, 0.15) 0%,
    rgba(255, 255, 255, 0.72) 28%,
    rgba(255, 255, 240, 0.45) 100%
  );
}

.home-icon-grid {
  padding: 4px 0 2px;
}

/* ── 八宫格 ── */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 4px;
}

.icon-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 6px 2px 8px;
  border-radius: var(--radius-sm);
}

.icon-grid-item:active {
  opacity: 0.78;
}

.icon-grid-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: none;
}

.icon-grid-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.icon-grid-icon:not(:has(img)) {
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(160deg, #fff8f0, #edd9c4);
}

.icon-grid-item strong {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: var(--ink);
}

/* ── 精品课程推荐（横向小图，无价格） ── */
.boutique-section {
  margin-bottom: 14px;
  padding: 16px 0 14px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fde8d4 0%, #fff4e8 48%, #fff9f0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.boutique-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-right: 16px;
  margin-bottom: 12px;
}

.boutique-head h2 {
  margin: 0;
  font-size: 18px;
  color: #8a3d22;
}

.boutique-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: #c96a45;
}

.boutique-head a {
  font-size: 13px;
  color: #a8846e;
  white-space: nowrap;
}

.boutique-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 16px 4px 2px;
  scrollbar-width: none;
}

.boutique-scroll::-webkit-scrollbar {
  display: none;
}

.boutique-chip {
  flex: 0 0 132px;
  scroll-snap-align: start;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(42, 33, 25, 0.1);
}

.boutique-chip img {
  display: block;
  width: 132px;
  height: 74px;
  object-fit: cover;
  background: #f3e8cf;
}

.boutique-chip:active {
  opacity: 0.88;
}

.boutique-loading,
.boutique-empty {
  padding: 8px 16px 8px 0;
  margin: 0;
}

/* ── 首页商城 ── */
.home-shop {
  margin-bottom: 14px;
  padding: 4px 0 8px;
}

.home-shop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.home-shop-head h2 {
  margin: 0;
  font-size: 18px;
}

.home-shop-head a {
  font-size: 13px;
  color: var(--muted);
}

.home-shop-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.shop-row--btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.shop-row-cover {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f0e6;
}

.shop-row-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-row-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.shop-row-body strong {
  font-size: 15px;
}

.shop-row-tag {
  font-size: 12px;
  color: var(--muted);
}

.shop-row-sub {
  font-size: 11px;
  color: #c96a45;
}

.shop-page-banner {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  display: block;
  box-shadow: var(--shadow-card);
}

.shop-row-price {
  font-size: 16px;
  font-weight: 700;
  color: #c43a2e;
  white-space: nowrap;
}

.shop-page-tip {
  margin: 0 0 12px;
  font-size: 13px;
}

.shop-page-list {
  margin-bottom: 12px;
}

/* ── 微信小店风格商城页 ── */
.app-page--wx-shop {
  background: #f5f5f5;
}

.shell--wx-shop {
  padding-bottom: 0;
}

.wx-shop-page {
  margin-top: 4px;
}

.wx-shop-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 4px 12px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.wx-shop-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 14px 0 10px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
}

.wx-shop-tab.is-active {
  color: #111;
}

.wx-shop-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: #111;
}

.wx-shop-card {
  padding: 14px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff5f0 0%, #fff 28%);
  box-shadow: var(--shadow-card);
}

.wx-shop-card--categories,
.wx-shop-card--reviews {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
}

.wx-shop-product {
  padding: 12px 0;
}

.wx-shop-product + .wx-shop-product {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wx-shop-product-main {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  color: inherit;
}

.wx-shop-product-main:active {
  opacity: 0.92;
}

.wx-shop-product-cover {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: #f8f0e6;
}

.wx-shop-product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wx-shop-product-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.wx-shop-product-title {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  color: #111;
}

.wx-shop-product-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #888;
}

.wx-shop-review-snippet {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.wx-shop-review-avatar {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
}

.wx-shop-review-text {
  font-size: 12px;
  line-height: 1.45;
  color: #999;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wx-shop-product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding-top: 2px;
  padding-left: 100px;
}

.wx-shop-price {
  font-size: 15px;
  font-weight: 700;
  color: #e02e24;
}

.wx-shop-price--consult {
  font-size: 13px;
  font-weight: 600;
  color: #c96a45;
}

.wx-shop-buy {
  flex: 0 0 auto;
  min-width: 64px;
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: #f0f0f0;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
}

.wx-shop-buy:active {
  background: #e6e6e6;
}

.wx-shop-category {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.wx-shop-category + .wx-shop-category {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wx-shop-category-cover {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #f8f0e6;
}

.wx-shop-category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wx-shop-category-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wx-shop-category-body strong {
  font-size: 15px;
}

.wx-shop-category-desc {
  font-size: 12px;
  color: #888;
}

.wx-shop-category-count {
  font-size: 12px;
  color: #c96a45;
}

.wx-shop-review-item {
  padding: 12px 0;
}

.wx-shop-review-item + .wx-shop-review-item {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wx-shop-review-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.wx-shop-review-user {
  font-size: 14px;
  font-weight: 600;
}

.wx-shop-review-stars {
  margin-left: auto;
  font-size: 12px;
  color: #f5a623;
  letter-spacing: 1px;
}

.wx-shop-review-product {
  margin: 0 0 6px;
  font-size: 12px;
  color: #888;
}

.wx-shop-review-content {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.wx-shop-review-date {
  font-size: 11px;
  color: #bbb;
}

.wx-shop-empty {
  margin: 0;
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.wx-shop-tip {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* ── 微信小店 · 商品详情内页 ── */
.shell--wx-shop-detail {
  padding: 0 0 calc(72px + env(safe-area-inset-bottom));
}

.app-page--wx-shop-detail {
  background: #f5f5f5;
}

.wx-shop-detail-page {
  margin: 0 -4px;
}

.wx-shop-detail-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 10px 4px;
  background: #fff;
}

.wx-shop-detail-back {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 20px;
  color: #666;
}

.wx-shop-detail-brand {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.wx-shop-detail-spacer {
  width: 36px;
}

.wx-shop-detail-gallery {
  position: relative;
  background: #fff;
}

.wx-shop-detail-slide img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.wx-shop-detail-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
}

.wx-shop-detail-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 11px;
}

.wx-shop-detail-summary {
  margin-top: 8px;
  padding: 14px 16px;
  background: #fff;
}

.wx-shop-detail-price {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #c43a2e;
}

.wx-shop-detail-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
  color: #111;
}

.wx-shop-detail-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fff5f0;
  color: #c96a45;
  font-size: 11px;
}

.wx-shop-detail-note {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #888;
}

.wx-shop-detail-snippet {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wx-shop-detail-tabs {
  display: flex;
  gap: 28px;
  margin-top: 8px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.wx-shop-detail-tab {
  position: relative;
  padding: 14px 0 10px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
}

.wx-shop-detail-tab.is-active {
  color: #111;
}

.wx-shop-detail-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #111;
  border-radius: 999px;
}

.wx-shop-detail-panel {
  padding: 0 0 12px;
}

.wx-shop-detail-card {
  padding: 14px 16px 0;
  background: #fff;
}

.wx-shop-detail-card--reviews {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
}

.wx-shop-detail-intro {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}

.wx-shop-detail-long-stack {
  margin: 0 -16px;
  line-height: 0;
  font-size: 0;
}

.wx-shop-detail-long {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  vertical-align: top;
}

.wx-shop-detail-compliance {
  margin: 0;
  padding: 12px 0 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.wx-shop-detail-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  transform: translateX(-50%);
  width: min(480px, 100%);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

.wx-shop-detail-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 11px;
  cursor: pointer;
}

.wx-shop-detail-contact span:first-child {
  font-size: 20px;
  line-height: 1;
}

.wx-shop-detail-buy {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #e85a45, #c43a2e);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.wx-shop-detail-buy:active {
  opacity: 0.92;
}

/* ── 首页直播 / 录播横滑区 ── */
.home-feed-section {
  margin-bottom: 18px;
}

.home-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.home-feed-head h2 {
  margin: 0;
  font-size: 18px;
}

.home-feed-head a {
  font-size: 13px;
  color: var(--muted);
}

.home-feed-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.home-feed-scroll::-webkit-scrollbar {
  display: none;
}

/* 直播：竖版大卡 */
.live-card {
  flex: 0 0 116px;
  scroll-snap-align: start;
  display: block;
}

.live-card-cover {
  position: relative;
  display: block;
  width: 116px;
  height: 168px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-muted);
  box-shadow: 0 6px 14px rgba(42, 33, 25, 0.1);
}

.live-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-card-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 11px;
}

.live-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 8px 8px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
}

.live-card:active {
  opacity: 0.88;
}

/* 录播：横版小卡 + 标题在下 */
.recorded-card {
  flex: 0 0 128px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recorded-card-cover {
  position: relative;
  display: block;
  width: 128px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3e8cf;
  box-shadow: 0 4px 10px rgba(42, 33, 25, 0.08);
}

.recorded-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recorded-card-promo {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #c43a2e;
  color: #fff;
  font-size: 10px;
  line-height: 1.4;
}

.recorded-card-ep {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 10px;
}

.recorded-card-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recorded-card:active {
  opacity: 0.85;
}

/* 咨询：横滑大卡 */
.consult-scroll {
  gap: 12px;
  padding-bottom: 6px;
}

.consult-card {
  flex: 0 0 min(88vw, 320px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(42, 33, 25, 0.08);
  border: 1px solid rgba(42, 33, 25, 0.06);
}

.consult-card:active {
  opacity: 0.9;
}

.consult-card-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.consult-card-avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3e8cf;
}

.consult-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consult-card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.consult-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.consult-card-loc {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.consult-card-bio {
  font-size: 12px;
  color: #7a6f62;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.consult-card-tags {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.4;
}

.consult-card-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 -12px -12px;
  padding: 8px 12px;
  border-radius: 0 0 12px 12px;
  background: var(--surface-muted);
  font-size: 11px;
  color: var(--muted);
}

.consult-card-foot em {
  font-style: normal;
  font-weight: 700;
  color: #2f6fb3;
}

.consult-card-divider {
  color: #d0c8bc;
}

.consult-page-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.consult-page-list .consult-card {
  flex: unset;
  width: 100%;
  max-width: none;
}

/* ── 约见列表页（对齐旧站「约见」） ── */
.shell--consult-hub {
  padding: 0;
  max-width: 480px;
}

.app-page--consult-hub {
  background: #f5f5f5;
}

.consult-hub-page {
  background: #fff;
  min-height: 100vh;
}

.consult-hub-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 10px 8px 8px;
  background: #fff;
}

.consult-hub-back {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 20px;
  color: #666;
}

.consult-hub-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.consult-hub-share {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.consult-hub-share-icon img {
  width: 20px;
  height: 20px;
}

.consult-hub-tabs {
  display: flex;
  gap: 0;
  padding: 0 8px;
  border-bottom: 1px solid #eee;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.consult-hub-tabs::-webkit-scrollbar {
  display: none;
}

.consult-hub-tab {
  flex: 0 0 auto;
  padding: 10px 14px 12px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #888;
  position: relative;
  cursor: pointer;
  white-space: nowrap;
}

.consult-hub-tab.is-active {
  color: #3b7ddd;
  font-weight: 600;
}

.consult-hub-tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 28px;
  height: 3px;
  margin-left: -14px;
  border-radius: 2px;
  background: #3b7ddd;
}

.consult-hub-filters {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 8px solid #f5f5f5;
  overflow-x: auto;
}

.consult-hub-filters::-webkit-scrollbar {
  display: none;
}

.consult-filter-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background: #f3f3f3;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.consult-filter-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #aaa;
}

.consult-meet-list {
  background: #f5f5f5;
}

.consult-meet-row {
  display: block;
  padding: 14px 12px 12px;
  background: #fff;
  border-bottom: 8px solid #f5f5f5;
  text-decoration: none;
  color: inherit;
}

.consult-meet-row:active {
  background: #fafafa;
}

.consult-meet-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.consult-meet-avatar {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0ebe3;
}

.consult-meet-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consult-meet-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.consult-meet-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #222;
}

.consult-meet-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #999;
}

.consult-meet-pin {
  width: 10px;
  height: 12px;
  background: #bbb;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.consult-meet-bio {
  font-size: 12px;
  line-height: 1.45;
  color: #999;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.consult-meet-tag {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.consult-meet-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.consult-meet-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: #888;
}

.consult-meet-stats em {
  font-style: normal;
  color: #3b7ddd;
  font-weight: 600;
}

.consult-meet-divider {
  color: #ddd;
}

.consult-meet-price {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 700;
  color: #3b7ddd;
  line-height: 1;
}

.consult-meet-price small {
  font-size: 12px;
  font-weight: 600;
  margin-left: 2px;
}

.consult-meet-empty {
  padding: 40px 16px;
  text-align: center;
  color: #888;
  background: #fff;
}

.app-page--consult-hub .site-footer {
  margin-top: 0;
}

.shell--consult-detail {
  padding: 0 0 72px;
  max-width: 480px;
  background: #fff;
}

.app-page--consult-detail {
  background: #fff;
}

.consult-detail-page {
  background: #fff;
}

.consult-detail-hero-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 300px;
  overflow: hidden;
  background: #eee;
}

.consult-detail-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.consult-detail-hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.08) 40%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.consult-detail-float-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 10px 8px;
  z-index: 4;
}

.consult-detail-float-back,
.consult-detail-float-share {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  color: #444;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.consult-detail-share-icon img {
  width: 18px;
  height: 18px;
}

.consult-detail-hero-text {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 42%;
  transform: translateY(-50%);
  z-index: 3;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.consult-detail-hero-text h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.consult-detail-hero-text p {
  margin: 0 auto;
  max-width: 92%;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.95;
}

/* 头图下缘 → 白底「下弧」：白卡片大圆角顶边扣在头图下方（勿用上凸椭圆） */
.consult-detail-body {
  position: relative;
  z-index: 5;
  margin-top: -20px;
  padding-top: 10px;
  background: #fff;
  border-radius: 20px 20px 0 0;
}

.consult-detail-curve {
  display: none;
}

.consult-detail-meta {
  position: relative;
  z-index: 1;
  padding: 6px 14px 0;
  text-align: center;
}

.consult-detail-meta-stats {
  margin: 0;
  font-size: 13px;
  color: #666;
}

.consult-detail-meta-stats em {
  font-style: normal;
  color: #3b7ddd;
  font-weight: 700;
}

.consult-detail-meta-divider {
  margin: 0 8px;
  color: #ddd;
}

.consult-detail-meta-loc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 8px 0 0;
  font-size: 12px;
  color: #999;
}

.consult-detail-meta-gap {
  height: 10px;
  margin: 12px 0 0;
  background: #f5f5f5;
}

.consult-detail-section {
  padding: 12px 14px 0;
}

.consult-detail-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.consult-detail-section-title--inner {
  padding-top: 4px;
}

.consult-detail-bar {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: #3b7ddd;
}

.consult-topic-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.consult-topic-card {
  padding: 12px 0 14px;
  border-bottom: 1px solid #f0f0f0;
}

.consult-topic-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.consult-topic-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #888;
}

.consult-topic-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.consult-topic-people {
  font-size: 12px;
  color: #aaa;
}

.consult-topic-price {
  font-size: 18px;
  font-weight: 700;
  color: #3b7ddd;
}

.consult-topic-price small {
  font-size: 12px;
  margin-left: 2px;
}

.consult-detail-tabs {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  padding: 0 14px;
  border-bottom: 1px solid #eee;
}

.consult-detail-tab {
  padding: 10px 0 12px;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #888;
  cursor: pointer;
  position: relative;
}

.consult-detail-tab.is-active {
  color: #222;
  font-weight: 700;
}

.consult-detail-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #3b7ddd;
  border-radius: 2px;
}

.consult-detail-panels {
  padding: 0 0 16px;
}

.consult-detail-panel {
  padding: 0 14px;
}

.consult-detail-intro-wrap {
  border-radius: 8px;
  overflow: hidden;
  background: #f9f8f4;
}

.consult-detail-intro {
  display: block;
  width: 100%;
  height: auto;
}

.consult-review-list {
  display: flex;
  flex-direction: column;
}

.consult-review-card {
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.consult-review-head {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 8px;
}

.consult-review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f0f0;
}

.consult-review-name {
  font-size: 14px;
  font-weight: 600;
}

.consult-review-date {
  font-size: 12px;
  color: #bbb;
}

.consult-review-tag {
  margin: 8px 0 0;
  padding: 6px 8px;
  border-radius: 4px;
  background: #f5f5f5;
  font-size: 12px;
  color: #666;
}

.consult-review-content {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: #444;
  white-space: pre-wrap;
}

.consult-review-empty {
  padding: 24px 0;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.consult-detail-bottom {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  z-index: 20;
}

.consult-detail-fav {
  flex: 0 0 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: none;
  background: transparent;
  color: #888;
  font-size: 11px;
  cursor: pointer;
}

.consult-detail-fav-icon {
  font-size: 20px;
  line-height: 1;
}

.consult-detail-fav.is-active {
  color: #f5a623;
}

.consult-detail-bottom .consult-detail-book {
  flex: 1;
  min-height: 44px;
  margin: 0;
  border: none;
  border-radius: 999px;
  background: #3b7ddd;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.consult-detail-empty {
  padding: 40px 16px;
  text-align: center;
  color: #888;
}

/* 头条：纵向列表 */
.headline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.headline-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(42, 33, 25, 0.06);
  border: 1px solid rgba(42, 33, 25, 0.05);
}

.headline-row:active {
  opacity: 0.88;
}

.headline-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.headline-row-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.headline-row-time {
  font-size: 11px;
  color: var(--muted);
}

.headline-row-cover {
  flex: 0 0 96px;
  width: 96px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-muted);
}

.headline-row-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.headline-page-list {
  margin-bottom: 12px;
}

.recorded-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}

.recorded-card--page {
  flex: unset;
  width: 100%;
}

.recorded-card--page .recorded-card-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 18px;
}

.section-head a {
  font-size: 13px;
  color: var(--accent);
}

/* ── 课程卡片（列表）── */
.course-grid {
  display: grid;
  gap: 14px;
}

.course-card,
.featured-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.course-card-link,
.featured-card-link {
  display: block;
}

.course-cover,
.featured-cover,
.detail-hero {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.45), transparent 42%),
    linear-gradient(135deg, #d8b08a 0%, #f2dcc3 100%);
  background-size: cover;
  background-position: center;
}

.course-cover[data-cover-type="live"],
.featured-cover[data-cover-type="live"],
.detail-hero[data-cover-type="live"] {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.35), transparent 40%),
    linear-gradient(135deg, #c8d8b0 0%, #e8dcc0 100%);
}

.course-cover[data-cover-type="video"],
.featured-cover[data-cover-type="video"],
.detail-hero[data-cover-type="video"] {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.45), transparent 42%),
    linear-gradient(135deg, #d8b08a 0%, #f2dcc3 100%);
}

.course-card-body,
.featured-body {
  padding: 16px 18px 18px;
}

.course-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 600;
}

.tag-soft {
  background: #e8f0e0;
  color: var(--green);
}

.course-card-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.4;
}

.course-card-subtitle {
  margin: -4px 0 8px;
  font-size: 13px;
  color: var(--accent-deep);
  font-weight: 600;
}

.course-card-desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card-foot,
.featured-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.course-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: 0.02em;
}

.course-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.featured-list {
  display: grid;
  gap: 14px;
}

.featured-body h3 {
  margin: 8px 0;
  font-size: 17px;
  line-height: 1.4;
}

/* ── 详情页 ── */
.detail-page {
  padding-bottom: 88px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--muted);
}

.detail-hero {
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  min-height: 200px;
}

.detail-panel {
  padding: 22px 20px;
}

.detail-panel h1 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.35;
}

.detail-subtitle {
  margin: -4px 0 10px;
  font-size: 15px;
  color: var(--accent-deep);
  font-weight: 600;
}

.detail-tip-panel {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fff9ed;
  border: 1px solid var(--line);
  font-size: 14px;
}

.detail-tip-panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.detail-tip-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.detail-desc {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.detail-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-top: 4px;
}

.detail-price-note {
  font-size: 12px;
  color: var(--muted);
}

.detail-section {
  margin-top: 14px;
}

.detail-section h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.detail-buybar {
  position: fixed;
  left: 50%;
  bottom: calc(56px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(480px, calc(100% - 32px));
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 240, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  z-index: 15;
}

.detail-buybar .course-price {
  flex: 1;
  align-self: center;
  font-size: 22px;
}

/* ── 按钮 ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #c45c3e, #b85c38);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(184, 92, 56, 0.24);
}

.button.block {
  flex: 1;
}

.button.ghost {
  background: transparent;
  color: var(--accent-deep);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button:active {
  transform: translateY(1px);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meeting-box {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #faf6ef;
  border: 1px dashed rgba(125, 63, 29, 0.22);
  font-size: 13px;
  word-break: break-all;
}

.page-title-block h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.page-title-block .muted {
  margin: 0;
}

/* ── 底栏 ── */
.app-tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(480px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 240, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
  z-index: 20;
}

.app-tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  font-size: 11px;
  color: var(--muted);
  border-radius: 12px;
}

.app-tabbar-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  background: transparent;
}

.app-tabbar-icon .nav-icon-fallback {
  font-size: 12px;
  font-weight: 700;
}

.app-tabbar-item.is-active {
  color: #3b7ddd;
}

.app-tabbar-item.is-active .app-tabbar-icon {
  background: transparent;
  color: #3b7ddd;
}

.app-tabbar--five {
  grid-template-columns: repeat(5, 1fr);
}

.app-tabbar--five .app-tabbar-item {
  font-size: 10px;
  padding: 6px 2px;
}

.app-tabbar--five .app-tabbar-icon {
  width: 20px;
  height: 20px;
  font-size: 11px;
}

/* ── 分类 / 剧场 ── */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.category-chip.is-active {
  background: var(--accent-soft);
  border-color: rgba(184, 92, 56, 0.25);
  color: var(--accent-deep);
}

/* ── 训练营第二层列表（八宫格「轨迹图课程」入口） ── */
.shell--camp-hub {
  padding-top: 0;
  padding-bottom: 88px;
  background: #fff;
}

.app-page--camp-hub {
  background: #fff;
}

.camp-hub-page {
  margin: 0 -4px;
}

.camp-hub-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 10px 4px 12px;
  background: #fff;
}

.camp-hub-back {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 20px;
  color: var(--muted);
}

.camp-hub-back:active {
  background: rgba(0, 0, 0, 0.04);
}

.camp-hub-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.camp-hub-share {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.camp-hub-share-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.camp-hub-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 2px 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line);
}

.camp-hub-tabs::-webkit-scrollbar {
  display: none;
}

.camp-hub-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: #9a9a9a;
  white-space: nowrap;
  cursor: pointer;
}

.camp-hub-tab.is-active {
  color: #3b7ddd;
}

.camp-hub-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 3px;
  border-radius: 999px;
  background: #3b7ddd;
}

.camp-hub-list {
  background: #fff;
}

.camp-hub-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #efefef;
}

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

.camp-hub-row:active {
  opacity: 0.9;
}

.camp-hub-thumb {
  position: relative;
  flex: 0 0 128px;
  width: 128px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #f3ece2;
}

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

.camp-hub-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
}

.camp-hub-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0 4px;
}

.camp-hub-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.camp-hub-price {
  font-size: 14px;
  color: #666;
}

.camp-hub-empty {
  padding: 32px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.app-page--camp-hub .site-footer {
  background: #fff;
}

/* ── 训练营详情内页（第三层） ── */
.shell--camp-detail {
  padding: 0 0 calc(72px + env(safe-area-inset-bottom));
  background: #f5f5f5;
}

.app-page--camp-detail {
  background: #f5f5f5;
}

.camp-detail-page {
  margin: 0 -4px;
}

.camp-detail-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 10px 4px;
  background: #fff;
}

.camp-detail-back {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 20px;
  color: #666;
}

.camp-detail-brand {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.camp-detail-share {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.camp-detail-share-icon img {
  width: 20px;
  height: 20px;
}

.camp-detail-hero {
  position: relative;
  background: #fff;
}

.camp-detail-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.camp-detail-hero-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.camp-detail-material,
.camp-detail-invite {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #666;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  text-decoration: none;
}

.camp-detail-material-icon,
.camp-detail-invite-icon {
  font-size: 14px;
  line-height: 1;
}

.camp-detail-tabs--2 {
  justify-content: center;
  gap: 48px;
}

.camp-detail-hero-pager {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 11px;
}

.camp-detail-summary {
  padding: 14px 14px 12px;
  background: #fff;
}

.camp-detail-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.camp-detail-price {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.camp-detail-coin {
  font-size: 14px;
  font-weight: 600;
  color: #666;
}

.camp-detail-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 10px 12px;
  background: #fff3e8;
  color: #b35a28;
  font-size: 13px;
}

.camp-detail-countdown-time strong {
  font-size: 15px;
  font-weight: 700;
  color: #e2553a;
}

.camp-detail-session-block {
  margin: 10px 0 0;
}

.camp-detail-session-block .camp-detail-session {
  margin: 0;
}

.camp-detail-session-expiry {
  margin: 6px 14px 0;
  font-size: 12px;
  color: #999;
}

.camp-detail-enroll.is-ready {
  background: #3b7ddd;
  cursor: pointer;
}

/* ── 分享素材推广页 ── */
.shell--share-material {
  padding: 0 0 24px;
  background: #f5f5f5;
}

.app-page--share-material {
  background: #f5f5f5;
}

.share-material-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 10px 4px 12px;
  background: #fff;
}

.share-material-back {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 20px;
  color: #666;
}

.share-material-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.share-material-spacer {
  width: 36px;
}

.share-material-card {
  margin-top: 10px;
  padding: 16px 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.share-material-tip {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #888;
}

.share-material-course {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.share-material-poster-wrap {
  border-radius: 10px;
  overflow: hidden;
  background: #f9f8f4;
}

.share-material-poster {
  display: block;
  width: 100%;
  height: auto;
}

.share-material-hint {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  color: #aaa;
}

.share-material-subtitle {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.share-material-copy,
.share-material-link {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f9f8f4;
  font-size: 14px;
  line-height: 1.65;
  color: #444;
  word-break: break-word;
}

.share-material-actions {
  display: flex;
  gap: 10px;
}

.share-material-btn {
  flex: 1;
  min-height: 42px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.share-material-btn--primary {
  border-color: #3b7ddd;
  background: #3b7ddd;
  color: #fff;
}

.share-material-empty {
  padding: 40px 16px;
  text-align: center;
  color: #888;
}

.camp-detail-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 10px 0 0;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  background: #eef5fc;
  text-align: left;
  cursor: pointer;
}

.camp-detail-session-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.camp-detail-session-main strong {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.camp-detail-session-main span {
  font-size: 13px;
  color: #888;
}

.camp-detail-session-link {
  flex-shrink: 0;
  font-size: 13px;
  color: #3b7ddd;
  white-space: nowrap;
}

.camp-detail-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 10px;
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.camp-detail-tab {
  position: relative;
  padding: 12px 0;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: #999;
  cursor: pointer;
}

.camp-detail-tab.is-active {
  color: #333;
}

.camp-detail-tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: #3b7ddd;
  transform: translateX(-50%);
}

.camp-detail-panels {
  background: #fff;
  min-height: 200px;
}

.camp-detail-panel {
  padding: 0;
}

.camp-detail-long {
  display: block;
  width: 100%;
  height: auto;
}

.camp-detail-long-placeholder {
  margin: 0;
  padding: 48px 20px 56px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f9f8f4 100%);
  color: #888;
}

.camp-detail-long-placeholder p {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #666;
}

.camp-detail-long-placeholder span {
  font-size: 13px;
  line-height: 1.6;
}

.camp-detail-stub {
  margin: 0;
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
  color: #999;
  line-height: 1.7;
}

.camp-detail-buybar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(480px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  z-index: 30;
}

.camp-detail-gift {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 0 0 52px;
  padding: 0;
  border: none;
  background: transparent;
  color: #3b7ddd;
  font-size: 11px;
  cursor: pointer;
}

.camp-detail-gift-icon {
  font-size: 22px;
  line-height: 1;
}

.camp-detail-enroll {
  flex: 1;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  background: #9ec9f5;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: not-allowed;
}

.camp-detail-enroll:not(:disabled) {
  background: #3b7ddd;
  cursor: pointer;
}

.camp-detail-empty {
  padding: 40px 16px;
  text-align: center;
  color: #888;
}

.app-page--camp-detail .customer-fab {
  bottom: calc(72px + env(safe-area-inset-bottom));
}

/* ── 分类 Tab 页（旧站四段式） ── */
.cat-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 8px;
}

.cat-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.cat-block-title::before {
  content: "";
  flex: 0 0 4px;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: #e8843c;
}

.cat-media-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cat-media-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 88px;
  padding: 14px 12px;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(42, 33, 25, 0.06);
  border: 1px solid rgba(42, 33, 25, 0.05);
}

.cat-media-card strong {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.cat-media-sub {
  position: relative;
  z-index: 1;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}

.cat-media-card::after {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  opacity: 0.55;
  pointer-events: none;
}

.cat-media-card--recorded::after {
  background: radial-gradient(circle, #ffd86b 0%, #ffb347 45%, transparent 70%);
}

.cat-media-card--live::after {
  background: radial-gradient(circle, #8ec5ff 0%, #6b8cff 50%, transparent 72%);
}

.cat-media-card:active,
.cat-wide-card:active,
.cat-icon-item:active {
  opacity: 0.88;
}

.cat-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 6px;
}

.cat-icon-grid--loose {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cat-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  text-align: center;
}

.cat-icon-bubble {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f0f0f0;
}

.cat-icon-bubble img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.cat-icon-label {
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink);
  max-width: 96px;
}

.cat-wide-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(42, 33, 25, 0.06);
  border: 1px solid rgba(42, 33, 25, 0.05);
}

.cat-wide-card-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 62%;
}

.cat-wide-card-text strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.cat-wide-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46%;
  background:
    linear-gradient(135deg, transparent 42%, rgba(139, 124, 255, 0.12) 42%, rgba(139, 124, 255, 0.12) 52%, transparent 52%),
    linear-gradient(135deg, transparent 58%, rgba(107, 140, 255, 0.14) 58%, rgba(107, 140, 255, 0.14) 68%, transparent 68%),
    linear-gradient(135deg, transparent 30%, rgba(180, 160, 255, 0.1) 30%, rgba(180, 160, 255, 0.1) 40%, transparent 40%);
  pointer-events: none;
}

.theater-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theater-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.theater-card-cover {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--accent-soft);
}

.theater-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theater-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.theater-card-body strong {
  font-size: 15px;
}

/* ── 部落社区页 ── */
.shell--tribe {
  padding-top: 4px;
}

.tribe-page {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tribe-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tribe-page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.tribe-head-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.tribe-head-icon img,
.tribe-action-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.tribe-action-fallback {
  font-size: 16px;
  line-height: 1;
}

.tribe-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.tribe-tab {
  position: relative;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.tribe-tab.is-active {
  color: #3b7ddd;
}

.tribe-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  border-radius: 999px;
  background: #3b7ddd;
}

.tribe-tab-search {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.tribe-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tribe-post {
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--line);
}

.tribe-post:last-child {
  border-bottom: none;
}

.tribe-post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tribe-post-avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
}

.tribe-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tribe-post-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tribe-post-meta strong {
  font-size: 14px;
  font-weight: 600;
}

.tribe-post-meta time {
  font-size: 11px;
  color: var(--muted);
}

.tribe-post-more {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}

.tribe-post-text {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}

.tribe-post-chart {
  display: inline-block;
  width: 72px;
  margin-bottom: 10px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.tribe-post-chart img {
  width: 100%;
  height: auto;
  display: block;
}

.tribe-post-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.tribe-post-photos--one {
  grid-template-columns: minmax(0, 160px);
}

.tribe-post-photo {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-muted);
}

.tribe-post-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tribe-product-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.tribe-product-cover {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.tribe-product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tribe-product-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.tribe-product-cart img {
  width: 22px;
  height: 22px;
  filter: none;
}

.tribe-post-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.tribe-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.tribe-action-btn .tribe-action-icon img {
  width: 18px;
  height: 18px;
}

.tribe-compose-fab {
  position: fixed;
  right: max(16px, calc(50% - 240px + 16px));
  bottom: calc(128px + env(safe-area-inset-bottom));
  z-index: 26;
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.tribe-compose-icon img {
  width: 52px;
  height: 52px;
  filter: none;
}

.tribe-compose-icon .tribe-action-fallback {
  font-size: 22px;
  color: #fff;
}

.tribe-empty {
  padding: 24px 0;
  text-align: center;
}

/* ── 消息中心页 ── */
.shell--message {
  padding-top: 4px;
}

.message-page-head {
  margin-bottom: 4px;
}

.message-page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.message-list {
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

.message-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 12px;
  border-bottom: 1px solid var(--line);
}

.message-row:last-child {
  border-bottom: none;
}

.message-row:active {
  background: var(--surface-muted);
}

.message-row-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.message-row-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.message-row-icon-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 22px;
  border-radius: 12px;
}

.message-row-icon--system .message-row-icon-fallback {
  background: #e8f1ff;
}

.message-row-icon--order .message-row-icon-fallback {
  background: #fff0e0;
}

.message-row-icon--income .message-row-icon-fallback {
  background: #efe8ff;
}

.message-row-icon--interaction .message-row-icon-fallback {
  background: #ffece3;
}

.message-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message-row-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.message-row-preview {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-row-date {
  flex: 0 0 auto;
  font-size: 11px;
  color: #b0aaa4;
  white-space: nowrap;
  align-self: flex-start;
  padding-top: 2px;
}

.message-row-date--empty {
  width: 0;
  padding: 0;
}

.message-empty {
  padding: 24px 16px;
  text-align: center;
}

/* ── 我的页 ── */
.shell--profile {
  padding-top: 0;
}

.profile-login-panel {
  margin-bottom: 14px;
}

.profile-login-panel:empty {
  display: none;
}

.profile-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 6px;
}

.profile-user {
  margin-bottom: 14px;
  padding: 0 2px;
}

.profile-page-head {
  margin: 0 0 18px;
  padding-top: max(6px, env(safe-area-inset-top));
}

.profile-page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
  padding: 0 18px 2px;
}

.profile-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.profile-avatar {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  background: #1a1816;
  display: grid;
  place-items: center;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-fallback {
  color: #d4af37;
  font-size: 30px;
  font-weight: 700;
}

.profile-hero-main {
  flex: 1;
  min-width: 0;
  padding-top: 8px;
}

.profile-name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.profile-sub {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.profile-id {
  display: inline-block;
  margin-top: 0;
  margin-left: 10px;
}

.profile-copy {
  border: none;
  background: transparent;
  color: #3b7ddd;
  font-size: inherit;
  padding: 0;
  cursor: pointer;
}

.profile-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-pill {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid #ececf1;
  background: #f8f8fb;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.profile-hero-tools {
  display: flex;
  flex-direction: row;
  gap: 18px;
  flex-shrink: 0;
  padding-top: 14px;
}

.profile-tool-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.profile-tool-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.profile-stat strong {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.profile-stat span {
  font-size: 13px;
  color: var(--muted);
}

.profile-card {
  background: var(--paper);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 18px 10px 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.04);
}

.profile-card-title {
  margin: 0 0 18px 10px;
  font-size: 18px;
  font-weight: 700;
}

.profile-grid {
  display: grid;
  gap: 22px 0;
}

.profile-grid--learn-second {
  margin-top: 18px;
}

.profile-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.profile-supplier-band + .profile-supplier-band {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.profile-grid--sparse {
  justify-items: start;
}

.profile-grid--sparse .profile-grid-item {
  width: 100%;
}

.profile-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: center;
  min-width: 0;
  min-height: 108px;
  padding: 0 2px;
}

.profile-grid-item:active {
  opacity: 0.85;
}

.profile-grid-icon {
  width: 42px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.profile-grid-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.profile-grid-fallback {
  font-size: 20px;
  line-height: 1;
  color: #e8c170;
}

.profile-grid-label {
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink);
  word-break: keep-all;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .profile-hero-top {
    gap: 14px;
  }

  .profile-avatar {
    flex-basis: 78px;
    width: 78px;
    height: 78px;
  }

  .profile-name {
    font-size: 17px;
  }

  .profile-sub {
    font-size: 12px;
  }

  .profile-id {
    display: block;
    margin-top: 2px;
    margin-left: 0;
  }

  .profile-hero-tools {
    gap: 12px;
    padding-top: 10px;
  }

  .profile-tool-btn img {
    width: 26px;
    height: 26px;
  }

  .profile-card {
    padding-left: 8px;
    padding-right: 8px;
  }

  .profile-grid-item {
    min-height: 102px;
    gap: 9px;
  }

  .profile-grid-label {
    font-size: 11px;
  }
}

/* Tab 根页不显示锁顶栏与回到顶部（避免与智能客服叠在一起） */
.app-page--category .app-sticky-topbar,
.app-page--message .app-sticky-topbar,
.app-page--tribe .app-sticky-topbar,
.app-page--profile .app-sticky-topbar,
.app-page--category .back-top-fab,
.app-page--message .back-top-fab,
.app-page--tribe .back-top-fab,
.app-page--profile .back-top-fab {
  display: none !important;
}

.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 600;
}

.profile-menu a::after {
  content: "›";
  color: var(--muted);
  font-size: 18px;
}

/* ── 回到顶部 ── */
.back-top-fab {
  position: fixed;
  right: max(12px, calc(50% - 240px + 12px));
  bottom: calc(124px + env(safe-area-inset-bottom));
  z-index: 24;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #888;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.back-top-fab[hidden] {
  display: none !important;
}

.back-top-fab img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.back-top-fallback {
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

/* ── 智能客服浮钮 ── */
.customer-fab {
  position: fixed;
  right: max(12px, calc(50% - 240px + 12px));
  bottom: calc(68px + env(safe-area-inset-bottom));
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.customer-fab-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
}

.customer-fab-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.customer-fab-fallback {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #3b7ddd;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  place-items: center;
}

.customer-fab-label {
  font-size: 10px;
  font-weight: 600;
  color: #3b7ddd;
  line-height: 1.2;
  white-space: nowrap;
}

.customer-fab-inner {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-modal[hidden] {
  display: none !important;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.contact-modal-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: min(82vh, 640px);
  overflow: auto;
  padding: 18px 16px 16px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.contact-modal-panel h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.contact-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.contact-modal-img {
  width: 100%;
  height: auto;
  margin-top: 12px;
  border-radius: var(--radius-sm);
}

body.modal-open {
  overflow: hidden;
}

.detail-page .back-top-fab {
  bottom: calc(144px + env(safe-area-inset-bottom));
}

.detail-page .customer-fab {
  bottom: calc(88px + env(safe-area-inset-bottom));
}

.site-footer {
  margin-top: 24px;
  padding: 12px 0 8px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.site-footer-brand {
  margin: 0 0 6px;
  font-size: 12px;
}

.site-footer a:hover {
  color: var(--accent);
}

.empty-state {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 520px) {
  .shell {
    padding-top: 20px;
  }
}

/* ── 后台管理 · 桌面壳（参考学两招浅色风格） ── */
.admin-desktop {
  margin: 0;
  overflow: hidden;
  background: #f5f7fa;
}

.admin-desktop.app-page::before,
.admin-desktop.app-page::after {
  display: none;
}

.admin-layout {
  display: flex;
  height: 100vh;
  height: 100dvh;
  width: 100%;
}

.admin-sidebar {
  flex: 0 0 108px;
  display: flex;
  flex-direction: column;
  width: 108px;
  background: #2b3245;
  color: #b8c0d0;
  z-index: 200;
}

.admin-sidebar-brand {
  display: flex;
  justify-content: center;
  padding: 18px 12px 14px;
}

.admin-sidebar-logo,
.admin-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-sidebar-nav {
  flex: 1;
  padding: 6px 8px;
  overflow-y: auto;
}

.admin-sidebar-bottom {
  padding: 6px 8px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-side-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 10px 6px;
  margin-bottom: 4px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #b8c0d0;
  font: inherit;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  position: relative;
}

.admin-side-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.admin-side-item.is-active {
  color: #2b3245;
  background: #fff;
  font-weight: 600;
}

.admin-side-item.has-subnav.is-active::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #fff;
  border-left: none;
}

.admin-side-icon {
  width: auto;
  font-size: 18px;
  line-height: 1;
  opacity: 0.9;
}

.admin-side-badge {
  display: none;
}

.admin-subsidebar {
  flex: 0 0 148px;
  width: 148px;
  background: #fff;
  border-right: 1px solid #e8e8e8;
  z-index: 190;
}

.admin-subsidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0 12px;
}

.admin-subside-group {
  margin-bottom: 2px;
}

.admin-subside-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-left: 3px solid transparent;
  background: transparent;
  color: #595959;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.admin-subside-group-toggle:hover {
  color: #1890ff;
  background: #f5faff;
}

.admin-subside-group-toggle.is-active-product {
  color: #1890ff;
}

.admin-subside-group.is-expanded .admin-subside-group-toggle {
  color: #1890ff;
}

.admin-subside-chevron {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  opacity: 0.55;
}

.admin-subside-group.is-expanded .admin-subside-chevron {
  transform: rotate(45deg);
  margin-top: -3px;
}

.admin-subside-group-items {
  display: flex;
  flex-direction: column;
  padding-bottom: 4px;
}

.admin-subside-group-items[hidden] {
  display: none;
}

.admin-subside-subitem {
  display: block;
  padding: 9px 16px 9px 32px;
  color: #595959;
  font-size: 13px;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.admin-subside-subitem:hover {
  color: #1890ff;
  background: #f5faff;
}

.admin-subside-subitem.is-active {
  color: #1890ff;
  background: #e6f7ff;
  border-left-color: #1890ff;
  font-weight: 600;
}

.admin-subside-item {
  display: block;
  padding: 12px 16px;
  color: #595959;
  font-size: 14px;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.admin-subside-item:hover {
  color: #1890ff;
  background: #f5faff;
}

.admin-subside-item.is-active {
  color: #1890ff;
  background: #e6f7ff;
  border-left-color: #1890ff;
  font-weight: 600;
}

.admin-has-subnav .admin-workspace {
  min-width: 0;
}

.admin-sidebar-backdrop {
  display: none;
}

.admin-workspace {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f5f7fa;
}

.admin-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-header-brand strong {
  font-size: 18px;
  font-weight: 700;
  color: #262626;
}

.admin-header-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
}

.admin-header-titles h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
}

.admin-header-titles p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #8c8c8c;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header-icon {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 4px;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #595959;
}

.admin-header-icon:hover {
  background: #f5f5f5;
}

.admin-header-avatar {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #e8e8e8;
}

.admin-header-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-content-scroll {
  flex: 1;
  overflow: auto;
  padding: 16px 20px 24px;
}

.admin-card {
  padding: 16px 20px;
  margin-bottom: 16px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #f0f0f0;
}

.admin-card--flat {
  box-shadow: none;
}

.admin-card--compact {
  padding: 14px 16px;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #262626;
}

.admin-card-meta {
  font-size: 12px;
  color: #8c8c8c;
}

.admin-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  color: #8c8c8c;
  font-size: 12px;
  cursor: pointer;
}

.admin-refresh span[aria-hidden] {
  font-size: 14px;
}

.admin-icon-btn {
  border: none;
  background: none;
  color: #bfbfbf;
  font-size: 16px;
  cursor: pointer;
}

.admin-dashboard {
  display: grid;
  gap: 0;
  align-items: start;
}

@media (min-width: 1200px) {
  .admin-dashboard--ref {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
  }
}

.admin-dashboard-main {
  min-width: 0;
}

.admin-dashboard-rail {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.admin-stat-grid {
  display: grid;
  gap: 0;
  margin-bottom: 0;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.admin-stat-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-stat-grid--secondary {
  margin-top: -1px;
  border-top: none;
}

.admin-stat {
  padding: 16px 18px;
  background: #fff;
  border-right: 1px solid #f0f0f0;
}

.admin-stat-grid .admin-stat:last-child {
  border-right: none;
}

.admin-stat--hero .admin-stat-label {
  display: block;
  font-size: 13px;
  color: #8c8c8c;
}

.admin-stat--hero .admin-stat-value {
  display: block;
  margin: 8px 0 6px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  color: #262626;
}

.admin-stat-sub {
  font-size: 12px;
  color: #8c8c8c;
}

.admin-stat-sub em {
  font-style: normal;
  color: #595959;
}

.admin-stat-sub--up em {
  color: #52c41a;
}

.admin-fn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 4px 0 8px;
}

.admin-fn-row--muted {
  opacity: 0.85;
}

.admin-fn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 72px;
  color: #595959;
  font-size: 13px;
  text-decoration: none;
  text-align: center;
}

.admin-fn-item:hover {
  color: #1890ff;
}

.admin-fn-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: contain;
}

.admin-chart-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #8c8c8c;
}

.admin-select {
  padding: 4px 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
}

.admin-line-chart {
  margin-top: 8px;
}

.admin-line-chart svg {
  width: 100%;
  height: 180px;
  display: block;
}

.admin-line-chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: #bfbfbf;
}

.admin-chart-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #bfbfbf;
  text-align: center;
}

.admin-app-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  background: #fafafa;
  color: inherit;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
}

.admin-app-card strong {
  font-size: 13px;
  color: #262626;
}

.admin-app-card span {
  color: #8c8c8c;
}

.admin-app-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-todo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-todo-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  background: #fafafa;
  text-align: center;
  font-size: 12px;
  color: #595959;
}

.admin-todo-cell strong {
  font-size: 22px;
  color: #262626;
  font-weight: 700;
}

.admin-more {
  font-size: 12px;
  color: #1890ff;
  text-decoration: none;
}

.admin-notice-list--ref li {
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 13px;
  line-height: 1.55;
  color: #595959;
}

.admin-notice-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 0 4px;
  border-radius: 2px;
  background: #fff1f0;
  color: #ff4d4f;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}

.admin-settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.35);
}

.admin-settings-overlay[hidden] {
  display: none !important;
}

.admin-settings-overlay.is-open {
  display: grid;
}

.admin-settings-panel {
  width: min(420px, 100%);
  padding: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.admin-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
}

.admin-settings-head h2 {
  margin: 0;
  font-size: 16px;
}

.admin-settings-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #f5f5f5;
  font-size: 20px;
  cursor: pointer;
}

.admin-settings-body {
  padding: 18px;
}

.admin-soon-panel {
  max-width: 480px;
  margin: 40px auto;
  padding: 40px 32px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.admin-soon-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.admin-soon-panel h2 {
  margin: 0 0 10px;
}

.admin-soon-panel p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

.admin-soon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

@media (max-width: 1100px) {
  .admin-stat-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 108px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
  }

  .admin-subsidebar {
    position: fixed;
    top: 0;
    left: 108px;
    bottom: 0;
    transform: translateX(calc(-100% - 108px));
    transition: transform 0.2s ease;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
  }

  .admin-has-subnav.admin-sidebar-open .admin-subsidebar,
  .admin-sidebar.is-open ~ .admin-subsidebar {
    transform: translateX(0);
  }

  .admin-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0, 0, 0, 0.35);
  }

  .admin-menu-toggle {
    display: grid;
    place-items: center;
  }

  .admin-content-scroll {
    padding: 16px;
  }

  .admin-header {
    padding: 12px 16px;
  }
}

@media (max-width: 520px) {
  .admin-stat-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ── 后台管理 · 表单/表格 ── */
.admin-page .shell {
  padding-bottom: 32px;
}

.admin-desktop .shell {
  max-width: none;
  padding: 0;
}

.admin-auth-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.admin-hint {
  flex: 1 1 100%;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.admin-hint code {
  font-size: 11px;
}

.admin-toolbar {
  padding: 18px 20px;
}

.admin-toolbar .section-head {
  margin-bottom: 0;
}

.admin-message {
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.admin-message-success {
  background: #eef6e8;
  color: #3d5c2a;
  border: 1px solid rgba(90, 122, 58, 0.2);
}

.admin-message-error {
  background: #fdf0eb;
  color: #8a3d22;
  border: 1px solid rgba(184, 92, 56, 0.25);
}

.admin-message-info {
  background: #fff9ed;
  color: var(--muted);
  border: 1px solid var(--line);
}

.admin-table-wrap {
  padding: 0;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.5);
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.admin-status {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.admin-status-on {
  background: #e8f0e0;
  color: var(--green);
}

.admin-status-off {
  background: #f0e8e4;
  color: var(--muted);
}

.admin-status-draft {
  background: #fff3d6;
  color: #8a6a22;
}

.admin-actions-cell {
  white-space: nowrap;
}

.admin-actions-cell a,
.link-btn {
  font-size: 13px;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  margin-right: 12px;
  cursor: pointer;
  font-family: inherit;
}

.admin-form {
  padding: 8px 0 24px;
}

.admin-form-section {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.admin-form-section:last-of-type {
  border-bottom: 0;
}

.admin-form-section h2 {
  margin: 0 0 16px;
  font-size: 16px;
}

.admin-form-grid {
  display: grid;
  gap: 14px 16px;
  grid-template-columns: 1fr 1fr;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-field-full {
  grid-column: 1 / -1;
}

.admin-field-inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}

.admin-field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.admin-field span em {
  color: var(--accent);
  font-style: normal;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
}

.admin-field textarea {
  min-height: 88px;
  resize: vertical;
}

.field-hint,
.admin-type-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.admin-form-actions {
  display: flex;
  gap: 12px;
  padding: 20px;
}

.button-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.admin-help {
  padding: 20px;
}

.admin-help h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.admin-help-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.admin-nav-item {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  background: #f5f5f5;
}

.admin-nav-item.is-active {
  color: #fff;
  background: #c43a2e;
}

.admin-nav-item--out {
  margin-left: auto;
  color: #888;
  background: transparent;
  border: 1px solid var(--line);
}

.admin-hub-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

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

.admin-hub-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  color: inherit;
}

.admin-hub-card--muted {
  background: #fafafa;
}

.admin-hub-icon {
  font-size: 28px;
  line-height: 1;
}

.admin-hub-card strong {
  font-size: 16px;
}

.admin-hub-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.admin-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  word-break: break-all;
}

.admin-status-pending {
  color: #b86a00;
  background: #fff6e6;
}

.admin-status-paid {
  color: #1e7a45;
  background: #e8f7ee;
}

.admin-order-card {
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.admin-order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px 0;
}

@media (max-width: 640px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-table th:nth-child(1),
  .admin-table td:nth-child(1) {
    display: none;
  }

  .admin-desktop-only {
    display: none;
  }
}

@media (min-width: 641px) {
  .admin-mobile-list {
    display: none;
  }
}

/* ── 后台：编辑页双栏 + 预览 ── */
.admin-edit-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .admin-edit-layout {
    grid-template-columns: 1fr min(340px, 36vw);
    align-items: start;
  }

  .admin-preview-panel {
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 24px);
    overflow: auto;
    padding: 16px;
  }
}

.admin-price-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}

.admin-price-prefix {
  padding: 0 12px;
  color: var(--muted);
  font-weight: 600;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.admin-price-input input {
  border: 0;
  border-radius: 0;
  min-height: 42px;
}

.field-hint.is-valid,
[data-price-fen-hint].is-valid {
  color: var(--green);
}

.admin-field-placement {
  color: var(--accent-deep);
}

.admin-tags-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
}

.admin-tag-chip {
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

.admin-tags-empty {
  font-size: 12px;
  color: var(--muted);
}

.admin-preview-note {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
}

.admin-preview-block {
  margin-bottom: 16px;
}

.admin-preview-label {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.admin-preview-card {
  pointer-events: none;
}

.admin-preview-card-inner {
  display: block;
}

.admin-preview-cover {
  height: 120px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.admin-preview-subtitle {
  margin: 4px 0 6px;
  font-size: 13px;
  color: var(--muted);
}

.admin-preview-subtitle.is-empty,
.admin-preview-slot.is-empty {
  opacity: 0.65;
  font-style: italic;
}

.admin-preview-slot {
  outline: 1px dashed rgba(184, 92, 56, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}

.admin-preview-detail {
  padding: 16px;
}

.admin-preview-detail-title {
  margin: 0 0 6px;
  font-size: 20px;
}

.admin-preview-tip {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #fff9ed;
  border: 1px solid var(--line);
  font-size: 13px;
}

.admin-preview-tip strong {
  display: block;
  margin-bottom: 4px;
}

.admin-preview-tip p {
  margin: 0;
  color: var(--muted);
}

.admin-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.admin-filter-tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  color: var(--muted);
}

.admin-filter-tab.is-active {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: rgba(184, 92, 56, 0.25);
}

.admin-list-teacher {
  font-size: 12px;
  color: var(--accent-deep);
  margin-top: 2px;
}

.admin-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.admin-tag-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.admin-price-cell {
  white-space: nowrap;
  font-weight: 600;
}

.admin-list-card {
  margin: 0 0 12px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.admin-list-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-list-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.admin-list-card-price {
  margin: 10px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-deep);
}

.admin-list-card-actions {
  display: flex;
  gap: 10px;
}

.admin-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  padding: 20px;
}

.admin-confirm-box {
  width: min(360px, 100%);
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.admin-confirm-box p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
}

.admin-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.admin-cover-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.admin-cover-option.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.admin-cover-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: #f3e8cf;
}

.admin-cover-label {
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

/* ── 产品 · 录播列表（学两招风格） ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-recorded-page {
  padding: 16px 20px 24px;
}

.admin-recorded-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 16px;
}

.admin-recorded-search-field {
  flex: 1 1 200px;
  max-width: 280px;
}

.admin-recorded-search-field input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
}

.admin-recorded-search-btn {
  min-width: 72px;
  height: 36px;
  padding: 0 18px;
  background: #1890ff;
  border-color: #1890ff;
}

.admin-recorded-clear {
  border: none;
  background: none;
  color: #595959;
  font-size: 13px;
  cursor: pointer;
}

.admin-recorded-create {
  margin-left: auto;
  height: 36px;
}

.admin-recorded-status {
  margin: 0 0 12px;
  font-size: 13px;
}

.admin-recorded-list {
  display: flex;
  flex-direction: column;
}

.admin-recorded-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 16px 20px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.admin-recorded-item:last-child {
  border-bottom: none;
}

.admin-recorded-cover {
  position: relative;
  width: 120px;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
}

.admin-recorded-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-recorded-cover-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.admin-recorded-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 10px;
}

.admin-recorded-title-row h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #262626;
}

.admin-recorded-id {
  font-size: 13px;
  color: #8c8c8c;
}

.admin-recorded-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-recorded-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 2px;
  background: #e6f7ff;
  color: #1890ff;
  font-size: 12px;
}

.admin-recorded-tag i {
  font-style: normal;
  font-size: 11px;
}

.admin-recorded-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 13px;
}

.admin-recorded-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #595959;
}

.admin-recorded-sort input {
  width: 64px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
  background: #fafafa;
}

.admin-recorded-link,
.admin-recorded-link-btn {
  border: none;
  background: none;
  padding: 0;
  color: #1890ff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.admin-recorded-more {
  color: #595959;
}

.admin-recorded-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  min-width: 120px;
}

.admin-recorded-side-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  font-size: 13px;
}

.admin-recorded-side-links a,
.admin-recorded-side-links button {
  color: #1890ff;
}

.admin-recorded-muted {
  color: #bfbfbf;
  font-size: 13px;
}

.admin-recorded-media-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #1890ff;
  border-radius: 4px;
  background: #fff;
  color: #1890ff;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.admin-recorded-media-btn:hover {
  background: #e6f7ff;
}

@media (max-width: 900px) {
  .admin-recorded-item {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .admin-recorded-cover {
    width: 88px;
  }

  .admin-recorded-side {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .admin-recorded-create {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

/* ── 产品 · 音视频管理（第三层） ── */
.admin-media-page {
  padding: 16px 20px 24px;
}

.admin-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  font-size: 13px;
  color: #8c8c8c;
}

.admin-breadcrumb a {
  color: #595959;
  text-decoration: none;
}

.admin-breadcrumb a:hover {
  color: #1890ff;
}

.admin-breadcrumb-sep {
  color: #d9d9d9;
}

.admin-breadcrumb-current {
  color: #262626;
}

.admin-media-course-bar {
  margin: 0 0 16px;
  font-size: 14px;
}

.admin-media-course-bar strong {
  color: #262626;
}

.admin-media-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
  margin-bottom: 12px;
}

.admin-media-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  flex: 1 1 320px;
}

.admin-media-filter-label {
  font-size: 13px;
  color: #595959;
}

.admin-media-status-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.admin-media-status-group label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #262626;
  cursor: pointer;
}

.admin-media-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 16px;
}

.admin-media-search-row input[type="search"] {
  flex: 1 1 240px;
  max-width: 320px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
}

.admin-media-actions-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.admin-media-actions-top .button.ghost {
  height: 36px;
}

.admin-media-upload-btn {
  height: 36px;
  background: #1890ff;
  border-color: #1890ff;
}

.admin-media-section-label {
  margin: 0 0 8px;
  font-size: 13px;
  color: #595959;
}

.admin-media-table-wrap {
  overflow-x: auto;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  background: #fff;
}

.admin-media-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-media-table th,
.admin-media-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
  vertical-align: middle;
}

.admin-media-table th {
  background: #fafafa;
  color: #595959;
  font-weight: 500;
  white-space: nowrap;
}

.admin-media-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-media-sort-input {
  width: 56px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
}

.admin-media-id {
  color: #595959;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.admin-media-preview {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #1890ff;
  text-decoration: none;
  font-size: 12px;
}

.admin-media-preview-thumb {
  display: grid;
  place-items: center;
  width: 48px;
  height: 36px;
  border-radius: 4px;
  background: #f5f5f5;
  font-size: 14px;
}

.admin-media-cover-thumb {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  background: #f5f5f5;
}

.admin-media-title {
  max-width: 280px;
  line-height: 1.45;
}

.admin-media-empty {
  padding: 48px 16px;
  text-align: center;
  color: #bfbfbf;
}

.admin-media-empty-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.admin-media-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: #8c8c8c;
}

.admin-media-actions {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .admin-media-actions-top {
    margin-left: 0;
    width: 100%;
  }

  .admin-media-upload-btn {
    flex: 1;
  }
}

.login-panel {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.login-panel p {
  margin: 0 0 10px;
}

.login-panel-ok {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
}
