/* ============================================================
 * 会销海报模板样式 v2（6 套邀请函风格 · 精致排版）
 * ============================================================ */

/* 海报基础容器 */
.evp-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  padding: 44px 30px 26px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}

/* 顶部装饰角标 */
.evp-corners::before,
.evp-corners::after {
  content: ''; position: absolute; width: 44px; height: 44px; pointer-events: none;
}
.evp-corners::before { top: 14px; left: 14px; border-top: 2px solid rgba(255,255,255,.7); border-left: 2px solid rgba(255,255,255,.7); border-radius: 6px 0 0 0; }
.evp-corners::after { bottom: 14px; right: 14px; border-bottom: 2px solid rgba(255,255,255,.7); border-right: 2px solid rgba(255,255,255,.7); border-radius: 0 0 6px 0; }

.evp-ribbon {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  padding: 5px 22px; border-radius: 20px; font-size: 11px; letter-spacing: 3px;
  white-space: nowrap;
}

.evp-tagline { font-size: 13px; letter-spacing: 4px; margin-top: 26px; position: relative; opacity:.92; }
.evp-title { font-size: 34px; font-weight: 800; line-height: 1.35; margin-top: 14px; position: relative; letter-spacing: 2px; }
.evp-theme { font-size: 16px; margin-top: 12px; position: relative; opacity:.95; letter-spacing: 1px; }

.evp-divider {
  width: 64px; height: 2px; margin: 22px auto 18px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.evp-divider::before { content: ''; width: 64px; height: 1px; position: absolute; }
.evp-divider::after { content: '◆'; font-size: 9px; position: relative; background: transparent; padding: 0 6px; }

.evp-info { font-size: 14px; line-height: 2.05; position: relative; }
.evp-info-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 0; }
.evp-info-row b { font-weight: 600; opacity: .85; }

.evp-flow { margin-top: 18px; position: relative; width: 82%; }
.evp-flow-item {
  display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 13.5px;
  text-align: left;
}
.evp-flow-n {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
}
.evp-flow-t { opacity:.95; }

.evp-footer { margin-top: auto; display: flex; align-items: flex-end; justify-content: center; gap: 20px; position: relative; }
.evp-qr { text-align: center; }
.evp-qr img { width: 80px; height: 80px; border-radius: 8px; background: #fff; padding: 5px; display: block; box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.evp-qr span { display: block; font-size: 11px; margin-top: 5px; letter-spacing: 1px; opacity:.9; }
.evp-slogan { font-size: 14px; letter-spacing: 4px; padding-bottom: 14px; opacity:.95; }

/* ============ 模板 1：商务蓝（沉稳专业） ============ */
.evp-business-blue {
  background: linear-gradient(165deg, #0b2a5e 0%, #14418a 40%, #2563a8 78%, #3a7bc0 100%);
  color: #eef4ff;
}
.evp-business-blue .evp-ribbon { background: rgba(255,255,255,.16); color: #dbeafe; }
.evp-business-blue .evp-title { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.3); }
.evp-business-blue .evp-divider::before { background: rgba(255,255,255,.5); }
.evp-business-blue .evp-divider::after { color: #bfdbfe; }
.evp-business-blue .evp-flow-n { background: rgba(255,255,255,.22); color: #fff; }

/* ============ 模板 2：喜庆红（节日盛会） ============ */
.evp-celebration-red {
  background: linear-gradient(165deg, #7a1212 0%, #a82620 45%, #c8453a 80%, #e06050 100%);
  color: #fff5ef;
}
.evp-celebration-red .evp-ribbon { background: rgba(255,215,130,.24); color: #ffe9b8; }
.evp-celebration-red .evp-title { color: #ffe9b8; text-shadow: 0 2px 14px rgba(60,0,0,.35); }
.evp-celebration-red .evp-divider::before { background: rgba(255,215,130,.55); }
.evp-celebration-red .evp-divider::after { color: #ffe9b8; }
.evp-celebration-red .evp-flow-n { background: rgba(255,215,130,.28); color: #fff3d6; }

/* ============ 模板 3：金典奢华（高端尊贵） ============ */
.evp-gold-luxury {
  background:
    radial-gradient(circle at 20% 15%, rgba(255,220,140,.14) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255,220,140,.1) 0%, transparent 40%),
    linear-gradient(165deg, #171006 0%, #2e220d 50%, #4a3a16 100%);
  color: #f3e7c8;
}
.evp-gold-luxury .evp-ribbon { background: linear-gradient(90deg, rgba(200,160,70,.3), rgba(200,160,70,.5), rgba(200,160,70,.3)); color: #f7e7b0; }
.evp-gold-luxury .evp-title { color: #f0d894; text-shadow: 0 1px 12px rgba(240,215,140,.4); letter-spacing: 4px; }
.evp-gold-luxury .evp-tagline, .evp-gold-luxury .evp-slogan { color: #d9b97a; letter-spacing: 6px; }
.evp-gold-luxury .evp-divider::before { background: linear-gradient(90deg, transparent, #d9b97a, transparent); }
.evp-gold-luxury .evp-divider::after { color: #d9b97a; }
.evp-gold-luxury .evp-flow-n { background: rgba(217,185,122,.25); color: #f3e7c8; border: 1px solid rgba(217,185,122,.4); }

/* ============ 模板 4：自然绿（清新品质） ============ */
.evp-nature-green {
  background:
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.08) 0%, transparent 40%),
    linear-gradient(165deg, #143d2c 0%, #23573f 50%, #3a7a5c 100%);
  color: #f0faf4;
}
.evp-nature-green .evp-ribbon { background: rgba(255,255,255,.16); color: #d6f0e0; }
.evp-nature-green .evp-title { color: #f4fcf7; text-shadow: 0 2px 12px rgba(0,40,20,.3); }
.evp-nature-green .evp-divider::before { background: rgba(255,255,255,.45); }
.evp-nature-green .evp-divider::after { color: #d6f0e0; }
.evp-nature-green .evp-flow-n { background: rgba(255,255,255,.2); color: #f4fcf7; }

/* ============ 模板 5：现代深色（科技简约） ============ */
.evp-modern-dark {
  background:
    linear-gradient(150deg, #0b0e14 0%, #141b28 45%, #1f2a3d 80%, #28364d 100%);
  color: #dfe8f5;
}
.evp-modern-dark .evp-ribbon { background: rgba(125,184,255,.16); color: #9cc4ff; }
.evp-modern-dark .evp-title { color: #ffffff; letter-spacing: 3px; }
.evp-modern-dark .evp-tagline { color: #7db8ff; letter-spacing: 7px; font-size: 12px; text-transform: uppercase; }
.evp-modern-dark .evp-divider::before { background: linear-gradient(90deg, transparent, #7db8ff, transparent); }
.evp-modern-dark .evp-divider::after { color: #7db8ff; }
.evp-modern-dark .evp-flow-n { background: rgba(125,184,255,.2); color: #cfe2ff; border: 1px solid rgba(125,184,255,.35); }
.evp-modern-dark .evp-slogan { color: #8fb4e8; }

/* ============ 模板 6：暖阳橙（温暖热情） ============ */
.evp-warm-sunset {
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.12) 0%, transparent 40%),
    linear-gradient(165deg, #9c3413 0%, #c5531f 45%, #e07a3a 82%, #f09a5e 100%);
  color: #fff6ec;
}
.evp-warm-sunset .evp-ribbon { background: rgba(255,255,255,.18); color: #ffe9d2; }
.evp-warm-sunset .evp-title { color: #fff3e2; text-shadow: 0 2px 14px rgba(80,20,0,.3); }
.evp-warm-sunset .evp-divider::before { background: rgba(255,255,255,.5); }
.evp-warm-sunset .evp-divider::after { color: #ffe9d2; }
.evp-warm-sunset .evp-flow-n { background: rgba(255,255,255,.22); color: #fff3e2; }

/* ============ 海报设计器（Tab 页 · 参照门户） ============ */
.evp-designer { display: flex; gap: 20px; align-items: stretch; }
.evp-preview-panel {
  flex: 1 1 0; min-width: 0; max-width: 50%; display: flex; flex-direction: column; gap: 14px;
  padding: 18px; border-radius: 16px; background: #fff;
  border: 1px solid #e5e7eb;
}
.evp-editor-panel {
  flex: 1 1 0; min-width: 0; max-width: 50%; padding: 18px 16px; border-radius: 16px;
  background: #fff; border: 1px solid #e5e7eb;
}
.evp-panel-title { font-size: 15px; font-weight: 700; color: #1a1a2e; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.evp-panel-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: #2563eb; }
/* 模板缩略：一行排开（参照门户 6 列） */
.evp-tpl-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.evp-field { margin-bottom: 10px; }
.evp-field label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.evp-btn {
  padding: 10px 14px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.evp-btn-primary { background: #2563eb; color: #fff; }
.evp-btn-soft { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.evp-btn-sm { padding: 6px 10px; font-size: 12px; }
.evp-preview-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.evp-preview-actions .evp-btn { flex: 1 1 0; min-width: 0; font-size: 12px; padding: 8px 6px; }
@media (max-width: 900px) {
  .evp-designer { flex-direction: column; }
  .evp-preview-panel { flex: 1 1 auto; max-width: 100%; }
  .evp-editor-panel { flex: 1 1 auto; max-width: 100%; }
  .evp-tpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
