/**
 * export-card.css — 课堂反馈图片卡片(导出用)
 * 所有选择器都 scope 到 #fb-export-card,不污染主项目样式
 */

/* 隐藏舞台:把卡片放在屏幕外渲染,只用于截图 */
#fb-export-stage {
  position: fixed;
  left: -10000px;
  top: 0;
  pointer-events: none;
  opacity: 1;
  z-index: -1;
}

#fb-export-card {
  --bg-color: #FAF8F4;
  --card-container-bg: #FFFFFF;
  --text-main: #3D4443;
  --text-muted: #7A8583;
  --accent-blue: #95ADC1;
  --accent-green: #9CB49F;
  --accent-clay: #C48E7C;
  --accent-yellow: #DEC07E;
  --accent-pink: #C79999;

  width: 750px;
  background-color: var(--bg-color);
  background-image: radial-gradient(#E2DCD3 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: 0 0;
  border-radius: 28px;
  padding: 32px;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', 'LXGW WenKai', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-main);
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ===== Banner ===== */
#fb-export-card .banner {
  background: linear-gradient(135deg, #E2ECEB 0%, #EFEBE4 60%, #F2EAE0 100%);
  border-radius: 20px;
  padding: 32px 32px 28px;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
#fb-export-card .banner-inner-border {
  position: absolute;
  top: 12px; left: 12px; right: 12px; bottom: 12px;
  border: 1.5px dashed rgba(156, 180, 159, 0.45);
  border-radius: 14px;
  pointer-events: none;
  z-index: 1;
}
#fb-export-card .decor-circle { position: absolute; border-radius: 50%; z-index: 1; }
#fb-export-card .c1 { width: 160px; height: 160px; background: rgba(255,255,255,0.5); top: -60px; right: -40px; }
#fb-export-card .c2 { width: 70px; height: 70px; background: rgba(255,255,255,0.35); bottom: -20px; right: 130px; }
#fb-export-card .c3 { width: 22px; height: 22px; background: var(--accent-clay); opacity: 0.18; top: 28px; right: 180px; }
#fb-export-card .c4 { width: 14px; height: 14px; border: 2px solid rgba(149,173,193,0.45); top: 70px; left: 270px; border-radius: 50%; }

#fb-export-card .banner-content { position: relative; z-index: 2; }

#fb-export-card .banner-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
  gap: 16px;
  white-space: nowrap;
}
#fb-export-card .title-wrapper { position: relative; min-width: 0; }
#fb-export-card .banner-kicker {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--accent-clay);
  text-transform: uppercase;
  margin-bottom: 8px;
  white-space: nowrap;
}
#fb-export-card .banner h1 {
  font-size: 38px;
  font-weight: 700;
  color: #404B49;
  margin: 0;
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
  line-height: 1;
  white-space: nowrap;
}
#fb-export-card .title-highlight {
  position: absolute;
  left: -4px;
  bottom: 4px;
  width: calc(100% + 8px);
  height: 14px;
  background: rgba(156, 180, 159, 0.35);
  z-index: 1;
  border-radius: 8px;
}
#fb-export-card .banner-date {
  text-align: right;
  font-family: 'Plus Jakarta Sans', sans-serif;
  flex-shrink: 0;
  white-space: nowrap;
}
#fb-export-card .banner-date .d-num {
  font-size: 30px;
  font-weight: 600;
  color: #404B49;
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
}
#fb-export-card .banner-date .d-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

#fb-export-card .info-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 10px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
#fb-export-card .info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  min-width: 0;
}
#fb-export-card .info-item.row2 {
  border-top: 1px dashed rgba(156, 180, 159, 0.35);
  padding-top: 12px;
  margin-top: 4px;
}
#fb-export-card .info-item .icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}
#fb-export-card .info-item .text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
#fb-export-card .info-item .label {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.2;
}
#fb-export-card .info-item .value {
  font-weight: 700;
  color: #2F3635;
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Section cards ===== */
#fb-export-card .section-card {
  background: var(--card-container-bg);
  border-radius: 20px;
  padding: 24px 30px;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.01);
}
#fb-export-card .tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  width: 80px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.9);
}
#fb-export-card .section-card:nth-child(even) .tape {
  transform: translateX(-50%) rotate(2deg);
}
#fb-export-card .section-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 48px;
  background-color: var(--accent);
  border-radius: 0 6px 6px 0;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}
#fb-export-card .section-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
#fb-export-card .section-header .emoji-box {
  font-size: 22px;
  margin-right: 14px;
  background: var(--bg-color);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  border: 1px dashed rgba(0, 0, 0, 0.05);
}
#fb-export-card .section-header h2 {
  font-size: 20px;
  margin: 0;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: 0.5px;
}
#fb-export-card .section-body { padding-left: 4px; }
#fb-export-card .section-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  letter-spacing: 0.3px;
}
#fb-export-card .section-list {
  margin: 0;
  padding-left: 24px;
  color: #555;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.3px;
  list-style: none;
}
#fb-export-card .section-list li {
  margin-bottom: 10px;
  position: relative;
  list-style-type: none;
}
#fb-export-card .section-list li:last-child { margin-bottom: 0; }
#fb-export-card .section-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: -18px;
  top: 11px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8);
}

/* ===== Footer ===== */
#fb-export-card .footer {
  text-align: center;
  margin-top: 36px;
  margin-bottom: 12px;
}
#fb-export-card .footer p {
  color: #A8B0AF;
  font-size: 14px;
  letter-spacing: 4px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}
#fb-export-card .footer p::before,
#fb-export-card .footer p::after {
  content: '';
  display: inline-block;
  width: 48px;
  height: 1px;
  background-color: #D6DBD9;
  flex-shrink: 0;
}
