* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 18px 12px 32px;
  background: linear-gradient(180deg, #fff4e8 0%, #ffe4cd 50%, #ffd8b8 100%);
  color: #42220f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

button {
  font: inherit;
}

.edit-link {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 9000;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #a34d0f;
  box-shadow: 0 6px 18px rgba(177, 92, 30, 0.18);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.card {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 18px 14px 24px;
  border: 1px solid rgba(255, 183, 120, 0.55);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 38px rgba(177, 92, 30, 0.22);
}

.center,
.note-wrapper {
  text-align: center;
}

.tag {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: #ff7a1a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(255, 122, 26, 0.28);
}

.main-title {
  margin: 16px 0 10px;
  text-align: center;
}

.main-title h1 {
  margin: 0;
  color: #2d1608;
  font-size: 25px;
  line-height: 1.34;
  letter-spacing: 0;
}

.main-title strong {
  color: #ff4d00;
}

.tiny-note {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff0dc;
  color: #a65213;
  font-size: 13px;
  line-height: 1.45;
}

.subtitle {
  margin: 13px 0 8px;
  padding: 11px 12px;
  border-radius: 14px;
  background: linear-gradient(90deg, #ff7a1a, #ff4d00);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
  color: #e15300;
  font-size: 14px;
  font-weight: 700;
}

.step {
  margin: 14px 0;
  padding: 14px 12px;
  border: 1px solid #ffd9b3;
  border-radius: 18px;
  background: #fffaf4;
}

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 12px;
}

.step-number {
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ff6a00;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.25);
}

.step-title {
  flex: 1;
  padding-top: 3px;
  color: #41200b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.keywords-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.keyword-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 7px;
  border: 1px solid #ffc58c;
  border-radius: 12px;
  background: #fff;
  color: #5a2a0b;
  box-shadow: 0 5px 14px rgba(194, 104, 32, 0.1);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  user-select: none;
}

.keyword-btn::before {
  content: "🔍";
  margin-right: 5px;
  font-size: 14px;
  line-height: 1;
}

.keyword-btn.font-small,
.copy-single-btn.font-small {
  font-size: 11px;
}

.keyword-btn.font-large,
.copy-single-btn.font-large {
  font-size: 15px;
}

.keyword-btn:active,
.copy-single-btn:active,
.submit-btn:active,
.clear-btn:active,
.remove-file-btn:active,
.vip-btn:active,
.kefu-btn:active {
  transform: scale(0.98);
}

.info-note {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #fff1df;
  color: #a15012;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.comment-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  padding: 9px;
  border: 1px solid #ffd3aa;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(172, 92, 28, 0.07);
}

.comment-text {
  flex: 1;
  color: #4b2208;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-all;
}

.copy-single-btn {
  flex: 0 0 auto;
  padding: 8px 9px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ff8d2f, #ff6200);
  color: #fff;
  box-shadow: 0 4px 10px rgba(255, 98, 0, 0.22);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.sub-step {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 13px 0 10px;
  padding: 10px;
  border-radius: 13px;
  background: #fff2e5;
}

.sub-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ff7a1a;
  color: #fff;
  font-weight: 900;
}

.sub-step-text {
  flex: 1;
  color: #6f310a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.mock-img,
.tail-image-container {
  width: 100%;
  min-height: 170px;
  border: 1px dashed #ffbc80;
  border-radius: 14px;
  background: repeating-linear-gradient(45deg, #fff7ef, #fff7ef 10px, #ffead7 10px, #ffead7 20px);
  color: #ad5a19;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
  text-align: center;
  font-weight: 800;
  line-height: 1.6;
}

.visual-image-editor {
  position: relative;
  display: grid;
  gap: 10px;
}

.visual-image-preview,
.block-image-preview {
  display: none;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.has-uploaded-image {
  padding: 0;
  background: #fff;
}

.has-uploaded-image .block-image-preview {
  display: block;
}

.has-uploaded-image.visual-image-editor {
  padding: 10px;
}

.has-uploaded-image .visual-image-preview {
  display: block;
}

.image-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.image-actions label,
.image-actions button {
  min-height: 32px;
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  background: #ffe1c7;
  color: #a34d0f;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.image-actions input {
  display: none;
}

.lightbox-image-preview {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  border-radius: 12px;
}

.file-input-area {
  position: relative;
  padding: 22px 14px;
  border: 2px dashed #ffb577;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.file-input-area:hover {
  background: #fffaf4;
}

.file-input-area:active {
  transform: scale(0.99);
}

.upload-hint {
  margin-bottom: 8px;
  color: #74340d;
  font-size: 18px;
  font-weight: 900;
  pointer-events: none;
}

.upload-subhint {
  margin-top: 7px;
  color: #a15012;
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
}

.upload-count-line {
  margin-top: 12px;
  color: #ff4d00;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.upload-bottom-tip {
  color: #a15012;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

#screenshotInput {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#fileCount {
  margin-top: 12px;
  color: #ff4d00;
  font-size: 16px;
  font-weight: 900;
  pointer-events: none;
}

.selected-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 14px;
}

.selected-tip {
  flex: 1;
  color: #a15012;
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
  text-align: left;
}

.clear-btn {
  display: none;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: #ffe1c7;
  color: #a34d0f;
  cursor: pointer;
  font-weight: 800;
}

.file-preview-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-top: 11px;
}

.file-preview-item {
  position: relative;
  overflow: hidden;
  border: 1px solid #ffd0a5;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  background: #fff1df;
  cursor: default;
}

.file-preview-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-file-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  line-height: 18px;
}

.submit-btn {
  width: 100%;
  margin-top: 12px;
  padding: 14px 12px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ff7a1a, #ff3d00);
  color: #fff;
  box-shadow: 0 9px 18px rgba(255, 80, 0, 0.25);
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
}

.vip-section {
  margin-top: 16px;
  padding: 16px 12px;
  border: 1px solid #ffc58c;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff5e8, #ffe8d0);
  text-align: center;
}

.vip-title {
  margin-bottom: 12px;
  color: #ff4d00;
  font-size: 16px;
  font-weight: 900;
}

.vip-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 220px;
  min-height: 140px;
  margin: 0 auto 12px;
  padding: 20px;
  border: 1px dashed #ffbc80;
  border-radius: 14px;
  background: repeating-linear-gradient(45deg, #fff7ef, #fff7ef 10px, #ffead7 10px, #ffead7 20px);
  color: #ad5a19;
  cursor: zoom-in;
  font-weight: 800;
  line-height: 1.6;
}

.vip-btn {
  display: inline-block;
  padding: 12px 24px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff8d2f, #ff4d00);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 77, 0, 0.3);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
}

.tail-image-section {
  margin-top: 16px;
  text-align: center;
}

.tail-image-title {
  margin: 0 0 10px;
  color: #54240a;
  font-size: 16px;
  font-weight: 900;
}

.tail-note {
  margin-top: 14px;
  background: #ffe8d4;
}

hr {
  margin: 18px 0 12px;
  border: 0;
  border-top: 1px solid #ffe0c2;
}

.footer {
  color: #a65312;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.kefu-float {
  position: fixed;
  right: 16px;
  bottom: 80px;
  z-index: 9998;
}

.kefu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8d2f, #ff4d00);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 77, 0, 0.35);
  cursor: pointer;
  font-size: 22px;
}

.kefu-panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  display: none;
  overflow: hidden;
  width: 220px;
  border: 1px solid #ffd9b3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(177, 92, 30, 0.22);
}

.kefu-panel.show {
  display: block;
}

.kefu-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(90deg, #ff7a1a, #ff4d00);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.kefu-close {
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.kefu-welcome {
  padding: 14px;
  color: #5a2a0b;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.kefu-contact-btn {
  display: block;
  width: calc(100% - 28px);
  margin: 0 14px 14px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff8d2f, #ff6200);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.copy-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  opacity: 0;
  font-size: 14px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: all 0.25s;
}

.copy-toast.show {
  opacity: 1;
}

#tempCopy {
  position: fixed;
  top: -9999px;
  left: -9999px;
  opacity: 0;
}

.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.88);
  -webkit-tap-highlight-color: transparent;
}

.lightbox-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(95%, 360px);
  min-height: 360px;
  padding: 24px;
  border-radius: 12px;
  background: repeating-linear-gradient(45deg, #fff7ef, #fff7ef 10px, #ffead7 10px, #ffead7 20px);
  color: #ad5a19;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 40px;
  text-align: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.admin-page {
  padding: 22px 12px 40px;
  overflow-x: hidden;
}

.admin-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 18px 14px 24px;
  border: 1px solid rgba(255, 183, 120, 0.55);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 38px rgba(177, 92, 30, 0.22);
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-kicker {
  color: #a65213;
  font-size: 13px;
  font-weight: 800;
}

.admin-topbar h1 {
  margin: 2px 0 0;
  color: #2d1608;
  font-size: 26px;
  line-height: 1.2;
}

.admin-preview-link,
.admin-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff8d2f, #ff4d00);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 77, 0, 0.24);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.admin-alert {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
}

.admin-alert.success {
  background: #ecfdf3;
  color: #137a3a;
}

.admin-alert.error {
  background: #fff1f1;
  color: #b42318;
}

.admin-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-width: 0;
}

.admin-panel {
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid #ffd9b3;
  border-radius: 18px;
  background: #fffaf4;
  box-shadow: none;
}

.admin-panel h2 {
  margin: 0 0 12px;
  color: #54240a;
  font-size: 17px;
}

.admin-help {
  margin: -4px 0 10px;
  color: #a15012;
  font-size: 13px;
  line-height: 1.5;
}

.admin-panel label {
  display: grid;
  gap: 6px;
  margin-bottom: 11px;
  color: #5a2a0b;
  font-size: 13px;
  font-weight: 800;
}

.admin-panel input,
.admin-panel textarea,
.admin-panel select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid #ffc58c;
  border-radius: 10px;
  background: #fff;
  color: #2d1608;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.admin-panel textarea {
  resize: vertical;
  line-height: 1.5;
}

.admin-panel input:focus,
.admin-panel textarea:focus,
.admin-panel select:focus {
  border-color: #ff7a1a;
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.16);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 4px 0 0;
}

.visual-admin-page {
  overflow-x: hidden;
}

.visual-editor {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.visual-editor-bar {
  position: sticky;
  top: 0;
  z-index: 9500;
  display: flex;
  gap: 8px;
  padding: 10px 0;
  background: linear-gradient(180deg, #fff4e8 0%, rgba(255, 244, 232, 0.9) 100%);
}

.visual-edit-block {
  position: relative;
}

.visual-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid #ffd9b3;
  border-radius: 12px;
  background: #fff1df;
  color: #a15012;
  font-size: 12px;
  font-weight: 900;
}

.hide-toggle,
.add-row-btn,
.visual-remove-row {
  border: 0;
  border-radius: 10px;
  background: #ffe1c7;
  color: #a34d0f;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.hide-toggle {
  padding: 6px 10px;
}

.add-row-btn {
  width: 100%;
  min-height: 38px;
  margin: 9px 0 0;
}

.visual-input,
.visual-title-input,
.visual-image-input,
.timer-input,
.inline-admin-field input,
.inline-admin-field select,
.visual-keyword-editor input,
.visual-comment-editor input,
.upload-copy-row input,
.kefu-panel-header input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #ffc58c;
  outline: none;
  font: inherit;
}

.visual-input:focus,
.visual-title-input:focus,
.visual-image-input:focus,
.timer-input:focus,
.inline-admin-field input:focus,
.inline-admin-field select:focus,
.visual-keyword-editor input:focus,
.visual-comment-editor input:focus,
.upload-copy-row input:focus,
.kefu-panel-header input:focus {
  border-color: #ff7a1a;
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.16);
}

.center-input {
  text-align: center;
}

.visual-title-input {
  min-height: 86px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  color: #2d1608;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
  resize: vertical;
  text-align: center;
}

.timer-input {
  width: 100%;
  flex: 1 1 auto;
  padding: 6px 8px;
  border-radius: 10px;
  background: #fffaf4;
  color: #e15300;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.full-timer-input {
  max-width: 290px;
}

.visual-keyword-editor {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-left: 20px;
  padding: 8px;
  border: 1px solid #ffc58c;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(194, 104, 32, 0.1);
}

.visual-keyword-editor::before {
  content: "🔍";
  position: absolute;
  top: 6px;
  left: 8px;
  z-index: 1;
  font-size: 13px;
  pointer-events: none;
}

.visual-keyword-editor input {
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #fffaf4;
  color: #5a2a0b;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.visual-keyword-editor.font-small input,
.visual-comment-editor.font-small input {
  font-size: 11px;
}

.visual-keyword-editor.font-large input,
.visual-comment-editor.font-large input {
  font-size: 15px;
}

.visual-comment-editor {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 0 0 9px 20px;
  padding: 9px;
  border: 1px solid #ffd3aa;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(172, 92, 28, 0.07);
}

.row-side-controls {
  position: absolute;
  left: -22px;
  top: 18px;
  display: grid;
  gap: 6px;
  z-index: 2;
}

.font-cycle-btn,
.split-toggle-btn {
  width: 18px;
  min-height: 38px;
  padding: 0;
  border: 2px solid #ff5c63;
  border-radius: 3px;
  background: #fff;
  color: #a34d0f;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.split-toggle-btn {
  border-color: #ff9f73;
}

.is-row-field-hidden {
  display: none;
}

.visual-comment-editor input {
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 9px;
  background: #fffaf4;
  color: #4b2208;
  font-size: 13px;
  font-weight: 800;
}

.visual-remove-row {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  padding: 0;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
}

.visual-image-input {
  display: flex;
  min-height: 150px;
  padding: 20px;
  text-align: center;
}

.visual-upload-editor {
  display: grid;
  gap: 8px;
}

.visual-upload-editor .visual-input {
  pointer-events: auto;
}

.admin-upload-count-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.admin-upload-count-line input {
  width: 54px;
  min-height: 34px;
  padding: 4px 6px;
  border: 1px solid #ffc58c;
  border-radius: 10px;
  color: #ff4d00;
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.submit-ready-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.inline-admin-field {
  display: grid;
  gap: 6px;
  margin-top: 9px;
  color: #6f310a;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

.compact-link-field {
  margin: 8px 0 0;
  padding: 8px 10px;
  border: 1px dashed #ffc58c;
  border-radius: 12px;
  background: #fffaf4;
}

.compact-link-field input {
  min-height: 34px;
}

.floating-link-field {
  margin: 0 14px 14px;
  color: #5a2a0b;
}

.inline-admin-field input,
.inline-admin-field select,
.upload-copy-row input,
.kefu-panel-header input {
  min-height: 38px;
  padding: 8px 9px;
  border-radius: 10px;
  background: #fff;
  color: #4b2208;
}

.upload-copy-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.is-hidden-block {
  opacity: 0.42;
  filter: grayscale(0.35);
}

.is-hidden-block::after {
  content: "已隐藏";
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: rgba(255, 250, 244, 0.72);
  color: #a34d0f;
  font-size: 22px;
  font-weight: 900;
  pointer-events: none;
}

.floating-editor {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  margin: 14px auto 0;
  padding: 14px 12px;
  border: 1px solid #ffd9b3;
  border-radius: 18px;
  background: #fffaf4;
}

.floating-editor .kefu-panel {
  position: static;
  display: block;
  width: 100%;
  margin-top: 10px;
  box-shadow: none;
}

.floating-editor .kefu-btn {
  margin: 0 auto;
}

@media (max-width: 360px) {
  .main-title h1 {
    font-size: 22px;
  }

  .keywords-grid {
    grid-template-columns: 1fr;
  }

  .file-preview-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 980px) {
  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    align-items: flex-start;
  }
}
