:root {
  --bg: #0d1117;
  --bg-soft: #161b22;
  --bg-card: #1c232d;
  --border: #2d3540;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --gold: #d4a017;
  --gold-soft: #e8b923;
  --gold-glow: rgba(212, 160, 23, 0.25);
  --teal: #4ecdc4;
  --danger: #f85149;
  --radius: 10px;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold-soft); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(13,17,23,.98), rgba(13,17,23,.92));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212,160,23,.08);
  box-shadow: 0 2px 20px rgba(0,0,0,.5), 0 1px 0 rgba(212,160,23,.05);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: .5px; flex-shrink: 0; }
.logo:hover { color: var(--gold); }
.logo-img { height: 36px; width: auto; display: block; }
.main-nav { display: flex; gap: 8px; flex: 1; }
.main-nav a {
  color: rgba(230,237,243,.85);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-bottom: 2px solid transparent;
  transition: all .25s ease;
  letter-spacing: .02em;
  position: relative;
  overflow: hidden;
}
.main-nav a::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  opacity: 0;
  transition: opacity .25s;
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(212,160,23,.08);
  color: var(--gold-soft);
  border-color: rgba(212,160,23,.3);
  border-bottom-color: var(--gold);
  box-shadow: 0 0 12px rgba(212,160,23,.15), inset 0 1px 0 rgba(255,255,255,.06);
  text-shadow: 0 0 8px rgba(212,160,23,.3);
  transform: translateY(-1px);
  opacity: 1;
}
.main-nav a:hover::before,
.main-nav a.active::before { opacity: 1; }
/* 后台配置的动态菜单（两级下拉） */
.main-nav .nav-item { position: relative; display: flex; align-items: center; }
.nav-caret { font-size: .7rem; opacity: .7; margin-left: 2px; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 170px;
  padding: 6px;
  background: rgba(18,26,36,.97);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  z-index: 200;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .9rem;
  color: rgba(230,237,243,.85);
  white-space: nowrap;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: none;
  overflow: visible;
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: rgba(78,205,196,.1); color: var(--teal); }
.nav-user { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--text-muted); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); font-size: 1.4rem; line-height: 1; border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.vip-badge { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; color: var(--text-muted); text-decoration: none; }
.vip-crown { font-size: 1.2rem; line-height: 1; }
.vip-text { font-size: .6rem; font-weight: 700; letter-spacing: .5px; margin-top: 2px; }
.vip-badge:hover { color: var(--gold); }
.vip-badge.vip-active { color: var(--gold); }
.vip-badge.vip-active .vip-crown { filter: drop-shadow(0 0 5px rgba(232,185,35,.55)); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(212,160,23,.16), transparent 60%),
    radial-gradient(ellipse at 85% 130%, rgba(78,205,196,.10), transparent 50%),
    linear-gradient(135deg, #0d1117 0%, #141a24 55%, #1d150a 100%);
  border-bottom: 1px solid var(--border);
  padding: 76px 0 68px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 50% 50%, rgba(212,160,23,.08), transparent 42%);
  animation: heroGlow 9s ease-in-out infinite;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-title {
  font-size: 2.7rem; font-weight: 800; letter-spacing: 2px; line-height: 1.35;
  background: linear-gradient(90deg, #e8b923, #f7e08a, #d4a017, #f0ce6a, #e8b923);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 20px rgba(212,160,23,.28));
  animation: heroShine 5s linear infinite, heroFadeUp .8s ease-out both;
}
.hero-slogan {
  margin-top: 18px; color: var(--text-muted); font-size: 1.12rem; letter-spacing: 1.5px;
  animation: heroFadeUp .8s ease-out .18s both;
}
.hero-divider {
  width: 64px; height: 2px; margin: 26px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
  animation: heroFadeUp .8s ease-out .32s both, heroDivider 3.2s ease-in-out infinite;
}

/* Hero 顶部公告条（最新内容随机播报，亮绿色） */
.notice-ticker { margin-bottom: 20px; }
.notice-ticker-inner { display: flex; align-items: center; justify-content: center; gap: 10px; }
.notice-speaker { color: #00ff88; display: inline-flex; flex: 0 0 auto; }
.notice-speaker .wave { animation: noticeWave 1.5s ease-in-out infinite; }
.notice-speaker .wave2 { animation-delay: .3s; }
@keyframes noticeWave { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
.notice-viewport { height: 40px; overflow: hidden; max-width: 720px; flex: 0 1 auto; }
.notice-list { transition: transform .6s ease; }
.notice-list.no-transition { transition: none; }
.notice-item {
  display: block; height: 40px; line-height: 40px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 12px; font-size: 14px; color: #00ff88; text-decoration: none;
}
.notice-item:hover { color: #b3ffd9; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroShine {
  to { background-position: 200% center; }
}
@keyframes heroGlow {
  0%, 100% { transform: translate(-4%, -4%) scale(1); opacity: .55; }
  50% { transform: translate(4%, 4%) scale(1.25); opacity: 1; }
}
@keyframes heroDivider {
  0%, 100% { width: 64px; opacity: .65; }
  50% { width: 128px; opacity: 1; }
}

.main-content { padding: 32px 0 64px; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--gold); transform: translateY(-2px); }

.article-card h2 { font-size: 1.15rem; margin-bottom: 6px; }
.article-card h2 a { color: var(--text); }
.article-card h2 a:hover { color: var(--gold); }
.article-meta { color: var(--text-muted); font-size: .82rem; margin: 4px 0 10px; }
.excerpt { color: var(--text-muted); font-size: .93rem; }
.read-more { font-size: .9rem; font-weight: 600; }
.lock { font-size: .85em; }

.home-articles { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.home-categories h2, .home-articles h2 { font-size: 1.3rem; margin-bottom: 14px; color: var(--gold); }
.cat-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip {
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px; font-size: .9rem; color: var(--text);
}
.cat-chip:hover { border-color: var(--gold); color: var(--gold); }

/* Article full */
.article-full h1 { font-size: 1.8rem; margin-bottom: 10px; line-height: 1.4; }
.article-body {
  margin-top: 24px; font-size: 1.02rem; line-height: 1.85;
}
.article-body h1, .article-body h2, .article-body h3 { margin: 1.4em 0 .6em; color: var(--gold); }
.article-body p { margin: .8em 0; }
.article-body img { max-width: 100%; height: auto; display: block; margin: 16px auto; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.article-body blockquote {
  border-left: 3px solid var(--gold); padding: 8px 16px; margin: 16px 0;
  background: var(--bg-soft); color: var(--text-muted); border-radius: 0 8px 8px 0;
}
.article-body pre { background: #0a0c10; padding: 14px; border-radius: 8px; overflow-x: auto; margin: 14px 0; border: 1px solid var(--border); }
.article-body code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.article-body pre code { background: none; padding: 0; }
.article-body a { text-decoration: underline; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 12px 0; }
.article-body .video-wrap { position: relative; padding-bottom: 56.25%; height: 0; margin: 16px 0; }
.article-body .video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; margin: 16px 0; }
.video-wrap .vw-del { display: none; }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }
.video-wrap:not(:has(iframe)):not(:has(video)) { position: static; padding-bottom: 0; height: auto; }
.article-body .iframe-wrap { margin: 16px 0; }
.article-body .iframe-wrap iframe { width: 100%; height: 480px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); display: block; }
.article-body .iframe-bar { display: flex; justify-content: flex-end; margin-top: 6px; }
.article-body .iframe-bar a { font-size: .8rem; color: var(--gold); text-decoration: none; }
.article-body .iframe-bar a:hover { text-decoration: underline; }
.about-columns { display: flex; gap: 16px; margin: 12px 0; }
.about-col { flex: 1; min-height: 60px; }
@media (max-width: 768px) { .about-columns { flex-direction: column; } }

/* 音频播放器（老式留声机） */
.audio-player {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: 14px;
}
.audio-player .ap-del {
  display: none;
}
.audio-player .ap-play {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: radial-gradient(circle at 50% 32%, rgba(212,160,23,.20), rgba(212,160,23,.05) 72%);
  color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.audio-player .ap-play:hover { transform: translateY(-2px); box-shadow: 0 0 18px rgba(212,160,23,.4); }
.audio-player .ap-play svg { display: block; }
.audio-player.ap-playing .ap-play { animation: apPulse 2.4s ease-in-out infinite; }
.audio-player.ap-playing .ap-disc { transform-origin: center; transform-box: fill-box; animation: apSpin 3.2s linear infinite; }
@keyframes apSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes apPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(212,160,23,.32); }
  50% { box-shadow: 0 0 26px rgba(212,160,23,.66); }
}
.audio-player .ap-info { flex: 1; min-width: 180px; }
.audio-player.ap-collapsed .ap-info { display: none; }
.audio-player .ap-title { font-size: .85rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.audio-player .ap-track { display: flex; align-items: center; gap: 10px; }
.audio-player .ap-bar { flex: 1; height: 5px; background: var(--border); border-radius: 999px; overflow: hidden; }
.audio-player .ap-bar-fill { width: 0; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); border-radius: 999px; transition: width .15s linear; }
.audio-player .ap-time { font-size: .75rem; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .audio-player { gap: 10px; padding: 12px; }
  .audio-player .ap-play { width: 52px; height: 52px; }
  .audio-player .ap-info { min-width: 0; }
}
/* 文章详情页两栏布局 + 右侧边栏 */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.article-main { min-width: 0; }
.article-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }
.side-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.side-title { font-size: .95rem; font-weight: 700; color: var(--gold); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.side-list { display: flex; flex-direction: column; gap: 10px; }
.side-item { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.side-item:hover .side-item-title { color: var(--gold); }
.side-cover-wrap { flex-shrink: 0; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-soft); }
.side-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-cover-ph { font-size: 1.5rem; }
.side-item-title { font-size: .85rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 广告轮播 */
.ad-box { position: relative; }
.ad-badge { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(0,0,0,.55); color: #fff; font-size: .65rem; padding: 2px 8px; border-radius: 999px; }
.ad-item { display: block; text-decoration: none; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); transition: border-color .15s, box-shadow .15s; }
.ad-item:hover { border-color: var(--gold); box-shadow: 0 0 14px rgba(212,160,23,.25); }
.ad-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.ad-text { display: block; padding: 10px 12px; font-size: .85rem; color: var(--text); background: var(--bg-soft); }

@media (max-width: 992px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

.article-body table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.article-body th { background: var(--bg-soft); }

/* Paywall */
.paywall { display: flex; justify-content: center; margin: 32px 0; }
.paywall-box {
  text-align: center; max-width: 460px; padding: 40px 32px;
  background: var(--bg-card); border: 1px solid var(--gold-glow); border-radius: var(--radius);
}
.paywall-icon { font-size: 3rem; margin-bottom: 12px; }
.paywall-box h2 { color: var(--gold); margin-bottom: 12px; }
.paywall-hint { color: var(--text-muted); margin: 12px 0 20px; }
.paywall-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.paywall-actions .btn-primary { text-align: center; text-decoration: none; display: block; }

/* Buttons */
.btn-primary {
  display: inline-block; background: linear-gradient(135deg, #d4a017, #e8b923);
  color: #0d1117; font-weight: 700; padding: 10px 22px; border-radius: 8px;
  border: none; cursor: pointer; margin: 4px;
}
.btn-primary:hover { color: #0d1117; filter: brightness(1.08); }
.btn-ghost {
  display: inline-block; background: transparent; color: var(--text-muted);
  border: 1px solid var(--border); padding: 10px 22px; border-radius: 8px; cursor: pointer; margin: 4px;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Pay methods */
.pay-methods { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin: 0 0 24px; }
.pay-methods-label { color: var(--text-muted); }
.pay-methods label { display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text); font-size: .95rem; }
.pay-methods input[type="radio"] { accent-color: var(--gold); cursor: pointer; }
.pay-method-checks { display: flex; flex-wrap: wrap; gap: 18px; }
.pay-method-checks label { display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text); font-size: .95rem; }
.pay-method-checks input[type="checkbox"] { accent-color: var(--gold); cursor: pointer; }

/* Content grid (courses / shop) */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; text-decoration: none; color: var(--text); }
.grid-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.grid-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--bg-soft); }
.grid-cover-ph { display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.grid-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.grid-body h3 { font-size: 1rem; margin: 0; }
.grid-excerpt { color: var(--text-muted); font-size: .82rem; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-section { margin-bottom: 36px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { font-size: 1.3rem; color: var(--gold); margin: 0; }
.section-more { color: var(--text-muted); font-size: .9rem; text-decoration: none; }
.section-more:hover { color: var(--gold); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.page-btn { color: var(--text); text-decoration: none; border: 1px solid var(--border); border-radius: 6px; padding: 8px 16px; font-size: .9rem; }
.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.disabled { color: var(--text-muted); opacity: .5; pointer-events: none; }
.page-btn.active { background: var(--gold); color: #0d1117; border-color: var(--gold); font-weight: 600; }
.helper-list { display: flex; flex-direction: column; margin-top: 16px; }
.helper-item { display: block; padding: 12px 4px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 1rem; }
.helper-item:hover { color: var(--gold); }
.page-info { color: var(--text-muted); font-size: .9rem; }
.grid-meta { color: var(--text-muted); font-size: .8rem; }
.grid-price { color: var(--gold); font-weight: 700; font-size: 1.05rem; }
.grid-type-tag { display: inline-block; font-size: .72rem; padding: 1px 7px; border-radius: 4px; margin-right: 6px; }
.vt-virtual { background: rgba(78,205,196,.15); color: var(--teal); }
.vt-physical { background: rgba(232,185,35,.15); color: var(--gold); }

/* Course / product detail */
.course-full, .product-full { max-width: 100%; }
.course-head h1, .product-full h1 { font-size: 1.6rem; margin-bottom: 8px; line-height: 1.4; }
.course-buy { display: flex; align-items: center; gap: 14px; margin: 16px 0; padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.course-price { color: var(--gold); font-weight: 800; font-size: 1.6rem; }
.course-head-meta { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; }
.course-head-meta .article-meta { margin: 0; }
.course-head-meta .course-buy { margin: 0; padding: 0; background: none; border: none; border-radius: 0; gap: 8px; }
.course-head-meta .course-price { font-size: 1.1rem; font-weight: 700; }
.course-head-meta .btn-primary { padding: 6px 14px; font-size: .85rem; border-radius: 6px; }
@media (max-width: 768px) {
  .course-head-meta { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .course-head-meta .course-buy { margin: 0; padding: 6px 12px; gap: 8px; }
  .course-head-meta .course-price { font-size: 1.15rem; }
  .course-head-meta .btn-primary { padding: 6px 12px; font-size: .85rem; }
}
.course-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; margin-top: 8px; }
.course-main { min-width: 0; }
.course-player { position: relative; padding-bottom: 56.25%; height: 0; background: #000; border-radius: 12px; overflow: hidden; }
.course-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.course-player-empty { display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 1.1rem; }
.course-intro { margin-top: 20px; }
.course-sidebar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; position: sticky; top: 76px; }
.course-sidebar h2 { font-size: 1.05rem; color: var(--gold); margin-bottom: 12px; }
.course-chapter { margin-bottom: 12px; }
.course-chapter-title { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.course-video-link { display: block; padding: 7px 10px; border-radius: 6px; color: var(--text-muted); font-size: .9rem; text-decoration: none; }
.course-video-link:hover { background: var(--bg-soft); color: var(--text); }
.course-video-link.active { background: rgba(232,185,35,.12); color: var(--gold); }
.course-video-link.locked { opacity: .55; }
.course-video-item { display: flex; flex-direction: column; gap: 4px; }
.course-video-item .course-video-link { display: block; }
.course-video-article { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--gold); text-decoration: none; padding: 4px 10px; border: 1px solid var(--gold); border-radius: 6px; margin-left: 10px; transition: background .15s; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course-video-article:hover { background: rgba(232,185,35,.12); }
.product-cover { width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; margin: 16px 0; }
.hidden-content-box { background: var(--bg-card); border: 1px solid var(--gold); border-radius: 8px; padding: 16px; margin: 12px 0; }
.hc-title { color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.virtual-access { margin: 12px 0; }
.virtual-access .btn-primary { text-decoration: none; }

/* 购买模态框（紧凑精致） */
.buy-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 16px; transform: translateZ(0); will-change: transform; }
.bm-under-modal { display: none !important; pointer-events: none !important; }
.buy-modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; width: 360px; max-width: 92vw; max-height: 85vh; overflow-y: auto; box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.bm-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .95rem; }
.bm-body { padding: 12px 16px; }
.bm-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bm-row label { min-width: 56px; color: var(--text-muted); font-size: .82rem; }
.bm-price { color: var(--gold); font-weight: 700; font-size: 1.05rem; }
.bm-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.bm-method { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 42px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; padding: 0 4px; }
.bm-method:hover { border-color: var(--gold); }
.bm-method.checked, .bm-method:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); background: rgba(212,160,23,.08); }
.bm-method input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.bm-method img { height: 20px; width: auto; max-width: 68px; object-fit: contain; }
.bm-method span { font-size: .78rem; color: var(--text); }
.bm-foot { padding: 10px 16px 12px; border-top: 1px solid var(--border); }
#bm_addr_list { display: flex; flex-direction: column; margin-bottom: 8px; }
#bm_new_addr input { width: 100%; margin-bottom: 6px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-soft); color: var(--text); }

/* 收货地址簿 */
.addr-list { display: flex; flex-direction: column; gap: 12px; }
.addr-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.addr-line1 { font-size: 1rem; margin-bottom: 4px; }
.addr-line2 { color: var(--text-muted); font-size: .88rem; }
.addr-actions { display: flex; gap: 10px; font-size: .85rem; white-space: nowrap; }
.addr-form { display: flex; flex-direction: column; gap: 8px; max-width: 480px; }
.addr-form input { padding: 9px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-soft); color: var(--text); }

@media (max-width: 768px) {
  .course-layout { grid-template-columns: 1fr; }
  .course-sidebar { position: static; }
}

/* Account / section titles */
.section-title { font-size: 1.25rem; color: var(--gold); margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.invite-box { margin-bottom: 16px; }
.invite-box p { margin: 8px 0; }
.invite-code { color: var(--gold); font-size: 1.5rem; letter-spacing: 2px; }
.invite-input { width: 100%; max-width: 480px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); font-size: .9rem; margin: 6px 0 12px; display: block; }

/* Account shell (sidebar layout) */
.account-shell { display: flex; gap: 24px; align-items: flex-start; }
.account-sidebar { flex: 0 0 220px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; position: sticky; top: 76px; }
.account-user { text-align: center; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #e8b923, #d4a017); color: #0d1117; font-size: 1.6rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.avatar-wrap { position: relative; width: 56px; height: 56px; margin: 0 auto 10px; }
.avatar-wrap .avatar { margin: 0; }
.avatar-img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid var(--gold); }
.avatar-upload {
  position: absolute; right: -4px; bottom: -4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: #0d1117; border: 2px solid var(--bg-card);
  font-size: .72rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.avatar-upload:hover { filter: brightness(1.1); }
.u-name { font-weight: 700; color: var(--text); font-size: 1rem; }
.u-email { color: var(--text-muted); font-size: .8rem; word-break: break-all; margin-top: 2px; }
.account-nav { display: flex; flex-direction: column; gap: 4px; }
.account-nav a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text-muted); font-size: .95rem; }
.account-nav a:hover { background: var(--bg-soft); color: var(--text); }
.account-nav a.active { background: rgba(232,185,35,.12); color: var(--gold); font-weight: 600; }
.account-nav a.nav-logout { color: #ff6b6b; margin-top: 8px; }
.account-main { flex: 1; min-width: 0; }
.account-title { font-size: 1.5rem; margin-bottom: 16px; }
.account-sub { color: var(--text-muted); font-size: .92rem; margin-bottom: 16px; }

/* Invite / commission */
.invite-hero { background: linear-gradient(135deg, rgba(232,185,35,.08), rgba(13,17,23,.4)); border-color: rgba(232,185,35,.3); }
.invite-hero h2 { margin-bottom: 8px; }
.invite-cookie-note { margin-top: 12px; padding: 10px 12px; background: rgba(78,205,196,.08); border: 1px solid rgba(78,205,196,.25); border-radius: 8px; font-size: .88rem; color: var(--text-muted); }
.invite-row { display: flex; gap: 10px; max-width: 560px; }
.invite-row .invite-input { flex: 1; margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.withdraw-row { display: flex; gap: 10px; align-items: center; max-width: 640px; }

@media (max-width: 768px) {
  .account-shell { flex-direction: column; }
  .account-sidebar { position: static; width: 100%; flex: none; }
  .account-nav { flex-direction: row; flex-wrap: wrap; }
  .account-nav a { padding: 8px 10px; }
  .account-nav a.nav-logout { margin-top: 0; }
  .table-scroll .table { min-width: 560px; }
  .withdraw-row { flex-wrap: wrap; }
  .invite-row { flex-wrap: wrap; }
}

/* Pricing */
.page-title { text-align: center; font-size: 1.8rem; margin-bottom: 8px; }
.page-sub { text-align: center; color: var(--text-muted); margin-bottom: 28px; }
.page-sub.muted { margin-top: 24px; font-size: .9rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.vip-status { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 16px 20px; margin-bottom: 20px; }
.vip-status-active { border-color: var(--gold); background: linear-gradient(135deg, rgba(232,185,35,.12), rgba(212,160,23,.05)); }
.vip-status-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.vip-status-active .vip-status-title { color: var(--gold); }
.vip-status-body { color: var(--text-muted); font-size: .9rem; }
.price-card { text-align: center; padding: 32px 24px; }
.price-label { font-size: 1.05rem; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.price-amount { font-size: 2.4rem; font-weight: 800; }
.price-amount .cur { font-size: 1.1rem; color: var(--text-muted); }
.price-amount .per { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.price-note { color: var(--text-muted); font-size: .88rem; margin: 10px 0 18px; }
.price-benefits { list-style: none; margin: 0 0 18px; padding: 0; text-align: left; }
.price-benefits li { position: relative; padding: 5px 0 5px 20px; color: var(--text-muted); font-size: .88rem; }
.price-benefits li::before { content: '✓'; position: absolute; left: 0; top: 5px; color: var(--gold); font-weight: 700; }

/* Forms */
.form-card { max-width: 400px; margin: 0 auto; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .88rem; color: var(--text-muted); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--text); font-size: .95rem;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); outline: none; }
.form-error { color: var(--danger); font-size: .85rem; margin-top: 8px; min-height: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; text-align: center; color: var(--text-muted); font-size: .88rem; margin-top: 40px; }
.footer-slogan { margin-top: 6px; }
.footer-meta { margin-top: 14px; font-size: .78rem; opacity: .6; }
.footer-social { margin: 0 0 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-social-label { color: var(--gold); font-size: .85rem; letter-spacing: 1.5px; text-transform: uppercase; }
.footer-social-icons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.u-verify { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; }
.u-verify-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(229,57,53,.12); color: #e53935; font-size: .72rem; font-weight: 600; }
.u-resend-btn { background: none; border: 1px solid var(--gold); color: var(--gold); font-size: .72rem; padding: 3px 10px; border-radius: 999px; cursor: pointer; transition: background .15s; }
.u-resend-btn:hover { background: rgba(212,160,23,.12); }
.u-resend-btn:disabled { opacity: .5; cursor: default; }
.purchase-history { margin-top: 14px; padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; }
.purchase-history h3 { font-size: .9rem; color: var(--gold); margin: 0 0 8px; }
.ph-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.ph-table th, .ph-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.ph-table th { color: var(--text-muted); font-weight: 600; }
.ph-table tr:last-child td { border-bottom: none; }
.footer-brand { margin: 0; font-size: .88rem; color: var(--text-muted); letter-spacing: .3px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.footer-brand .footer-friend-link { font-weight: 700; color: #e53935; text-decoration: none; }
.footer-brand .footer-friend-link:hover { text-decoration: underline; }
.social-link { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 50%; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.social-link img { width: 32px; height: 32px; object-fit: contain; display: block; }
.social-link:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(212,160,23,.45); }

/* Floating customer service */
.cs-fab { position: fixed; right: 20px; bottom: 24px; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 1px solid var(--border); cursor: pointer; z-index: 60; box-shadow: 0 4px 16px rgba(0,0,0,.25); padding: 0; overflow: hidden; }
.cs-fab img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-panel { position: fixed; right: 20px; bottom: 88px; width: 300px; max-width: calc(100vw - 40px); background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; z-index: 60; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.4); }
.cs-close { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.35); border: none; color: #fff; font-size: 1rem; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; z-index: 2; }
.cs-panel-body { display: flex; flex-direction: column; padding: 8px; gap: 4px; }
.cs-item { display: block; width: 100%; text-align: left; padding: 10px 12px; background: none; border: none; color: var(--text); font-size: .95rem; cursor: pointer; border-radius: 6px; text-decoration: none; }
.cs-item:hover { background: var(--bg-soft); color: var(--gold); }
.cs-icons { display: flex; gap: 12px; justify-content: center; padding: 8px 0 2px; }
.cs-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 50%; overflow: hidden; cursor: pointer; border: none; padding: 0; transition: transform .2s, box-shadow .2s; }
.cs-icon img { width: 24px; height: 24px; object-fit: contain; display: block; }
.cs-icon:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(212,160,23,.45); }
.cs-chatbox iframe { width: 100%; height: 360px; border: none; display: block; }
.cs-qrbox { text-align: center; padding: 16px; }
.cs-qrbox img { width: 180px; height: 180px; object-fit: contain; }
.cs-qrbox p { color: var(--text-muted); font-size: .85rem; margin-top: 8px; }

/* Floating search */
.search-fab { position: fixed; right: 20px; bottom: 88px; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 1px solid var(--border); cursor: pointer; z-index: 60; box-shadow: 0 4px 16px rgba(0,0,0,.25); padding: 0; display: flex; align-items: center; justify-content: center; color: #555; }
.search-fab svg { width: 24px; height: 24px; }
.search-panel { position: fixed; right: 20px; bottom: 152px; width: 320px; max-width: calc(100vw - 40px); background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; z-index: 60; box-shadow: 0 8px 32px rgba(0,0,0,.4); }
.search-close { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.35); border: none; color: #fff; font-size: 1rem; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; z-index: 2; }
.search-box { display: flex; align-items: center; gap: 8px; padding: 16px 16px 8px; }
.search-box input { flex: 1; padding: 10px 12px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: .95rem; min-width: 0; }
.search-box input:focus { outline: none; border-color: var(--gold); }
.search-box button { width: 40px; height: 40px; border-radius: 8px; background: var(--gold); color: #1a1a1a; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.search-box button svg { width: 18px; height: 18px; }
.search-tabs { display: flex; gap: 6px; padding: 0 16px 10px; flex-wrap: wrap; }
.search-tab { padding: 4px 12px; border-radius: 999px; background: none; border: 1px solid var(--border); color: var(--text-muted); font-size: .8rem; cursor: pointer; }
.search-tab.active { background: var(--gold); color: #1a1a1a; border-color: var(--gold); }
.search-results { max-height: 320px; overflow-y: auto; padding: 0 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.search-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: .9rem; }
.search-item:hover { background: var(--bg-soft); color: var(--gold); }
.search-type { font-size: .7rem; padding: 1px 6px; border-radius: 4px; flex-shrink: 0; }
.search-type-article { background: rgba(78,205,196,.15); color: var(--teal); }
.search-type-product { background: rgba(232,185,35,.15); color: var(--gold); }
.search-type-course { background: rgba(108,144,255,.15); color: #6c90ff; }
.search-type-library { background: rgba(255,140,66,.15); color: #ff8c42; }
.search-type-payoption { background: rgba(56,178,172,.15); color: var(--teal); }
.search-empty { text-align: center; color: var(--text-muted); padding: 16px; font-size: .85rem; }

/* Floating AI chat */
.ai-fab { position: fixed; right: 20px; bottom: 152px; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 1px solid var(--border); cursor: pointer; z-index: 60; box-shadow: 0 4px 16px rgba(0,0,0,.25); padding: 0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.ai-panel { position: fixed; right: 20px; bottom: 216px; width: 340px; max-width: calc(100vw - 40px); background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; z-index: 60; box-shadow: 0 8px 32px rgba(0,0,0,.4); display: flex; flex-direction: column; overflow: hidden; }
.ai-panel[hidden] { display: none !important; }
.ai-close { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.35); border: none; color: #fff; font-size: 1rem; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; z-index: 2; }
.ai-head { padding: 14px 16px; font-weight: 700; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.ai-body { padding: 14px; height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { max-width: 85%; padding: 10px 12px; border-radius: 12px; font-size: .9rem; line-height: 1.5; word-break: break-word; }
.ai-msg.user { align-self: flex-end; background: var(--gold); color: #1a1a1a; border-bottom-right-radius: 4px; }
.ai-msg.ai { align-self: flex-start; background: var(--bg-soft); color: var(--text); border-bottom-left-radius: 4px; }
.ai-msg a { color: var(--gold); text-decoration: underline; }
.ai-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.ai-input input { flex: 1; padding: 10px 12px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: .9rem; min-width: 0; }
.ai-input input:focus { outline: none; border-color: var(--gold); }
.ai-input button { padding: 0 16px; border-radius: 8px; background: var(--gold); color: #1a1a1a; border: none; cursor: pointer; font-size: .9rem; flex-shrink: 0; }

.empty { color: var(--text-muted); text-align: center; padding: 30px; }
.center { text-align: center; }

/* Admin */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: var(--bg-soft); border-right: 1px solid var(--border); padding: 20px 12px; position: sticky; top: 0; height: 100vh; }
.admin-sidebar .logo { display: block; margin-bottom: 24px; }
.admin-sidebar a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--text-muted); margin-bottom: 4px; font-size: .93rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--bg-card); color: var(--gold); }
.admin-main { flex: 1; padding: 28px; }
.admin-menu-toggle { display: none; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-search { flex: 1; max-width: 320px; margin: 0 16px; }
.admin-search input {
  width: 100%; padding: 8px 12px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: .9rem;
}
.admin-search input:focus { outline: none; border-color: var(--gold); }

/* Filter bar */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 16px; padding: 12px; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 10px;
}
.filter-bar input[type="date"], .filter-bar select {
  padding: 7px 10px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 7px; color: var(--text); font-size: .88rem;
}
.filter-bar .filter-sep { color: var(--text-muted); }
.filter-bar .filter-label { color: var(--text-muted); font-size: .85rem; }

/* Pending shipment column (待处理) */
.pending-section { margin-bottom: 20px; }
.pending-title {
  display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700;
  margin-bottom: 12px; color: var(--gold);
}
.pending-title .badge-count {
  background: var(--gold); color: #0d1117; border-radius: 999px;
  padding: 1px 9px; font-size: .78rem; font-weight: 800;
}
.pending-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pending-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; border-left: 3px solid var(--gold);
}
.pending-card .pc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pending-card .pc-order { font-weight: 700; font-size: .9rem; }
.pending-card .pc-row { font-size: .85rem; color: var(--text-muted); margin: 4px 0; }
.pending-card .pc-actions { margin-top: 10px; display: flex; gap: 8px; }
.pending-empty { color: var(--text-muted); padding: 14px; text-align: center; border: 1px dashed var(--border); border-radius: 10px; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 999; padding: 16px; }
.modal-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; width: 100%; max-width: 560px; max-height: 86vh; overflow: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.modal-body { padding: 18px 20px; }
.detail-row { display: flex; margin-bottom: 9px; font-size: .9rem; }
.detail-row .dk { width: 96px; color: var(--text-muted); flex-shrink: 0; }
.detail-row .dv { flex: 1; word-break: break-all; }


.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; min-width: 0; }
.stat-card .num { font-size: 1.7rem; font-weight: 800; color: var(--gold); word-break: break-word; overflow-wrap: anywhere; }
.vip-discount { color: var(--gold); font-weight: 700; font-size: 1.6rem; }
.stat-card .label { color: var(--text-muted); font-size: .85rem; }
@media (max-width: 768px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .stat-card { padding: 6px; min-width: 0; overflow-wrap: anywhere; }
  .stat-card .num { font-size: .75rem; }
  .stat-card .label { font-size: .6rem; }
}
.stat-card.stat-alert { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(212,160,23,.35), 0 4px 14px rgba(212,160,23,.12); }
.stat-card.stat-alert .num { color: #ff6b6b; }
.stat-card.stat-alert .label { color: var(--gold); }
.pending-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 12px 16px;
  background: linear-gradient(90deg, rgba(212,160,23,.12), rgba(212,160,23,.05));
  border: 1px solid var(--gold); border-radius: 10px;
  color: var(--gold); font-weight: 700; font-size: .95rem;
}
.pending-banner a { color: var(--gold); text-decoration: underline; cursor: pointer; }
.pending-banner a:hover { color: #f7e08a; }
.dashboard-motto {
  margin: 0 0 8px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 3px;
  background: linear-gradient(90deg, var(--gold), #f7e08a, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 12px 0 4px;
}

.epay-register {
  display: inline-block; margin: 4px 0 14px;
  background: linear-gradient(90deg, var(--gold), #f0ce6a);
  color: #0d1117; font-weight: 800; letter-spacing: 1px;
  padding: 10px 20px; border-radius: 8px; text-decoration: none;
  box-shadow: 0 4px 16px rgba(212,160,23,.35);
}
.epay-register:hover { filter: brightness(1.06); color: #0d1117; }

/* 已购订单页会员推广卡片 */
.vip-upsell {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 28px; padding: 24px;
  background: linear-gradient(135deg, rgba(212,160,23,.16), rgba(212,160,23,.04) 60%, rgba(13,17,23,.4));
  border: 1px solid var(--gold); border-radius: 14px;
  box-shadow: 0 4px 20px rgba(212,160,23,.08);
}
.vip-upsell-left { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 260px; }
.vip-upsell-icon { font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 2px 6px rgba(212,160,23,.4)); }
.vip-upsell h2 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; }
.vip-upsell p { margin: 0; color: var(--text-muted); font-size: .9rem; }

.load-more {
  display: block; margin: 14px auto 0; padding: 8px 22px;
  background: var(--bg-card); color: var(--gold); border: 1px solid var(--gold);
  border-radius: 8px; cursor: pointer; font-size: .9rem;
}
.load-more:hover { background: rgba(212,160,23,.08); }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title-row .section-title { margin: 0; }
.load-more-inline { padding: 4px 12px; font-size: .8rem; border-color: var(--gold); color: var(--gold); background: transparent; border-radius: 6px; cursor: pointer; }
.category-tabs-box { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 20px; }
.category-tabs {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 4px;
  flex: 1; min-width: 0;
  max-height: 38px; overflow: hidden;
  transition: max-height .28s ease;
}
.category-tabs-box.expanded .category-tabs { max-height: 420px; }
.category-tabs .tab { padding: 6px 11px; background: none; border: none; color: var(--text-muted); font-size: .95rem; white-space: nowrap; text-decoration: none; border-radius: 7px; transition: color .15s; }
.category-tabs .tab:hover { color: var(--gold); }
.category-tabs .tab.active { color: var(--gold); font-weight: 700; }
.category-tabs-box.has-more:not(.expanded) .category-tabs::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 44px;
  background: linear-gradient(90deg, transparent, var(--bg) 85%);
  pointer-events: none;
}
.cat-toggle {
  flex: none; width: 30px; height: 30px; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-muted); font-size: 1.1rem; line-height: 1; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.cat-toggle:hover { color: var(--gold); border-color: var(--gold); }
.category-tabs-box.expanded .cat-toggle { background: rgba(212,160,23,.12); border-color: var(--gold); color: var(--gold); }

.pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  margin: 18px 0 4px;
}
.pagination button, .pagination .page-num {
  min-width: 34px; padding: 6px 10px;
  background: var(--bg-card); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; cursor: pointer; font-size: .88rem;
}
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination .page-num.active { background: var(--gold); color: #0d1117; border-color: var(--gold); font-weight: 700; }
.pagination .page-info { color: var(--text-muted); font-size: .85rem; margin: 0 6px; }
.pagination .page-dots { color: var(--text-muted); padding: 0 2px; }

/* 资料库 Library */
.lib-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 6px 0 18px; }
.lib-cats-box { display: flex; align-items: flex-start; gap: 4px; min-width: 0; max-width: 100%; }
.lib-cats { display: flex; gap: 8px; flex-wrap: nowrap; overflow: hidden; max-height: 34px; min-width: 0; }
.lib-cats-box.has-more:not(.expanded) .lib-cats { position: relative; }
.lib-cats-box.has-more:not(.expanded) .lib-cats::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 44px; background: linear-gradient(90deg, transparent, var(--bg) 85%); pointer-events: none; }
.lib-cats-box.expanded .lib-cats { flex-wrap: wrap; overflow: visible; max-height: none; }
.lib-cat { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted); font-size: .82rem; cursor: pointer; transition: border-color .15s, color .15s, background .15s; white-space: nowrap; }
.lib-cat:hover { border-color: var(--gold); color: var(--gold); }
.lib-cat.active { background: var(--gold); color: #0d1117; border-color: var(--gold); font-weight: 600; }
.lib-cat-toggle { flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted); font-size: 1.1rem; line-height: 1; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.lib-cat-toggle:hover { color: var(--gold); border-color: var(--gold); }
.lib-cats-box.expanded .lib-cat-toggle { background: rgba(212,160,23,.12); border-color: var(--gold); color: var(--gold); }
.lib-search { display: flex; gap: 8px; }
.lib-search input { width: 220px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); font-size: .88rem; }
.lib-search input:focus { outline: none; border-color: var(--gold); }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.library-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 6px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.library-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.lib-icon { font-size: 1.7rem; line-height: 1.2; min-height: 1.7rem; display: flex; align-items: center; justify-content: center; }
.lib-icon img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; }
.lib-icon span { font-size: 1.7rem; }
.lib-name { font-size: .72rem; line-height: 1.35; color: var(--text); word-break: break-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lib-meta { font-size: .64rem; color: var(--text-muted); }

/* 私域支付 Pay Options */
.lib-pay-tab { border-color: var(--gold); color: var(--gold); background: rgba(212,160,23,.1); font-weight: 600; }
.lib-pay-tab:hover { background: var(--gold); color: #0d1117; }
.lib-pay-tab.active { background: var(--gold); color: #0d1117; border-color: var(--gold); font-weight: 700; }
.pay-section { margin-top: 2px; }
.pay-search { margin-bottom: 16px; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; }
.pay-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; color: var(--text); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.pay-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.pay-card-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pay-card-icon img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; }
.pay-card-icon .pay-noicon { font-size: 2.2rem; }
.pay-noicon { line-height: 1; }
.pay-card-name { font-size: .8rem; font-weight: 600; text-align: center; word-break: break-all; }
.pay-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.62); display: flex; align-items: center; justify-content: center; z-index: 1200; padding: 20px; }
.pay-modal { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 26px 24px 22px; max-width: 380px; width: 100%; max-height: 86vh; overflow-y: auto; }
.pay-modal-close { position: absolute; top: 10px; right: 12px; background: none; border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.pay-modal-close:hover { color: var(--gold); }
.pay-m-head { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 14px; }
.pay-m-icon { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; }
.pay-m-icon.pay-noicon { font-size: 2.6rem; }
.pay-m-name { font-size: 1.1rem; font-weight: 700; }
.pay-m-details { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 12px; }
.pay-detail-qr img { width: 220px; max-width: 100%; border-radius: 10px; border: 1px solid var(--border); }
.pay-detail-account { width: 100%; text-align: center; font-size: .95rem; line-height: 1.7; padding: 10px 12px; background: var(--bg-soft); border-radius: 8px; word-break: break-all; }
.pay-detail-link { display: inline-block; padding: 9px 22px; border-radius: 8px; background: var(--gold); color: #0d1117; font-weight: 700; text-decoration: none; }
.pay-detail-link:hover { opacity: .88; }
.pay-m-note { text-align: center; font-size: .8rem; color: var(--gold); margin: 4px 0 12px; }
.pay-cs-btn { display: block; text-align: center; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--teal); color: var(--teal); text-decoration: none; font-size: .88rem; margin-bottom: 8px; }
.pay-cs-btn:hover { background: rgba(78,205,196,.12); }
.pay-cs-wechat { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-muted); }
.pay-cs-wechat img { width: 150px; border-radius: 8px; border: 1px solid var(--border); }

/* 商品详情分栏 */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.product-gallery-col { min-width: 0; }
.product-info-col { min-width: 0; }
.product-title { margin: 0 0 8px; font-size: 1.6rem; }
.product-meta { color: var(--text-muted); font-size: .85rem; margin-bottom: 12px; }
.product-short-desc { color: var(--text-muted); font-size: .95rem; margin: 12px 0; line-height: 1.6; }
.product-price-row { margin: 16px 0 8px; font-size: 1.5rem; font-weight: 700; color: var(--gold); }
.product-stock-row { margin-bottom: 16px; font-size: .9rem; }
.product-stock-in { color: var(--teal); }
.product-stock-out { color: #ff6b6b; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.add-cart-btn { border-color: var(--gold); color: var(--gold); }

/* 商品图片相册 */
.gallery-main-wrap { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-card); }
.gallery-main { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery-ph { font-size: 5rem; color: var(--text-muted); }
.gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; border: none; cursor: pointer; font-size: 1.4rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-btn:hover { background: rgba(0,0,0,.7); }
.gallery-zoom { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.5); border: none; cursor: pointer; font-size: 1rem; }
.gallery-zoom:hover { background: rgba(0,0,0,.7); }
.gallery-count { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.5); color: #fff; padding: 2px 8px; border-radius: 10px; font-size: .75rem; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.gallery-thumbs .thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; cursor: pointer; }
.gallery-thumbs .thumb.active { border-color: var(--gold); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 1000; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }

/* 商品 tab */
.product-tabs { display: flex; border-bottom: 1px solid var(--border); margin-top: 32px; }
.tab-btn { padding: 10px 20px; background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; font-size: 1rem; color: var(--text-muted); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); font-weight: 600; }
.tab-panel { padding: 16px 0; }

/* 购物车 */
.cart-icon { position: relative; font-size: 1.3rem; text-decoration: none; color: var(--text); line-height: 1; display: inline-flex; align-items: center; }
.cart-count {
  position: absolute; top: -7px; right: -9px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: #ff3b30; color: #fff; border-radius: 9px;
  font-size: .65rem; font-weight: 700; line-height: 16px; text-align: center;
  box-shadow: 0 0 0 2px var(--bg-card);
}
.cart-page { max-width: 720px; margin: 0 auto; }
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; }
.cart-item-cover { width: 64px; height: 64px; flex: none; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--bg-card); }
.cart-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; color: var(--text); text-decoration: none; }
.cart-item-name:hover { color: var(--gold); }
.cart-item-price { color: var(--gold); font-size: .9rem; margin-top: 4px; }
.cart-item-qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-item-qty button { width: 24px; height: 24px; border-radius: 4px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); cursor: pointer; }
.cart-item-sub { font-weight: 700; color: var(--gold); }
.cart-item-del { border: none; background: none; color: var(--danger); cursor: pointer; font-size: .85rem; }
.cart-summary { margin-top: 16px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; text-align: right; }
.cart-total { font-size: 1.4rem; font-weight: 700; color: var(--gold); }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.checkout-modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.checkout-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; width: 100%; max-width: 420px; }
.checkout-box h3 { margin: 0 0 14px; }
.checkout-box .form-group { margin-bottom: 12px; }
.checkout-box label { display: block; margin-bottom: 4px; font-size: .85rem; color: var(--text-muted); }
.checkout-box input, .checkout-box select { width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 9px 10px; }
.form-error { color: #ff6b6b; font-size: .85rem; min-height: 18px; }

/* 评论 */
.comment-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.comment-head { display: flex; align-items: center; gap: 10px; }
.comment-name { font-weight: 600; }
.comment-stars { color: var(--gold); }
.comment-date { color: var(--text-muted); font-size: .8rem; margin-left: auto; }
.comment-body { margin: 8px 0; line-height: 1.6; }
.comment-reply { background: rgba(78,205,196,.08); border-left: 2px solid var(--teal); padding: 8px 12px; margin-top: 8px; font-size: .9rem; color: var(--teal); border-radius: 0 6px 6px 0; }
.comment-form { margin-top: 20px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; }
.comment-form h3 { margin: 0 0 10px; font-size: 1rem; }
.rating-input { display: flex; gap: 4px; margin-bottom: 10px; }
.star { font-size: 1.5rem; cursor: pointer; color: var(--gold); }
.comment-form textarea { width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 10px; resize: vertical; }
/* 文章评论 */
.article-comments { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.article-comments-title { font-size: 1.1rem; margin: 0 0 14px; }
.comment-count { font-size: .85rem; color: var(--text-muted); font-weight: 400; }
.comment-login-tip { padding: 10px 0; color: var(--text-muted); font-size: .95rem; }
.comment-login-tip a { color: var(--teal); }

@media (max-width: 768px) {
  .product-layout { grid-template-columns: 1fr; gap: 20px; }
  .cart-item { flex-wrap: wrap; }
}

.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.table th { color: var(--text-muted); font-weight: 600; }
.table tr:hover td { background: var(--bg-soft); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Editor */
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; background: var(--bg-soft); border: 1px solid var(--border); border-bottom: none; border-radius: 8px 8px 0 0; }
.editor-toolbar button, .editor-toolbar select {
  background: var(--bg-card); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 10px; cursor: pointer; font-size: .85rem;
}
.editor-toolbar button:hover { border-color: var(--gold); color: var(--gold); }
.editor-toolbar .color-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-card); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 3px 8px; cursor: pointer; font-size: .85rem;
}
.editor-toolbar .color-btn input[type="color"] {
  width: 20px; height: 20px; border: none; padding: 0; background: none; cursor: pointer;
}
.editor-toolbar .color-btn:hover { border-color: var(--gold); color: var(--gold); }
.editor-area { min-height: 400px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 0 0 8px 8px; overflow-y: auto; }
.editor-area:focus { outline: none; }
.editor-area img { max-width: 100%; }
.editor-area .video-wrap { position: relative; padding-bottom: 56.25%; height: 0; margin: 12px 0; }
.editor-area .video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.editor-area .iframe-wrap { margin: 12px 0; }
.editor-area .iframe-wrap iframe { width: 100%; height: 320px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); display: block; }
.editor-area .iframe-bar { display: flex; justify-content: flex-end; margin-top: 6px; }
.editor-area .iframe-bar a { font-size: .8rem; color: var(--gold); text-decoration: none; }
.editor-area h1 { font-size: 2em; font-weight: 700; margin: 0.8em 0 0.4em; line-height: 1.4; }
.editor-area h2 { font-size: 1.5em; font-weight: 700; margin: 0.7em 0 0.35em; line-height: 1.4; }
.editor-area h3 { font-size: 1.25em; font-weight: 700; margin: 0.6em 0 0.3em; line-height: 1.4; }
.editor-area h4, .editor-area h5, .editor-area h6 { font-weight: 700; margin: 0.5em 0 0.25em; line-height: 1.4; }
.editor-area p { margin: 0.5em 0; }
.editor-area blockquote { border-left: 3px solid var(--gold); padding: 6px 12px; margin: 0.6em 0; color: var(--text-muted); background: var(--bg-soft); border-radius: 0 8px 8px 0; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; }
.badge-public { background: rgba(78,205,196,.15); color: var(--teal); }
.badge-paid { background: rgba(212,160,23,.15); color: var(--gold); }
.badge-draft { background: rgba(139,148,158,.15); color: var(--text-muted); }

.toolbar-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.toolbar-row input, .toolbar-row select, .toolbar-row textarea {
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text);
}
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--bg-card); border: 1px solid var(--gold); border-radius: 8px; padding: 12px 18px; z-index: 999; box-shadow: 0 8px 30px rgba(0,0,0,.5); }

/* Course chapter editor (admin) */
.chapter-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.chapter-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.chapter-head .ch-title { flex: 1; }
.chapter-videos { display: flex; flex-direction: column; gap: 8px; }
.video-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.video-row input, .video-row select { padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); }
.video-row .v-title { flex: 1; min-width: 140px; }
.video-row .v-url { flex: 2; min-width: 180px; }
.video-row .v-link { display: flex; flex-direction: column; gap: 4px; flex: 2; min-width: 200px; }
.video-row .v-link-search { width: 100%; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); font-size: .82rem; }
.video-row .v-link-search:focus { outline: none; border-color: var(--gold); }
.video-row .v-link-results { display: flex; flex-direction: column; gap: 2px; max-height: 150px; overflow-y: auto; }
.video-row .v-link-selected { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--gold); background: rgba(232,185,35,.1); border: 1px solid var(--gold); border-radius: 6px; padding: 5px 8px; }
.video-row .v-link-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-row .v-link-clear { background: none; border: none; color: var(--danger); cursor: pointer; font-size: .85rem; padding: 0 2px; }
.drag-handle { cursor: grab; color: var(--text-muted); font-size: .95rem; user-select: none; flex-shrink: 0; }
.drag-handle:active { cursor: grabbing; }
.mv-btn { width: 26px; height: 26px; padding: 0; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-muted); cursor: pointer; font-size: .8rem; line-height: 1; flex-shrink: 0; }
.mv-btn:hover { border-color: var(--gold); color: var(--gold); }
.chapter-block.dragging, .video-row.dragging { opacity: .45; border-style: dashed; }
.chapter-block:hover, .video-row:hover { border-color: rgba(212,160,23,.4); }

/* ===== 页面丰富化样式 ===== */

/* 首页统计条 */
.home-stats {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
  margin: 28px 0 0; padding: 20px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.home-stat-item { text-align: center; min-width: 80px; }
.home-stat-num {
  font-size: 1.8rem; font-weight: 800; line-height: 1.2;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home-stat-label { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }

/* 首页特色卡片 */
.home-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 32px 0 12px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 24px 20px; text-align: center;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature-card:hover {
  border-color: var(--gold); transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3), 0 0 0 1px rgba(212,160,23,.15);
}
.feature-icon { font-size: 2.4rem; line-height: 1.2; margin-bottom: 12px; display: block; }
.feature-title { font-size: 1.05rem; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.feature-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* 首页品牌横幅 */
.home-banner {
  margin: 28px 0 8px; padding: 28px 24px;
  background: linear-gradient(135deg, rgba(212,160,23,.10), rgba(78,205,196,.06), rgba(13,17,23,.6));
  border: 1px solid rgba(212,160,23,.2); border-radius: 16px;
  text-align: center; position: relative; overflow: hidden;
}
.home-banner::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(212,160,23,.06), transparent 50%);
  pointer-events: none;
}
.home-banner h3 {
  font-size: 1.2rem; font-weight: 700; color: var(--gold); margin-bottom: 8px;
  position: relative;
}
.home-banner p {
  font-size: .92rem; color: var(--text-muted); line-height: 1.7; max-width: 600px; margin: 0 auto;
  position: relative;
}

/* 页面引导区块 */
.page-intro {
  text-align: center; margin-bottom: 28px; padding: 16px 0;
}
.page-intro-icon { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.page-intro h2 {
  font-size: 1.3rem; font-weight: 700; color: var(--gold); margin-bottom: 6px;
}
.page-intro p { font-size: .92rem; color: var(--text-muted); line-height: 1.7; max-width: 560px; margin: 0 auto; }

/* 关于我们 */
.about-section { margin-bottom: 32px; }
.about-section-title {
  font-size: 1.15rem; font-weight: 700; color: var(--gold);
  margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.about-section-title .as-icon { font-size: 1.3rem; }
.about-team {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}
.about-member {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; text-align: center; transition: border-color .2s, transform .2s;
}
.about-member:hover { border-color: var(--gold); transform: translateY(-2px); }
.about-member-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px;
  background: linear-gradient(135deg, rgba(212,160,23,.2), rgba(78,205,196,.2));
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.about-member-name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.about-member-role { font-size: .82rem; color: var(--gold); margin-bottom: 6px; }
.about-member-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }

.about-timeline { position: relative; padding-left: 28px; }
.about-timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--teal));
}
.about-tl-item { position: relative; margin-bottom: 20px; padding-left: 16px; }
.about-tl-item::before {
  content: ''; position: absolute; left: -24px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--gold); border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(212,160,23,.3);
}
.about-tl-year { font-size: .85rem; font-weight: 700; color: var(--gold); margin-bottom: 2px; }
.about-tl-text { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

.about-vision-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
.about-vision-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; transition: border-color .2s;
}
.about-vision-card:hover { border-color: var(--teal); }
.about-vision-icon { font-size: 1.8rem; margin-bottom: 8px; display: block; }
.about-vision-title { font-weight: 700; color: var(--teal); margin-bottom: 6px; font-size: .95rem; }
.about-vision-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
.about-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.about-stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px 16px; text-align: center; transition: border-color .2s, transform .2s; }
.about-stat-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.about-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--gold); margin-bottom: 6px; }
.about-stat-label { font-size: .85rem; color: var(--text-muted); }

/* 关于我们 - Hero Banner */
.about-hero { background: linear-gradient(135deg, rgba(212,160,23,.12), rgba(78,205,196,.08)); border: 1px solid var(--border); border-radius: 16px; padding: 48px 32px; text-align: center; margin-bottom: 32px; }
.about-hero-title { font-size: 2rem; font-weight: 800; color: var(--gold); margin-bottom: 12px; }
.about-hero-desc { font-size: 1rem; color: var(--text-muted); line-height: 1.7; max-width: 600px; margin: 0 auto 24px; }
.about-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 关于我们 - 课程体系 */
.about-courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.about-course-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; transition: border-color .2s, transform .2s; }
.about-course-item:hover { border-color: var(--teal); transform: translateY(-2px); }
.about-course-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.about-course-name { font-weight: 700; font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.about-course-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }

/* 关于我们 - 学员评价 */
.about-testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.about-testimonial-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; transition: border-color .2s; }
.about-testimonial-card:hover { border-color: var(--gold); }
.about-testimonial-text { font-size: .9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.about-testimonial-author { display: flex; align-items: center; gap: 10px; }
.about-testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, rgba(212,160,23,.2), rgba(78,205,196,.2)); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.about-testimonial-name { font-weight: 700; font-size: .9rem; }
.about-testimonial-role { font-size: .78rem; color: var(--text-muted); }

/* 关于我们 - FAQ */
.about-faq-list { display: flex; flex-direction: column; gap: 12px; }
.about-faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; transition: border-color .2s; }
.about-faq-item:hover { border-color: var(--teal); }
.about-faq-q { font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--text); }
.about-faq-q::before { content: 'Q：'; color: var(--gold); font-weight: 800; }
.about-faq-a { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }
.about-faq-a::before { content: 'A：'; color: var(--teal); font-weight: 700; }

/* 关于我们 - 联系我们 */
.about-contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.about-contact-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; transition: border-color .2s; }
.about-contact-item:hover { border-color: var(--gold); }
.about-contact-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.about-contact-label { font-size: .82rem; color: var(--text-muted); margin-bottom: 4px; }
.about-contact-val { font-weight: 600; font-size: .92rem; color: var(--text); }

/* 关于我们 - 底部CTA */
.about-cta { background: linear-gradient(135deg, rgba(212,160,23,.1), rgba(78,205,196,.06)); border: 1px solid var(--border); border-radius: 16px; padding: 40px 32px; text-align: center; margin-top: 16px; }
.about-cta-title { font-size: 1.5rem; font-weight: 800; color: var(--gold); margin-bottom: 10px; }
.about-cta-desc { font-size: .92rem; color: var(--text-muted); line-height: 1.6; max-width: 500px; margin: 0 auto 20px; }
.about-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 登录/注册装饰 */
.auth-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  min-height: 480px;
}
.auth-decor {
  text-align: center; padding: 36px 28px;
  background: linear-gradient(135deg, rgba(212,160,23,.1), rgba(78,205,196,.06));
  border-radius: 16px; border: 1px solid rgba(212,160,23,.15);
}
.auth-decor-badge {
  display: inline-block; background: linear-gradient(135deg, var(--gold), #e8a800);
  color: #000; font-size: .75rem; font-weight: 700; padding: 4px 14px;
  border-radius: 20px; margin-bottom: 16px; letter-spacing: .5px;
}
.auth-decor-icon { font-size: 3.5rem; display: block; margin-bottom: 16px; }
.auth-decor h3 {
  font-size: 1.25rem; font-weight: 700; color: var(--gold); margin-bottom: 10px;
}
.auth-decor p { font-size: .9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.auth-benefits { text-align: left; list-style: none; padding: 0; }
.auth-benefits li {
  padding: 6px 0; font-size: .88rem; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.auth-benefits li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; }

/* 注册步骤指示器 */
.auth-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin: 20px 0 16px; }
.auth-step { display: flex; align-items: center; gap: 6px; }
.auth-step-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--gold);
  color: #000; font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.auth-step-text { font-size: .78rem; color: var(--text-muted); }
.auth-step-line { width: 24px; height: 2px; background: var(--border); margin: 0 4px; }

/* 信任数据 */
.auth-trust { display: flex; justify-content: center; gap: 24px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.auth-trust-item { text-align: center; }
.auth-trust-num { display: block; font-size: 1.1rem; font-weight: 800; color: var(--gold); }
.auth-trust-label { font-size: .72rem; color: var(--text-muted); }

/* 表单头部 */
.auth-form-header { text-align: center; margin-bottom: 24px; }
.auth-form-header h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.auth-form-subtitle { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* 密码强度 */
.auth-pwd-strength { display: flex; align-items: center; gap: 8px; margin-top: -8px; margin-bottom: 12px; }
.auth-pwd-bar { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.auth-pwd-fill { height: 100%; width: 0; border-radius: 2px; transition: width .3s, background .3s; }
.auth-pwd-fill.weak { background: #e74c3c; width: 25%; }
.auth-pwd-fill.fair { background: #f39c12; width: 50%; }
.auth-pwd-fill.good { background: var(--teal); width: 75%; }
.auth-pwd-fill.strong { background: var(--gold); width: 100%; }
.auth-pwd-text { font-size: .72rem; color: var(--text-muted); min-width: 28px; }

/* 条款 */
.auth-terms { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-muted); margin-bottom: 16px; cursor: pointer; }
.auth-terms input[type="checkbox"] { accent-color: var(--gold); width: 16px; height: 16px; }
.auth-terms a { color: var(--teal); text-decoration: underline; }

/* 提交按钮 */
.auth-submit { width: 100%; padding: 12px; font-size: 1rem; font-weight: 700; border-radius: 10px; }

/* 分隔线 */
.auth-divider { display: flex; align-items: center; margin: 16px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { padding: 0 12px; font-size: .82rem; color: var(--text-muted); }

/* 替代按钮 */
.auth-alt-btn { display: block; text-align: center; padding: 10px; border-radius: 10px; font-size: .9rem; }

/* 忘记密码 */
.auth-forgot { text-align: right; margin-top: 8px; }
.auth-forgot a { font-size: .82rem; color: var(--text-muted); }
.auth-forgot a:hover { color: var(--teal); }

/* 注册成功 */
.auth-success { text-align: center; padding: 24px 8px; }
.auth-success-icon { font-size: 3rem; margin-bottom: 12px; }
.auth-success h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.auth-success-desc { color: var(--text-muted); line-height: 1.7; margin-bottom: 6px; }
.auth-success-email { font-weight: 700; margin-bottom: 14px; }
.auth-success-hint { color: var(--text-muted); font-size: .85rem; line-height: 1.6; }

/* 课程增强 */
.course-meta-bar {
  display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0;
  padding: 12px 16px; background: var(--bg-soft); border-radius: 10px;
  border: 1px solid var(--border);
}
.course-meta-item { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--text-muted); }
.course-meta-item .cmi-icon { font-size: 1.1rem; }
.course-meta-item .cmi-val { color: var(--text); font-weight: 600; }

.course-features {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
  margin: 16px 0;
}
.course-feature-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; font-size: .88rem; transition: border-color .15s;
}
.course-feature-item:hover { border-color: var(--gold); }
.course-feature-item .cfi-icon { font-size: 1.2rem; flex-shrink: 0; }

/* 课程列表卡片增强 */
.course-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 20px 0; }
.course-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; transition: border-color .2s, transform .2s; text-decoration: none; color: var(--text); display: flex; flex-direction: column;
}
.course-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.course-card-cover { position: relative; padding-bottom: 56.25%; background: var(--bg-soft); }
.course-card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-card-cover-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.course-card-badge {
  position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 6px;
  font-size: .75rem; font-weight: 700; z-index: 1;
}
.course-card-badge-free { background: rgba(78,205,196,.2); color: var(--teal); border: 1px solid var(--teal); }
.course-card-badge-paid { background: rgba(212,160,23,.2); color: var(--gold); border: 1px solid var(--gold); }
.course-card-badge-vip { background: rgba(168,85,247,.2); color: #a855f7; border: 1px solid #a855f7; }
.course-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.course-card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.course-card-intro { font-size: .84rem; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.course-card-price { font-size: 1.2rem; font-weight: 800; color: var(--gold); }
.course-card-price-free { font-size: 1rem; font-weight: 700; color: var(--teal); }
.course-card-stats { display: flex; gap: 12px; font-size: .8rem; color: var(--text-muted); }
.course-card-stat { display: flex; align-items: center; gap: 4px; }

/* 课程详情定价卡片 */
.course-pricing-card {
  background: var(--bg-card); border: 2px solid var(--gold); border-radius: 12px;
  padding: 20px; margin: 16px 0; text-align: center;
}
.course-pricing-price { font-size: 2.2rem; font-weight: 800; color: var(--gold); margin: 8px 0; }
.course-pricing-original { font-size: .95rem; color: var(--text-muted); text-decoration: line-through; }
.course-pricing-btn { display: inline-block; margin-top: 12px; padding: 12px 32px; font-size: 1rem; font-weight: 700; }
.course-pricing-benefits { text-align: left; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.course-pricing-benefits li { padding: 5px 0; font-size: .88rem; color: var(--text); display: flex; align-items: center; gap: 8px; }
.course-pricing-benefits li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; }
.course-include { margin: 16px 0; padding: 14px 18px; background: var(--bg-soft); border-radius: 10px; border: 1px solid var(--border); }
.course-include-title { font-size: .95rem; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.course-include-list { display: flex; flex-wrap: wrap; gap: 8px; }
.course-include-item { padding: 4px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; font-size: .82rem; color: var(--text); }

/* 文章增强 */
.article-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.article-tag {
  padding: 3px 10px; border-radius: 999px; font-size: .78rem;
  background: rgba(78,205,196,.1); color: var(--teal); border: 1px solid rgba(78,205,196,.2);
  text-decoration: none; transition: background .15s, color .15s;
}
.article-tag:hover { background: rgba(78,205,196,.2); color: #fff; }

.article-share { display: flex; gap: 8px; align-items: center; margin: 16px 0; }
.article-share-label { font-size: .85rem; color: var(--text-muted); }
.article-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-muted); font-size: .9rem;
  cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.article-share-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(212,160,23,.08); }

.article-reading-time {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .82rem; color: var(--text-muted); margin-left: 12px;
}

/* 商品特色标签 */
.product-features {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0;
}
.product-feature-tag {
  padding: 4px 12px; border-radius: 999px; font-size: .8rem;
  background: rgba(212,160,23,.1); color: var(--gold); border: 1px solid rgba(212,160,23,.2);
}

/* 资料库引导 */
.lib-intro {
  text-align: center; margin-bottom: 20px; padding: 18px;
  background: linear-gradient(135deg, rgba(78,205,196,.06), rgba(212,160,23,.04));
  border-radius: 12px; border: 1px solid rgba(78,205,196,.12);
}
.lib-intro-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.lib-intro h2 { font-size: 1.1rem; font-weight: 700; color: var(--teal); margin-bottom: 4px; }
.lib-intro p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* 支付方式引导 */
.pay-intro {
  text-align: center; margin-bottom: 20px; padding: 18px;
  background: linear-gradient(135deg, rgba(212,160,23,.06), rgba(78,205,196,.04));
  border-radius: 12px; border: 1px solid rgba(212,160,23,.12);
}
.pay-intro-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.pay-intro h2 { font-size: 1.1rem; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.pay-intro p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }
.pay-steps {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin: 16px 0 8px;
}
.pay-step {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  font-size: .85rem; color: var(--text-muted);
}
.pay-step-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--gold);
  color: #0d1117; font-weight: 700; font-size: .78rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pay-step-arrow { color: var(--text-muted); font-size: 1rem; }

/* 账户欢迎 */
.account-welcome {
  padding: 18px 20px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(212,160,23,.1), rgba(78,205,196,.06));
  border: 1px solid rgba(212,160,23,.2); border-radius: 12px;
}
.account-welcome h2 { font-size: 1.1rem; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.account-welcome p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

.account-quick-actions {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
  margin: 16px 0;
}
.quick-action {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 10px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; text-decoration: none; color: var(--text);
  transition: border-color .15s, transform .15s;
}
.quick-action:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--text); }
.quick-action-icon { font-size: 1.5rem; }
.quick-action-label { font-size: .82rem; font-weight: 600; }

/* 购物车引导 */
.cart-empty-decor {
  text-align: center; padding: 40px 20px;
}
.cart-empty-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.cart-empty-title { font-size: 1.1rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.cart-empty-desc { font-size: .9rem; color: var(--text-muted); margin-bottom: 16px; }

/* 帮助中心增强 */
.helper-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
  margin-top: 16px;
}
.helper-card {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; text-decoration: none; color: var(--text);
  transition: border-color .15s, transform .15s;
}
.helper-card:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--text); }
.helper-card-icon { font-size: 1.5rem; flex-shrink: 0; }
.helper-card-text { font-size: .92rem; font-weight: 600; }
.helper-card-desc { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }

/* 响应式补充 */
@media (max-width: 768px) {
  .home-features { grid-template-columns: 1fr; gap: 12px; }
  .home-stats { gap: 16px; }
  .home-stat-num { font-size: 1.3rem; }
  .auth-layout { grid-template-columns: 1fr; gap: 16px; }
  .auth-decor { padding: 20px 16px; }
  .auth-steps { gap: 0; }
  .auth-step-text { display: none; }
  .auth-step-line { width: 16px; }
  .auth-trust { gap: 16px; }
  .auth-trust-num { font-size: .95rem; }
  .course-meta-bar { flex-direction: column; gap: 8px; }
  .course-features { grid-template-columns: 1fr; }
  .course-list-grid { grid-template-columns: 1fr; }
  .course-pricing-price { font-size: 1.6rem; }
  .about-team { grid-template-columns: 1fr; }
  .about-vision-grid { grid-template-columns: 1fr; }
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-courses-grid { grid-template-columns: 1fr; }
  .about-testimonials-grid { grid-template-columns: 1fr; }
  .about-contact-grid { grid-template-columns: 1fr; }
  .about-hero { padding: 32px 16px; }
  .about-hero-title { font-size: 1.4rem; }
  .about-cta { padding: 28px 16px; }
  .about-cta-title { font-size: 1.2rem; }
  .account-quick-actions { grid-template-columns: repeat(2, 1fr); }
  .pay-steps { flex-direction: column; align-items: center; }
  .pay-step-arrow { display: none; }
  .helper-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 8px; align-items: center; }
  .logo { order: 0; margin-right: auto; }
  .vip-badge { order: 1; }
  .nav-toggle { display: block; order: 2; }
  .main-nav { display: none; flex: none; width: 100%; flex-direction: column; gap: 0; order: 3; padding-top: 4px; }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 11px 12px;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: none;
    font-size: .95rem;
    color: var(--text);
  }
  .main-nav a:hover,
  .main-nav a.active {
    background: rgba(212,160,23,.06);
    color: var(--gold-soft);
    border-bottom-color: var(--gold);
    transform: none;
    box-shadow: none;
    text-shadow: none;
  }
  .main-nav .nav-item { width: 100%; flex-direction: column; align-items: stretch; }
  .main-nav .nav-item > a { display: block; border-bottom: 1px solid var(--border); border-radius: 0; background: none; }
  .nav-dropdown { position: static; display: block; box-shadow: none; border: none; background: none; padding: 0 0 0 14px; min-width: 0; border-radius: 0; }
  .nav-dropdown a { border-bottom: 1px solid var(--border); border-radius: 0; font-size: .9rem; }
  .nav-dropdown a:hover { background: rgba(78,205,196,.08); color: var(--teal); }
  .nav-user { display: none; width: 100%; order: 4; }
  .nav-user.open { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 0; }
  .hero-title { font-size: 1.6rem; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid-body { padding: 10px; gap: 4px; }
  .grid-body h3 { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .grid-meta { font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .grid-price { font-size: .9rem; }
  .grid-excerpt { font-size: .72rem; line-height: 1.4; -webkit-line-clamp: 1; }
  .grid-cover-ph { font-size: 1.7rem; }
  .grid-type-tag { font-size: .62rem; padding: 1px 5px; }
  .section-head h2 { font-size: 1.1rem; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .price-card { padding: 16px 10px; }
  .price-label { font-size: .85rem; margin-bottom: 8px; }
  .price-amount { font-size: 1.4rem; }
  .price-amount .cur { font-size: .75rem; }
  .price-amount .per { font-size: .7rem; }
  .price-note { font-size: .7rem; margin: 8px 0 12px; }
  .price-benefits { margin: 0 0 12px; }
  .price-benefits li { font-size: .72rem; padding: 3px 0 3px 15px; }
  .price-benefits li::before { top: 3px; }
  .price-card .btn-primary { font-size: .8rem; padding: 8px 12px; }
  /* 资料库移动端 */
  .lib-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .lib-search input { width: 100%; }
  .lib-search .btn-primary { white-space: nowrap; }
  .library-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
  .library-card { padding: 9px 4px; }
  .lib-icon { font-size: 1.4rem; min-height: 1.4rem; }
  .lib-icon img { width: 28px; height: 28px; }
  .lib-icon span { font-size: 1.4rem; }
  .lib-name { font-size: .66rem; }
  .lib-meta { font-size: .58rem; }
  .admin-shell { flex-direction: column; }
  .admin-menu-toggle { display: inline-block; background: var(--bg-card); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 8px 14px; cursor: pointer; margin-bottom: 12px; font-size: .9rem; }
  .admin-sidebar { width: 100%; height: auto; position: static; display: none; flex-direction: column; gap: 2px; }
  .admin-sidebar.open { display: flex; }
  .admin-sidebar .logo { width: 100%; }
  .admin-main { padding: 16px; }
  .admin-header { flex-wrap: wrap; gap: 8px; }
  .admin-search { order: 3; width: 100%; max-width: none; margin: 0; }
}

/* ===== VIP 会员页面 ===== */
.vip-hero {
  text-align: center;
  padding: 48px 24px 32px;
  background: linear-gradient(135deg, rgba(232,185,35,.1) 0%, rgba(20,184,166,.08) 50%, rgba(232,185,35,.05) 100%);
  border-radius: 16px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.vip-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(232,185,35,.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(20,184,166,.06) 0%, transparent 50%);
  pointer-events: none;
}
.vip-hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #d4a023);
  color: #1a1a2e;
  font-size: .8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.vip-hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 12px;
  background: linear-gradient(135deg, var(--gold), #f0d060);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vip-hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
}

/* VIP 状态卡片 */
.vip-status {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.vip-status-active {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(232,185,35,.1), rgba(212,160,23,.04));
}
.vip-status-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}
.vip-status-info { flex: 1; }
.vip-status-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.vip-status-active .vip-status-title { color: var(--gold); }
.vip-status-body {
  color: var(--text-muted);
  font-size: .88rem;
}

/* VIP 板块 */
.vip-section {
  margin-bottom: 32px;
}
.vip-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vs-icon { font-size: 1.1rem; }

/* VIP 特权网格 */
.vip-privileges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.vip-privilege-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.vip-privilege-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.vip-privilege-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}
.vip-privilege-title {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 6px;
}
.vip-privilege-desc {
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.5;
}

/* VIP 定价卡片 */
.vip-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.vip-price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.vip-price-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(232,185,35,.1);
}
.vip-price-popular {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(232,185,35,.06), var(--bg-card));
  box-shadow: 0 4px 16px rgba(232,185,35,.08);
}
.vip-popular-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), #d4a023);
  color: #1a1a2e;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 0 0 10px 10px;
  letter-spacing: .5px;
}
.vip-price-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}
.vip-price-amount {
  margin-bottom: 18px;
}
.vip-price-cur {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}
.vip-price-val {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
}
.vip-price-per {
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 400;
}
.vip-price-benefits {
  text-align: left;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.vip-price-benefit {
  padding: 5px 0;
  font-size: .85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.vip-check {
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}
.vip-price-btn {
  width: 100%;
  padding: 12px 24px;
  font-size: 1rem;
}

/* VIP 支付方式 */
.vip-pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.vip-pay-method {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.vip-pay-method:hover {
  border-color: var(--text-muted);
}
.vip-pay-active {
  border-color: var(--gold) !important;
  background: rgba(232,185,35,.06);
}
.vip-pay-method input[type="radio"] {
  display: none;
}
.vip-pay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.vip-pay-label {
  font-size: .88rem;
  font-weight: 500;
}

/* VIP 信任保障 */
.vip-trust-row {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}
.vip-trust-item {
  flex: 1;
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.vip-trust-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 8px;
}
.vip-trust-title {
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 4px;
}
.vip-trust-desc {
  color: var(--text-muted);
  font-size: .78rem;
}

/* VIP FAQ */
.vip-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vip-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
}
.vip-faq-q {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 6px;
  color: var(--text);
}
.vip-faq-a {
  color: var(--text-muted);
  font-size: .85rem;
  line-height: 1.6;
}

/* VIP 移动端响应式 */
@media (max-width: 768px) {
  .vip-hero { padding: 32px 16px 24px; border-radius: 12px; }
  .vip-hero-title { font-size: 1.8rem; }
  .vip-hero-sub { font-size: .9rem; }
  .vip-privileges-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .vip-privilege-card { padding: 16px 12px; }
  .vip-privilege-icon { font-size: 1.5rem; margin-bottom: 8px; }
  .vip-privilege-title { font-size: .85rem; }
  .vip-privilege-desc { font-size: .75rem; }
  .vip-pricing-grid { grid-template-columns: 1fr; gap: 14px; }
  .vip-price-card { padding: 24px 16px; }
  .vip-price-val { font-size: 2rem; }
  .vip-pay-methods { gap: 8px; }
  .vip-pay-method { padding: 8px 12px; }
  .vip-trust-row { flex-direction: column; gap: 10px; }
  .vip-trust-item { padding: 14px 10px; }
  .vip-status { padding: 14px 16px; gap: 12px; }
  .vip-status-icon { font-size: 1.5rem; }
}
