/* ==========================================================
   风格模板样式 — 每个 .tpl-* 表示一套完整风格
   画布统一：750×1086（小红书/朋友圈竖图 3:4 比例）
========================================================== */

.canvas {
  width: 750px; height: 1086px;
  position: relative; overflow: hidden;
  font-family: "PingFang SC","Microsoft YaHei",sans-serif;
  user-select: none;
}
.editable {
  position: absolute; cursor: move; outline: none;
  padding: 4px 8px; border-radius: 4px; transition: outline .15s;
}
.editable:hover { outline: 2px dashed rgba(240,120,24,0.5); }
.editable.selected { outline: 2px solid #F07818; }
.editable[contenteditable="true"] { cursor: text; }
.editable [contenteditable="true"]:focus { outline: 1px dashed rgba(255,255,255,0.4); }

/* ================== 1. 黑金荣誉榜（参考图 1） ================== */
.tpl-dark-gold-honor {
  background:
    radial-gradient(ellipse at top, #2A1B0E 0%, #0E0815 60%, #050505 100%);
  color: #F5E0B0;
}
.tpl-dark-gold-honor::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(200,163,92,0.18) 0%, transparent 25%),
    radial-gradient(circle at 90% 80%, rgba(200,163,92,0.12) 0%, transparent 25%);
  pointer-events: none;
}
.tpl-dark-gold-honor .laurel-left, .tpl-dark-gold-honor .laurel-right {
  position: absolute; top: 32px; font-size: 80px; color: #C8A35C; opacity: .9;
}
.tpl-dark-gold-honor .laurel-left { left: 28px; }
.tpl-dark-gold-honor .laurel-right { right: 28px; transform: scaleX(-1); }
.tpl-dark-gold-honor .crown {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  font-size: 38px; color: #F5E0B0; text-shadow: 0 0 14px rgba(245,224,176,0.6);
}
.tpl-dark-gold-honor .year {
  font-size: 64px; font-weight: 900; color: #F5E0B0;
  text-shadow: 2px 2px 0 #C8A35C;
  letter-spacing: -2px;
}
.tpl-dark-gold-honor .main-title {
  font-size: 76px; font-weight: 900; color: #F5E0B0;
  text-shadow: 4px 4px 0 #C8A35C;
  letter-spacing: 4px;
}
.tpl-dark-gold-honor .sub-line {
  font-size: 22px; color: #C8A35C; letter-spacing: 4px;
  padding: 8px 30px; border-top: 1px solid #C8A35C; border-bottom: 1px solid #C8A35C;
}
.tpl-dark-gold-honor .rank-item {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(90deg, rgba(200,163,92,0.15), rgba(200,163,92,0.05));
  border: 1px solid rgba(200,163,92,0.4); border-left: 5px solid #C8A35C;
  border-radius: 8px; padding: 12px 18px; margin-bottom: 10px;
  font-size: 24px; color: #F5E0B0;
}
.tpl-dark-gold-honor .rank-item .no {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #F5E0B0, #C8A35C);
  color: #1A0E05; border-radius: 6px; font-weight: 900; font-size: 22px;
}
.tpl-dark-gold-honor .trophy {
  position: absolute; right: 30px; bottom: 90px; font-size: 130px; opacity: .8;
  filter: drop-shadow(0 0 30px rgba(200,163,92,0.4));
  z-index: 1;
}
.tpl-dark-gold-honor .footer-line {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: #8B7748; letter-spacing: 2px;
}

/* ================== 2. 黑金数据指南（参考图 2） ================== */
.tpl-dark-gold-guide {
  background: radial-gradient(ellipse at center, #2A1B0E 0%, #0E0815 100%);
  color: #F5E0B0;
}
.tpl-dark-gold-guide .title-1 { font-size: 56px; font-weight: 900; color: #F5E0B0; text-shadow: 3px 3px 0 #C8A35C; letter-spacing: 2px; }
.tpl-dark-gold-guide .title-2 { font-size: 72px; font-weight: 900; color: #F5E0B0; text-shadow: 3px 3px 0 #C8A35C; letter-spacing: 2px; }
.tpl-dark-gold-guide .sub-line {
  font-size: 20px; color: #C8A35C; padding: 6px 24px;
  border-top: 1px solid #C8A35C; border-bottom: 1px solid #C8A35C;
  letter-spacing: 3px;
}
.tpl-dark-gold-guide .guide-table {
  background: rgba(0,0,0,0.4); border: 1px solid #C8A35C;
  border-radius: 8px; padding: 14px 18px;
}
.tpl-dark-gold-guide .guide-row {
  display: grid; grid-template-columns: 1.2fr 1fr 1.4fr 1.2fr;
  gap: 10px; padding: 10px 4px; border-bottom: 1px dashed rgba(200,163,92,0.3);
  font-size: 16px; color: #F5E0B0;
}
.tpl-dark-gold-guide .guide-row.head { color: #C8A35C; font-weight: 700; font-size: 17px; border-bottom: 1px solid #C8A35C; }
.tpl-dark-gold-guide .guide-row .icon { font-size: 22px; color: #C8A35C; }
.tpl-dark-gold-guide .tips-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  margin-top: 14px;
}
.tpl-dark-gold-guide .tip-card {
  background: rgba(200,163,92,0.08); border: 1px solid rgba(200,163,92,0.3);
  border-radius: 8px; padding: 12px 8px; text-align: center; color: #F5E0B0;
}
.tpl-dark-gold-guide .tip-card .icon { font-size: 28px; margin-bottom: 6px; color: #C8A35C; }
.tpl-dark-gold-guide .tip-card .name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.tpl-dark-gold-guide .tip-card .desc { font-size: 11px; color: #C8A35C; line-height: 1.4; }
.tpl-dark-gold-guide .ending-line {
  margin-top: 14px; padding: 10px; background: linear-gradient(135deg, #C8A35C, #8B6F2A);
  color: #1A0E05; font-weight: 700; text-align: center; border-radius: 8px; font-size: 18px;
}

/* ================== 3. 浅色清爽封面（参考图 3） ================== */
.tpl-light-cover {
  background: linear-gradient(180deg, #FAFBFC 0%, #E8EEF3 100%);
  color: #1A2236;
}
.tpl-light-cover::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(168,196,213,0.0) 50%, rgba(168,196,213,0.6) 100%);
  pointer-events: none;
}
.tpl-light-cover .main-title {
  font-size: 60px; font-weight: 900; color: #1A2236; letter-spacing: -1px;
  line-height: 1.15;
}
.tpl-light-cover .vs-line {
  font-size: 30px; color: #1A2236; font-weight: 600;
}
.tpl-light-cover .vs-line .vs { color: #F07818; font-weight: 900; padding: 0 6px; }
.tpl-light-cover .divider {
  width: 60px; height: 4px; background: #F07818; border-radius: 2px;
}
.tpl-light-cover .tag-pill {
  display: inline-block; padding: 10px 20px;
  background: #fff; border-radius: 999px;
  border: 1px solid #E5E7EB; color: #1A2236; font-size: 18px; font-weight: 500;
  margin: 0 4px;
}
.tpl-light-cover .tag-pill .accent { color: #F07818; font-weight: 700; }
.tpl-light-cover .bg-scene {
  position: absolute; bottom: 0; left: 0; right: 0; height: 480px;
  background: linear-gradient(180deg, rgba(168,196,213,0) 0%, #6FA3BF 30%, #2B6FA3 100%);
  overflow: hidden;
}
.tpl-light-cover .bg-scene::before {
  content: "🌊"; position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: 100px; opacity: 0.4;
}
.tpl-light-cover .bg-scene::after {
  content: "🏙️"; position: absolute; bottom: 200px; left: 50%; transform: translateX(-50%);
  font-size: 200px; opacity: 0.3;
}
.tpl-light-cover .float-icon {
  position: absolute; background: #fff; border-radius: 12px;
  padding: 14px; box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  font-size: 32px;
}
.tpl-light-cover .float-icon.i1 { top: 240px; left: 30px; transform: rotate(-8deg); }
.tpl-light-cover .float-icon.i2 { top: 290px; right: 30px; transform: rotate(10deg); }
.tpl-light-cover .float-icon.i3 { bottom: 360px; left: 80px; transform: rotate(5deg); background: #F07818; color: #fff; }
.tpl-light-cover .bottom-quote {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: 22px; color: #fff; font-weight: 500; letter-spacing: 2px;
}

/* ================== 4. 浅色 TOP 榜（参考图 4） ================== */
.tpl-light-top-rank {
  background: #FBF7F0;
  color: #1A2236;
}
.tpl-light-top-rank .page-title { font-size: 44px; font-weight: 900; color: #1A2236; letter-spacing: -1px; }
.tpl-light-top-rank .sub-line {
  font-size: 20px; color: #6B7280; letter-spacing: 2px;
  padding: 4px 16px;
}
.tpl-light-top-rank .sub-line .accent { color: #F07818; margin: 0 8px; }
.tpl-light-top-rank .divider { width: 60px; height: 4px; background: #F07818; border-radius: 2px; }
.tpl-light-top-rank .top-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.tpl-light-top-rank .top-item {
  background: #fff; border-radius: 8px; padding: 14px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 18px;
}
.tpl-light-top-rank .top-item .top-no {
  color: #F07818; font-weight: 900; font-size: 22px; flex-shrink: 0;
  font-family: "Arial Black",sans-serif;
}
.tpl-light-top-rank .top-item .top-content { flex: 1; }
.tpl-light-top-rank .top-item .name { font-weight: 700; color: #1A2236; }
.tpl-light-top-rank .top-item .tags { color: #F07818; }
.tpl-light-top-rank .top-item .desc { color: #4B5563; font-size: 16px; }

/* ================== 5. 浅色清单（参考图 5） ================== */
.tpl-light-checklist {
  background: #FBF7F0;
  color: #1A2236;
}
.tpl-light-checklist .page-title { font-size: 44px; font-weight: 900; color: #1A2236; }
.tpl-light-checklist .under-line {
  position: absolute; height: 8px; background: #F07818; opacity: .85;
  border-radius: 4px; transform: rotate(-1deg);
}
.tpl-light-checklist .note-paper {
  position: relative; background: #fff;
  border-radius: 4px; padding: 28px 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border-left: 3px solid #F07818;
}
.tpl-light-checklist .note-paper::before {
  content: ""; position: absolute; top: -10px; left: 20px;
  width: 30px; height: 30px; background: #C8A35C; border-radius: 50%;
  box-shadow: inset -3px -3px 0 rgba(0,0,0,0.1);
}
.tpl-light-checklist .check-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed #E5E7EB;
  font-size: 18px;
}
.tpl-light-checklist .check-row:last-child { border-bottom: none; }
.tpl-light-checklist .check-row .box {
  width: 24px; height: 24px; border: 2px solid #1A2236; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tpl-light-checklist .check-row .box.checked {
  background: #F07818; border-color: #F07818; color: #fff;
}
.tpl-light-checklist .check-row .box.checked::after { content: "✓"; font-weight: 900; font-size: 16px; }
.tpl-light-checklist .risk-badge {
  position: absolute; top: -16px; right: 20px;
  background: #1A2236; color: #fff; padding: 8px 16px;
  border-radius: 8px; font-weight: 700; font-size: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.tpl-light-checklist .risk-badge::before { content: "•"; color: #F07818; margin-right: 6px; font-size: 24px; line-height: 0; vertical-align: -4px; }

/* ================== 6. 小红书种草风 ================== */
.tpl-xhs-note {
  background: linear-gradient(135deg, #FFE4EC 0%, #FFF0F5 100%);
  color: #5B2C4D;
}
.tpl-xhs-note .card {
  background: #fff; border-radius: 18px; padding: 22px;
  box-shadow: 0 4px 20px rgba(255,105,180,0.15);
  margin-bottom: 14px;
}
.tpl-xhs-note .topic-pill {
  display: inline-block; background: #FF1493; color: #fff;
  padding: 6px 16px; border-radius: 999px; font-size: 18px; font-weight: 700;
  margin-right: 6px;
}
.tpl-xhs-note .main-title { font-size: 42px; font-weight: 900; color: #5B2C4D; line-height: 1.2; }
.tpl-xhs-note .sub-line { font-size: 18px; color: #C2185B; }
.tpl-xhs-note .check-list { display: flex; flex-direction: column; gap: 8px; }
.tpl-xhs-note .check-row {
  display: flex; gap: 10px; align-items: center;
  font-size: 17px; color: #5B2C4D;
}
.tpl-xhs-note .check-row .tag {
  background: #FF1493; color: #fff; border-radius: 6px;
  padding: 2px 8px; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.tpl-xhs-note .quote-card {
  background: linear-gradient(135deg, #FFB6C1, #FF69B4);
  color: #fff; padding: 18px; border-radius: 14px;
  font-size: 18px; font-weight: 600; line-height: 1.5;
}
.tpl-xhs-note .quote-card .label {
  background: rgba(255,255,255,0.3); display: inline-block;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; font-size: 14px;
}
.tpl-xhs-note .stickers { display: flex; gap: 8px; margin-top: 14px; }
.tpl-xhs-note .sticker {
  background: #fff; border: 2px dashed #FF1493;
  padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #FF1493;
}

/* ================== 7. 抖音测评风 ================== */
.tpl-douyin-review {
  background: #0A0A0F; color: #fff;
}
.tpl-douyin-review .glow-circle {
  position: absolute; width: 280px; height: 280px;
  border-radius: 50%; filter: blur(60px); opacity: .4;
}
.tpl-douyin-review .glow-1 { background: #FE2C55; top: -60px; right: -40px; }
.tpl-douyin-review .glow-2 { background: #25F4EE; bottom: -40px; left: -40px; }
.tpl-douyin-review .badge-bar {
  background: linear-gradient(90deg, #FE2C55, #FF69B4); color: #fff;
  padding: 10px 20px; border-radius: 999px; font-weight: 900; font-size: 22px;
  display: inline-block; box-shadow: 0 0 16px rgba(254,44,85,0.6);
}
.tpl-douyin-review .main-title {
  font-size: 58px; font-weight: 900; color: #fff;
  -webkit-text-stroke: 2px #FE2C55; line-height: 1.1;
}
.tpl-douyin-review .sub-line { font-size: 20px; color: #25F4EE; font-weight: 700; letter-spacing: 3px; }
.tpl-douyin-review .product-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(254,44,85,0.3);
  border-radius: 12px; padding: 16px; backdrop-filter: blur(8px);
}
.tpl-douyin-review .product-card .head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.tpl-douyin-review .product-card .name { font-weight: 900; font-size: 22px; color: #FE2C55; }
.tpl-douyin-review .product-card .score {
  background: #FE2C55; color: #fff; padding: 4px 12px; border-radius: 999px;
  font-weight: 900; font-size: 16px;
}
.tpl-douyin-review .product-card .desc { color: #D1D5DB; font-size: 16px; line-height: 1.5; }
.tpl-douyin-review .stars { color: #FFD700; font-size: 18px; letter-spacing: 2px; }
.tpl-douyin-review .divider-glow {
  height: 2px; background: linear-gradient(90deg, transparent, #FE2C55, transparent);
  margin: 12px 0;
}
.tpl-douyin-review .verdict {
  text-align: center; padding: 14px;
  background: linear-gradient(135deg, #FE2C55, #FF69B4);
  border-radius: 10px; font-weight: 900; font-size: 22px;
  box-shadow: 0 0 16px rgba(254,44,85,0.5);
}

/* ================== 8. 日系极简 ================== */
.tpl-japan-minimal {
  background: #FAFAF7;
  color: #2C2C2C;
  font-family: "Noto Serif SC", serif;
}
.tpl-japan-minimal .en-title {
  font-size: 16px; letter-spacing: 6px; color: #999;
  text-transform: uppercase; font-weight: 400;
}
.tpl-japan-minimal .main-title {
  font-size: 48px; font-weight: 400; color: #1A1A1A;
  letter-spacing: 1px; margin: 4px 0 16px;
}
.tpl-japan-minimal .vertical-line { width: 1px; height: 40px; background: #2C2C2C; margin: 10px 0; }
.tpl-japan-minimal .item {
  border-bottom: 1px solid #DDD; padding: 14px 0;
  display: flex; align-items: baseline; gap: 16px;
}
.tpl-japan-minimal .item .no {
  font-size: 14px; color: #999; letter-spacing: 2px; min-width: 32px;
}
.tpl-japan-minimal .item .name { font-size: 20px; font-weight: 600; color: #1A1A1A; }
.tpl-japan-minimal .item .desc { font-size: 14px; color: #666; margin-top: 4px; line-height: 1.5; }
.tpl-japan-minimal .item .stars { color: #C8A35C; font-size: 14px; letter-spacing: 1px; }
.tpl-japan-minimal .footer-mark {
  text-align: right; color: #999; font-size: 12px; letter-spacing: 4px;
}

/* ================== 9. 商务蓝白 ================== */
.tpl-business-blue {
  background: linear-gradient(135deg, #F0F4FA 0%, #FFFFFF 100%);
  color: #1A2236;
}
.tpl-business-blue .geo-shape {
  position: absolute; pointer-events: none;
}
.tpl-business-blue .geo-shape.s1 { top: -100px; right: -100px; width: 360px; height: 360px;
  background: linear-gradient(135deg, rgba(22,64,110,0.08), rgba(22,64,110,0.02));
  border-radius: 50%;
}
.tpl-business-blue .geo-shape.s2 { bottom: -120px; left: -120px; width: 380px; height: 380px;
  background: linear-gradient(135deg, rgba(240,120,24,0.06), rgba(240,120,24,0.02));
  border-radius: 50%;
}
.tpl-business-blue .badge {
  background: #16406E; color: #fff; padding: 6px 16px; border-radius: 4px;
  font-size: 14px; font-weight: 700; letter-spacing: 2px; display: inline-block;
}
.tpl-business-blue .main-title {
  font-size: 52px; font-weight: 900; color: #16406E; line-height: 1.2; margin-top: 10px;
}
.tpl-business-blue .sub-line { font-size: 20px; color: #4B5563; margin-top: 8px; }
.tpl-business-blue .compare-table {
  background: #fff; border-radius: 10px; padding: 18px;
  box-shadow: 0 6px 18px rgba(22,64,110,0.08);
  border-top: 4px solid #16406E;
}
.tpl-business-blue .compare-table .row {
  display: grid; grid-template-columns: 60px 1fr 1fr 1fr; gap: 10px;
  padding: 12px 4px; border-bottom: 1px solid #E5E7EB; font-size: 15px; align-items: center;
}
.tpl-business-blue .compare-table .row.head { color: #16406E; font-weight: 700; }
.tpl-business-blue .compare-table .row .num {
  width: 32px; height: 32px; background: #16406E; color: #fff;
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-weight: 900;
}
.tpl-business-blue .data-row {
  background: #fff; border-radius: 8px; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 8px;
}
.tpl-business-blue .data-row .label {
  background: #16406E; color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 13px; font-weight: 700;
}
.tpl-business-blue .data-row .value { font-size: 16px; color: #1A2236; }

/* ================== 10. 国潮古风 ================== */
.tpl-chinese-style {
  background: linear-gradient(180deg, #F5E8C9 0%, #E8C893 50%, #C49660 100%);
  color: #3D0F0F;
}
.tpl-chinese-style::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(199,40,40,0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 90%, rgba(199,40,40,0.1) 0%, transparent 20%);
  pointer-events: none;
}
.tpl-chinese-style .frame {
  position: absolute; top: 30px; left: 30px; right: 30px; bottom: 30px;
  border: 2px solid #C72828; border-radius: 6px;
}
.tpl-chinese-style .frame::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid #C72828; border-radius: 4px; pointer-events: none;
}
.tpl-chinese-style .seal {
  background: #C72828; color: #FFE4D4; padding: 6px 14px;
  border-radius: 4px; font-size: 18px; font-weight: 900;
  display: inline-block; letter-spacing: 4px;
}
.tpl-chinese-style .main-title {
  font-size: 60px; font-weight: 900; color: #3D0F0F;
  letter-spacing: 6px; line-height: 1.15;
}
.tpl-chinese-style .sub-line { font-size: 20px; color: #6B1F1F; letter-spacing: 4px; }
.tpl-chinese-style .cloud-divider {
  font-size: 24px; color: #C72828; letter-spacing: 8px; margin: 14px 0;
}
.tpl-chinese-style .item-row {
  background: rgba(255,255,255,0.4); border-left: 4px solid #C72828;
  padding: 12px 16px; margin-bottom: 8px; border-radius: 0 8px 8px 0;
  display: flex; gap: 14px; align-items: center; font-size: 18px;
}
.tpl-chinese-style .item-row .no {
  width: 32px; height: 32px; background: #C72828; color: #FFE4D4;
  border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: 900;
}
.tpl-chinese-style .item-row .name { font-weight: 700; color: #3D0F0F; }
.tpl-chinese-style .item-row .desc { color: #6B1F1F; font-size: 16px; }

/* ================== 11. 科技未来 ================== */
.tpl-tech-future {
  background: radial-gradient(ellipse at top, #0A1B3D 0%, #050B1F 70%, #02040C 100%);
  color: #E0E7FF;
}
.tpl-tech-future::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,179,237,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,179,237,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.tpl-tech-future .glow-orb {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  filter: blur(80px); opacity: .35; pointer-events: none;
}
.tpl-tech-future .glow-orb.o1 { background: #00D4FF; top: -100px; right: -50px; }
.tpl-tech-future .glow-orb.o2 { background: #8B5CF6; bottom: -80px; left: -60px; }
.tpl-tech-future .tag-neon {
  display: inline-block; padding: 6px 16px; border: 1px solid #00D4FF;
  color: #00D4FF; border-radius: 4px; font-size: 14px;
  letter-spacing: 3px; text-shadow: 0 0 8px rgba(0,212,255,0.5);
}
.tpl-tech-future .main-title {
  font-size: 58px; font-weight: 900; color: #fff;
  text-shadow: 0 0 24px rgba(0,212,255,0.5);
  letter-spacing: -1px;
}
.tpl-tech-future .sub-line { font-size: 18px; color: #00D4FF; letter-spacing: 4px; }
.tpl-tech-future .data-card {
  background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.3);
  border-radius: 8px; padding: 14px; backdrop-filter: blur(8px);
}
.tpl-tech-future .data-card .label { color: #00D4FF; font-size: 13px; letter-spacing: 2px; }
.tpl-tech-future .data-card .value { font-size: 28px; font-weight: 900; color: #fff; margin: 4px 0; }
.tpl-tech-future .data-card .desc { font-size: 14px; color: #B0C4DE; line-height: 1.5; }
.tpl-tech-future .neon-divider { height: 1px; background: linear-gradient(90deg, transparent, #00D4FF, transparent); margin: 10px 0; }
.tpl-tech-future .neon-line {
  background: linear-gradient(90deg, #00D4FF, #8B5CF6);
  padding: 12px 20px; border-radius: 6px; color: #fff; font-weight: 700;
  text-align: center; font-size: 18px; letter-spacing: 2px;
}

/* ================== 12. 手绘涂鸦 ================== */
.tpl-doodle-hand {
  background: #FFF8E7;
  color: #4B3621;
  font-family: "Comic Sans MS", "Marker Felt", cursive;
}
.tpl-doodle-hand::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(240,120,24,0.08) 0%, transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(34,197,94,0.08) 0%, transparent 20%);
}
.tpl-doodle-hand .title-scribble {
  background: #FFD93D; color: #4B3621;
  display: inline-block; padding: 4px 14px; border-radius: 16px;
  font-size: 18px; font-weight: 900; transform: rotate(-2deg);
  box-shadow: 3px 3px 0 #F07818;
}
.tpl-doodle-hand .main-title {
  font-size: 48px; font-weight: 900; color: #4B3621;
  text-decoration: underline wavy #F07818; text-underline-offset: 8px;
  line-height: 1.15;
}
.tpl-doodle-hand .sticker {
  display: inline-block; background: #fff;
  border: 2px dashed #F07818; padding: 4px 12px; border-radius: 16px;
  font-size: 14px; color: #F07818; font-weight: 700; transform: rotate(-1deg);
}
.tpl-doodle-hand .list-card {
  background: #fff; border: 3px solid #4B3621;
  border-radius: 16px; padding: 18px;
  box-shadow: 6px 6px 0 #4B3621;
}
.tpl-doodle-hand .list-card .row {
  padding: 8px 0; border-bottom: 1px dashed #4B3621;
  display: flex; gap: 10px; align-items: center; font-size: 17px;
}
.tpl-doodle-hand .list-card .row:last-child { border-bottom: none; }
.tpl-doodle-hand .list-card .emoji { font-size: 26px; }
.tpl-doodle-hand .list-card .label {
  background: #4B3621; color: #fff; padding: 2px 10px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
}

/* ================== 13. 杂志封面 ================== */
.tpl-magazine-cover {
  background: #fff;
  color: #000;
}
.tpl-magazine-cover .top-bar {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 4px solid #000; border-bottom: 2px solid #000;
  padding: 10px 0; font-size: 13px; font-weight: 700; letter-spacing: 3px;
}
.tpl-magazine-cover .issue-no {
  background: #FF1744; color: #fff; padding: 4px 14px;
  font-weight: 900; letter-spacing: 4px;
}
.tpl-magazine-cover .big-title {
  font-size: 100px; font-weight: 900; color: #000;
  letter-spacing: -3px; line-height: 0.9;
  font-family: "Times New Roman", serif;
}
.tpl-magazine-cover .big-title .italic { font-style: italic; }
.tpl-magazine-cover .cover-sub {
  font-size: 18px; color: #6B7280; letter-spacing: 6px; font-weight: 700;
  margin-top: 8px;
}
.tpl-magazine-cover .photo-area {
  background: linear-gradient(135deg, #1A2236, #4B5563);
  height: 480px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; letter-spacing: 4px; opacity: 0.9;
  position: relative; overflow: hidden;
}
.tpl-magazine-cover .photo-area::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4));
}
.tpl-magazine-cover .photo-caption {
  background: #FF1744; color: #fff;
  padding: 10px 18px; font-weight: 900; font-size: 20px;
  display: inline-block; margin-top: 14px;
}
.tpl-magazine-cover .bottom-row {
  display: flex; justify-content: space-between; margin-top: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
}

/* ================== 14. 信息图长图 ================== */
.tpl-infographic {
  background: #F8FAFC;
  color: #1A2236;
}
.tpl-infographic .head-section {
  background: linear-gradient(135deg, #16406E 0%, #0E2A4D 100%);
  color: #fff; padding: 22px; border-radius: 14px;
  position: relative; overflow: hidden;
}
.tpl-infographic .head-section::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px; background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.tpl-infographic .head-section .badge {
  background: #F07818; padding: 4px 12px; border-radius: 4px;
  font-size: 12px; letter-spacing: 3px; font-weight: 700;
}
.tpl-infographic .head-section .title {
  font-size: 36px; font-weight: 900; margin-top: 6px; line-height: 1.2;
}
.tpl-infographic .head-section .sub { font-size: 16px; opacity: 0.8; margin-top: 4px; }
.tpl-infographic .stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px;
}
.tpl-infographic .stat-card {
  background: #fff; border-radius: 8px; padding: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-left: 4px solid #F07818;
}
.tpl-infographic .stat-card .num {
  font-size: 30px; font-weight: 900; color: #F07818; line-height: 1;
}
.tpl-infographic .stat-card .label { font-size: 12px; color: #6B7280; margin-top: 4px; }
.tpl-infographic .section-title {
  font-size: 20px; font-weight: 900; color: #16406E;
  margin: 18px 0 10px; padding-left: 12px;
  border-left: 4px solid #F07818;
}
.tpl-infographic .module-card {
  background: #fff; border-radius: 8px; padding: 14px;
  margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex; gap: 12px; align-items: flex-start;
}
.tpl-infographic .module-card .icon-box {
  width: 40px; height: 40px; background: #16406E; color: #fff;
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.tpl-infographic .module-card .content { flex: 1; }
.tpl-infographic .module-card .name { font-weight: 700; font-size: 16px; }
.tpl-infographic .module-card .desc { font-size: 14px; color: #6B7280; margin-top: 2px; line-height: 1.4; }
.tpl-infographic .verdict-box {
  background: linear-gradient(135deg, #16406E, #F07818); color: #fff;
  padding: 16px; border-radius: 8px; text-align: center;
  font-weight: 900; font-size: 20px; margin-top: 14px;
}

/* ================== 15. 三栏对比测评 ================== */
.tpl-contrast-3col {
  background: linear-gradient(180deg, #F0F4FA 0%, #FFFFFF 100%);
  color: #1A2236;
}
.tpl-contrast-3col .head {
  background: linear-gradient(135deg, #16406E, #0E2A4D); color: #fff;
  padding: 18px; border-radius: 12px; margin-bottom: 14px;
}
.tpl-contrast-3col .head .label {
  background: #F07818; padding: 4px 10px; border-radius: 4px;
  font-size: 12px; letter-spacing: 2px; font-weight: 700; display: inline-block;
}
.tpl-contrast-3col .head .title { font-size: 30px; font-weight: 900; margin-top: 6px; }
.tpl-contrast-3col .head .sub { font-size: 14px; opacity: 0.7; margin-top: 4px; }
.tpl-contrast-3col .col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tpl-contrast-3col .col-card {
  background: #fff; border-radius: 10px; padding: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  border-top: 4px solid #16406E;
}
.tpl-contrast-3col .col-card.winner { border-top-color: #F07818; box-shadow: 0 6px 18px rgba(240,120,24,0.2); }
.tpl-contrast-3col .col-card .rank-badge {
  display: inline-block; background: #16406E; color: #fff;
  padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700;
}
.tpl-contrast-3col .col-card.winner .rank-badge { background: #F07818; }
.tpl-contrast-3col .col-card .name {
  font-size: 18px; font-weight: 900; margin-top: 8px; color: #1A2236;
}
.tpl-contrast-3col .col-card .stars { color: #F07818; font-size: 14px; margin: 4px 0; }
.tpl-contrast-3col .col-card .desc { font-size: 13px; color: #4B5563; line-height: 1.5; margin-top: 6px; }
.tpl-contrast-3col .col-card .pros-cons { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #E5E7EB; }
.tpl-contrast-3col .col-card .pc-row { font-size: 12px; line-height: 1.6; }
.tpl-contrast-3col .col-card .pc-row .pro { color: #16A34A; font-weight: 700; }
.tpl-contrast-3col .col-card .pc-row .con { color: #DC2626; font-weight: 700; }
.tpl-contrast-3col .verdict {
  margin-top: 14px; padding: 14px;
  background: linear-gradient(135deg, #F07818, #FF9A3D); color: #fff;
  text-align: center; font-weight: 900; font-size: 18px; border-radius: 10px;
}

/* ================== 16. 黑白极简数据卡 ================== */
.tpl-bw-data {
  background: #fff;
  color: #000;
}
.tpl-bw-data .top-line { height: 6px; background: #000; }
.tpl-bw-data .page-title {
  font-size: 60px; font-weight: 900; letter-spacing: -2px;
  line-height: 0.95; color: #000;
}
.tpl-bw-data .page-title .dot { color: #F07818; }
.tpl-bw-data .tag-row { display: flex; gap: 8px; margin-top: 12px; }
.tpl-bw-data .tag-row .tag {
  background: #000; color: #fff; padding: 6px 14px; border-radius: 4px;
  font-size: 14px; font-weight: 700; letter-spacing: 1px;
}
.tpl-bw-data .data-card {
  border: 2px solid #000; padding: 16px; margin-top: 10px;
  position: relative;
}
.tpl-bw-data .data-card .no {
  position: absolute; top: -16px; left: 16px; background: #F07818; color: #fff;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  font-weight: 900; border-radius: 4px;
}
.tpl-bw-data .data-card .head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.tpl-bw-data .data-card .name { font-size: 22px; font-weight: 900; }
.tpl-bw-data .data-card .score { font-size: 14px; color: #F07818; font-weight: 700; }
.tpl-bw-data .data-card .desc { font-size: 14px; color: #4B5563; line-height: 1.5; }
.tpl-bw-data .data-card .bar-track {
  height: 8px; background: #E5E7EB; border-radius: 4px; margin-top: 8px;
  overflow: hidden;
}
.tpl-bw-data .data-card .bar-fill {
  height: 100%; background: #000; border-radius: 4px;
}

/* ================== 17. 节日喜庆红金 ================== */
.tpl-festival {
  background:
    radial-gradient(ellipse at top, #C72828 0%, #8B1A1A 50%, #5C0F0F 100%);
  color: #FFE4D4;
}
.tpl-festival::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,228,212,0.1) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(255,228,212,0.1) 0%, transparent 30%);
}
.tpl-festival .lantern {
  position: absolute; top: 20px; font-size: 60px;
}
.tpl-festival .lantern.l { left: 40px; }
.tpl-festival .lantern.r { right: 40px; }
.tpl-festival .seal-gold {
  background: #F5E0B0; color: #8B1A1A; padding: 8px 24px; border-radius: 4px;
  font-weight: 900; font-size: 22px; letter-spacing: 6px;
  display: inline-block; transform: rotate(-3deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.tpl-festival .main-title {
  font-size: 64px; font-weight: 900; color: #FFD700;
  text-shadow: 3px 3px 0 #8B1A1A; letter-spacing: 4px;
  line-height: 1.1;
}
.tpl-festival .sub-line { font-size: 22px; color: #FFE4D4; letter-spacing: 4px; }
.tpl-festival .item {
  background: rgba(245,224,176,0.1); border: 1px solid rgba(245,224,176,0.3);
  border-left: 4px solid #FFD700; padding: 12px 16px; border-radius: 4px;
  margin-bottom: 8px; display: flex; gap: 12px; align-items: center;
  font-size: 18px;
}
.tpl-festival .item .no {
  width: 36px; height: 36px; background: #FFD700; color: #8B1A1A;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 900;
}
.tpl-festival .item .name { font-weight: 700; color: #FFE4D4; }
.tpl-festival .item .desc { color: #FFE4D4; opacity: 0.8; font-size: 16px; }

/* ================== 18. 清新马卡龙 ================== */
.tpl-macaron {
  background: linear-gradient(135deg, #FFD6E0 0%, #FFF4D6 50%, #D6F0FF 100%);
  color: #4B3621;
}
.tpl-macaron .title-card {
  background: #fff; border-radius: 16px; padding: 18px;
  box-shadow: 0 4px 14px rgba(255,182,193,0.3);
  margin-bottom: 14px;
}
.tpl-macaron .title-card .label {
  background: linear-gradient(135deg, #FF69B4, #FFB6C1); color: #fff;
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: 2px;
}
.tpl-macaron .title-card .title { font-size: 34px; font-weight: 900; color: #4B3621; margin-top: 8px; line-height: 1.2; }
.tpl-macaron .title-card .sub { font-size: 14px; color: #6B7280; margin-top: 4px; }
.tpl-macaron .macaron-item {
  background: #fff; border-radius: 14px; padding: 14px;
  margin-bottom: 10px;
  display: flex; gap: 12px; align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.tpl-macaron .macaron-item .circle {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; font-weight: 900;
  flex-shrink: 0;
}
.tpl-macaron .macaron-item.c1 .circle { background: linear-gradient(135deg, #FF69B4, #FFB6C1); }
.tpl-macaron .macaron-item.c2 .circle { background: linear-gradient(135deg, #87CEEB, #B0E0E6); }
.tpl-macaron .macaron-item.c3 .circle { background: linear-gradient(135deg, #FFD700, #FFA07A); }
.tpl-macaron .macaron-item.c4 .circle { background: linear-gradient(135deg, #98FB98, #90EE90); }
.tpl-macaron .macaron-item.c5 .circle { background: linear-gradient(135deg, #DDA0DD, #EE82EE); }
.tpl-macaron .macaron-item .content { flex: 1; }
.tpl-macaron .macaron-item .name { font-size: 18px; font-weight: 700; color: #4B3621; }
.tpl-macaron .macaron-item .desc { font-size: 14px; color: #6B7280; margin-top: 2px; line-height: 1.4; }

/* ================== 19. 暗黑科技蓝 ================== */
.tpl-dark-tech {
  background: linear-gradient(180deg, #050816 0%, #0F172A 100%);
  color: #fff;
}
.tpl-dark-tech::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(56,189,248,0.15) 0%, transparent 40%),
    radial-gradient(circle at 30% 80%, rgba(168,85,247,0.15) 0%, transparent 40%);
  pointer-events: none;
}
.tpl-dark-tech .logo-bar {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; letter-spacing: 4px; font-weight: 700;
}
.tpl-dark-tech .logo-bar .mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, #38BDF8, #A855F7);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900;
}
.tpl-dark-tech .big-title {
  font-size: 64px; font-weight: 900;
  background: linear-gradient(135deg, #38BDF8, #A855F7);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.05; letter-spacing: -1px;
}
.tpl-dark-tech .sub-line { font-size: 18px; color: #94A3B8; letter-spacing: 2px; margin-top: 6px; }
.tpl-dark-tech .feature-card {
  background: rgba(56,189,248,0.06); border: 1px solid rgba(56,189,248,0.2);
  border-radius: 12px; padding: 14px; backdrop-filter: blur(8px);
  display: flex; gap: 12px; align-items: center; margin-bottom: 10px;
}
.tpl-dark-tech .feature-card .icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: linear-gradient(135deg, #38BDF8, #A855F7);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.tpl-dark-tech .feature-card .name { font-size: 18px; font-weight: 700; color: #fff; }
.tpl-dark-tech .feature-card .desc { font-size: 14px; color: #94A3B8; margin-top: 2px; line-height: 1.4; }
.tpl-dark-tech .cta-bar {
  margin-top: 14px; padding: 14px;
  background: linear-gradient(90deg, #38BDF8, #A855F7);
  border-radius: 10px; text-align: center;
  font-weight: 900; font-size: 20px; letter-spacing: 4px;
}

/* ================== 20. 美食探店 ================== */
.tpl-foodie {
  background: linear-gradient(180deg, #2D1810 0%, #1A0F08 100%);
  color: #FFD9A0;
}
.tpl-foodie::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,140,40,0.15) 0%, transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(255,90,40,0.15) 0%, transparent 30%);
}
.tpl-foodie .top-mark {
  background: linear-gradient(90deg, #FF8C28, #FF5722); color: #fff;
  padding: 8px 20px; border-radius: 999px; font-weight: 900; letter-spacing: 3px;
  display: inline-block; box-shadow: 0 0 16px rgba(255,140,40,0.5);
}
.tpl-foodie .main-title {
  font-size: 56px; font-weight: 900; color: #FFD9A0;
  text-shadow: 2px 2px 0 #8B4513; line-height: 1.15;
}
.tpl-foodie .sub-line { font-size: 20px; color: #FF8C28; letter-spacing: 2px; }
.tpl-foodie .food-card {
  background: rgba(255,217,160,0.06); border: 1px solid rgba(255,140,40,0.3);
  border-radius: 10px; padding: 14px; display: flex; gap: 12px;
  margin-bottom: 10px;
}
.tpl-foodie .food-card .photo {
  width: 90px; height: 90px; border-radius: 8px;
  background: linear-gradient(135deg, #FF8C28, #FF5722);
  display: flex; align-items: center; justify-content: center; font-size: 40px;
  flex-shrink: 0;
}
.tpl-foodie .food-card .body { flex: 1; }
.tpl-foodie .food-card .name { font-size: 20px; font-weight: 700; color: #FFD9A0; }
.tpl-foodie .food-card .tags { font-size: 13px; color: #FF8C28; margin-top: 4px; }
.tpl-foodie .food-card .stars { color: #FFD700; margin-top: 4px; letter-spacing: 1px; }
.tpl-foodie .food-card .price {
  margin-top: 4px; font-size: 16px; color: #FF8C28; font-weight: 700;
}
.tpl-foodie .verdict {
  margin-top: 14px; padding: 14px;
  background: linear-gradient(135deg, #FF8C28, #FF5722); color: #fff;
  border-radius: 10px; text-align: center; font-weight: 900; font-size: 20px;
}
/* ================== 通用 compare / table 样式（所有 .compare 模板共用） ================== */
.compare-row {
  display: grid; grid-template-columns: 1fr 1.1fr 1.4fr 1.3fr;
  gap: 10px; padding: 12px 14px;
  background: rgba(255,255,255,0.6);
  border-left: 4px solid var(--c-accent);
  border-radius: 6px;
  font-size: 15px;
  color: var(--c-text);
  align-items: center;
}
.compare-row.head {
  background: var(--c-primary);
  color: #fff; font-weight: 700; font-size: 16px;
  border-left-color: var(--c-accent);
}
.compare-row .col { word-break: break-word; line-height: 1.4; }
.compare-row .col.no-col {
  display: flex; align-items: center; gap: 6px;
}
.compare-row .col.no-col::before { content: "📌"; opacity: 0.8; font-size: 16px; }
.compare-row.head .col.no-col::before { display: none; }
.tpl-dark-gold-guide .compare-row {
  background: rgba(200,163,92,0.06); border: 1px solid rgba(200,163,92,0.2);
  border-left: 4px solid var(--c-accent); color: #F5E0B0;
}
.tpl-dark-gold-guide .compare-row.head {
  background: rgba(200,163,92,0.18); color: var(--c-accent);
  border-bottom: 1px solid var(--c-accent);
}
.tpl-business-blue .compare-row {
  background: #fff; border-left: 4px solid var(--c-accent);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  color: var(--c-text);
}
.tpl-business-blue .compare-row.head {
  background: var(--c-primary); color: #fff; border-left-color: var(--c-accent);
}
.tpl-infographic .compare-row {
  background: #fff; border-left: 4px solid var(--c-accent);
  color: var(--c-text); margin-bottom: 8px;
}

/* ================== 通用 cover 元素位置（跨模板） ================== */
.canvas .bottom-quote,
.canvas .footer-line,
.canvas .page-footer {
  position: absolute !important;
  bottom: 24px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  text-align: center !important;
  font-size: 12px !important;
  letter-spacing: 2px !important;
  z-index: 5;
}
.canvas .bg-scene {
  position: absolute !important;
  bottom: 0 !important; left: 0 !important; right: 0 !important;
  height: 480px !important;
  pointer-events: none !important;
}
.canvas .float-icon {
  position: absolute !important;
}
