/* ===== 创想家PBL教师研修云平台 DEMO ===== */
/* ===== CSS Variables ===== */
:root {
  --primary: #4F46E5;
  --primary-light: #6366F1;
  --primary-dark: #4338CA;
  --secondary: #06B6D4;
  --secondary-light: #22D3EE;
  --accent: #F59E0B;
  --accent-light: #FBBF24;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;
  --dark: #1E293B;
  --dark-2: #334155;
  --gray: #64748B;
  --gray-light: #94A3B8;
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-soft: #F1F5F9;
  --border: #E2E8F0;
  --text: #1E293B;
  --text-secondary: #64748B;
  --text-light: #94A3B8;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);
  --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  --gradient-secondary: linear-gradient(135deg, #06B6D4 0%, #0EA5E9 100%);
  --gradient-accent: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
  --gradient-hero: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #06B6D4 100%);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray); }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 32px;
  transition: var(--transition);
}
.navbar .nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 700;
}
.nav-logo .logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.nav-logo .logo-text span { color: var(--primary); }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu .nav-item {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-menu .nav-item:hover { color: var(--primary); background: rgba(79,70,229,0.06); }
.nav-menu .nav-item.active { color: var(--primary); background: rgba(79,70,229,0.1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-gradient {
  background: var(--gradient-primary);
  color: white;
}
.btn-gradient:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: white;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { color: var(--text-secondary); }
.btn-ghost:hover { color: var(--primary); background: rgba(79,70,229,0.06); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== Main Container ===== */
.main-container {
  padding-top: 64px;
  min-height: 100vh;
}
.view { display: none; animation: fadeIn 0.4s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Hero Section ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 100px) 24px clamp(60px, 7vw, 92px);
  background:
    radial-gradient(125% 120% at 50% -8%, #6D5EF7 0%, #4F46E5 30%, #5B21B6 62%, #3B1E8F 100%);
  isolation: isolate;
}
/* fine grid texture — fills the space with intentional detail, no large blank areas */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(125% 95% at 50% 28%, #000 38%, transparent 100%);
  mask-image: radial-gradient(125% 95% at 50% 28%, #000 38%, transparent 100%);
}
/* layered colored glows for depth */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(38% 42% at 14% 18%, rgba(6,182,212,0.38), transparent 70%),
    radial-gradient(42% 46% at 86% 78%, rgba(251,191,36,0.22), transparent 70%);
}
.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: heroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content { max-width: 880px; margin: 0 auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 100px;
  color: white;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-bottom: 28px;
}
.hero-badge .dot { width: 8px; height: 8px; background: #34D399; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 800;
  color: white;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 auto 22px;
  max-width: 17ch;
}
.hero h1 .highlight {
  background: linear-gradient(90deg, #FFE08A, #FBBF24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: clamp(15px, 1.5vw, 19px);
  color: rgba(255,255,255,0.86);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.72;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.16);
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stat {
  padding: 0 clamp(22px, 4vw, 46px);
  position: relative;
}
.hero-stat + .hero-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: rgba(255,255,255,0.18);
}
.hero-stat .num { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: white; letter-spacing: -0.01em; }
.hero-stat .label { font-size: 13.5px; color: rgba(255,255,255,0.72); margin-top: 6px; }

/* ===== Section ===== */
.section { padding: 52px 32px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 32px; }
.section-header .tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(79,70,229,0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Feature Cards ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.feature-card .feature-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}
.feature-card .feature-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feature-card .feature-card-body { padding: 20px 24px 24px; }
.feature-card .card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 24px 24px 0;
}
.feature-card .card-icon.bg-1 { background: rgba(79,70,229,0.1); color: var(--primary); }
.feature-card .card-icon.bg-2 { background: rgba(6,182,212,0.1); color: var(--secondary); }
.feature-card .card-icon.bg-3 { background: rgba(245,158,11,0.1); color: var(--accent); }
.feature-card .card-icon.bg-4 { background: rgba(16,185,129,0.1); color: var(--success); }
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.feature-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}
.feature-card .card-link:hover { gap: 8px; }

/* ===== Process Flow ===== */
.process-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.process-step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 32px 20px;
  position: relative;
}
.process-step .step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.process-step h4 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.process-step p { font-size: 13px; color: var(--text-secondary); }
.process-step::after {
  content: '\2192';
  position: absolute;
  right: -12px;
  top: 48px;
  font-size: 24px;
  color: var(--gray-light);
}
.process-step:last-child::after { display: none; }

/* ===== Course Cards ===== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.course-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.course-card .course-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}
.course-card .course-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.course-card:hover .course-cover { transform: scale(1.05); }
.course-card .course-thumb-icon {
  position: absolute;
  right: 10px; bottom: 10px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: rgba(255,255,255,0.85);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.course-card .course-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  z-index: 2;
}
.course-card .course-body { padding: 18px 20px; }
.course-card .course-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.course-card .course-meta span { display: flex; align-items: center; gap: 3px; }
.course-card h4 { font-size: 16px; font-weight: 600; color: var(--dark); margin-bottom: 8px; line-height: 1.4; }
.course-card .course-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.course-card .course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.course-card .course-price { font-size: 16px; font-weight: 700; }
.course-card .course-price.free { color: var(--success); }
.course-card .course-price.paid { color: var(--primary); }
.course-card .course-perm { padding: 2px 8px; border-radius: 100px; font-size: 11px; font-weight: 600; }
.course-card .course-perm.free { background: rgba(16,185,129,0.12); color: #059669; }
.course-card .course-perm.paid { background: rgba(79,70,229,0.12); color: var(--primary); }

/* ===== Filter Bar ===== */
.filter-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 32px;
  padding: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group label { font-size: 13px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.filter-select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  background: white;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}
.filter-select:focus, .filter-select:hover { border-color: var(--primary); }
.search-input {
  flex: 1;
  min-width: 200px;
  padding: 8px 14px 8px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  transition: var(--transition);
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2394A3B8' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") 12px center no-repeat;
}
.search-input:focus { border-color: var(--primary); }

/* ===== AI Generator Interface ===== */
.ai-workspace {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
}
.ai-form-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  height: fit-content;
  position: sticky;
  top: 80px;
}
.ai-form-panel h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.ai-form-panel .form-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group label .required { color: var(--danger); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: white;
  outline: none;
  transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }

.ai-preview-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 600px;
}
.ai-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.ai-preview-header .tabs { display: flex; gap: 4px; }
.ai-preview-header .tab {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.ai-preview-header .tab:hover { background: rgba(0,0,0,0.04); }
.ai-preview-header .tab.active { background: var(--primary); color: white; }
.ai-preview-body { padding: 32px; }
.ai-preview-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}
.ai-preview-empty .empty-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.4; }
.ai-preview-empty p { font-size: 15px; }

/* ===== Generated Content Display ===== */
.doc-section { margin-bottom: 32px; }
.doc-section h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(79,70,229,0.15);
  margin-bottom: 14px;
}
.doc-section h5 { font-size: 14px; font-weight: 600; color: var(--dark); margin: 12px 0 6px; }
.doc-section p { font-size: 14px; color: var(--text); line-height: 1.8; margin-bottom: 8px; }
.doc-section ul { padding-left: 20px; margin-bottom: 8px; }
.doc-section ul li { font-size: 14px; color: var(--text); line-height: 1.8; list-style: disc; }
.doc-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.doc-table th, .doc-table td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.doc-table th { background: transparent; font-weight: 600; color: var(--dark); }
.doc-table td { color: var(--text); }

/* ===== Loading Animation ===== */
.ai-loading {
  text-align: center;
  padding: 60px 20px;
}
.ai-loading .loader {
  width: 56px; height: 56px;
  border: 4px solid var(--bg-soft);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-loading p { font-size: 15px; color: var(--text-secondary); }
.ai-loading .loading-steps { margin-top: 20px; text-align: left; max-width: 320px; margin: 20px auto 0; }
.ai-loading .loading-step { font-size: 13px; color: var(--text-light); padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.ai-loading .loading-step.done { color: var(--success); }
.ai-loading .loading-step.active { color: var(--primary); font-weight: 600; }

/* ===== Dashboard ===== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
}
.dashboard-sidebar {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  height: fit-content;
  position: sticky;
  top: 80px;
}
.dashboard-sidebar .sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.dashboard-sidebar .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 700;
}
.dashboard-sidebar .user-name { font-size: 14px; font-weight: 600; color: var(--dark); }
.dashboard-sidebar .user-role { font-size: 12px; color: var(--text-light); }
.dashboard-sidebar .sidebar-menu .menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2px;
}
.dashboard-sidebar .sidebar-menu .menu-item:hover { background: var(--bg-soft); color: var(--text); }
.dashboard-sidebar .sidebar-menu .menu-item.active { background: rgba(79,70,229,0.08); color: var(--primary); font-weight: 600; }
.dashboard-sidebar .sidebar-menu .menu-icon { font-size: 18px; width: 20px; text-align: center; }
.dashboard-content { min-width: 0; }
.dashboard-section { display: none; }
.dashboard-section.active { display: block; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card .stat-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; }
.stat-card .stat-value { font-size: 28px; font-weight: 800; color: var(--dark); }
.stat-card .stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* ===== Table ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.data-table th { background: var(--bg-soft); padding: 14px 16px; font-size: 13px; font-weight: 600; color: var(--text-secondary); text-align: left; }
.data-table td { padding: 14px 16px; font-size: 14px; color: var(--text); border-top: 1px solid var(--border); }
.data-table tr:hover td { background: rgba(79,70,229,0.02); }

/* ===== Badges ===== */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; font-size: 12px; font-weight: 600; border-radius: 100px; }
.badge-primary { background: rgba(79,70,229,0.1); color: var(--primary); }
.badge-success { background: rgba(16,185,129,0.1); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.1); color: var(--accent); }
.badge-danger { background: rgba(239,68,68,0.1); color: var(--danger); }
.badge-info { background: rgba(59,130,246,0.1); color: var(--info); }
.badge-gray { background: var(--bg-soft); color: var(--text-secondary); }

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; }
.pricing-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
}
.pricing-card:hover { border-color: var(--primary); box-shadow: var(--shadow-xl); }
.pricing-card.featured { border-color: var(--primary); background: linear-gradient(180deg, rgba(79,70,229,0.03) 0%, white 100%); }
.pricing-card .popular-tag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--gradient-primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
}
.pricing-card .plan-name { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.pricing-card .plan-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.pricing-card .plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 24px; }
.pricing-card .plan-price .currency { font-size: 20px; font-weight: 600; color: var(--text); }
.pricing-card .plan-price .amount { font-size: 40px; font-weight: 800; color: var(--dark); }
.pricing-card .plan-price .period { font-size: 14px; color: var(--text-secondary); }
.pricing-card .plan-features { margin-bottom: 28px; }
.pricing-card .plan-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text); padding: 6px 0; }
.pricing-card .plan-features li .check { color: var(--success); font-weight: 700; flex-shrink: 0; }
.pricing-card .plan-features li .x { color: var(--gray-light); flex-shrink: 0; }
.pricing-card .plan-features li.disabled { color: var(--text-light); }

/* ===== Case Cards ===== */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.case-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.case-card .case-banner {
  aspect-ratio: 16 / 9;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}
.case-card .case-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.case-card:hover .case-cover { transform: scale(1.05); }
.case-card .case-banner-icon {
  position: absolute;
  right: 12px; bottom: 12px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: rgba(255,255,255,0.85);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.case-card .case-body { padding: 24px; }
.case-card .case-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.case-card h4 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.case-card .case-summary { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.case-card .case-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
}

/* ===== 案例详情（新闻资讯式）===== */
.case-detail-head .case-detail-type {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.case-detail-head h1 { font-size: 30px; font-weight: 800; color: var(--dark); line-height: 1.35; margin: 0 0 10px; }
.case-detail-head .case-detail-meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }
.case-detail-head .case-detail-lead { font-size: 16px; line-height: 1.9; color: var(--text); margin-bottom: 20px; }
.case-detail-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: 12px; margin-bottom: 24px; }
.case-article { font-size: 15px; line-height: 2; color: var(--text); word-break: break-word; }
.case-article h1,.case-article h2 { font-size: 22px; font-weight: 800; color: var(--dark); margin: 26px 0 12px; }
.case-article h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin: 22px 0 10px; }
.case-article h4 { font-size: 16px; font-weight: 700; color: var(--dark); margin: 18px 0 8px; }
.case-article p { margin: 0 0 14px; }
.case-article img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 12px auto; }
.case-article video, .case-article iframe { max-width: 100%; display: block; margin: 12px auto; border-radius: 8px; }
.case-article ul, .case-article ol { margin: 0 0 14px; padding-left: 26px; }
.case-article blockquote { border-left: 4px solid var(--primary); background: var(--bg-soft); margin: 14px 0; padding: 10px 16px; color: var(--text-secondary); border-radius: 0 8px 8px 0; }
.case-article table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.case-article table td, .case-article table th { border: 1px solid var(--border); padding: 8px 12px; font-size: 14px; }
.case-article a { color: var(--primary); }

/* ===== 富文本编辑器（后台案例管理）===== */
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; border: 1px solid var(--border); border-bottom: none; border-radius: 10px 10px 0 0; padding: 6px 8px; background: #F9FAFB; }
.rich-toolbar button { min-width: 30px; height: 28px; padding: 0 8px; border: 1px solid var(--border); background: #fff; border-radius: 6px; font-size: 13px; cursor: pointer; color: var(--text); }
.rich-toolbar button:hover { border-color: var(--primary); color: var(--primary); }
.rich-toolbar .sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }
.rich-toolbar .rich-select { height: 28px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; background: #fff; color: var(--text); padding: 0 4px; cursor: pointer; max-width: 96px; }
.rich-toolbar input.rich-color { width: 30px; height: 28px; padding: 2px; border: 1px solid var(--border); border-radius: 6px; background: #fff; cursor: pointer; }
.rich-editor { min-height: 260px; border: 1px solid var(--border); border-radius: 0 0 10px 10px; padding: 14px 16px; font-size: 15px; line-height: 1.9; color: var(--text); background: #fff; outline: none; overflow: auto; }
.rich-editor:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.08); }
.rich-editor img, .rich-editor video, .rich-editor iframe { max-width: 100%; display: block; margin: 8px auto; border-radius: 6px; }
.rich-editor:empty::before { content: "在此粘贴排好版的课程内容（自动保留图片与排版），或使用上方工具栏排版；支持插入图片与视频"; color: #9CA3AF; }
/* execCommand fontSize 1-7 映射为具体像素（字号下拉） */
.rich-editor font[size="1"] { font-size: 12px; }
.rich-editor font[size="2"] { font-size: 14px; }
.rich-editor font[size="3"] { font-size: 16px; }
.rich-editor font[size="4"] { font-size: 18px; }
.rich-editor font[size="5"] { font-size: 20px; }
.rich-editor font[size="6"] { font-size: 24px; }
.rich-editor font[size="7"] { font-size: 32px; }
.rich-editor mark { border-radius: 3px; padding: 0 2px; }

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 32px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .footer-logo .logo-icon { width: 36px; height: 36px; background: var(--gradient-primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; font-weight: 700; }
.footer-brand .footer-logo span { font-size: 17px; font-weight: 700; color: white; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.footer-col h5 { font-size: 15px; font-weight: 600; color: white; margin-bottom: 16px; }
.footer-col ul li { padding: 5px 0; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.6); transition: var(--transition); cursor: pointer; }
.footer-col ul li a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-bottom .footer-icp { margin-top: 12px; font-size: 12px; }
.footer-bottom .footer-icp a { color: rgba(255,255,255,0.45); text-decoration: none; transition: var(--transition); }
.footer-bottom .footer-icp a:hover { color: rgba(255,255,255,0.8); }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.modal-overlay.active { display: flex; animation: fadeIn 0.2s ease; }
.modal {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { padding: 24px 28px 0; display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 20px; font-weight: 700; color: var(--dark); }
.modal-close { font-size: 24px; color: var(--gray-light); cursor: pointer; }
.modal-body { padding: 24px 28px; }
.modal-body .form-group { margin-bottom: 18px; }
.modal-footer { padding: 0 28px 24px; display: flex; gap: 12px; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 32px; right: 32px;
  background: var(--dark);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-xl);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ===== Tabs Component ===== */
.tab-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab-bar .tab-item {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.tab-bar .tab-item:hover { color: var(--primary); }
.tab-bar .tab-item.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== Quality Check ===== */
.quality-check {
  background: linear-gradient(135deg, rgba(16,185,129,0.05) 0%, rgba(79,70,229,0.05) 100%);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}
.quality-check h5 { font-size: 15px; font-weight: 700; color: var(--success); margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.quality-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.quality-item .q-icon { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.quality-item .q-icon.pass { background: rgba(16,185,129,0.15); color: var(--success); }
.quality-item .q-icon.warn { background: rgba(245,158,11,0.15); color: var(--accent); }
.quality-item .q-text { font-size: 14px; color: var(--text); }
.quality-item .q-text strong { color: var(--dark); }

/* PPT deck（按视觉系统 --ppt-* 主题化，缺省有兜底色） */
.ppt-deck { display: flex; flex-direction: column; gap: 22px; }
.ppt-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ppt-deck-title { font-size: 20px; font-weight: 800; color: var(--dark); }
.ppt-deck-sub { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.ppt-toolbar-actions { display: flex; gap: 8px; }
.ppt-slides { display: flex; flex-direction: column; gap: 22px; }
.ppt-slide { position: relative; aspect-ratio: 16 / 9; background: var(--ppt-bg, #fff); border: 1px solid var(--border); border-top: 8px solid var(--ppt-primary, #4F46E5); border-radius: 14px; padding: 44px 48px; box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; animation: fadeUp .5s ease both; }
.ppt-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ppt-band { display: inline-block; font-size: 13px; font-weight: 700; color: #fff; background: var(--ppt-primary, #4F46E5); padding: 4px 12px; border-radius: 100px; }
.ppt-pageno { font-size: 13px; color: var(--text-light); font-weight: 600; }
.ppt-main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.ppt-title { font-size: 32px; font-weight: 800; color: var(--ppt-dark, #2C3E50); margin-bottom: 16px; line-height: 1.25; }
.ppt-sub { font-size: 19px; color: var(--ppt-text, #333); margin-bottom: 10px; }
.ppt-meta-line { font-size: 15px; color: var(--text-secondary); margin-bottom: 8px; }
.ppt-quote { font-size: 22px; font-weight: 700; color: var(--ppt-primary, #4F46E5); background: var(--ppt-light, #F5F7FA); border-left: 6px solid var(--ppt-accent, #F59E0B); padding: 14px 18px; border-radius: 10px; margin: 10px 0; line-height: 1.5; }
.ppt-line { font-size: 16px; line-height: 1.7; margin: 6px 0; color: var(--ppt-text, #333); }
.ppt-sec { font-size: 15px; font-weight: 700; color: var(--ppt-secondary, #06B6D4); margin: 10px 0 4px; }
.ppt-ul { margin: 8px 0 8px 22px; font-size: 16px; line-height: 1.8; color: var(--ppt-text, #333); }
.ppt-ul li { margin: 4px 0; }
.ppt-ul.check { list-style: none; margin-left: 0; }
.ppt-ul.check li::before { content: "✓ "; color: var(--ppt-secondary, #06B6D4); font-weight: 800; margin-right: 6px; }
.ppt-ul.step { list-style: none; margin-left: 0; }
.ppt-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.ppt-chip { background: var(--ppt-light, #F5F7FA); border: 1px solid var(--ppt-secondary, #06B6D4); color: var(--ppt-dark, #2C3E50); font-size: 15px; padding: 6px 14px; border-radius: 100px; }
.ppt-roadmap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.ppt-node { background: var(--ppt-primary, #4F46E5); color: #fff; font-size: 14px; padding: 6px 12px; border-radius: 8px; }
.ppt-arrow { color: var(--text-light); }
.ppt-phases { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.ppt-phase { background: var(--ppt-light, #F5F7FA); font-size: 14px; padding: 6px 12px; border-radius: 8px; color: var(--ppt-text, #333); }
.ppt-steps { margin: 8px 0 8px 22px; font-size: 16px; line-height: 1.8; color: var(--ppt-text, #333); }
.ppt-steps li { margin: 6px 0; }
.ppt-caution { font-size: 15px; color: #B45309; background: #FFF7ED; border-radius: 8px; padding: 8px 12px; margin: 8px 0; }
.ppt-cols { display: flex; gap: 18px; flex-wrap: wrap; }
.ppt-col { flex: 1; min-width: 200px; background: var(--ppt-light, #F5F7FA); border-radius: 10px; padding: 14px; }
.ppt-col h4 { font-size: 16px; color: var(--ppt-primary, #4F46E5); margin-bottom: 8px; }
.ppt-teaser { font-size: 16px; color: var(--ppt-accent, #F59E0B); font-weight: 700; margin-top: 10px; }
.ppt-rubric { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; color: var(--ppt-text, #333); }
.ppt-rubric th, .ppt-rubric td { border: 1px solid #ddd; padding: 8px 10px; text-align: left; }
.ppt-rubric th { background: var(--ppt-primary, #4F46E5); color: #fff; }
.ppt-teacher { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 10px; }
.ppt-tn { font-size: 14px; color: var(--text-secondary); margin: 4px 0; line-height: 1.6; }
.ppt-tn-tag { display: inline-block; background: var(--ppt-light, #F5F7FA); color: var(--ppt-secondary, #06B6D4); font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 6px; margin-right: 8px; }
.ppt-disclaimer { margin-top: 20px; background: #FFF7ED; border: 1px solid #FDE68A; border-radius: 10px; padding: 14px 18px; font-size: 13px; color: #B45309; }

/* ===== PPT 布局差异化（按 layout）===== */
.ppt-tpl-two-column .ppt-main, .ppt-tpl-image-left-text-right .ppt-main { flex-direction: row; gap: 28px; align-items: stretch; }
.ppt-layout-split { display: flex; flex: 1; gap: 28px; }
.ppt-split-a { flex: 1.2; display: flex; flex-direction: column; justify-content: center; }
.ppt-split-b { flex: 0.8; display: flex; flex-direction: column; justify-content: center; background: var(--ppt-light, #F5F7FA); border-radius: 14px; padding: 18px 20px; border-left: 5px solid var(--ppt-secondary, #06B6D4); }
.ppt-tpl-three-cards .ppt-ul, .ppt-layout-cards .ppt-ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; margin-left: 0; }
.ppt-tpl-three-cards .ppt-ul li, .ppt-layout-cards .ppt-ul li { background: var(--ppt-light, #F5F7FA); border-radius: 12px; padding: 14px 16px; border: 1px solid var(--ppt-secondary, #06B6D4); font-size: 15px; }
.ppt-tpl-three-cards .ppt-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ppt-tpl-three-cards .ppt-chip { text-align: center; padding: 12px; font-size: 15px; border-radius: 12px; }
.ppt-tpl-timeline-horizontal .ppt-roadmap, .ppt-tpl-step-flow .ppt-roadmap, .ppt-layout-flow .ppt-roadmap { flex-direction: row; justify-content: space-between; width: 100%; gap: 6px; }
.ppt-tpl-timeline-horizontal .ppt-node, .ppt-tpl-step-flow .ppt-node, .ppt-layout-flow .ppt-node { flex: 1; text-align: center; padding: 12px 8px; font-size: 14px; }
.ppt-tpl-timeline-horizontal .ppt-arrow, .ppt-tpl-step-flow .ppt-arrow, .ppt-layout-flow .ppt-arrow { font-size: 20px; }
.ppt-tpl-timeline-horizontal .ppt-steps, .ppt-tpl-step-flow .ppt-steps, .ppt-layout-flow .ppt-steps { display: flex; list-style: none; margin-left: 0; gap: 12px; }
.ppt-tpl-timeline-horizontal .ppt-steps li, .ppt-tpl-step-flow .ppt-steps li, .ppt-layout-flow .ppt-steps li { flex: 1; background: var(--ppt-light, #F5F7FA); border-radius: 12px; padding: 14px; border-top: 4px solid var(--ppt-primary, #4F46E5); }
.ppt-tpl-chart-center .ppt-main, .ppt-layout-chart .ppt-main { align-items: center; text-align: center; }
.ppt-tpl-chart-center .ppt-roadmap, .ppt-layout-chart .ppt-roadmap { justify-content: center; }
.ppt-tpl-quote-highlight .ppt-quote, .ppt-layout-quote .ppt-quote { font-size: 26px; text-align: center; border-left: none; border-bottom: 5px solid var(--ppt-accent, #F59E0B); padding: 24px; }
.ppt-tpl-quote-highlight .ppt-line, .ppt-layout-quote .ppt-line { font-size: 18px; text-align: center; }
.ppt-tpl-split-diagonal .ppt-main, .ppt-layout-diagonal .ppt-main { position: relative; }
.ppt-tpl-split-diagonal .ppt-main::before, .ppt-layout-diagonal .ppt-main::before { content: ""; position: absolute; right: -60px; top: -80px; width: 340px; height: 340px; background: var(--ppt-light, #F5F7FA); transform: rotate(12deg); border-radius: 30px; z-index: 0; }
.ppt-tpl-split-diagonal .ppt-main > *, .ppt-layout-diagonal .ppt-main > * { position: relative; z-index: 1; }

/* ===== PPT 风格差异化（按 style_id）===== */
.ppt-style-cute_flat .ppt-slide { border-radius: 24px; border-top: 10px solid var(--ppt-primary, #4F46E5); }
.ppt-style-cute_flat .ppt-title { font-weight: 900; letter-spacing: 1px; }
.ppt-style-cute_flat .ppt-band { border-radius: 30px; font-weight: 800; }
.ppt-style-cute_flat .ppt-quote { border-radius: 18px; }
.ppt-style-cute_flat .ppt-ul li { font-size: 17px; }
.ppt-style-tech_flat .ppt-slide { border-radius: 6px; border-top: 3px solid var(--ppt-primary, #4F46E5); }
.ppt-style-tech_flat .ppt-title { font-weight: 700; letter-spacing: 0; }
.ppt-style-tech_flat .ppt-band { border-radius: 4px; }
.ppt-style-tech_flat .ppt-quote { border-left-width: 4px; border-radius: 4px; }
.ppt-style-minimal_infographic .ppt-slide { border-radius: 4px; border-top: 2px solid var(--ppt-dark, #2C3E50); box-shadow: none; }
.ppt-style-minimal_infographic .ppt-title { font-weight: 600; letter-spacing: 2px; }
.ppt-style-minimal_infographic .ppt-band { background: transparent; color: var(--ppt-primary, #4F46E5); border: 1px solid var(--ppt-primary, #4F46E5); }
.ppt-style-minimal_infographic .ppt-quote { border-left: 2px solid var(--ppt-primary, #4F46E5); background: transparent; }
.ppt-style-bright_flat .ppt-slide { border-radius: 18px; border-top: 8px solid var(--ppt-primary, #4F46E5); }
.ppt-style-bright_flat .ppt-title { font-weight: 800; }
.ppt-style-bright_flat .ppt-band { border-radius: 24px; }

/* ===== 关键页视觉骨架（封面/总览/课时封面）===== */
.ppt-page-project_cover .ppt-top { background: var(--ppt-primary, #4F46E5); margin: -44px -48px 14px; padding: 14px 48px; color: #fff; }
.ppt-page-project_cover .ppt-top .ppt-band { background: rgba(255,255,255,.18); color: #fff; }
.ppt-page-project_cover .ppt-top .ppt-pageno { color: rgba(255,255,255,.85); }
.ppt-layout-cover { position: relative; padding: 16px 8px; overflow: hidden; }
.ppt-cover-emoji { font-size: 88px; line-height: 1; margin: 0 0 12px; text-align: center; filter: drop-shadow(0 6px 12px rgba(0,0,0,.15)); }
.ppt-cover-title { font-size: 56px; font-weight: 900; line-height: 1.1; text-align: center; margin: 0 0 14px; color: var(--ppt-dark, #2C3E50); letter-spacing: 2px; }
.ppt-cover-sub { font-size: 24px; font-weight: 700; text-align: center; margin: 0 0 12px; color: var(--ppt-primary, #4F46E5); }
.ppt-cover-info { font-size: 16px; text-align: center; margin: 0 0 12px; color: var(--text-secondary); }
.ppt-layout-cover .ppt-deco { color: var(--ppt-primary, #4F46E5); }
.ppt-style-cute_flat .ppt-cover-emoji { font-size: 100px; }

.ppt-layout-overview { display: flex; flex-direction: column; align-items: center; padding: 10px 8px; }
.ppt-overview-quote { font-size: 36px; font-weight: 800; line-height: 1.4; text-align: center; padding: 20px 30px; margin: 6px 0 16px; color: var(--ppt-primary, #4F46E5); background: linear-gradient(135deg, rgba(79,70,229,.08), rgba(6,182,212,.08)); border-radius: 18px; border: 2px dashed rgba(79,70,229,.3); position: relative; max-width: 92%; }
.ppt-overview-qmark { font-size: 56px; color: rgba(79,70,229,.4); font-weight: 900; vertical-align: -10px; margin: 0 6px; }
.ppt-overview-final { font-size: 18px; padding: 10px 20px; background: #FFF7ED; border-left: 4px solid var(--ppt-accent, #F59E0B); border-radius: 8px; margin: 6px 0; }
.ppt-overview-final-tag { font-weight: 800; margin-right: 8px; color: var(--ppt-accent, #F59E0B); }
.ppt-overview-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0; }
.ppt-overview-tags span { background: var(--ppt-light, #F5F7FA); border: 1px solid var(--ppt-primary, #4F46E5); color: var(--ppt-primary, #4F46E5); padding: 6px 16px; border-radius: 20px; font-size: 14px; font-weight: 700; }
.ppt-overview-roadmap { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; padding: 14px; background: var(--ppt-light, #F5F7FA); border-radius: 14px; }
.ppt-overview-step { display: flex; align-items: center; gap: 8px; background: #fff; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.04); font-size: 14px; }
.ppt-overview-stepnum { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--ppt-primary, #4F46E5); color: #fff; border-radius: 50%; font-weight: 800; font-size: 14px; }
.ppt-overview-arrow { color: var(--ppt-primary, #4F46E5); font-size: 22px; font-weight: 800; }

.ppt-layout-hour-cover { position: relative; display: flex; align-items: center; min-height: 70%; padding: 0 24px; overflow: hidden; }
.ppt-hour-watermark { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); font-size: 200px; font-weight: 900; line-height: 1; letter-spacing: -.04em; color: var(--ppt-primary, #4F46E5); opacity: 0.1; pointer-events: none; z-index: 0; font-family: 'Arial Black', sans-serif; -webkit-mask-image: linear-gradient(to left, #000 28%, rgba(0, 0, 0, .25) 100%); mask-image: linear-gradient(to left, #000 28%, rgba(0, 0, 0, .25) 100%); }
.ppt-hour-content { position: relative; z-index: 2; max-width: 72%; }
.ppt-hour-label { display: inline-block; background: var(--ppt-primary, #4F46E5); color: #fff; font-weight: 800; padding: 6px 18px; border-radius: 30px; font-size: 16px; margin-bottom: 14px; }
.ppt-hour-title { font-size: 44px; font-weight: 900; line-height: 1.15; margin: 0 0 16px; color: var(--ppt-dark, #2C3E50); }
.ppt-hour-sub { font-size: 18px; color: var(--text-secondary); background: var(--ppt-light, #F5F7FA); padding: 10px 16px; border-left: 4px solid var(--ppt-accent, #F59E0B); border-radius: 8px; margin-bottom: 12px; }
.ppt-hour-focus { display: flex; flex-wrap: wrap; gap: 8px; }
.ppt-hour-focus-chip { background: #fff; border: 1px solid var(--ppt-secondary, #06B6D4); color: var(--ppt-secondary, #06B6D4); padding: 4px 12px; border-radius: 16px; font-size: 13px; font-weight: 700; }
.ppt-style-cute_flat .ppt-hour-watermark { opacity: 0.18; }
.ppt-style-minimal_infographic .ppt-hour-watermark { opacity: 0.06; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* Pipeline bar + Lesson blocks (course plan) */
.pipeline-bar { background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(6,182,212,0.08)); border: 1px solid rgba(79,70,229,0.18); border-radius: 12px; padding: 12px 16px; font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.7; }
.pipeline-bar b { color: var(--primary); }
.lesson-block { border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; background: #fff; }
.lesson-head { font-size: 16px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.lesson-meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.lesson-body { font-size: 14px; color: var(--text); line-height: 1.85; }
.lesson-body .lt { font-weight: 700; color: var(--dark); margin: 10px 0 4px; display: block; }
.scaffold-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.scaffold-table th, .scaffold-table td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; vertical-align: top; }
.scaffold-table th { background: transparent; font-weight: 600; }

/* ===== 教案生成向导（大纲 → 详细教案 → 导出）===== */
.wizard-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.wstep { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-light); padding: 8px 14px; border: 1px solid var(--border); border-radius: 100px; background: #fff; transition: all .2s; }
.wstep .wstep-num { width: 20px; height: 20px; border-radius: 50%; background: var(--border); color: var(--text-light); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.wstep.active { border-color: var(--primary); color: var(--primary); background: rgba(79,70,229,0.06); font-weight: 700; }
.wstep.active .wstep-num { background: var(--gradient-primary); color: #fff; }
.wstep.done { border-color: rgba(16,185,129,0.4); color: #059669; }
.wstep.done .wstep-num { background: #10B981; color: #fff; }

.wizard-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.wizard-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.wizard-panel-head h4 { font-size: 17px; font-weight: 800; color: var(--dark); }
.wizard-status { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 100px; }
.wizard-status.busy { color: var(--primary); background: rgba(79,70,229,0.1); animation: pulse 1.6s infinite; }
.wizard-status.ok { color: #059669; background: rgba(16,185,129,0.1); }

.gen-textarea { width: 100%; min-height: 440px; max-height: 560px; resize: vertical; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; line-height: 1.75; color: var(--text); background: #fcfcfe; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; overflow-y: auto; overflow-x: hidden; box-sizing: border-box; }
.gen-textarea:focus { outline: none; border-color: var(--primary); }
.gen-textarea-sm { width: 100%; min-height: 72px; resize: vertical; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; font-size: 13px; line-height: 1.6; color: var(--text); background: #fff; box-sizing: border-box; margin-top: 8px; }
.gen-textarea-sm:focus { outline: none; border-color: var(--primary); }

.wizard-feedback { margin-top: 16px; padding: 14px 16px; background: rgba(79,70,229,0.04); border: 1px dashed rgba(79,70,229,0.3); border-radius: var(--radius); }
.wizard-feedback label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.wizard-feedback-actions { margin-top: 10px; display: flex; justify-content: flex-end; }

.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 12px; }

.export-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.doc-preview { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; background: #fcfcfe; max-height: 620px; overflow: auto; }

@media (max-width: 768px) {
  .gen-textarea { min-height: 360px; }
  .wizard-nav { flex-direction: column-reverse; align-items: stretch; }
  .wizard-nav .btn { width: 100%; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .ai-workspace { grid-template-columns: 1fr; }
  .ai-form-panel { position: static; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .nav-menu { display: none; }
  .hero { padding: 60px 20px 80px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .hero-stats { gap: 24px; }
  .hero-stat .num { font-size: 28px; }
  .section { padding: 48px 20px; }
  .section-header h2 { font-size: 28px; }
  .process-step { min-width: 100%; }
  .process-step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .ai-workspace { padding: 16px; }
  .dashboard-layout { padding: 16px; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ===== PPT 生成：输入模式切换 + 教案导入 ===== */
.ppt-gen-card { margin-top:14px; padding:14px; border:1px solid var(--border); border-radius:var(--radius); background:linear-gradient(180deg,#fff,#fafbff); }
.ppt-gen-title { font-size:14px; font-weight:700; color:var(--text); margin-bottom:10px; }
.ppt-mode-tabs { display:flex; gap:8px; margin-bottom:12px; }
.ppt-mode-tab { flex:1; text-align:center; padding:8px 6px; font-size:13px; border:1px solid var(--border); border-radius:10px; cursor:pointer; color:var(--text-secondary); background:#fff; transition:all .15s; user-select:none; }
.ppt-mode-tab:hover { border-color:var(--primary); }
.ppt-mode-tab.active { border-color:var(--primary); background:var(--primary); color:#fff; font-weight:600; }
#ppt-lesson-fields { margin-bottom:4px; }
#lesson-import-box { width:100%; box-sizing:border-box; }
.ppt-import-row { display:flex; align-items:center; gap:10px; margin-top:8px; flex-wrap:wrap; }
.ppt-import-row input[type=file] { font-size:12px; max-width:55%; }
.ppt-import-hint { font-size:12px; color:var(--text-light); margin:8px 0 0; line-height:1.5; }
.ppt-target-pages { margin-top:12px; padding:10px 12px; border-radius:10px; background:#f5f7ff; border:1px solid var(--border); display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.ppt-target-pages label { font-size:13px; font-weight:600; color:var(--text-secondary); white-space:nowrap; }
.ppt-pages-input { width:72px; padding:6px 8px; border:1px solid var(--border); border-radius:8px; font-size:14px; text-align:center; }
.ppt-pages-input:focus { border-color:var(--primary); outline:none; }
.ppt-pages-hint { font-size:11px; color:var(--text-light); line-height:1.4; }

/* ===== 后台管理 ===== */
.admin-menu-item {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 4px;
  transition: all .15s;
}
.admin-menu-item:hover { background: var(--bg-soft); color: var(--dark); }
.admin-menu-item.active { background: rgba(79,70,229,.08); color: var(--primary); }
/* 后台左侧菜单：二级子目录（如「用户管理 → 用户信息维护 / 用户登录日志」） */
.admin-menu-sub {
  margin: 2px 0 6px 12px;
  padding-left: 10px;
  border-left: 2px solid var(--border);
}
.admin-menu-sub-item {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 2px;
  transition: all .15s;
}
.admin-menu-sub-item:hover { background: var(--bg-soft); color: var(--dark); }
.admin-menu-sub-item.active { background: rgba(79,70,229,.08); color: var(--primary); font-weight: 600; }
.admin-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.admin-card h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin: 0 0 14px; }
.usage-bar-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; color: var(--text-secondary); }
.usage-bar-track { flex: 1; background: var(--bg-soft); border-radius: 6px; height: 16px; overflow: hidden; }
.usage-bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg,#6366F1,#8B5CF6); }

/* ===== 姓名下拉菜单 ===== */
.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 150px;
  z-index: 100;
  padding: 6px;
}
.user-dropdown-item {
  padding: 9px 12px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
  white-space: nowrap;
}
.user-dropdown-item:hover { background: var(--bg-soft); color: var(--primary); }
.user-dropdown-item.danger { color: #DC2626; }
.user-dropdown-item.danger:hover { background: #FEF2F2; color: #DC2626; }
