/* 与 ppt-web/src/styles 保持一致 */
:root {
  --color-primary: #e53935;
  --color-primary-dark: #c62828;
  --color-primary-light: #fff5f5;
  --color-primary-border: #ffcdd2;
  --color-pagination: #2d8cf0;
  --page-max-width: 1720px;
  --page-padding-x: clamp(20px, 2.8vw, 48px);
  --header-padding-y: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background: #f5f6f8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; }

.page-container,
.page-container-h {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding-left: var(--page-padding-x);
  padding-right: var(--page-padding-x);
}

.page-container { padding-bottom: 80px; }

/* ── Header（对齐 SiteHeader.vue） ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  min-height: 76px;
  padding-top: var(--header-padding-y);
  padding-bottom: var(--header-padding-y);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}
.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.nav-link {
  color: #333;
  font-size: 15px;
}
.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-dropdown { position: relative; }
.nav-dropdown:hover .dropdown-panel { display: block; }

.dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 140px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  z-index: 10;
}
.dropdown-panel a {
  display: block;
  padding: 8px 16px;
}
.dropdown-panel a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.search-wrap {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 560px;
  height: 44px;
  border: 2px solid var(--color-primary);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.search-type {
  border: none;
  border-right: 1px solid #e8e8e8;
  padding: 0 10px;
  height: 100%;
  background: #fafafa;
  color: #333;
  font-size: 13px;
  outline: none;
  max-width: 110px;
}

.search-input {
  flex: 1;
  border: none;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.btn-ai {
  border: none;
  background: transparent;
  color: #ff6b00;
  font-size: 12px;
  padding: 0 8px;
  white-space: nowrap;
  border-left: 1px solid #eee;
  height: 100%;
  display: flex;
  align-items: center;
}

.btn-search {
  width: 48px;
  height: 100%;
  border: none;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

/* ── 头部 VIP（参考熊猫办公 tukuppt.com 悬停弹窗） ── */
.vip-entry {
  position: relative;
}

.btn-vip-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffb347 0%, #ff8c1a 100%);
  border: 1px solid #f07a00;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(255, 140, 26, 0.35);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.btn-vip-trigger:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.42);
  color: #fff;
}

.btn-vip-icon {
  display: inline-flex;
  color: #ffe566;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.vip-hover-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 10px;
  z-index: 220;
  width: 360px;
  max-width: calc(100vw - 24px);
}

.vip-entry:hover .vip-hover-panel,
.vip-entry:focus-within .vip-hover-panel {
  display: block;
}

.vip-hover-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.16);
  border: 1px solid #eef0f4;
  overflow: hidden;
}

.vip-hover-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 16px 18px;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.06) 75%, transparent 75%, transparent),
    linear-gradient(135deg, #2f3f7a 0%, #4a5f9d 48%, #3a4f86 100%);
  background-size: 18px 18px, auto;
}

.vip-banner-deco {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  position: relative;
}

.vip-diamond-shape {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  transform: rotate(45deg);
  border-radius: 8px;
  background: linear-gradient(145deg, #6eb6ff 0%, #2d7cff 55%, #1a5fd4 100%);
  box-shadow: 0 6px 16px rgba(26, 95, 212, 0.45);
}

.vip-diamond-v {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  font-style: italic;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.vip-banner-text strong {
  display: block;
  font-size: 20px;
  line-height: 1.25;
  color: #ffd76a;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.vip-banner-text p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.vip-hover-benefits {
  list-style: none;
  margin: 0;
  padding: 18px 20px 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
}

.vip-hover-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #333;
  line-height: 1.35;
}

.vip-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4caf50;
  position: relative;
}

.vip-check::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 3px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.vip-hover-cta-wrap {
  position: relative;
  padding: 10px 20px 20px;
}

.vip-promo-tag {
  position: absolute;
  right: 34px;
  top: 0;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 10px 10px 10px 2px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(255, 77, 79, 0.35);
}

.vip-hover-cta {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4d95ff 0%, #2d7cff 100%);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 14px rgba(45, 124, 255, 0.35);
  transition: filter 0.15s ease;
}

.vip-hover-cta:hover {
  filter: brightness(1.06);
  color: #fff;
}

.btn-outline {
  padding: 9px 22px;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  background: #fff;
  color: var(--color-primary);
  font-size: 14px;
  display: inline-block;
}
.btn-outline.primary {
  background: var(--color-primary);
  color: #fff;
}

.user-name {
  font-size: 14px;
  color: #333;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-center { position: relative; }

.btn-user-center {
  padding: 9px 18px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-user-center:hover,
.btn-user-center.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.user-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 200;
  min-width: 280px;
  padding: 14px 16px 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.user-panel.open { display: block; }

.panel-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.panel-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 8px;
  width: 100%;
  padding: 10px 0;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
}

.panel-row-btn {
  cursor: pointer;
  border-radius: 6px;
  margin: 0 -8px;
  padding: 10px 8px;
}
.panel-row-btn:hover { background: var(--color-primary-light); }

.row-label {
  flex: 0 0 64px;
  font-size: 13px;
  color: #999;
  white-space: nowrap;
}

.row-value {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-value.mono { font-family: ui-monospace, Menlo, monospace; }
.panel-row .row-value.muted { color: #999; font-weight: 400; }

.row-action {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--color-primary);
  white-space: nowrap;
}

.copy-tip {
  font-size: 12px;
  color: var(--color-primary);
  margin: 0 0 8px;
}

.vip-line { font-size: 13px; color: #333; margin: 4px 0 10px; white-space: nowrap; }
.vip-line.muted { color: #999; }

.panel-link {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 960px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; gap: 8px; }
  .auth-btns { gap: 6px; }
  .btn-vip-trigger { padding: 7px 12px; font-size: 13px; }
  .vip-hover-panel { display: none !important; }
  .user-name { display: none; }
  .btn-user-center { padding: 8px 12px; font-size: 13px; }
}

/* ── 列表页（对齐 ResourceList + TemplateCard） ── */
.breadcrumb {
  padding: 16px 0 12px;
  font-size: 13px;
  color: #999;
}
.breadcrumb .sep { margin: 0 6px; }
.breadcrumb .current { color: #666; }
.breadcrumb a:hover { color: var(--color-primary); }

.card-grid {
  display: grid;
  gap: clamp(10px, 1.2vw, 16px);
  min-height: 200px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .card-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1500px) { .card-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1900px) { .card-grid { grid-template-columns: repeat(7, 1fr); } }

.template-card {
  display: block;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.template-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.card-cover {
  position: relative;
  background: #f5f5f5;
  overflow: hidden;
  aspect-ratio: 1080 / 1841;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.card-title-wrap {
  margin: 10px 10px 12px;
  min-height: calc(13px * 1.4 * 2);
  display: flex;
  align-items: center;
}

.card-title {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}

.empty {
  text-align: center;
  padding: 60px;
  color: #999;
}

/* ── 详情页（对齐 ppt-web Detail.vue） ── */
.detail-page { min-height: 100vh; }
.detail-page .detail-main { padding-bottom: 48px; }
.detail-page .breadcrumb { padding: 14px 0; }
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  background: #fff;
  border-radius: 8px;
  padding: 24px;
}
@media (max-width: 768px) {
  .detail-layout { grid-template-columns: 1fr; }
}
.detail-layout .preview .desc-img {
  width: 100%;
  border-radius: 6px;
  display: block;
}
.preview-empty {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f6f8;
  border-radius: 6px;
  color: #999;
  font-size: 14px;
}
.detail-layout .info-panel h1 {
  font-size: 20px;
  margin: 0 0 16px;
  line-height: 1.4;
}
.detail-layout .meta,
.detail-layout .keywords {
  color: #666;
  font-size: 14px;
  margin: 8px 0;
}
.detail-layout .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.detail-layout .tag {
  background: #f0f6ff;
  color: var(--color-primary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}
.btn-download {
  width: 100%;
  padding: 14px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  margin-top: 20px;
}
.btn-download:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.download-msg {
  font-size: 13px;
  color: #52c41a;
  margin-top: 10px;
}
.download-msg.error { color: var(--color-primary); }
.download-msg.hidden { display: none; }

.download-captcha-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 16px;
}
.download-captcha-overlay.hidden { display: none; }
.download-captcha-modal {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 10px;
  padding: 24px 20px 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}
.download-captcha-modal h3 {
  margin: 0 0 8px;
  font-size: 18px;
  text-align: center;
}
.download-captcha-tip {
  margin: 0 0 16px;
  font-size: 13px;
  color: #666;
  text-align: center;
  line-height: 1.5;
}
.download-captcha-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}
.download-captcha-img {
  display: block;
  width: 180px;
  height: 60px;
  border: 1px solid #eee;
  border-radius: 4px;
  cursor: pointer;
}
.download-captcha-input {
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: 0.2em;
}
.download-captcha-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  align-items: stretch;
}
.download-captcha-actions button {
  flex: 1;
  min-height: 42px;
  margin: 0;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  box-sizing: border-box;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.download-captcha-actions .btn-outline {
  border: 1px solid var(--color-primary);
  background: #fff;
  color: var(--color-primary);
}
.download-captcha-actions .btn-primary {
  border: none;
  background: var(--color-primary);
  color: #fff;
}
.download-captcha-actions .btn-primary:hover {
  background: var(--color-primary-dark);
}
.download-limit-modal .download-captcha-tip {
  margin-bottom: 20px;
}
.detail-layout .tip {
  font-size: 12px;
  color: #999;
  margin-top: 12px;
}
.page-main { max-width: var(--page-max-width); margin: 0 auto; padding: 24px var(--page-padding-x) 48px; }
.desc-img { max-width: 100%; border-radius: 8px; }
.info-panel h1 { margin-top: 0; font-size: 22px; }
.keywords, .meta, .tip { color: #666; font-size: 14px; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: #f0f0f0; padding: 4px 10px; border-radius: 4px; font-size: 12px; }
.btn-primary { display: inline-block; margin-top: 12px; padding: 10px 24px; background: var(--color-primary); color: #fff; border-radius: 6px; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.plan-card { background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.plan-card .price { font-size: 28px; color: var(--color-primary); font-weight: 700; }

/* ── 会员页 v2（参考熊猫办公 tukuppt 双 Tab + 卡片） ── */
.vip-body-page { background: #eef1fb; }

/* 会员页：隐藏顶栏分类导航与搜索框 */
.vip-body-page .site-header .main-nav,
.vip-body-page .site-header .search-wrap {
  display: none !important;
}

.vip-page { min-height: calc(100vh - 76px); padding-bottom: 48px; }

.vip-page-v2 .vip-hero {
  background: linear-gradient(160deg, #dce8ff 0%, #e8e0ff 45%, #f3ecff 100%);
  color: #2d2a4a;
  padding: 28px 24px 36px;
  text-align: center;
}
.vip-tab-ai .vip-hero {
  background: linear-gradient(160deg, #e4dcff 0%, #ddd4ff 40%, #f0e8ff 100%);
}
.vip-page-v2 .vip-hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(90deg, #4a5fd8, #8b4fd8 55%, #e8783a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vip-page-v2 .hero-sub {
  margin: 0;
  font-size: 14px;
  color: #6b6888;
}
.vip-page-v2 .back-link {
  display: inline-block;
  color: #7a76a0;
  font-size: 14px;
}
.vip-page-v2 .back-link:hover { color: #4a5fd8; }

.vip-body { margin-top: -20px; position: relative; z-index: 1; }

.vip-page .account-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(80, 90, 180, 0.08);
  font-size: 14px;
  color: #555;
}
.vip-page .tag-vip {
  padding: 2px 8px;
  border-radius: 4px;
  background: #fff3e0;
  color: #e65100;
  font-size: 12px;
}
.vip-page .tag-normal {
  padding: 2px 8px;
  border-radius: 4px;
  background: #f5f5f5;
  color: #999;
  font-size: 12px;
}
.vip-page .login-hint {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(80, 90, 180, 0.08);
}
.vip-page .login-hint p { margin: 0 0 12px; color: #666; }
.vip-page .btn-login {
  display: inline-block;
  padding: 10px 28px;
  background: linear-gradient(90deg, #5b7cff, #7b5cff);
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
}

.vip-page .page-error {
  margin: 0 0 12px;
  padding: 10px 14px;
  background: #fff5f5;
  border-radius: 8px;
  color: var(--color-primary);
  font-size: 13px;
}
.vip-page .page-success {
  margin: 0 0 12px;
  padding: 10px 14px;
  background: #f1f8e9;
  border-radius: 8px;
  color: #2e7d32;
  font-size: 13px;
}
.vip-page .empty-box,
.vip-page .panel-empty {
  text-align: center;
  color: #999;
  padding: 48px 0;
}

/* Tab 切换 */
.vip-tab-switch {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 auto 24px;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 4px 16px rgba(90, 100, 200, 0.12);
}
.vip-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.vip-tab.active {
  background: #fff;
  color: #4a5fd8;
  box-shadow: 0 2px 10px rgba(74, 95, 216, 0.18);
}
.vip-tab-ai .vip-tab.active {
  color: #7b3ff2;
  box-shadow: 0 2px 10px rgba(123, 63, 242, 0.2);
}
.tab-ai-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, #7b3ff2, #b06aff);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

/* 套餐卡片网格 */
.vip-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.vip-plan-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px 18px;
  border: 2px solid transparent;
  box-shadow: 0 8px 28px rgba(60, 70, 140, 0.1);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.vip-plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(60, 70, 140, 0.14);
}
.vip-plan-card.is-selected {
  border-color: #5b7cff;
  box-shadow: 0 0 0 1px #5b7cff, 0 12px 32px rgba(91, 124, 255, 0.18);
}
.vip-plan-card.ai-card.is-selected {
  border-color: #7b3ff2;
  box-shadow: 0 0 0 1px #7b3ff2, 0 12px 32px rgba(123, 63, 242, 0.18);
}
.vip-plan-card.is-featured {
  border-color: #c8d4ff;
}
.vip-plan-card.ai-card.is-featured {
  border-color: #d4c0ff;
}

.plan-badge {
  position: absolute;
  top: -1px;
  left: 16px;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.plan-badge.hot { background: linear-gradient(90deg, #ff8a4c, #ff5e62); }
.plan-badge.value { background: linear-gradient(90deg, #3ecf8e, #2db87a); left: auto; right: 16px; }

.plan-title {
  margin: 8px 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #2a2a3a;
}
.plan-sub {
  margin: 0 0 10px;
  font-size: 12px;
  color: #999;
  min-height: 0;
}
.plan-price {
  margin: 12px 0 16px;
  font-size: 36px;
  font-weight: 800;
  color: #ff5a3c;
  line-height: 1;
}
.plan-price em { font-style: normal; font-size: 18px; margin-right: 2px; }
.plan-period { font-size: 14px; font-weight: 500; color: #999; margin-left: 2px; }

.plan-open-btn {
  display: block;
  width: 100%;
  height: 42px;
  line-height: 42px;
  text-align: center;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #5b7cff, #4a8cff);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
  text-decoration: none;
  box-sizing: border-box;
}
.plan-open-link:hover { opacity: 0.92; color: #fff; }
.plan-open-btn.ai,
a.plan-open-btn.ai {
  background: linear-gradient(90deg, #7b3ff2, #9b5cff);
}

.plan-benefits h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.plan-benefits h4 .quota {
  font-size: 12px;
  font-weight: 600;
  color: #ff5a3c;
}
.plan-benefits ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.plan-benefits li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
  line-height: 1.8;
}
.plan-benefits li .quota {
  margin-left: auto;
  color: #ff5a3c;
  font-weight: 600;
}
.icon-yes, .icon-no {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  position: relative;
}
.icon-yes { background: #e8f8ef; }
.icon-yes::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 2px;
  width: 4px;
  height: 7px;
  border: solid #2db87a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.icon-no { background: #fdeaea; }
.icon-no::before, .icon-no::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 2px;
  height: 8px;
  background: #e57373;
  border-radius: 1px;
}
.icon-no::before { transform: rotate(45deg); }
.icon-no::after { transform: rotate(-45deg); }

/* 支付区 */
.vip-page .vip-checkout {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 10px 36px rgba(60, 70, 140, 0.12);
  margin-top: 8px;
}
.vip-page .checkout-head { margin-bottom: 16px; }
.vip-page .checkout-head h2 { margin: 0 0 4px; font-size: 18px; color: #222; }
.vip-page .expire-hint { margin: 0; font-size: 13px; color: #999; }

.vip-page .checkout-pay-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  padding: 16px 0 20px;
  border-top: 1px dashed #eee;
  border-bottom: 1px dashed #eee;
  margin-bottom: 20px;
}
.vip-page .checkout-amount { flex: 1; min-width: 140px; }
.vip-page .pay-label { display: block; font-size: 14px; color: #888; margin-bottom: 6px; }
.vip-page .pay-value {
  font-size: 40px;
  font-weight: 800;
  color: #ff5a3c;
  line-height: 1;
}
.vip-page .pay-value em { font-style: normal; font-size: 22px; margin-right: 2px; }

.vip-page .pay-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}
.vip-page .qr-wrap {
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fafafa;
}
.vip-page .qr-image { display: block; width: 180px; height: 180px; }
.vip-page .qr-image canvas,
.vip-page .qr-image img { display: block; width: 180px; height: 180px; }
.vip-page .qr-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 14px;
  color: #07c160;
  font-weight: 500;
}
.vip-page .wx-icon { width: 20px; height: 20px; }
.vip-page .qr-status { margin: 6px 0 0; font-size: 12px; color: #999; }
.vip-page .qr-placeholder,
.vip-page .qr-loading {
  text-align: center;
  padding: 24px 12px;
  color: #999;
  font-size: 13px;
  min-width: 180px;
}
.vip-page .qr-loading .spinner {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
  border: 3px solid #eee;
  border-top-color: #07c160;
  border-radius: 50%;
  animation: vip-spin 0.7s linear infinite;
}
@keyframes vip-spin { to { transform: rotate(360deg); } }

.vip-page .btn-pay {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #5b7cff, #7b5cff);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.vip-tab-ai .vip-page .btn-pay {
  background: linear-gradient(90deg, #7b3ff2, #b06aff);
}
.vip-page .btn-pay:disabled { opacity: 0.65; cursor: not-allowed; }
.vip-page .btn-confirm {
  width: 100%;
  height: 42px;
  margin-top: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #666;
  font-size: 14px;
  cursor: pointer;
}
.vip-page .btn-confirm:disabled { opacity: 0.65; }
.vip-page .checkout-agree {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  color: #bbb;
}

/* 独立支付页 /vip/pay */
.vip-pay-page { padding-bottom: 48px; }
.vip-pay-hero {
  background: linear-gradient(160deg, #dce8ff 0%, #e8e0ff 45%, #f3ecff 100%);
  color: #2d2a4a;
  padding: 24px 24px 32px;
  text-align: center;
}
.vip-tab-ai .vip-pay-hero {
  background: linear-gradient(160deg, #e4dcff 0%, #ddd4ff 40%, #f0e8ff 100%);
}
.vip-pay-hero h1 {
  margin: 10px 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: #2d2a4a;
}
.vip-pay-hero .hero-sub { margin: 0; font-size: 14px; color: #6b6888; }
.vip-pay-hero .back-link {
  display: inline-block;
  color: #7a76a0;
  font-size: 14px;
}
.vip-pay-hero .back-link:hover { color: #4a5fd8; }

.vip-pay-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 10px 36px rgba(60, 70, 140, 0.12);
}
.vip-pay-plan .pay-plan-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  background: #eef2ff;
  color: #5b7cff;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.vip-tab-ai .vip-pay-plan .pay-plan-tag {
  background: #f3ecff;
  color: #7b3ff2;
}
.vip-pay-plan h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: #222;
}
.vip-pay-plan .plan-desc-text {
  margin: 12px 0 0;
  font-size: 12px;
  color: #999;
  line-height: 1.6;
  max-height: 120px;
  overflow-y: auto;
}
.vip-pay-checkout {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-left: 1px dashed #eee;
  padding-left: 24px;
}
.vip-pay-checkout .checkout-amount {
  width: 100%;
  text-align: center;
  margin-bottom: 16px;
}
.pay-success-link {
  display: block;
  margin-top: 14px;
  text-align: center;
  color: #5b7cff;
  font-size: 14px;
  font-weight: 600;
}
.pay-success-link:hover { color: #7b3ff2; }

@media (max-width: 768px) {
  .vip-pay-card {
    grid-template-columns: 1fr;
  }
  .vip-pay-checkout {
    border-left: none;
    border-top: 1px dashed #eee;
    padding-left: 0;
    padding-top: 20px;
  }
}

@media (max-width: 640px) {
  .vip-page-v2 .vip-hero h1 { font-size: 22px; }
  .vip-cards-grid { grid-template-columns: 1fr; }
  .vip-page .checkout-pay-row { flex-direction: column; align-items: center; }
}

/* 旧 chip 样式保留兼容 */
.vip-page .plan-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.vip-page .plan-chip {
  flex: 1 1 120px;
  min-width: 110px;
  max-width: 180px;
  padding: 16px 12px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: left;
}
.vip-page .plan-chip:hover { border-color: #ffb74d; }
.vip-page .plan-chip.active {
  border-color: #f5a623;
  box-shadow: 0 0 0 1px #f5a623;
  background: linear-gradient(180deg, #fffaf0, #fff);
}
.vip-page .chip-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}
.vip-page .chip-price {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.vip-page .chip-price em { font-style: normal; font-size: 16px; margin-right: 2px; }
.vip-page .checkout {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}
.vip-banner {
  background: linear-gradient(135deg, #5c4b8a 0%, #7b6cf0 55%, #9b8cff 100%);
  color: #fff;
  padding: 20px 24px 28px;
  text-align: center;
}
.vip-banner h1 { margin: 10px 0 6px; font-size: 22px; font-weight: 700; }
.vip-banner .back-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}
.vip-banner .back-link:hover { color: #fff; }
.vip-banner .banner-desc { margin: 0; font-size: 13px; opacity: 0.9; }
.vip-page .pay-amount {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0 20px;
  border-bottom: 1px dashed #eee;
  margin-bottom: 20px;
}

.page-title { margin: 0 0 16px; font-size: 24px; }
.subtitle { color: #888; margin-bottom: 20px; }

.faq article { margin-bottom: 16px; }
.faq h3 { font-size: 16px; margin-bottom: 6px; }
.detail-related { margin-top: 24px; }
.detail-related-title {
  margin: 0 0 12px;
  font-size: 16px;
  color: #666;
  font-weight: 500;
}
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { margin-bottom: 8px; }
.related-list a { color: var(--color-primary); font-size: 14px; }

.login-form { display: grid; gap: 12px; max-width: 360px; }
.login-form label { display: grid; gap: 4px; font-size: 14px; }
.login-form input { padding: 10px; border: 1px solid #ddd; border-radius: 6px; }
.login-form button { padding: 10px 16px; border: none; border-radius: 6px; cursor: pointer; }
.login-form button[type=submit] { background: var(--color-primary); color: #fff; }

/* ── 登录/注册（对齐 ppt-web Auth.vue） ── */
.auth-body-page { background: rgba(0, 0, 0, 0.45); }
.hidden { display: none !important; }

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-dialog {
  display: flex;
  width: 100%;
  max-width: 780px;
  min-height: 460px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
}

.auth-aside {
  flex: 0 0 42%;
  padding: 48px 36px;
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.aside-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.aside-title {
  margin: 0 0 28px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.aside-features {
  list-style: none;
  margin: 0;
  padding: 0;
}
.aside-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.95;
}
.aside-features .check {
  flex-shrink: 0;
  font-size: 13px;
  opacity: 0.85;
}

.auth-main {
  flex: 1;
  position: relative;
  padding: 40px 44px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  line-height: 30px;
  text-align: center;
  font-size: 24px;
  color: #999;
  text-decoration: none;
  border-radius: 4px;
}
.btn-close:hover {
  color: #333;
  background: #f5f5f5;
}

.main-logo-wrap { margin-bottom: 8px; }
.main-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.main-heading {
  margin: 8px 0 28px;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.btn-social {
  width: 100%;
  max-width: 320px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 20px;
}
.btn-social.wechat {
  background: #07c160;
  color: #fff;
}
.btn-social.wechat:hover { background: #06ad56; }
.btn-social:disabled { opacity: 0.65; }

.social-icon { width: 22px; height: 22px; }

.auth-form { width: 100%; max-width: 320px; }

.input-block {
  width: 100%;
  height: 44px;
  margin-bottom: 14px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}
.input-block:focus { border-color: var(--color-primary); }
.input-block::placeholder { color: #bbb; }

.auth-main .btn-primary {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 4px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}
.auth-main .btn-primary:disabled { opacity: 0.65; }
.auth-main .btn-primary:hover:not(:disabled) { background: var(--color-primary-dark); }

.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 320px;
  width: 100%;
  font-size: 12px;
  color: #999;
  margin-top: 16px;
  cursor: pointer;
  line-height: 1.5;
}
.agree-row input { margin-top: 2px; flex-shrink: 0; }

.error-msg {
  width: 100%;
  max-width: 320px;
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--color-primary);
  text-align: center;
  line-height: 1.5;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 20px;
  width: 100%;
  max-width: 320px;
}
.switch-row.center { justify-content: center; }
.switch-row .dot { color: #ddd; }

.link-btn {
  border: none;
  background: none;
  color: var(--color-pagination);
  font-size: 13px;
  padding: 0;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

.wx-qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 16px;
}

.wx-qr-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 24px);
  height: auto;
  overflow: visible;
  background: #fff;
  border-radius: 10px;
  padding: 32px 28px 28px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}
.wx-qr-modal h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #333;
}

.qr-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: #999;
  cursor: pointer;
}
.qr-close:hover { color: #333; }

.qr-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: #999;
}

.qr-body { position: relative; height: auto; min-height: 320px; }
.qr-body.is-loading { min-height: 320px; }

.qr-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.qr-status.overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
}
.qr-status p {
  margin: 0;
  font-size: 13px;
  color: #666;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #eee;
  border-top-color: #07c160;
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
  margin-bottom: 12px;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

.btn-retry {
  margin-top: 14px;
  padding: 8px 20px;
  border: 1px solid #07c160;
  border-radius: 4px;
  background: #fff;
  color: #07c160;
  font-size: 13px;
  cursor: pointer;
}

.wx-qr-box {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  height: auto;
  margin-bottom: 8px;
  overflow: visible;
  line-height: 0;
}
.wx-qr-box iframe {
  width: 300px !important;
  height: 400px !important;
  max-width: 100%;
  border: none;
  display: block;
}

.qr-foot {
  margin: 16px 0 0;
  font-size: 11px;
  color: #bbb;
}

@media (max-width: 640px) {
  .auth-dialog {
    flex-direction: column;
    max-width: 400px;
    min-height: auto;
  }
  .auth-aside {
    flex: none;
    padding: 28px 24px;
  }
  .aside-title {
    font-size: 18px;
    margin-bottom: 16px;
  }
  .aside-features li {
    margin-bottom: 10px;
    font-size: 13px;
  }
  .auth-main { padding: 28px 24px 32px; }
}

.site-footer { text-align: center; color: #aaa; font-size: 12px; padding: 24px; }

/* FilterBox */
.filter-box {
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.type-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.type-tab {
  font-size: 15px;
  color: #666;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.type-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}
.level1-wrap {
  margin-bottom: 12px;
  border-bottom: 1px dashed #eee;
  padding-bottom: 10px;
}
.level1-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
}
.level1-tab {
  flex-shrink: 0;
  color: #555;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 4px;
  white-space: nowrap;
}
.level1-tab:hover { color: var(--color-primary); }
.level1-tab.active {
  color: var(--color-primary);
  font-weight: 600;
  background: var(--color-primary-light);
}
.level2-wrap { margin-bottom: 4px; }
.level2-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  color: #555;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
}
.tag:hover { color: var(--color-primary); }
.tag.active {
  background: var(--color-primary);
  color: #fff;
}

/* SortTabs */
.sort-tabs {
  display: flex;
  gap: 32px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.sort-tab {
  padding: 12px 0;
  font-size: 14px;
  color: #666;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.sort-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 36px;
  padding-bottom: 8px;
}
.page-num, .page-next {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e4e4e4;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 34px;
  text-align: center;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.page-num:hover, .page-next:hover {
  border-color: var(--color-pagination);
  color: var(--color-pagination);
}
.page-num.active {
  background: var(--color-pagination);
  border-color: var(--color-pagination);
  color: #fff;
}
.page-ellipsis {
  min-width: 28px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  color: #999;
}
.page-next { min-width: 72px; margin-left: 4px; }

.card-cover.cover-shouchao { aspect-ratio: 1777 / 1265; }

.resource-page { min-height: 100vh; padding-bottom: 40px; }

/* ── 职场课程（WorkplaceCourse.vue） ── */
.workplace-page { min-height: 100vh; padding-bottom: 48px; }

.job-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.job-tab {
  min-width: 72px;
  padding: 8px 20px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  color: #333;
  display: inline-block;
}
.job-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 8px;
}
.course-card {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.course-title {
  margin: 12px 12px 6px;
  font-size: 15px;
  line-height: 1.4;
  color: #222;
  font-weight: 600;
}
.course-excerpt {
  margin: 0 12px 12px;
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-course-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f2f5;
}
.cover-generated {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  text-align: center;
  color: #fff;
}
.cover-tab {
  font-size: 11px;
  opacity: 0.9;
  margin-bottom: 6px;
}
.cover-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.cover-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.type-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.article-section {
  margin-top: 8px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 8px;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: #e8e8e8;
}
.divider-text {
  flex-shrink: 0;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: inherit;
  transition: background 0.15s;
}
.article-row:hover { background: #fafafa; }
.thumb-wrap {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f2f5;
}
.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #aaa;
  background: linear-gradient(135deg, #e8eef5, #d6e4f0);
}
.row-body { flex: 1; min-width: 0; }
.row-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.row-excerpt {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #888;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.row-hits { margin: 0; font-size: 12px; color: #aaa; }
.row-arrow {
  flex-shrink: 0;
  font-size: 22px;
  color: #ccc;
  padding-left: 4px;
}
.vip-tip {
  margin-top: 24px;
  font-size: 12px;
  color: #999;
  text-align: center;
}

/* ── AI 创作（AiLayout + AiCreateHome） ── */
.ai-layout-page {
  min-height: 100vh;
  background: #f0f2f5;
}
.ai-layout-main { padding-bottom: 48px; }
.ai-workbench-wrap {
  display: flex;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  min-height: 560px;
}
.ai-workbench-main {
  flex: 1;
  min-width: 0;
  background: #fafbfc;
}

.ai-sidebar {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #e8e8e8;
  min-height: 520px;
}
.sidebar-head {
  padding: 16px 14px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: inherit;
}
.sidebar-brand.active,
.sidebar-brand:hover {
  background: var(--color-primary-light);
}
.sidebar-brand strong {
  display: block;
  font-size: 15px;
  color: #333;
}
.sidebar-brand span { font-size: 11px; color: #999; }
.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff6b6b, #ffb347);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.sidebar-nav {
  flex: 1;
  padding: 10px 8px;
  overflow-y: auto;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 2px;
  border-radius: 8px;
  color: #555;
  font-size: 13px;
}
.nav-item:hover { background: #f5f5f5; color: #333; }
.nav-item.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
}
.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ai-home { padding: 28px 32px 32px; }
.home-header h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
}
.home-header p { margin: 0; font-size: 14px; color: #888; }
.home-meta {
  display: flex;
  gap: 16px;
  margin: 24px 0 28px;
  flex-wrap: wrap;
}
.meta-card {
  flex: 1;
  max-width: 160px;
  padding: 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  text-align: center;
}
.meta-num {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.meta-label { font-size: 12px; color: #999; }
.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.home-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.home-card:hover {
  border-color: var(--color-primary-border);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.08);
}
.home-card h3 { margin: 0 0 4px; font-size: 14px; color: #333; }
.home-card p { margin: 0; font-size: 11px; color: #999; }
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.home-tip {
  margin: 24px 0 0;
  font-size: 12px;
  color: #aaa;
  text-align: center;
}

.ai-form-panel { padding: 24px 28px 32px; }
.panel-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.panel-head-text h1 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #222;
}
.panel-head-text p { margin: 0; font-size: 13px; color: #888; }
.panel-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
}
.form-col .input,
.form-col .textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 12px;
  box-sizing: border-box;
}
.form-col .textarea { resize: vertical; min-height: 88px; }
.field-label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}
.field-label .req { color: var(--color-primary); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}
.chip.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}
.form-example {
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: #fff8e1;
  border-radius: 6px;
}
.example-label {
  font-weight: 600;
  margin-right: 6px;
}
.aside-col { display: flex; flex-direction: column; gap: 12px; }
.ai-vip-banner {
  display: block;
  padding: 12px 14px;
  background: linear-gradient(135deg, #fff5f5, #ffe8e8);
  border: 1px solid var(--color-primary-border);
  border-radius: 8px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.aside-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
  color: #666;
}
.aside-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #333;
}
.aside-card ol,
.aside-card ul {
  margin: 0;
  padding-left: 18px;
}
.aside-card.muted { color: #999; }
.ai-result-panel { padding: 0; display: flex; flex-direction: column; min-height: 100%; }
.ai-result-header { padding: 20px 28px; border-bottom: 1px solid #eee; background: #fff; }
.ai-result-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 240px;
  min-height: 480px;
}
.result-main {
  display: flex;
  flex-direction: column;
  padding: 20px 24px 24px;
  background: #fff;
  border-right: 1px solid #f0f0f0;
}
.status-badge {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
  flex-shrink: 0;
}
.status-badge.loading { background: #fff3e0; color: #f57c00; }
.status-badge.done { background: #e8f5e9; color: #2e7d32; }
.status-badge.edit { background: #e3f2fd; color: #1565c0; }
.status-badge.hidden { display: none; }
.status-tip {
  font-size: 13px;
  color: #888;
  margin: 0 0 12px;
  animation: ai-pulse 1.2s ease-in-out infinite;
}
.status-tip.hidden { display: none; }
@keyframes ai-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.result-scroll {
  flex: 1;
  min-height: 360px;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 20px 24px;
  background: #fff;
}
.ai-result-stream {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.75;
  color: #333;
  font-family: inherit;
  background: transparent;
  border: none;
}
.result-editor {
  width: 100%;
  min-height: 320px;
  box-sizing: border-box;
  border: none;
  outline: none;
  resize: vertical;
  font-size: 14px;
  line-height: 1.75;
  color: #333;
  background: transparent;
}
.markdown-body { font-size: 14px; line-height: 1.75; color: #333; word-break: break-word; }
.markdown-body h1, .markdown-body h2, .markdown-body h3 { margin: 1em 0 0.5em; font-weight: 600; color: #1a1a1a; }
.markdown-body h1 { font-size: 1.4em; }
.markdown-body h2 { font-size: 1.25em; }
.markdown-body h3 { font-size: 1.1em; }
.markdown-body p { margin: 0.5em 0; }
.markdown-body ul { margin: 0.5em 0; padding-left: 1.4em; }
.markdown-body li { margin: 0.25em 0; }
.result-empty { color: #ccc; text-align: center; padding: 80px 0; font-size: 14px; }
.result-aside { padding: 20px 16px; background: #f8f9fa; }
.result-aside .aside-btn {
  display: block;
  width: 100%;
  height: 36px;
  margin-bottom: 8px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  text-align: center;
  line-height: 34px;
  text-decoration: none;
  box-sizing: border-box;
}
.result-aside .aside-btn:hover:not(:disabled) { border-color: var(--color-primary, #e53935); color: var(--color-primary, #e53935); }
.result-aside .aside-btn.primary {
  border: none;
  background: var(--color-primary, #e53935);
  color: #fff;
  font-weight: 600;
}
.result-aside .aside-btn.primary:hover:not(:disabled) { opacity: 0.92; color: #fff; }
.result-aside .aside-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.result-aside .aside-btn.link { background: transparent; border-style: dashed; }
.export-wrap { position: relative; margin-bottom: 8px; }
.export-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 10;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  overflow: hidden;
}
.export-menu button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: #fff;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}
.export-menu button:hover { background: #fff5f5; color: var(--color-primary, #e53935); }
.copy-tip { margin-top: 8px; font-size: 13px; color: #2e7d32; min-height: 18px; }
.aside-p { margin: 0; font-size: 12px; color: #888; line-height: 1.6; }
.history-list { max-height: 200px; overflow-y: auto; }
.history-empty { margin: 0; font-size: 12px; color: #aaa; }
.history-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  margin-bottom: 6px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fafafa;
  cursor: pointer;
  font-size: 12px;
}
.history-item:hover { border-color: var(--color-primary, #e53935); background: #fff; }
.history-time { display: block; color: #999; margin-bottom: 2px; }
.history-preview { display: block; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-optimize-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
}
.ai-optimize-overlay.hidden { display: none; }
.ai-optimize-modal {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 10px;
  padding: 24px 20px 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}
.ai-optimize-modal h3 {
  margin: 0 0 8px;
  font-size: 18px;
  text-align: center;
}
.ai-optimize-tip {
  margin: 0 0 12px;
  font-size: 14px;
  color: #666;
  text-align: center;
  line-height: 1.5;
}
.ai-optimize-input {
  width: 100%;
  min-height: 96px;
  padding: 10px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}
.ai-optimize-input:focus {
  outline: none;
  border-color: var(--color-primary, #e53935);
}
.ai-optimize-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.ai-optimize-actions .aside-btn {
  flex: 1;
  margin-bottom: 0;
}
.ai-result-box {
  white-space: pre-wrap;
  word-break: break-word;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  min-height: 200px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

@media (max-width: 960px) {
  .ai-workbench-wrap { flex-direction: column; min-height: auto; }
  .ai-sidebar {
    width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
  }
  .sidebar-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
  }
  .nav-item { flex-shrink: 0; margin-bottom: 0; }
  .panel-body { grid-template-columns: 1fr; }
  .ai-result-body { grid-template-columns: 1fr; }
  .result-main { border-right: none; }
  .result-aside { display: flex; flex-wrap: wrap; gap: 12px; }
  .result-aside .aside-card { flex: 1; min-width: 140px; }
  .home-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1100px) {
  .home-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== 职场课程详情（对齐 JobPptIqyDetail.vue / JobCourseDetail.vue） ===== */
.job-detail-page { min-height: 100vh; padding-bottom: 48px; }
.job-detail-page .detail-main { padding-bottom: 48px; }
.job-detail-page .breadcrumb { padding: 14px 0; }
.job-detail-page .detail-head {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.job-detail-page .head-cover-wrap {
  width: 200px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}
.job-detail-page .job-course-cover .cover-generated {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  text-align: center;
  color: #fff;
}
.job-detail-page .cover-tab {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.job-detail-page .cover-title {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.92;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.job-detail-page .head-info h1 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.4;
  color: #333;
}
.job-detail-page .head-info .excerpt {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}
.job-detail-page .session-block {
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.job-detail-page .session-title {
  margin: 0 0 12px;
  font-size: 16px;
  color: #222;
}
.job-detail-page .session-desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: #888;
}
.job-detail-page .lesson-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.job-detail-page .lesson-item {
  border-top: 1px solid #f0f0f0;
}
.job-detail-page .lesson-item:first-child { border-top: none; }
.job-detail-page .lesson-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}
.job-detail-page .lesson-btn:hover .lesson-play { color: var(--color-primary); }
.job-detail-page .lesson-index {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f5f5f5;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #666;
}
.job-detail-page .lesson-name {
  flex: 1;
  font-size: 14px;
  color: #333;
}
.job-detail-page .tag-free {
  font-size: 11px;
  color: var(--color-primary);
  border: 1px solid var(--color-primary-border);
  padding: 0 6px;
  border-radius: 3px;
}
.job-detail-page .tag-duration {
  font-size: 11px;
  color: #888;
  padding: 0 6px;
}
.job-detail-page .lesson-play {
  font-size: 13px;
  color: #999;
}
.job-detail-page .play-msg {
  font-size: 13px;
  margin: 12px 0;
  color: #52c41a;
}
.job-detail-page .play-msg.error { color: var(--color-primary); }
.job-detail-page .play-msg.hidden { display: none; }
.job-detail-page .video-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.72);
  box-sizing: border-box;
}
.job-detail-page .video-modal-mask.hidden { display: none; }
.job-detail-page .video-modal {
  width: 100%;
  max-width: 960px;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}
.job-detail-page .video-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #1a1a1a;
  color: #fff;
}
.job-detail-page .video-modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.job-detail-page .btn-close-video {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.job-detail-page .btn-close-video:hover { background: rgba(255, 255, 255, 0.2); }
.job-detail-page .video-modal-body { background: #000; line-height: 0; }
.job-detail-page .video-player {
  width: 100%;
  max-height: min(72vh, 540px);
  display: block;
}
.job-detail-page .video-modal-tip {
  margin: 0;
  padding: 10px 16px 14px;
  font-size: 12px;
  color: #999;
  background: #1a1a1a;
}
.job-detail-page .article-panel {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.job-detail-page .article-panel h1 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.4;
}
.job-detail-page .article-html {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}
.job-detail-page .article-html img { max-width: 100%; height: auto; }
@media (max-width: 640px) {
  .job-detail-page .detail-head { flex-direction: column; }
  .job-detail-page .head-cover-wrap { width: 100%; }
}
