/* 赛比云创 PC 端 - 自定义样式（Bootstrap 5 扩展） */

:root {
  --brand-primary: #4f46e5;
  --brand-primary-dark: #4338ca;
  --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #1e1b4b 60%, #0f172a 100%);
  --surface-muted: #f8fafc;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --bs-primary: #4f46e5;
  --bs-primary-rgb: 79, 70, 229;
  --bs-link-color: #4f46e5;
  --bs-link-hover-color: #4338ca;
  --bs-border-radius-lg: 0.75rem;
  --bs-border-radius-xl: 1rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--surface-muted);
  color: #1e293b;
}

html { scroll-behavior: smooth; }

/* ---------- 品牌与导航 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover { color: inherit; }

.brand-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--brand-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.site-navbar-premium {
  min-height: 4.5rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.site-navbar-premium .app-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

@media (min-width: 1200px) {
  .site-navbar-premium .app-nav-inner {
    padding-inline: 2rem;
  }
}

.site-navbar-premium .navbar-collapse {
  align-items: center;
}

@media (min-width: 992px) {
  .site-navbar-premium .app-nav-links-public {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.brand-lg .brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  font-size: 1.2rem;
}

.brand-lg .brand-name {
  font-size: 1.25rem;
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.site-navbar-premium .nav-app-link {
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border-bottom: none;
}

.site-navbar-premium .nav-app-link:hover {
  background: #f1f5f9;
}

.site-navbar-premium .nav-app-link.active {
  background: #eef2ff;
  color: var(--brand-primary);
  border-bottom: none;
}

.site-navbar-premium .btn-nav-cta {
  padding: 0.5rem 1.25rem;
  font-weight: 600;
}

.app-navbar {
  min-height: 4rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.app-navbar .brand-icon {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.15rem;
}

.app-navbar .brand-name {
  font-size: 1.2rem;
  font-weight: 800;
}

.app-nav-inner {
  max-width: 1440px;
}

.app-nav-links {
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 992px) {
  .app-nav-links {
    gap: 1rem;
  }
}

.app-nav-token-label {
  font-size: 10px;
  letter-spacing: 0.04em;
}

.app-token-widget {
  position: relative;
  cursor: default;
}

.app-token-popover {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 280px;
  max-height: 260px;
  overflow: auto;
  z-index: 1080;
}

.app-token-widget:hover .app-token-popover,
.app-token-widget:focus-within .app-token-popover {
  display: block;
}

.app-token-grants {
  max-height: 160px;
  overflow-y: auto;
}

.flow-cancel-footer {
  margin-bottom: 0.5rem;
}

.nav-app-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border-bottom: none;
  transition: background 0.15s, color 0.15s;
}

.nav-app-link:hover {
  color: var(--brand-primary);
  background: #f1f5f9;
}

.nav-app-link.active {
  color: var(--brand-primary);
  background: #eef2ff;
  font-weight: 600;
}

/* ---------- 首页 Hero ---------- */
.hero-section {
  background: var(--brand-gradient);
  color: #fff;
  min-height: 92vh;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.04) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  pointer-events: none;
}

.hero-stat-num {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-eyebrow {
  color: var(--brand-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-divider {
  width: 4rem;
  height: 4px;
  margin: 0.75rem auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #4f46e5, #10b981);
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-icon.primary { background: #eef2ff; color: var(--brand-primary); }
.feature-icon.success { background: #ecfdf5; color: #059669; }
.feature-icon.violet { background: #f5f3ff; color: #7c3aed; }

.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.12);
}

.novel-cover-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
}

.novel-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-hover:hover .novel-cover-wrap img {
  transform: scale(1.04);
}

.novel-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 50%);
}

.step-icon-box {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.price-card-featured {
  border: 2px solid var(--brand-primary) !important;
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
}

.site-footer {
  background: #0f172a;
  color: #94a3b8;
}

.site-footer a {
  color: #94a3b8;
  text-decoration: none;
}

.site-footer a:hover { color: #fff; }

.site-footer-meta a {
  color: #94a3b8;
}

.site-footer-meta a:hover {
  color: #fff;
}

.landing-page {
  background: #f8fafc;
  color: #1e293b;
  padding-bottom: 0;
}

.landing-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f0f4ff 55%, #f8fafc 100%);
  color: #0f172a;
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 4rem;
}

.landing-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 70, 229, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 10%, transparent 70%);
  pointer-events: none;
}

.landing-hero-inner {
  max-width: 48rem;
  margin: 0 auto;
}

.landing-eyebrow {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 1.5rem;
}

.landing-eyebrow-dark {
  color: var(--brand-primary);
}

.landing-hero-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.landing-hero-desc {
  font-size: 1.25rem;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.landing-btn-primary {
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background 0.2s, box-shadow 0.2s;
}

.landing-btn-primary:hover {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: #fff;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.25);
}

.landing-btn-ghost {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 500;
  border-radius: 0.5rem;
}

.landing-btn-ghost:hover {
  background: #f8fafc;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.landing-mini-flow {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.landing-mini-flow:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.landing-mini-step {
  font-size: 0.875rem;
  color: #64748b;
  white-space: nowrap;
}

.landing-mini-step em {
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--brand-primary);
  margin-right: 0.25rem;
}

.landing-mini-arrow {
  font-size: 0.55rem;
  color: #cbd5e1;
}

.landing-section {
  padding: 4rem 0;
}

.landing-section-workflow {
  padding: 3.5rem 0;
}

.landing-section-dark {
  background: #f8fafc;
  margin-top: 0;
}

.landing-section-light {
  background: #ffffff;
}

.landing-section-muted {
  background: #f4f6f8;
}

.landing-section-head {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.landing-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.landing-section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.landing-glass {
  padding: 1.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.landing-glass:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.06);
}

.landing-icon {
  font-size: 1.5rem;
  color: var(--brand-primary);
  margin-bottom: 1rem;
  display: block;
}

.landing-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.625rem;
}

.landing-card-desc {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.65;
}

.landing-workflow-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
}

.landing-workflow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

@media (max-width: 1199.98px) {
  .landing-workflow {
    grid-template-columns: repeat(3, 10.5rem);
  }
}

@media (max-width: 767.98px) {
  .landing-workflow {
    grid-template-columns: repeat(6, 9.5rem);
  }
}

.landing-step {
  width: auto;
  padding: 1.25rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.landing-step:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.15);
  color: inherit;
}

.landing-step-num {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

.landing-step-label {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  line-height: 1.35;
}

.landing-step-hint {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.landing-link {
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.landing-link:hover {
  color: var(--brand-primary-dark);
}

.landing-feature {
  display: block;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.landing-feature:hover {
  border-color: var(--brand-primary);
  color: inherit;
}

.landing-feature-icon {
  font-size: 1.25rem;
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
  display: block;
}

.landing-feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.landing-feature-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
  line-height: 1.55;
}

.landing-feature-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-primary);
}

.landing-work-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.landing-work-card:hover {
  color: inherit;
}

.landing-work-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: 0.75rem;
}

.landing-work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.landing-work-card:hover .landing-work-cover img {
  transform: scale(1.03);
}

.landing-work-tag {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(8, 12, 20, 0.75);
  color: #e2e8f0;
}

.landing-work-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.landing-pricing-card {
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  background: #fff;
}

.landing-token-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid #c7d2fe;
  border-radius: 2rem;
  background: #eef2ff;
  font-size: 1rem;
  color: var(--brand-primary);
}

.landing-hero-promo {
  display: flex;
  justify-content: center;
}

.landing-token-promo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.landing-token-badge i {
  color: var(--brand-primary);
}

.landing-cta {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #ecfeff 100%);
  color: #0f172a;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.landing-cta::before {
  display: none;
}

.landing-cta-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.landing-cta-desc {
  color: #64748b;
  font-size: 1.125rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 575.98px) {
  .landing-hero {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .landing-hero-desc {
    font-size: 1.0625rem;
  }

  .landing-section {
    padding: 3rem 0;
  }

  .landing-section-workflow {
    padding: 2.5rem 0;
  }

  .landing-mini-step {
    font-size: 0.8125rem;
  }

  .landing-section-title {
    font-size: 1.375rem;
  }

  .landing-step-label {
    font-size: 1.0625rem;
  }
}

/* ---------- 认证页（PC 双栏 + 浮层表单） ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
  position: relative;
}

.auth-page .app-navbar {
  position: relative;
  z-index: 10;
}

.auth-page-shell {
  position: relative;
  flex: 1;
  width: 100%;
  z-index: 1;
  padding: 1.5rem 0 2.5rem;
}

.auth-page-container {
  position: relative;
  z-index: 2;
}

.auth-pc-layout .auth-layout-inner {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  align-items: center;
  gap: 1.5rem;
}

.auth-mobile-brand {
  display: block;
}

.auth-brand-panel {
  display: none;
}

.auth-card .tab-content > .tab-pane:not(.active) {
  display: none !important;
}

.auth-card .tab-content > .tab-pane.active {
  display: block;
}

@media (min-width: 992px) {
  .auth-page-shell {
    padding: 2.5rem 0 4rem;
  }

  .auth-pc-layout .auth-layout-inner {
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 2.5rem;
    align-items: center;
  }

  .auth-pc-layout .auth-layout-inner.auth-layout-register {
    grid-template-columns: minmax(0, 1fr) 520px;
  }

  .auth-brand-panel {
    display: flex;
  }

  .auth-mobile-brand {
    display: none !important;
  }

  .auth-form-panel {
    position: relative;
    z-index: 3;
  }

  .auth-brand-panel {
    position: relative;
    z-index: 1;
  }
}

.auth-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 15% 15%, rgba(79, 70, 229, 0.24), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 85%, rgba(109, 40, 217, 0.14), transparent 50%),
    linear-gradient(155deg, #f8fafc 0%, #eef2ff 40%, #e0e7ff 70%, #f1f5f9 100%);
}

.auth-page-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(79, 70, 229, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 75% at 40% 35%, #000 15%, transparent 72%);
}

.auth-page-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.auth-page-glow-1 {
  width: 420px;
  height: 420px;
  top: -8%;
  left: -5%;
  background: rgba(99, 102, 241, 0.25);
}

.auth-page-glow-2 {
  width: 320px;
  height: 320px;
  bottom: 5%;
  right: 10%;
  background: rgba(139, 92, 246, 0.15);
}

.auth-brand-panel {
  position: relative;
  flex-direction: column;
  justify-content: center;
  min-height: 480px;
  min-width: 0;
  padding-right: 1rem;
}

.auth-brand-highlights {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.auth-brand-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(79, 70, 229, 0.1);
  backdrop-filter: blur(8px);
}

.auth-brand-highlight i {
  font-size: 1.125rem;
  color: var(--brand-primary, #4f46e5);
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.auth-brand-highlight strong {
  display: block;
  font-size: 0.875rem;
  color: #0f172a;
  margin-bottom: 0.15rem;
}

.auth-brand-highlight span {
  display: block;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

.auth-brand-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.auth-brand-step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #475569;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(79, 70, 229, 0.12);
}

.auth-brand-step em {
  font-style: normal;
  font-weight: 700;
  color: var(--brand-primary, #4f46e5);
  font-size: 0.6875rem;
}

.auth-brand-inner {
  position: relative;
  padding: 2rem 0;
}

.auth-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  color: #0f172a;
}

.auth-brand-logo .auth-logo-icon {
  width: 3rem;
  height: 3rem;
  font-size: 1.35rem;
  margin-bottom: 0;
}

.auth-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.auth-brand-eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-primary, #4f46e5);
  margin-bottom: 1rem;
}

.auth-brand-title {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 1rem;
}

.auth-brand-desc {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 28rem;
}

.auth-brand-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-brand-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: #475569;
  margin-bottom: 0.75rem;
}

.auth-brand-features i {
  color: var(--brand-primary, #4f46e5);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.auth-brand-frame {
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 180px;
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: 1.5rem;
  opacity: 0.6;
}

.auth-brand-frame::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(79, 70, 229, 0.2);
  border-radius: 1rem;
}

.auth-form-panel {
  width: 100%;
  min-width: 0;
}

.auth-form-panel.is-register .auth-card {
  max-width: none;
}

.auth-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 1.25rem;
  padding: 1.75rem 1.75rem 2rem;
  backdrop-filter: blur(16px);
}

.auth-card-float {
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.auth-card-framed {
  border: 1px solid rgba(79, 70, 229, 0.14);
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.12),
    0 8px 24px rgba(79, 70, 229, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

@media (min-width: 992px) {
  .auth-card-float {
    transform: translateY(-8px);
    box-shadow:
      0 32px 80px rgba(15, 23, 42, 0.16),
      0 12px 32px rgba(79, 70, 229, 0.12),
      0 0 0 1px rgba(255, 255, 255, 0.95) inset;
  }

  .auth-card-float:hover {
    transform: translateY(-12px);
    box-shadow:
      0 40px 96px rgba(15, 23, 42, 0.18),
      0 16px 40px rgba(79, 70, 229, 0.14),
      0 0 0 1px rgba(255, 255, 255, 0.95) inset;
  }
}

.auth-card .form-control {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

.auth-card .form-control::placeholder {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.auth-card .form-label {
  font-size: 0.8125rem;
  margin-bottom: 0.35rem;
}

.auth-card .form-text {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.auth-field-hint {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.auth-field-hint.is-valid {
  color: #16a34a;
}

.auth-field-hint.is-invalid {
  color: #dc2626;
}

.auth-tab-nav .nav-link {
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

.auth-tab-nav .nav-link.active {
  background: var(--brand-primary, #4f46e5);
  color: #fff;
}

.genre-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.genre-tag-chip {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.genre-tag-chip:hover {
  border-color: var(--brand-primary, #4f46e5);
  color: var(--brand-primary, #4f46e5);
}

.genre-tag-chip.active {
  background: rgba(79, 70, 229, 0.1);
  border-color: var(--brand-primary, #4f46e5);
  color: var(--brand-primary, #4f46e5);
}

.avatar-upload-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar-upload-compact {
  padding: 0;
  border: none;
  background: transparent;
}

.auth-card .avatar-upload-preview,
#regAvatarPreview {
  width: 48px;
  height: 48px;
  max-width: 48px;
  min-width: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
  flex: 0 0 48px;
}

.avatar-upload-actions {
  min-width: 0;
}

.auth-crop-dialog {
  max-width: 520px;
}

.avatar-crop-stage {
  width: 100%;
  max-height: 360px;
  background: #0f172a;
  overflow: hidden;
}

.avatar-crop-stage img {
  display: block;
  max-width: 100%;
}

.avatar-crop-stage .cropper-view-box,
.avatar-crop-stage .cropper-face {
  border-radius: 50%;
}

.auth-optional-block {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.auth-panel {
  max-width: 440px;
  margin: 0 auto;
}

.auth-logo-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: var(--brand-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

/* ---------- 主控台 ---------- */
.dashboard-hero {
  background: linear-gradient(135deg, #4f46e5, #6d28d9);
  color: #fff;
  border-radius: 1.25rem;
  position: relative;
  overflow: hidden;
}

.dashboard-hero-deco {
  position: absolute;
  right: -3rem;
  top: -3rem;
  font-size: 12rem;
  opacity: 0.12;
}

.token-chart-box {
  min-height: 180px;
}

.novel-thumb {
  aspect-ratio: 3 / 4;
  border-radius: 0.75rem;
  overflow: hidden;
}

.novel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.achievement-item {
  background: var(--surface-muted);
  border-radius: 0.75rem;
  padding: 0.75rem;
  text-align: center;
}

.achievement-item.locked { opacity: 0.45; }

/* ---------- 统一创作流程步骤条 ---------- */
.flow-stepper {
  margin-bottom: 2rem;
}

.flow-stepper-inner {
  display: flex;
  justify-content: space-between;
  position: relative;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  gap: 0.25rem;
}

.flow-progress-track {
  position: absolute;
  top: 1.125rem;
  left: 5%;
  right: 5%;
  height: 3px;
  background: var(--border-light);
  border-radius: 2px;
  z-index: 0;
}

.flow-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, var(--brand-primary));
  border-radius: 2px;
  transition: width 0.35s ease;
}

.flow-step {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 4.5rem;
  max-width: 7rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: default;
}

a.flow-step {
  cursor: pointer;
}

a.flow-step:hover .flow-label {
  color: var(--brand-primary);
}

.flow-dot {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  background: #fff;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 auto 0.35rem;
  transition: all 0.2s ease;
}

.flow-step-active .flow-dot {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.flow-step-done .flow-dot {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.flow-step-pending .flow-dot {
  background: #f8fafc;
  color: #cbd5e1;
}

.flow-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
}

.flow-step-active .flow-label {
  color: var(--brand-primary);
  font-weight: 700;
}

.flow-step-done .flow-label {
  color: #475569;
}

@media (max-width: 575.98px) {
  .flow-label { font-size: 0.6rem; }
  .flow-dot { width: 2rem; height: 2rem; }
}

.flow-stepper-bar .flow-stepper {
  margin-bottom: 0;
}

.flow-stepper.mb-0 {
  margin-bottom: 0;
}

/* ---------- 创建小说（保留封面等） ---------- */
.cover-preview-box {
  width: 10rem;
  aspect-ratio: 3 / 4;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.cover-upload-zone {
  border: 2px dashed var(--border-light);
  border-radius: 1rem;
  background: var(--surface-muted);
  padding: 1.5rem;
}

/* ---------- 作品管理 ---------- */
.work-row {
  transition: box-shadow 0.2s ease;
}

.work-row:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.work-cover-sm {
  width: 4rem;
  height: 5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
}

.work-cover-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 作品阅读 ---------- */
.novel-read-page {
  background: var(--surface-muted, #f8fafc);
  min-height: 100vh;
}

.novel-read-layout {
  display: flex;
  max-width: 1440px;
  margin: 0 auto;
  min-height: calc(100vh - 56px);
}

.novel-read-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 56px);
  position: sticky;
  top: 56px;
}

.novel-read-chapter-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.novel-read-chapter-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary, #64748b);
  transition: background 0.15s;
}

.novel-read-chapter-item:hover {
  background: #f1f5f9;
  color: var(--text-primary, #0f172a);
}

.novel-read-chapter-item.active {
  background: #eef2ff;
  color: var(--brand-primary, #4f46e5);
  font-weight: 600;
}

.novel-read-chapter-item .chapter-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.novel-read-chapter-item.active .chapter-num {
  background: var(--brand-primary, #4f46e5);
  color: #fff;
}

.novel-read-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: calc(100vh - 56px);
}

.novel-read-content {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  font-size: 1.0625rem;
  line-height: 1.9;
  color: #334155;
}

.novel-read-content p {
  margin-bottom: 1.25rem;
  text-indent: 2em;
}

@media (max-width: 767.98px) {
  .novel-read-layout {
    flex-direction: column;
  }

  .novel-read-sidebar {
    width: 100%;
    max-height: none;
    position: static;
  }

  .novel-read-chapter-list {
    max-height: 200px;
  }

  .novel-read-main {
    max-height: none;
  }
}

/* ---------- 充值 ---------- */
.balance-card {
  background: var(--brand-primary);
  color: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.25);
}

.package-card {
  cursor: pointer;
  border: 2px solid var(--border-light);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.package-card:hover {
  border-color: #c7d2fe;
}

.package-card.active {
  border-color: var(--brand-primary);
  background: #f5f3ff;
}

.package-check {
  display: none;
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.package-card.active .package-check {
  display: inline-flex;
}

/* ---------- 登录页 Tab ---------- */
.auth-tabs .nav-link {
  color: var(--text-muted);
  font-weight: 600;
  border: none;
  border-radius: 0;
  border-bottom: 2px solid transparent;
}

.auth-tabs .nav-link.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
  background: transparent;
}

/* ---------- 编辑器 ---------- */
.editor-page {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.editor-header {
  height: 4rem;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.editor-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.editor-sidebar {
  width: 16rem;
  border-right: 1px solid var(--border-light);
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.25s ease, opacity 0.25s ease;
  overflow: hidden;
}

.editor-sidebar.right {
  width: 20rem;
  border-right: none;
  border-left: 1px solid var(--border-light);
  background: #fff;
}

.editor-sidebar.collapsed {
  width: 0 !important;
  opacity: 0;
  border: none;
}

.editor-sidebar-inner {
  overflow-y: auto;
  flex: 1;
}

.editor-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.editor-content-area {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.editor-paper {
  max-width: 800px;
  margin: 0 auto;
}

.editor-title-input {
  font-size: 2rem;
  font-weight: 700;
  border: none;
  outline: none;
  width: 100%;
  margin-bottom: 1.5rem;
  background: transparent;
}

.editor-title-input:focus {
  outline: none;
}

.editor-content {
  min-height: 420px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #334155;
  white-space: pre-wrap;
  outline: none;
}

.editor-footer {
  height: 3rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.outline-item {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.outline-item:hover { background: #fff; }

.outline-item.active {
  background: #fff;
  border: 1px solid #c7d2fe;
  color: var(--brand-primary);
  font-weight: 600;
}

.ai-glow-btn {
  animation: ai-glow 2s infinite;
}

@keyframes ai-glow {
  0%, 100% { box-shadow: 0 0 4px rgba(79, 70, 229, 0.2); }
  50% { box-shadow: 0 0 16px rgba(79, 70, 229, 0.35); }
}

.ai-modal-panel {
  position: fixed;
  bottom: 5rem;
  right: 21rem;
  width: 20rem;
  z-index: 1050;
}

@media (max-width: 991.98px) {
  .editor-sidebar { display: none; }
  .ai-modal-panel { right: 1rem; }
}

/* ---------- 全局 Toast / Dialog ---------- */
.app-toast-stack {
  z-index: 1090;
  max-width: min(420px, calc(100vw - 1.5rem));
  pointer-events: none;
}

.app-toast-stack .toast {
  pointer-events: auto;
  overflow: hidden;
  border-radius: 0.75rem;
}

.app-toast .toast-progress {
  height: 3px;
  width: 100%;
}

.app-toast .toast-header,
.app-toast .toast-body {
  background: var(--bs-body-bg, #fff);
}

.app-dialog .modal-content {
  border-radius: 1rem;
}

.app-dialog .modal-body {
  color: var(--bs-secondary-color);
  line-height: 1.6;
  white-space: pre-wrap;
}

#appDialogModal {
  z-index: 1100;
}

/* ---------- 动画 ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 文档 / 静态内容页 ---------- */
.doc-page main {
  max-width: 900px;
}

.doc-hero {
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  border-bottom: 1px solid var(--border-light);
  padding: 2.5rem 0;
}

.doc-body {
  padding: 2rem 0 4rem;
}

.doc-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}

.doc-body h2:first-child {
  margin-top: 0;
}

.doc-body p,
.doc-body li {
  color: #475569;
  line-height: 1.8;
}

.doc-sidebar .list-group-item.active {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: var(--brand-primary);
  font-weight: 600;
}

/* ---------- 使用指南（图文版） ---------- */
.guide-page main {
  max-width: none;
}

.guide-hero-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.guide-hero-step {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 2rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

.guide-hero-step em {
  font-style: normal;
  font-family: ui-monospace, Menlo, monospace;
  color: var(--brand-primary);
  margin-right: 0.25rem;
}

.guide-sidebar {
  top: 5.5rem !important;
}

.guide-sidebar .list-group-item {
  font-size: 0.875rem;
  border: none;
  padding: 0.6rem 1rem;
}

.guide-sidebar .list-group-item.active {
  background: #eef2ff;
  color: var(--brand-primary);
  font-weight: 600;
}

.guide-content {
  padding-bottom: 3rem;
}

.guide-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-light);
  scroll-margin-top: 6rem;
}

.guide-block:last-of-type {
  border-bottom: none;
}

.guide-block-head {
  margin-bottom: 1.5rem;
}

.guide-step-badge {
  display: inline-block;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
}

.guide-block h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.guide-lead {
  color: #64748b;
  margin: 0;
  font-size: 0.95rem;
}

.guide-text h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin: 1.25rem 0 0.75rem;
}

.guide-text h3:first-child {
  margin-top: 0;
}

.guide-text ol {
  padding-left: 1.25rem;
  color: #475569;
  line-height: 1.8;
}

.guide-text ul {
  padding-left: 1.25rem;
  color: #475569;
  line-height: 1.8;
}

.guide-go-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
}

.guide-go-btn:hover {
  color: var(--brand-primary-dark);
}

.guide-mock {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 0.8rem;
}

.guide-mock-bar {
  height: 0.5rem;
  background: #e2e8f0;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
  width: 40%;
}

.guide-mock-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.guide-mock-input {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.5rem 0.65rem;
  color: #94a3b8;
  margin-bottom: 0.65rem;
}

.guide-mock-btn {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.guide-mock-btn.primary {
  background: #eef2ff;
  color: var(--brand-primary);
  border: 1px solid #c7d2fe;
}

.guide-mock-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.65rem;
  margin-bottom: 0.5rem;
}

.guide-mock-card.selected {
  border-color: var(--brand-primary);
  background: #f5f3ff;
}

.guide-mock-card-title {
  font-weight: 700;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.guide-mock-card-desc {
  font-size: 0.65rem;
  color: #94a3b8;
  margin: 0;
}

.guide-mock-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.guide-mock-col {
  flex: 1;
}

.guide-mock-editor {
  display: flex;
  gap: 0.5rem;
  min-height: 120px;
}

.guide-mock-sidebar {
  width: 28%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.5rem;
}

.guide-mock-sidebar-item {
  font-size: 0.65rem;
  padding: 0.25rem 0.35rem;
  border-radius: 0.25rem;
  margin-bottom: 0.25rem;
  color: #64748b;
}

.guide-mock-sidebar-item.active {
  background: #eef2ff;
  color: var(--brand-primary);
  font-weight: 600;
}

.guide-mock-main {
  flex: 1;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.65rem;
}

.guide-mock-line {
  height: 0.4rem;
  background: #f1f5f9;
  border-radius: 0.2rem;
  margin-bottom: 0.35rem;
}

.guide-mock-line.short { width: 60%; }
.guide-mock-line.med { width: 80%; }

.guide-mock-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.guide-mock-tab {
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: #eef2ff;
  color: var(--brand-primary);
  font-weight: 600;
}

.guide-mock-tab.muted {
  background: transparent;
  color: #94a3b8;
  font-weight: 400;
}

.guide-faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.guide-faq-item:last-child {
  border-bottom: none;
}

.guide-faq-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.guide-faq-item p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.guide-cta-bar {
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 991.98px) {
  .guide-sidebar {
    position: static !important;
  }
}

@media (max-width: 767.98px) {
  .guide-block {
    padding: 2rem 0;
  }

  .guide-mock-editor {
    flex-direction: column;
    min-height: auto;
  }

  .guide-mock-sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .guide-sidebar-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
  }

  .guide-sidebar-scroll .list-group {
    flex-direction: row;
    flex-wrap: nowrap;
    white-space: nowrap;
    display: flex;
  }

  .guide-sidebar-scroll .list-group-item {
    flex: 0 0 auto;
    border-radius: 2rem !important;
    margin-right: 0.35rem;
  }
}

.profile-avatar-lg {
  width: 96px;
  height: 96px;
  object-fit: cover;
}

.novel-detail-cover {
  max-width: 220px;
  border-radius: 0.75rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.idea-card {
  cursor: pointer;
  border: 2px solid var(--border-light);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: border-color 0.2s, background 0.2s;
}

.idea-card:hover {
  border-color: #c7d2fe;
}

.idea-card.selected {
  border-color: var(--brand-primary);
  background: #f5f3ff;
}

.character-card {
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  position: relative;
  background: #fafbfc;
}

.outline-row {
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: #fff;
  cursor: grab;
}

.outline-row.dragging {
  opacity: 0.5;
}

.outline-row.drag-over {
  border-color: var(--brand-primary);
  background: #f5f3ff;
}

.template-card {
  border: 2px solid var(--border-light);
  border-radius: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  height: 100%;
}

.template-card.active {
  border-color: var(--brand-primary);
  background: #f5f3ff;
}

.diff-del {
  background: #fee2e2;
  text-decoration: line-through;
}

.diff-add {
  background: #dcfce7;
}

.issue-item {
  border-left: 3px solid #f59e0b;
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.issue-item.severity-info {
  border-left-color: #3b82f6;
}

.generation-panel {
  border: 1px dashed #c7d2fe;
  border-radius: 0.75rem;
  background: #fafbff;
  padding: 1rem;
}

.mock-loading {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #c7d2fe;
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
