/* ===== 基础重置与变量 ===== */
:root {
  /* 新媒体营销配色 */
  --primary: #FF6B6B;
  --primary-light: #FF8E8E;
  --primary-dark: #E85555;
  --accent: #C44DFF;
  --accent-light: #D47AFF;
  --accent-dark: #A33AE0;
  --gold: #FFD93D;
  --gold-light: #FFE577;
  --bg: #F8F9FA;
  --card-bg: #ffffff;
  --text: #2D3436;
  --text-light: #636E72;
  --text-lighter: #B2BEC3;
  --border: #E8ECEF;
  --success: #00B894;
  --error: #FF6B6B;
  --shadow: 0 4px 15px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --gradient-main: linear-gradient(135deg, #FF6B6B 0%, #C44DFF 100%);
  --gradient-gold: linear-gradient(135deg, #FFD93D 0%, #FF6B6B 100%);
  --gradient-card: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
  --group-coral: #FF6B6B;
  --group-teal: #4ECDC4;
  --group-purple: #C44DFF;
  --group-gold: #FFD93D;
}

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

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

/* ===== 入口页 ===== */
.entry-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--gradient-main);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.entry-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  top: -200px;
  right: -100px;
}

.entry-page::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  bottom: -100px;
  left: -50px;
}

.entry-title {
  color: white;
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}

.entry-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}

.entry-cards {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.entry-card {
  background: white;
  border-radius: 20px;
  padding: 36px 40px;
  width: 340px;
  box-shadow: var(--shadow-xl);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.entry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}

.entry-card h2 {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 800;
}

.entry-card .icon {
  font-size: 3.2rem;
  margin-bottom: 16px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.25s;
}

.btn:hover::after {
  background: rgba(255,255,255,0.15);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 12px rgba(255,107,107,0.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(255,107,107,0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--text);
  color: white;
}
.btn-secondary:hover { opacity: 0.9; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(196,77,255,0.35);
}
.btn-accent:hover {
  box-shadow: 0 6px 20px rgba(196,77,255,0.5);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success);
  color: white;
  box-shadow: 0 4px 12px rgba(0,184,148,0.35);
}

.btn-danger {
  background: var(--error);
  color: white;
}

.btn-gold {
  background: var(--gradient-gold);
  color: #2D3436;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(255,217,61,0.4);
}

.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn:disabled:hover { transform: none !important; }

/* ===== 小组选择 ===== */
.group-select {
  margin-top: 16px;
  text-align: left;
}

.group-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s;
  gap: 12px;
}

.group-option:hover {
  border-color: var(--primary);
  background: #fff5f5;
}
.group-option.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, #fff5f5 0%, #faf0ff 100%);
}

.group-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.group-option-text {
  font-size: 0.95rem;
  font-weight: 600;
}

/* 密码输入 */
.password-input {
  margin-top: 16px;
}

.password-input input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color 0.25s;
}

.password-input input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,107,0.15);
}

/* ===== 顶部导航 ===== */
.top-nav {
  background: white;
  border-bottom: 2px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-title {
  font-size: 1.15rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.group-badge {
  padding: 4px 12px;
  border-radius: 20px;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
}

/* 任务进度指示器 */
.task-progress {
  display: flex;
  align-items: center;
  gap: 6px;
}

.task-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-light);
  transition: all 0.3s;
}

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

.task-step.done {
  color: var(--success);
}

.task-step .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  border: 2px solid var(--border);
  background: white;
  transition: all 0.3s;
}

.task-step.active .step-num {
  background: var(--gradient-main);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(255,107,107,0.4);
}

.task-step.done .step-num {
  background: var(--success);
  color: white;
  border-color: transparent;
}

.task-arrow {
  color: var(--border);
  font-size: 1.1rem;
}

/* ===== 主内容区 ===== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.main-content-teacher {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

/* ===== 任务一：FABE编辑区 ===== */
.task1-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.product-card-panel {
  flex: 0 0 340px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}

.product-card-header {
  background: var(--gradient-main);
  color: white;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.product-card-body {
  padding: 0;
}

.product-item {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  cursor: grab;
  transition: all 0.2s;
  gap: 10px;
}

.product-item:hover {
  background: linear-gradient(135deg, #fff5f5 0%, #faf0ff 100%);
}

.product-item:active {
  cursor: grabbing;
  opacity: 0.7;
}

.product-item .drag-handle {
  color: var(--text-lighter);
  font-size: 1rem;
  flex-shrink: 0;
}

.product-item .item-label {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.88rem;
  min-width: 70px;
  flex-shrink: 0;
}

.product-item .item-value {
  font-size: 0.88rem;
  color: var(--text);
}

/* FABE编辑区 */
.fabe-edit-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fabe-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.fabe-card:hover {
  box-shadow: var(--shadow-lg);
}

.fabe-card-header {
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  background: linear-gradient(135deg, #fafbff 0%, #fff5f5 100%);
}

.fabe-card-header .header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fabe-card-header .modify-btn {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  transition: all 0.25s;
}

.fabe-card-header .modify-btn:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(196,77,255,0.35);
}

.fabe-card-body {
  padding: 18px;
}

.fabe-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 10px;
}

.fabe-label {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
  margin-top: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.fabe-label.f-label { background: linear-gradient(135deg, #4ECDC4, #44B0A8); }
.fabe-label.a-label { background: linear-gradient(135deg, #A8E063, #56AB2F); }
.fabe-label.b-label { background: linear-gradient(135deg, #FF6B6B, #EE5A24); }
.fabe-label.e-label { background: linear-gradient(135deg, #C44DFF, #9B59B6); }

.fabe-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  resize: vertical;
  min-height: 44px;
  transition: all 0.25s;
  font-family: inherit;
  background: #FAFBFC;
}

.fabe-input:focus {
  outline: none;
  border-color: var(--primary);
  border-style: solid;
  background: white;
  box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
}

.fabe-input.drag-over {
  border-color: var(--accent);
  background: #faf0ff;
  border-style: solid;
}

.fabe-input.filled {
  border-color: var(--success);
  border-style: solid;
  background: #f0fff4;
}

.fabe-input:read-only {
  background: #F8F9FA;
  color: var(--text-light);
  border-style: solid;
  border-color: var(--border);
}

.fabe-input.editing {
  border-color: var(--accent);
  border-style: dashed;
  background: #faf0ff;
  animation: pulse-border 1.5s infinite;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196,77,255,0.2); }
  50% { box-shadow: 0 0 0 4px rgba(196,77,255,0.1); }
}

.submit-sp-btn {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

/* 评分反馈 */
.feedback-box {
  margin-top: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f4ff 100%);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent);
}

.feedback-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.feedback-item:last-child { margin-bottom: 0; }

.feedback-item .icon-pass { color: var(--success); font-weight: 700; }
.feedback-item .icon-fail { color: var(--error); font-weight: 700; }

/* ===== 任务二：亮点选择 ===== */
.task2-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.my-group-panel {
  flex: 1;
}

.other-groups-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sp-display-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 14px;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  border: 2px solid var(--border);
}

.sp-display-card:hover {
  box-shadow: var(--shadow-lg);
}

.sp-display-card.highlight {
  background: linear-gradient(135deg, #FFFBF0 0%, #FFF5E0 100%);
  border: 3px solid var(--gold);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(255,217,61,0.2);
  position: relative;
  overflow: hidden;
}

.sp-display-card.highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
}

.sp-display-card.highlight .sp-fabe-grid {
  font-weight: 600;
}

.sp-display-card .star-badge {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(255,217,61,0.5));
}

.sp-fabe-grid {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px 10px;
  font-size: 0.92rem;
}

.sp-fabe-grid .fabe-key {
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: white;
  font-size: 0.8rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sp-fabe-grid .fabe-val {
  padding: 4px 0;
  line-height: 1.6;
}

.highlight-btn {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.highlight-btn .btn {
  font-size: 0.85rem;
}

.other-group-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}

.other-group-header {
  padding: 10px 16px;
  font-weight: 800;
  font-size: 0.9rem;
  color: white;
}

.other-group-body {
  padding: 12px 16px;
}

.mini-sp {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-light);
}

.mini-sp:last-child { border-bottom: none; }

.mini-sp strong { color: var(--text); }

/* ===== 任务二卖点排序样式 ===== */
.task2-highlight-section {
  margin-bottom: 24px;
}

.task2-highlight-section .section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 12px;
  background: linear-gradient(135deg, #FFFBF0, #FFF5E0);
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid var(--gold);
}

.task2-others-section .section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 12px;
  background: #F8F9FA;
  padding: 6px 14px;
  border-radius: 20px;
}

/* ===== 任务三：营销词 ===== */
.task3-layout {
  max-width: 800px;
  margin: 0 auto;
}

.highlight-display {
  background: linear-gradient(135deg, #FFFBF0 0%, #FFF0F0 100%);
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.highlight-display .star-badge {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 4px rgba(255,217,61,0.5));
}

.marketing-input-area {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--border);
}

.marketing-input-area h3 {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  font-weight: 800;
  font-size: 1.2rem;
}

.marketing-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  font-size: 1.1rem;
  text-align: center;
  font-family: inherit;
  transition: all 0.25s;
  background: #FAFBFC;
}

.marketing-input:focus {
  outline: none;
  border-color: var(--primary);
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
}

.marketing-done {
  text-align: center;
  padding: 24px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.marketing-done .done-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.marketing-done .done-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--success);
}

/* ===== 商品图文展示页（新媒体营销风格） ===== */
.product-showcase {
  background: linear-gradient(170deg, #0d0d1a 0%, #1a1a3e 30%, #0f2847 60%, #0a1628 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 80px rgba(196,77,255,0.08);
  color: white;
  position: relative;
}

.product-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 15%, rgba(255,107,107,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(196,77,255,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(78,205,196,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.product-showcase::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,217,61,0.4), rgba(196,77,255,0.4), transparent);
  z-index: 1;
}

/* 营销词区域 — 在亮点上方，左对齐 */
.showcase-marketing-top {
  padding: 28px 32px 16px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.showcase-marketing-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.showcase-marketing-text {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.5;
  background: linear-gradient(135deg, #FFD93D 0%, #FF6B6B 40%, #C44DFF 70%, #4ECDC4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  animation: showcase-shimmer 3s ease-in-out infinite;
  background-size: 200% 100%;
}

@keyframes showcase-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* 分隔线 */
.showcase-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), rgba(255,217,61,0.2), rgba(255,255,255,0.15), transparent);
  margin: 0 32px;
}

/* 亮点标签 */
.showcase-highlight {
  padding: 24px 32px;
  position: relative;
  z-index: 1;
}

.showcase-highlight-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #FFD93D;
  margin-bottom: 16px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255,217,61,0.12);
  border: 1px solid rgba(255,217,61,0.25);
  letter-spacing: 0.5px;
}

/* FABE 纵向排列 */
.showcase-fabe-vertical {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.showcase-v-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.showcase-v-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(0,0,0,0.3);
}

.showcase-v-circle.f-lbl {
  background: linear-gradient(135deg, #4ECDC4, #44B0A8);
  color: white;
  box-shadow: 0 3px 12px rgba(78,205,196,0.4);
}

.showcase-v-circle.a-lbl {
  background: linear-gradient(135deg, #A8E063, #56AB2F);
  color: white;
  box-shadow: 0 3px 12px rgba(168,224,99,0.4);
}

.showcase-v-circle.b-lbl {
  background: linear-gradient(135deg, #FF6B6B, #EE5A24);
  color: white;
  box-shadow: 0 3px 12px rgba(255,107,107,0.4);
}

.showcase-v-circle.e-lbl {
  background: linear-gradient(135deg, #C44DFF, #9B59B6);
  color: white;
  box-shadow: 0 3px 12px rgba(196,77,255,0.4);
}

.showcase-v-info {
  flex: 1;
  min-width: 0;
}

.showcase-v-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.showcase-v-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  word-break: break-word;
}

.showcase-v-arrow {
  text-align: center;
  color: rgba(255,217,61,0.5);
  font-size: 1rem;
  padding: 2px 0 2px 15px;
  line-height: 1;
}

/* 更多卖点区域 */
.showcase-others {
  padding: 16px 32px 24px;
  position: relative;
  z-index: 1;
}

.showcase-others-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
  padding-left: 4px;
  letter-spacing: 0.5px;
}

.showcase-others-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-mini-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.25s;
}

.showcase-mini-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.showcase-mini-row {
  display: flex;
  gap: 8px;
  margin-bottom: 5px;
  align-items: flex-start;
  font-size: 0.8rem;
}

.showcase-mini-row:last-child {
  margin-bottom: 0;
}

.showcase-mini-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.6rem;
  flex-shrink: 0;
  color: white;
}

.showcase-mini-dot.f-lbl { background: linear-gradient(135deg, #4ECDC4, #44B0A8); }
.showcase-mini-dot.a-lbl { background: linear-gradient(135deg, #A8E063, #56AB2F); }
.showcase-mini-dot.b-lbl { background: linear-gradient(135deg, #FF6B6B, #EE5A24); }
.showcase-mini-dot.e-lbl { background: linear-gradient(135deg, #C44DFF, #9B59B6); }

.showcase-mini-text {
  flex: 1;
  color: rgba(255,255,255,0.65);
  line-height: 1.45;
}

/* 底部商品信息标签 */
.showcase-product-footer {
  padding: 16px 32px 20px;
  position: relative;
  z-index: 1;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 8px;
}

.showcase-product-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}

.showcase-product-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.showcase-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.showcase-tag.tag-price {
  background: linear-gradient(135deg, rgba(255,217,61,0.15), rgba(255,107,107,0.15));
  border-color: rgba(255,217,61,0.25);
  color: #FFD93D;
}

.showcase-tag.tag-capacity {
  background: rgba(78,205,196,0.12);
  border-color: rgba(78,205,196,0.25);
  color: #4ECDC4;
}

.showcase-tag.tag-audience {
  background: rgba(196,77,255,0.12);
  border-color: rgba(196,77,255,0.25);
  color: #D47AFF;
}

/* 修改按钮 */
.showcase-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.showcase-modify-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  backdrop-filter: blur(4px);
}

.showcase-modify-btn:hover {
  background: rgba(255,255,255,0.15);
  color: white;
  border-color: rgba(255,255,255,0.3);
}

/* ===== 教师端 Compact 展示 ===== */
.product-showcase.showcase-compact {
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.product-showcase.showcase-compact .showcase-marketing-top {
  padding: 16px 18px 10px;
}

.product-showcase.showcase-compact .showcase-marketing-label {
  font-size: 0.68rem;
  margin-bottom: 4px;
}

.product-showcase.showcase-compact .showcase-marketing-text {
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.product-showcase.showcase-compact .showcase-highlight {
  padding: 12px 18px;
}

.product-showcase.showcase-compact .showcase-highlight-label {
  font-size: 0.72rem;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.product-showcase.showcase-compact .showcase-v-circle {
  width: 30px;
  height: 30px;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.product-showcase.showcase-compact .showcase-v-row {
  gap: 8px;
}

.product-showcase.showcase-compact .showcase-v-label {
  font-size: 0.62rem;
  margin-bottom: 2px;
}

.product-showcase.showcase-compact .showcase-v-text {
  font-size: 0.78rem;
  line-height: 1.4;
}

.product-showcase.showcase-compact .showcase-v-arrow {
  font-size: 0.75rem;
  padding: 1px 0 1px 11px;
}

.product-showcase.showcase-compact .showcase-divider {
  margin: 0 18px;
}

.product-showcase.showcase-compact .showcase-others {
  padding: 8px 18px 12px;
}

.product-showcase.showcase-compact .showcase-others-label {
  font-size: 0.68rem;
  margin-bottom: 6px;
}

.product-showcase.showcase-compact .showcase-others-grid {
  gap: 6px;
}

.product-showcase.showcase-compact .showcase-mini-card {
  padding: 8px 10px;
  border-radius: 8px;
}

.product-showcase.showcase-compact .showcase-mini-row {
  font-size: 0.7rem;
  margin-bottom: 3px;
}

.product-showcase.showcase-compact .showcase-mini-dot {
  width: 16px;
  height: 16px;
  font-size: 0.5rem;
}

.product-showcase.showcase-compact .showcase-mini-text {
  line-height: 1.35;
}

.product-showcase.showcase-compact .showcase-product-footer {
  padding: 8px 18px 12px;
  margin-top: 4px;
}

.product-showcase.showcase-compact .showcase-product-name {
  font-size: 0.72rem;
  margin-bottom: 4px;
}

.product-showcase.showcase-compact .showcase-product-tags {
  gap: 5px;
}

.product-showcase.showcase-compact .showcase-tag {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ===== 教师端 ===== */
.teacher-task-overview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.task-badge {
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: white;
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.teacher-group-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.teacher-group-card:hover {
  box-shadow: var(--shadow-lg);
}

.teacher-group-header {
  padding: 14px 18px;
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.teacher-group-body {
  padding: 16px 18px;
}

.teacher-sp-item {
  padding: 12px 14px;
  background: #F8F9FA;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.teacher-sp-item:hover {
  background: #f0f4ff;
}

.teacher-sp-item.highlight-sp {
  background: linear-gradient(135deg, #FFFBF0 0%, #FFF5E0 100%);
  border: 2px solid var(--gold);
}

.teacher-sp-item .sp-index {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.teacher-sp-item .sp-content {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
}

.teacher-feedback-area {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.teacher-feedback-area input {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  transition: border-color 0.2s;
}

.teacher-feedback-area input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
}

.teacher-feedback-list {
  margin-top: 8px;
  max-height: 100px;
  overflow-y: auto;
}

.teacher-feedback-msg {
  padding: 4px 8px;
  background: #fff0f0;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: var(--primary);
}

/* 教师端任务三展示 — 已整合到 product-showcase.showcase-compact */

/* ===== 教师反馈气泡（学生端） ===== */
.teacher-feedback-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  padding: 16px 20px;
  max-width: 320px;
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
  border-left: 4px solid var(--accent);
}

.teacher-feedback-bubble .bubble-title {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.teacher-feedback-bubble .bubble-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}

.teacher-feedback-bubble .bubble-time {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 6px;
}

.teacher-feedback-bubble .bubble-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.2s;
}

.teacher-feedback-bubble .bubble-close:hover {
  color: var(--text);
}

@keyframes slideIn {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== 教师端反馈历史 ===== */
.feedback-history {
  margin-top: 10px;
  max-height: 120px;
  overflow-y: auto;
}

.feedback-history-item {
  display: flex;
  gap: 6px;
  padding: 4px 0;
  font-size: 0.8rem;
  border-bottom: 1px solid #f0f0f0;
}

.feedback-history-item .fh-time {
  color: var(--text-light);
  flex-shrink: 0;
}

.feedback-history-item .fh-msg {
  color: var(--text);
}

/* ===== 拖拽提示 ===== */
.drag-hint {
  font-size: 0.78rem;
  color: var(--text-lighter);
  margin-top: 4px;
  font-style: italic;
}

/* ===== 完成按钮区 ===== */
.task-complete-area {
  text-align: center;
  margin-top: 20px;
  padding: 16px;
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 32px;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== 重置按钮 ===== */
.reset-area {
  text-align: center;
  margin-top: 16px;
  padding: 12px;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .task1-layout, .task2-layout {
    flex-direction: column;
  }
  .product-card-panel {
    flex: none;
    width: 100%;
  }
  .groups-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .entry-cards {
    flex-direction: column;
  }
  .entry-card {
    width: 100%;
    max-width: 340px;
  }
  .top-nav {
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px;
  }
  .main-content, .main-content-teacher {
    padding: 12px;
  }
  .showcase-hero {
    padding: 24px 20px 16px;
  }
  .showcase-hero-copy {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }
  .showcase-highlight,
  .showcase-others {
    padding: 16px 20px;
  }
  .showcase-fabe-chain {
    flex-wrap: wrap;
    gap: 8px;
  }
  .showcase-chain-item {
    max-width: 140px;
  }
  .showcase-chain-circle {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }
  .showcase-chain-text {
    font-size: 0.8rem;
  }
  .showcase-product-footer {
    padding: 12px 20px 16px;
  }
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #bbb; }

/* ===== 连接状态指示器 ===== */
.connection-status {
  position: fixed;
  top: 70px;
  right: 20px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 999;
  transition: all 0.3s;
}

.connection-status.connected {
  background: #d4edda;
  color: #155724;
}

.connection-status.disconnected {
  background: #f8d7da;
  color: #721c24;
}

/* ===== 动画 ===== */
.fade-in {
  animation: fadeIn 0.4s ease-out;
}

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

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 5px rgba(255,217,61,0.3); }
  50% { box-shadow: 0 0 20px rgba(255,217,61,0.6); }
}

/* 亮点卡片的发光动画 */
.sp-display-card.highlight {
  animation: glow-pulse 2s infinite;
}

/* 拖拽区域的虚线脉冲动画 */
.fabe-input:not(:read-only) {
  animation: dash-rotate 12s linear infinite;
}

@keyframes dash-rotate {
  to { border-dash-offset: 20px; }
}

/* ===== 任务二系统建议面板 ===== */
.suggestion-panel {
  margin-top: 20px;
  min-height: 40px;
}

.suggestion-placeholder {
  text-align: center;
  padding: 16px;
  color: #999;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #fafafa, #f5f0ff);
  border-radius: 12px;
  border: 1px dashed #ddd;
}

.suggestion-card {
  border-radius: 14px;
  padding: 18px;
  margin-top: 4px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.suggestion-good {
  background: linear-gradient(135deg, #f0fff4, #e8f8f0);
  border-color: #52c41a;
}

.suggestion-weak {
  background: linear-gradient(135deg, #fff2f0, #ffe8e6);
  border-color: #ff4d4f;
}

.suggestion-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.suggestion-icon {
  font-size: 1.3rem;
}

.suggestion-title {
  font-weight: 800;
  font-size: 1rem;
  flex: 1;
}

.suggestion-score {
  font-size: 1.2rem;
  font-weight: 900;
  padding: 2px 12px;
  border-radius: 8px;
}

.suggestion-score.score-pass {
  background: linear-gradient(135deg, #52c41a, #389e0d);
  color: white;
}

.suggestion-score.score-fail {
  background: linear-gradient(135deg, #ff4d4f, #cf1322);
  color: white;
}

.suggestion-audience {
  font-size: 0.92rem;
  color: #555;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
}

.suggestion-section {
  margin-bottom: 10px;
}

.suggestion-subtitle {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: #333;
}

.suggestion-matched {
  margin-bottom: 10px;
}

.suggestion-missed {
  margin-bottom: 10px;
}

.suggestion-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 10px;
  margin-bottom: 3px;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.matched-item {
  background: rgba(82, 196, 26, 0.08);
}

.missed-item {
  background: rgba(250, 173, 20, 0.08);
}

.suggestion-dim {
  font-weight: 700;
  white-space: nowrap;
  min-width: 56px;
  color: #333;
}

.suggestion-desc {
  color: #666;
}

.suggestion-tip {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.8);
  border-radius: 8px;
  font-size: 0.88rem;
  color: #444;
  line-height: 1.6;
  border-left: 3px solid #C44DFF;
}

/* ===== 旧版营销词/产品信息样式已移除，整合到 showcase 组件中 ===== */

/* ===== 教师端任务三：4组不同背景色 ===== */
.product-showcase.showcase-group-xiaomi-b {
  background: linear-gradient(170deg, #2a1218 0%, #5a2030 30%, #3d1838 60%, #1a0a18 100%);
}
.product-showcase.showcase-group-xiaomi-b::before {
  background:
    radial-gradient(ellipse 60% 40% at 20% 15%, rgba(255,107,107,0.3) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(255,60,60,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(255,107,107,0.08) 0%, transparent 60%);
}

.product-showcase.showcase-group-xiaomi-s {
  background: linear-gradient(170deg, #122a28 0%, #1a4a42 30%, #183830 60%, #0a2018 100%);
}
.product-showcase.showcase-group-xiaomi-s::before {
  background:
    radial-gradient(ellipse 60% 40% at 20% 15%, rgba(78,205,196,0.3) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(78,205,196,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(78,205,196,0.08) 0%, transparent 60%);
}

.product-showcase.showcase-group-custk-b {
  background: linear-gradient(170deg, #181830 0%, #2a2a5e 30%, #1a3860 60%, #101a30 100%);
}
.product-showcase.showcase-group-custk-b::before {
  background:
    radial-gradient(ellipse 60% 40% at 20% 15%, rgba(196,77,255,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(196,77,255,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(196,77,255,0.08) 0%, transparent 60%);
}

.product-showcase.showcase-group-custk-s {
  background: linear-gradient(170deg, #2a2818 0%, #4a4518 30%, #383018 60%, #201a0a 100%);
}
.product-showcase.showcase-group-custk-s::before {
  background:
    radial-gradient(ellipse 60% 40% at 20% 15%, rgba(255,217,61,0.28) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(255,180,0,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(255,217,61,0.08) 0%, transparent 60%);
}

/* 教师端compact模式隐藏FABE向下推导箭头 */
.product-showcase.showcase-compact .showcase-v-arrow {
  display: none;
}