@charset "utf-8";

/* =========================================================
   基于 Element Plus 2.x 的设计系统
   ========================================================= */
:root {
  --el-border-radius-base: 6px;
  --font-sans: var(--el-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif);
  --panel-w: 400px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--el-bg-color-page);
  color: var(--el-text-color-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
input, textarea { user-select: text; }
[v-cloak] { display: none; }

#app { height: 100vh; }

/* ========== 布局骨架 ========== */
.app-shell { height: 100vh; }

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--el-bg-color);
  border-bottom: 1px solid var(--el-border-color-light);
  z-index: 30;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--el-color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(64, 158, 255, .30);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.brand-copy h1 { margin: 0; font-size: 16px; font-weight: 600; color: var(--el-text-color-primary); }
.brand-copy span { font-size: 12px; color: var(--el-text-color-secondary); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .el-button + .el-button { margin-left: 0; }

.app-body { min-height: 0; overflow: hidden; }

/* ========== 左侧属性面板 ========== */
.inspector {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--el-bg-color);
  border-right: 1px solid var(--el-border-color-light);
}

.inspector-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--el-border-color-lighter);
}
.inspector-head h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--el-text-color-primary);
}
.inspector-head p { margin: 0; font-size: 12px; color: var(--el-text-color-secondary); }

.inspector-body { flex: 1; min-height: 0; height: auto; }
.inspector-body .el-scrollbar__wrap { overflow-x: hidden; }
.inspector-inner { padding: 4px 24px 24px; }

/* ========== 表单 ========== */
.settings-form .el-form-item { margin-bottom: 18px; }
.settings-form .el-form-item:last-child { margin-bottom: 0; }
.settings-form .el-form-item__label {
  padding-bottom: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--el-text-color-primary);
}
.settings-form .el-divider { margin: 4px 0 20px; }
.settings-form .el-divider:not(:first-child) { margin-top: 24px; }
.settings-form .el-divider__text {
  padding: 0 8px;
  font-size: 12px;
  color: var(--el-text-color-secondary);
  background: var(--el-bg-color);
}

.input-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.input-row .el-input { flex: 1; min-width: 0; }
.input-sep { flex: 0 0 auto; color: var(--el-text-color-placeholder); }

.option-grid { display: grid; gap: 8px; width: 100%; }
.option-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.option-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option-grid .el-radio {
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 0 8px;
  justify-content: center;
}
.option-grid .el-radio.is-bordered { margin-left: 0; padding: 0 8px; }
.option-grid .el-radio__label { padding-left: 6px; font-size: 13px; }

.color-field { width: 100%; }
.color-group { display: flex; width: 100%; }
.color-group .el-radio-button { flex: 1; }
.color-group .el-radio-button__inner {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
}
.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--swatch, #b3261e);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .10);
}
.field-hint {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--el-text-color-secondary);
}

.panel-alert { margin-top: 20px; }
.panel-alert .el-alert__title { font-size: 12px; line-height: 1.5; }

.export-dialog { max-width: 560px; }
.export-preview {
  display: flex;
  justify-content: center;
  padding: 12px;
  border-radius: 6px;
  background: var(--el-fill-color-light);
}
.export-preview img {
  display: block;
  max-width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}
.export-hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--el-text-color-secondary);
}

/* ========== 画布 ========== */
.el-main.stage {
  position: relative;
  padding: 0;
  overflow: hidden;
  background-color: var(--el-bg-color-page);
  background-image:
    linear-gradient(rgba(0, 0, 0, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .028) 1px, transparent 1px);
  background-size: 20px 20px;
}
.preview-stage { position: absolute; inset: 0; }

.stage-tag {
  position: absolute;
  top: 16px;
  left: 20px;
  z-index: 5;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(4px);
}
.stage-tag .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--el-color-success);
  box-shadow: 0 0 0 2px rgba(103, 194, 58, .15);
}

.zoombar {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--el-border-color-light);
  border-radius: 8px;
  background: var(--el-bg-color);
  box-shadow: var(--el-box-shadow-light);
  transform: translateX(-50%);
}
.zoombar .el-button {
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 8px;
}
.zoombar .el-button + .el-button { margin-left: 0; }
.zoombar .fit-btn {
  width: auto;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--el-text-color-regular);
}
.zoom-value {
  min-width: 46px;
  text-align: center;
  font-size: 12px;
  color: var(--el-text-color-regular);
  font-variant-numeric: tabular-nums;
}
.zoombar .el-divider--vertical { height: 16px; margin: 0 4px; }

/* ========== 证书 ========== */
[id^="zhengshu"] {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  box-sizing: border-box;
  text-align: center;
  background-color: #fff;
  opacity: 1;
  z-index: 2;
  transform: translate(-50%, -50%) scale(var(--fit, 1));
  transition: transform .3s cubic-bezier(.2, 0, .2, 1), opacity .3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 12px 32px rgba(0, 0, 0, .12);
  will-change: transform;
}
[id^="zhengshu"].hidden {
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.96);
}
.mc2:empty { display: none; margin-top: 0 !important; }

#zhengshu1 { width: 1200px; height: 872px; padding: 65px; color: #000; display: flex; justify-content: space-between; background: url(../images/zs1_01.jpg) no-repeat center; background-color: #fff; background-size: 100% 100%; }
#zhengshu1 .fl { width: 520px; }
#zhengshu1 .fl .mc { font-weight: bold; }
#zhengshu1 .fl .sx { font-weight: bold; }
#zhengshu1 .fl .dj { color: #e30107; font-weight: bold; }
#zhengshu1 .fr { width: 430px; padding-top: 171px; }
#zhengshu1 .fr .mc { font-size: 14px; text-align: left; opacity: 0; }
#zhengshu1.gs2 { background-image: url(../images/zs1_02.jpg); }
#zhengshu1.gs3 { background-image: url(../images/zs1_03.jpg); }
#zhengshu1.gs4 { background-image: url(../images/zs1_04.jpg); }
#zhengshu1.gs6 { background-image: url(../images/zs1_06.jpg); }
#zhengshu1.bg2 { background-image: url(../images/zs2_01.jpg); }
#zhengshu1.bg2 .fl .dj { margin-top: 30px; }
#zhengshu1.bg2 .fr { width: 422px; padding-top: 160px; }
#zhengshu1.bg2 .fr .mc { font-size: 15px; }
#zhengshu1.bg2.gs2 { background-image: url(../images/zs2_02.jpg); }
#zhengshu1.bg2.gs3 { background-image: url(../images/zs2_03.jpg); }
#zhengshu1.bg2.gs4 { background-image: url(../images/zs2_04.jpg); }
#zhengshu1.bg2.gs6 { background-image: url(../images/zs2_06.jpg); }
#zhengshu1.bg3 { background-image: url(../images/zs6_01.jpg); background-position-y: 1px; background-color: #e1dbc5; }
#zhengshu1.bg3.gs2 { background-image: url(../images/zs6_02.jpg); }
#zhengshu1.bg3.gs3 { background-image: url(../images/zs6_03.jpg); }
#zhengshu1.bg3.gs4 { background-image: url(../images/zs6_04.jpg); }
#zhengshu1.bg3.gs6 { background-image: url(../images/zs6_06.jpg); }

#zhengshu2 { width: 706px; height: 984px; padding: 60px; color: #000; background: url(../images/zs3_01.jpg) no-repeat center; background-color: #fff; background-size: 100% 100%; }
#zhengshu2 .tit .mc,
#zhengshu2 .tit .sx { font-weight: bold; }
#zhengshu2 .tit .dj { color: #e30107; font-weight: bold; }
#zhengshu2 p.mc { font-size: 15px; text-align: left; margin-top: 220px; padding-left: 117px; opacity: 0; }
#zhengshu2.gs2 { background-image: url(../images/zs3_02.jpg); }
#zhengshu2.gs3 { background-image: url(../images/zs3_03.jpg); }
#zhengshu2.gs4 { background-image: url(../images/zs3_04.jpg); }
#zhengshu2.gs6 { background-image: url(../images/zs3_06.jpg); }
#zhengshu2.bg2 { background-image: url(../images/zs4_01.jpg); }
#zhengshu2.bg2 .tit { margin-top: 198px; }
#zhengshu2.bg2 .tit .dj { margin-top: 16px; }
#zhengshu2.bg2 p.mc { margin-top: 205px; }
#zhengshu2.bg2.gs2 { background-image: url(../images/zs4_02.jpg); }
#zhengshu2.bg2.gs3 { background-image: url(../images/zs4_03.jpg); }
#zhengshu2.bg2.gs4 { background-image: url(../images/zs4_04.jpg); }
#zhengshu2.bg2.gs6 { background-image: url(../images/zs4_06.jpg); }
#zhengshu2.bg3 { background-image: url(../images/zs7_01.jpg); background-position-y: -2px; background-color: #e1dbc5; }
#zhengshu2.bg3.gs2 { background-image: url(../images/zs7_02.jpg); }
#zhengshu2.bg3.gs3 { background-image: url(../images/zs7_03.jpg); }
#zhengshu2.bg3.gs4 { background-image: url(../images/zs7_04.jpg); }
#zhengshu2.bg3.gs6 { background-image: url(../images/zs7_06.jpg); }

#zhengshu3 { width: 1200px; height: 779px; padding: 110px; color: #000000; background: url(../images/zs5_01.jpg) no-repeat center; background-color: #fff; background-size: 100% 100%; }
#zhengshu3.gs2 { background-image: url(../images/zs5_02.jpg); }
#zhengshu3.gs3 { background-image: url(../images/zs5_03.jpg); }
#zhengshu3.bg3 { background-image: url(../images/zs8_01.jpg); }
#zhengshu3.bg3.gs2 { background-image: url(../images/zs8_02.jpg); }
#zhengshu3.bg3.gs3 { background-image: url(../images/zs8_03.jpg); }
/* 铜牌四网公示/招标五网不分颜色，统一使用金色铜牌图 */
#zhengshu3.gs4 { background-image: url(../images/zs9_04.jpg); }
#zhengshu3.gs6 { background-image: url(../images/zs9_06.jpg); }
#zhengshu3 .mc { font-family: STKaiti; color: #b20003; font-size: 58px; line-height: 62px; font-weight: bold; margin-top: 120px; }
#zhengshu3 .dj { font-family: STKaiti; color: #b20003; font-size: 64px; font-weight: bold; letter-spacing: 10px; text-indent: 10px; margin-top: 100px; }

/* ========== 遮罩与全屏 ========== */
.panel-backdrop {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 15;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.app-shell.is-fullscreen .app-header,
.app-shell.is-fullscreen .inspector,
.app-shell.is-fullscreen .panel-backdrop { display: none !important; }

.exit-fs-button {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  box-shadow: var(--el-box-shadow-light);
}

/* ========== 响应式 ========== */
@media (min-width: 1025px) {
  .app-shell.is-collapsed .inspector { display: none; }
}

@media (max-width: 1024px) {
  .inspector {
    position: fixed;
    top: var(--header-h);
    bottom: 0;
    left: 0;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: var(--el-box-shadow-dark);
  }
  .app-shell.is-drawer-open .inspector { transform: translateX(0); }
  .app-shell.is-drawer-open .panel-backdrop { opacity: 1; pointer-events: auto; }
}

@media (max-width: 640px) {
  .app-header { padding: 0 12px; }
  .brand { gap: 8px; }
  .brand-copy span { display: none; }
  .brand-copy h1 { font-size: 15px; }
  .brand-mark { flex-basis: 30px; width: 30px; height: 30px; }
  .header-actions { gap: 6px; }
  .header-actions .el-button { width: 32px; padding: 8px; }
  .header-actions .el-button > span { display: none; }
  .stage-tag { display: none; }
  .zoombar { bottom: 16px; }
}
