/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #eef1f6;
  color: #131313;
}

.editor-shell {
  display: grid;
  grid-template-columns: 340px minmax(560px, 1fr) 300px;
  min-height: 100vh;
}

.control-panel,
.style-panel {
  height: 100vh;
  padding: 18px;
  background: #ffffff;
  overflow-y: auto;
}

.control-panel {
  border-right: 1px solid #ddd;
}

.style-panel {
  border-left: 1px solid #ddd;
}

.control-panel h1,
.style-panel h1 {
  margin: 0 0 16px;
  font-size: 22px;
}

.style-panel h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.control-panel p,
.style-panel p {
  margin: 0 0 16px;
  color: #555;
  line-height: 1.5;
}

.control-panel label,
.style-panel label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  color: #2d2d2d;
}

.field-block {
  margin-bottom: 14px;
  font-size: 13px;
  color: #2d2d2d;
}

.field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inline-field-action {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid #c8d6f2;
  border-radius: 8px;
  padding: 7px 10px;
  background: #eef4ff;
  color: #0b48c8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.inline-field-action:hover:not(:disabled) {
  background: #e0ebff;
}

.inline-field-action:disabled {
  cursor: wait;
  opacity: 0.68;
}

.control-panel input,
.style-panel input,
.control-panel textarea,
.style-panel textarea {
  width: 100%;
  margin-top: 6px;
  padding: 9px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.control-panel textarea,
.style-panel textarea {
  min-height: 74px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.45;
}

.translate-status {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: #566276;
}

.translate-status.success {
  color: #0a7a3e;
}

.translate-status.error {
  color: #c4273e;
}

.translate-status.warning {
  color: #9a5b00;
}

.control-panel select,
.style-panel select {
  width: 100%;
  margin-top: 6px;
  padding: 9px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

.control-panel input:focus,
.control-panel textarea:focus,
.style-panel textarea:focus,
.control-panel select:focus,
.style-panel select:focus {
  border-color: #0b48c8;
  outline: 2px solid rgba(11, 72, 200, 0.12);
}

.quick-font-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
  gap: 8px;
  margin: -2px 0 12px;
}

.quick-font-actions button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid #bcd0ff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: #1847b3;
  background: #eef4ff;
  cursor: pointer;
}

.quick-font-actions button:hover {
  background: #e1ebff;
}

.position-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
  gap: 8px;
}

.align-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
  gap: 8px;
  margin: 6px 0 12px;
}

.align-grid button,
.nudge-grid button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid #d3dbe9;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  background: #fff;
  color: #27405f;
  cursor: pointer;
}

.align-grid button:hover,
.nudge-grid button:hover {
  background: #f4f7fb;
}

.nudge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 8px;
  gap: 8px;
  margin: 0 0 12px;
}

.nudge-grid button:nth-child(1) {
  grid-column: 2;
}

.nudge-grid button:nth-child(2) {
  grid-column: 1;
}

.nudge-grid button:nth-child(3) {
  grid-column: 3;
}

.nudge-grid button:nth-child(4) {
  grid-column: 2;
}

.nudge-grid button:nth-child(5) {
  grid-column: 1 / span 3;
}

.control-panel input[type="color"],
.style-panel input[type="color"] {
  height: 40px;
  padding: 4px;
  cursor: pointer;
}

.section-card {
  margin: 12px 0;
  border: 1px solid #e2e8f4;
  background: #f8fafe;
  border-radius: 10px;
  padding: 12px;
}

.section-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.mini-actions {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 8px;
  gap: 8px;
  margin-top: 8px;
}

.mini-actions button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 9px 10px;
  background: #0a43ab;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.mini-actions button.ghost {
  background: #e6edff;
  color: #1b3f96;
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 8px;
  gap: 8px;
  margin-top: 18px;
}

.actions button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #0a43ab;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.actions button:hover {
  background: #08398f;
}

.actions button.ghost {
  background: #e6edff;
  color: #1b3f96;
}

.actions button.ghost:hover {
  background: #d7e4ff;
}

.status {
  min-height: 24px;
  margin-top: 10px;
  font-size: 13px;
  color: #0a43ab;
}

.canvas-panel {
  height: 100vh;
  overflow: auto;
  padding: 28px;
  background: #e9edf4;
}

.canvas-preview {
  position: relative;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(31, 45, 68, 0.18);
}

.stage-scale {
  width: 1080px;
  height: 1440px;
  transform-origin: top left;
}

.preset-card {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e1e7f2;
  border-radius: 8px;
  background: #f8fbff;
}

.preset-card strong {
  font-size: 16px;
  color: #0b255f;
}

.preset-card span {
  font-size: 13px;
  line-height: 1.5;
  color: #536173;
}

.preset-grid {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  margin-top: 16px;
}

.preset-option {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 100%;
  border: 1px solid #d5deee;
  border-radius: 8px;
  padding: 11px 12px;
  background: #ffffff;
  color: #263b5c;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.preset-option:hover {
  background: #f4f7fc;
}

.preset-option.active {
  border-color: #0b48c8;
  background: #eaf1ff;
  color: #0b48c8;
}

.text-size-controls {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #e1e7f2;
  border-radius: 8px;
  background: #fbfdff;
}

.text-size-controls h2 {
  margin: 0;
  font-size: 16px;
  color: #17243a;
}

.text-size-controls label {
  margin: 0;
}

.text-size-controls button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid #c8d6f2;
  border-radius: 8px;
  padding: 9px 10px;
  background: #eef4ff;
  color: #0b48c8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.text-size-controls button:hover {
  background: #e0ebff;
}

.ai-copy-panel {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e1e7f2;
  border-radius: 8px;
  background: #fbfdff;
}

.ai-copy-panel h2 {
  margin: 0;
  font-size: 16px;
  color: #17243a;
}

.ai-copy-panel label {
  margin: 0;
}

.ai-copy-actions {
  display: grid;
  grid-template-columns: 1fr 120px;
  grid-gap: 8px;
  gap: 8px;
}

.ai-copy-actions button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid #c8d6f2;
  border-radius: 8px;
  padding: 9px 10px;
  background: #eef4ff;
  color: #0b48c8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ai-copy-actions button:hover:not(:disabled) {
  background: #e0ebff;
}

.ai-copy-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.ai-copy-actions button.ghost {
  background: #fff;
}

.generated-copy-result textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.5;
}

.secondary-settings {
  margin-top: 6px;
  border: 1px solid #e1e7f2;
  border-radius: 8px;
  background: #fbfdff;
}

.secondary-settings summary {
  padding: 12px 14px;
  color: #17243a;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.secondary-settings-body {
  padding: 2px 14px 14px;
}

.secondary-settings-body label:last-child {
  margin-bottom: 0;
}

.export-meta {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e6eaf1;
  color: #5d6778;
  font-size: 13px;
}

.export-meta strong {
  color: #18263d;
  font-size: 16px;
}

.pdf-import-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e6eaf1;
}

.pdf-import-panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #17243a;
}

.pdf-upload-control {
  margin-bottom: 12px;
}

.pdf-upload-control input {
  cursor: pointer;
}

.pdf-url-import {
  margin: 0 0 12px;
}

.pdf-url-import label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #2d2d2d;
}

.pdf-url-import textarea {
  min-height: 76px;
}

.pdf-url-import button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #c8d6f2;
  border-radius: 8px;
  padding: 9px 10px;
  background: #eef4ff;
  color: #0b48c8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pdf-url-import button:hover:not(:disabled) {
  background: #e0ebff;
}

.pdf-url-import button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.pdf-info-box {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #e1e7f2;
  border-radius: 8px;
  background: #f8fbff;
}

.pdf-info-box div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-gap: 8px;
  gap: 8px;
  align-items: start;
  font-size: 12px;
}

.pdf-info-box span {
  color: #667386;
}

.pdf-info-box strong {
  min-width: 0;
  color: #17243a;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.pdf-status {
  margin: 8px 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #566276;
}

.pdf-status.success {
  color: #0a7a3e;
}

.pdf-status.error {
  color: #c4273e;
}

.pdf-clear-button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 100%;
  margin-bottom: 8px;
  border: 1px solid #c8d6f2;
  border-radius: 8px;
  padding: 9px 10px;
  background: #eef4ff;
  color: #0b48c8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pdf-clear-button:hover {
  background: #e0ebff;
}

.pdf-import-panel .ant-card-meta-title {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .editor-shell {
    grid-template-columns: 1fr;
  }

  .control-panel {
    border-right: 0;
    border-bottom: 1px solid #e7e7e7;
  }

  .style-panel {
    border-left: 0;
    border-bottom: 1px solid #e7e7e7;
  }

  .canvas-panel {
    height: auto;
    min-height: 72vh;
  }

  .control-panel,
  .style-panel {
    height: auto;
  }
}

