/* 沈小招 · 产品一页通 扩展样式 */

.sxz-hero {
  background: linear-gradient(135deg, var(--cmb-red) 0%, var(--cmb-red-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.sxz-hero::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}
.sxz-hero-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}
.sxz-hero-sub {
  font-size: 13px;
  opacity: 0.92;
  margin-top: 8px;
  max-width: 720px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.sxz-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.sxz-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 500;
}
.sxz-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0f2f7;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.sxz-step.active {
  border-color: var(--cmb-red);
  background: var(--cmb-red-light);
  color: var(--cmb-red);
}
.sxz-step.active .sxz-step-num {
  background: var(--cmb-red);
  color: #fff;
}
.sxz-step.done .sxz-step-num {
  background: var(--success);
  color: #fff;
}

.sxz-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  background: #fafbfd;
  transition: 0.2s;
  cursor: pointer;
}
.sxz-drop:hover,
.sxz-drop.dragover {
  border-color: var(--cmb-red);
  background: var(--cmb-red-light);
}
.sxz-drop i {
  font-size: 36px;
  color: var(--cmb-red);
  margin-bottom: 10px;
}
.sxz-drop-title {
  font-size: 14px;
  font-weight: 600;
}
.sxz-drop-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

.sxz-paste-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  margin: 14px 0 8px;
}
.sxz-paste {
  width: 100%;
  min-height: 140px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}
.sxz-paste:focus {
  outline: none;
  border-color: var(--cmb-red);
  box-shadow: 0 0 0 2px rgba(199, 0, 11, 0.12);
}

.sxz-saer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 1100px) {
  .sxz-saer-grid {
    grid-template-columns: 1fr;
  }
}

.sxz-block {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.sxz-block-head {
  padding: 12px 16px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.sxz-char-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
}
.sxz-char-count.warn {
  color: #b8860b;
}
.sxz-char-count.over {
  color: var(--cmb-red);
  font-weight: 700;
}
.sxz-block-head.s {
  background: linear-gradient(90deg, #e8f0ff, #fff);
  color: #1a5fd4;
}
.sxz-block-head.a {
  background: linear-gradient(90deg, var(--cmb-red-light), #fff);
  color: var(--cmb-red);
}
.sxz-block-head.e {
  background: linear-gradient(90deg, var(--cmb-gold-soft), #fff);
  color: #8c6d1f;
}
.sxz-block-head.r {
  background: linear-gradient(90deg, #f2ebff, #fff);
  color: #6b3cc9;
}
.sxz-block-body {
  padding: 14px 16px;
}
.sxz-block-body textarea {
  width: 100%;
  min-height: 120px;
  border: none;
  resize: vertical;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
}
.sxz-block-body textarea:focus {
  outline: none;
}

.sxz-fee-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.sxz-fee-wrap {
  overflow-x: auto;
}

/* 费率表：费用项目列略窄，费率水平列略宽，备注列占剩余 */
.sxz-fee-table {
  table-layout: fixed;
  width: 100%;
}
.sxz-fee-table .sxz-fee-col-item,
.sxz-fee-table thead th:nth-child(1),
.sxz-fee-table tbody td:nth-child(1) {
  width: 8.25rem;
  min-width: 6.75rem;
  max-width: 10.5rem;
  box-sizing: border-box;
  white-space: normal;
  word-break: break-word;
  vertical-align: middle;
  line-height: 1.35;
}
.sxz-fee-table thead th:nth-child(2),
.sxz-fee-table tbody td:nth-child(2) {
  width: 21%;
}
.sxz-fee-table thead th:nth-child(3),
.sxz-fee-table tbody td:nth-child(3) {
  width: auto;
}
.sxz-fee-table thead th:nth-child(4),
.sxz-fee-table tbody td:nth-child(4) {
  width: 4.5rem;
  text-align: center;
  white-space: nowrap;
}
.sxz-fee-table .sxz-fee-in-item {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.35;
}
.sxz-fee-table .sxz-fee-in:not(.sxz-fee-in-item) {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
}

.sxz-confirm-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: #fafbfd;
  border: 1px solid var(--border-soft);
}
.sxz-confirm-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sxz-preview-wrap {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: #eef1f6;
  overflow: auto;
}
.sxz-preview-scale {
  transform-origin: top left;
}

/* 导出垫板：16:9 横向模板（1920×1080） */
.sxz-board {
  width: 1920px;
  height: 1080px;
  box-sizing: border-box;
  padding: 14px;
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", "SimHei", sans-serif;
  color: #1a1a1a;
  overflow: hidden;
}
.sxz-board-frame {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 3px solid #c7000b;
  padding: 28px 36px 24px;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.sxz-board-hd {
  text-align: center;
  flex-shrink: 0;
  margin-bottom: 18px;
  position: relative;
}
.sxz-board-hd::before,
.sxz-board-hd::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 120px;
  height: 3px;
  background: #c7000b;
  transform: translateY(-50%);
}
.sxz-board-hd::before { left: 0; }
.sxz-board-hd::after { right: 0; }
.sxz-board-title {
  margin: 0;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #0d2b5e;
  line-height: 1.25;
}
.sxz-board-sub {
  margin: 10px 0 0;
  font-size: 22px;
  font-weight: 600;
  color: #c7000b;
  letter-spacing: 0.5px;
}
.sxz-board-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
}
.sxz-board-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}
.sxz-board-col-left .sxz-board-sec:last-child {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.sxz-board-col-left .sxz-board-sec:last-child .sxz-board-sec-bd {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sxz-board-sec {
  min-height: 0;
}
.sxz-board-sec-hd {
  background: #c7000b;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  padding: 8px 14px;
  letter-spacing: 1px;
  line-height: 1.3;
}
.sxz-board-sec-bd {
  padding: 12px 4px 0;
  font-size: 17px;
  line-height: 1.65;
  color: #1a1a1a;
}
.sxz-board-sec-bd.compact {
  font-size: 16px;
  line-height: 1.55;
}
.sxz-board-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sxz-board-list li {
  margin-bottom: 10px;
  padding-left: 28px;
  position: relative;
}
.sxz-board-list li:last-child {
  margin-bottom: 0;
}
.sxz-board-list.check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #c7000b;
  font-weight: 800;
  font-size: 18px;
}
.sxz-board-list.square li::before {
  content: "■";
  position: absolute;
  left: 2px;
  top: 1px;
  color: #1a1a1a;
  font-size: 12px;
}
.sxz-board-list.arrow li::before {
  content: "➤";
  position: absolute;
  left: 0;
  top: 0;
  color: #c7000b;
  font-size: 16px;
}
.sxz-board-list .em-red {
  color: #c7000b;
  font-weight: 700;
}
.sxz-board-list .em-bold {
  font-weight: 700;
}
.sxz-board-para {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}
.sxz-board-chart-wrap {
  margin-top: 10px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.sxz-board-chart-wrap img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border: 1px solid #d8dce6;
  background: #fafbfd;
}
.sxz-board-chart-foot {
  margin-top: 6px;
  font-size: 12px;
  color: #8b90a3;
  line-height: 1.4;
}
.sxz-board-r-note {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: #333;
}
.sxz-board-fee-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}
.sxz-board-fee-row.single {
  grid-template-columns: 1fr;
}
.sxz-board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}
.sxz-board-table th,
.sxz-board-table td {
  border: 1px solid #1a1a1a;
  padding: 6px 8px;
  text-align: center;
  vertical-align: middle;
  word-break: break-word;
  line-height: 1.35;
}
.sxz-board-table th {
  background: #f0f2f7;
  font-weight: 700;
  font-size: 13px;
}
.sxz-board-table td {
  font-size: 13px;
}
.sxz-board-table.col2 th:nth-child(1),
.sxz-board-table.col2 td:nth-child(1) {
  width: 58%;
}
.sxz-board-table.col3 th:nth-child(1),
.sxz-board-table.col3 td:nth-child(1) {
  width: 42%;
}

.sxz-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #1a1d29;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.25s;
  pointer-events: none;
}
.sxz-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.sxz-hidden-export-host {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1920px;
  height: 1080px;
  overflow: visible;
}
