.llx-qzone-compose-page {
  min-height: 100%;
  background: #f3f4f7;
}

.llx-qzone-compose-page .llx-qzone-topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  grid-template-columns: 60px minmax(0, 1fr) 96px;
  min-height: 56px;
  padding: 0 14px;
  background: #f3f4f7;
}

.llx-qzone-compose-page .llx-qzone-topbar__back {
  justify-self: start;
  width: auto;
  min-width: 58px;
  height: 34px;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  color: #222222;
  font-size: 15px;
  font-weight: 700;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.llx-qzone-compose-page .llx-qzone-topbar__title-group strong {
  font-size: 18px;
  line-height: 1.2;
  color: #111111;
}

.llx-qzone-compose-page .llx-qzone-topbar__title-group span {
  display: none;
}

.qzone-compose-header-right {
  width: 96px;
  min-width: 96px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.qzone-compose-user {
  display: none;
}

.qzone-compose-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  background: #e5e7eb;
}

.qzone-compose-user-name {
  display: none;
}

.qzone-compose-submit {
  min-width: 0;
  border: none;
  padding: 0;
  background: transparent;
  color: #4aa3f0;
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
}

.qzone-compose-submit:disabled {
  color: #b6c7d8;
  cursor: default;
}

.qzone-compose-content {
  padding: 14px 12px 22px;
  background: #f3f4f7;
}

.qzone-compose-editor-card,
.qzone-compose-settings-card {
  border-radius: 20px;
  background: #ffffff;
  box-shadow: none;
}

.qzone-compose-editor-card {
  padding: 18px 16px 16px;
}

.qzone-compose-textarea {
  width: 100%;
  min-height: 190px;
  border: none;
  resize: none;
  background: transparent;
  color: #111111;
  font-size: 17px;
  line-height: 1.7;
  padding: 0;
  outline: none;
}

.qzone-compose-textarea::placeholder {
  color: #c0c4cc;
}

.qzone-compose-extra-preview {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qzone-compose-extra-preview.hidden {
  display: none;
}

.qzone-compose-extra-chip {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  white-space: nowrap;
}

.qzone-compose-extra-chip.is-mention {
  background: #eef6ff;
  color: #4a72d8;
}

.qzone-compose-extra-chip.is-tag {
  background: #fff4e7;
  color: #d97706;
}

.qzone-compose-extra-chip.is-location {
  background: #eefcf3;
  color: #059669;
}

.qzone-compose-upload-wrap {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qzone-compose-gallery {
  display: contents;
}

.qzone-compose-image-item,
.qzone-compose-upload-tile {
  width: 108px;
  height: 108px;
  border-radius: 16px;
  overflow: hidden;
}

.qzone-compose-image-item {
  position: relative;
  background: #f3f4f6;
}

.qzone-compose-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.qzone-compose-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.7);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}

.qzone-compose-upload-tile {
  border: none;
  background: #f5f5f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #8f949c;
  padding: 0;
}

.qzone-compose-upload-tile.hidden {
  display: none;
}

.qzone-compose-upload-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: block;
  background-color: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='none'><rect x='6.25' y='8.25' width='24.5' height='19.5' rx='5.5' stroke='%239ca3af' stroke-width='2.3'/><circle cx='13.6' cy='15.2' r='2.2' fill='%239ca3af'/><path d='M11.2 24.2 17 18.4c.7-.7 1.8-.7 2.5 0l2.1 2.1c.7.7 1.8.7 2.5 0l1.8-1.8c.7-.7 1.8-.7 2.5 0l2 2' stroke='%239ca3af' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 40px 40px;
}

.qzone-compose-upload-icon::after {
  content: "+";
  position: absolute;
  right: -6px;
  top: -6px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #4aa3f0;
  color: #ffffff;
  font-size: 14px;
  line-height: 18px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 2px 8px rgba(74, 163, 240, 0.28);
}

.qzone-compose-upload-text {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  color: #7b818a;
}

.qzone-compose-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.qzone-compose-tag {
  min-height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: #f5f5f6;
  color: #7a7f87;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  white-space: nowrap;
}

.qzone-compose-tag.is-ai {
  margin-left: auto;
  padding: 0 12px;
  color: #b68af4;
}

.qzone-compose-tag:disabled {
  opacity: 0.7;
}

.qzone-compose-settings-card {
  margin-top: 14px;
  overflow: hidden;
}

.qzone-compose-setting-row {
  width: 100%;
  min-height: 72px;
  padding: 0 18px;
  border: none;
  border-bottom: 1px solid #f0f1f3;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.qzone-compose-setting-row:last-child {
  border-bottom: none;
}

.qzone-compose-setting-left,
.qzone-compose-setting-right {
  display: flex;
  align-items: center;
}

.qzone-compose-setting-left {
  gap: 14px;
  color: #111111;
  font-size: 16px;
  font-weight: 800;
}

.qzone-compose-setting-right {
  gap: 12px;
}

.qzone-compose-setting-right strong {
  color: #8b9097;
  font-size: 14px;
  font-weight: 600;
  max-width: 180px;
  text-align: right;
  line-height: 1.5;
}

.qzone-compose-setting-icon,
.qzone-compose-setting-arrow {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.qzone-compose-setting-icon {
  width: 28px;
  height: 28px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 28px 28px;
}

.qzone-compose-setting-icon-eye {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none'><path d='M3.3 14c2.5-4.2 6.1-6.3 10.7-6.3 4.6 0 8.2 2.1 10.7 6.3-2.5 4.2-6.1 6.3-10.7 6.3-4.6 0-8.2-2.1-10.7-6.3Z' stroke='%23111111' stroke-width='2.4' stroke-linejoin='round'/><circle cx='14' cy='14' r='3.2' stroke='%23111111' stroke-width='2.4'/></svg>");
}

.qzone-compose-setting-icon-gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qzone-compose-setting-icon-gear::before {
  content: "⚙";
  font-size: 24px;
  line-height: 1;
  color: #111111;
}

.qzone-compose-setting-arrow {
  width: 10px;
  height: 10px;
  border-top: 2px solid #b2b5bb;
  border-right: 2px solid #b2b5bb;
  transform: rotate(45deg);
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  background: rgba(17, 24, 39, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-mask.hidden {
  display: none !important;
}

.modal-card {
  width: min(100%, 420px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.18),
    0 8px 24px rgba(15, 23, 42, 0.08);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
}

.modal-head strong {
  font-size: 22px;
  line-height: 1.2;
  color: #111111;
  font-weight: 800;
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  padding: 0;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.preview-section,
.weixin-modal-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-section {
  padding: 0 18px 18px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
  font-weight: 700;
}

.builder-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 0 14px;
  background: #f9fafb;
  color: #111111;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  box-sizing: border-box;
}

textarea.builder-input {
  min-height: 108px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: none;
}

.builder-input:focus {
  border-color: #93c5fd;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(74, 163, 240, 0.12);
}

.builder-input::placeholder {
  color: #9ca3af;
}

.weixin-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.builder-btn {
  min-width: 96px;
  min-height: 42px;
  border: none;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.soft-btn {
  background: #f3f4f6;
  color: #374151;
}

.primary-btn {
  background: linear-gradient(180deg, #5db3ff, #409eff);
  color: #ffffff;
}

.pyq-cover-modal-card {
  width: min(100%, 420px);
}

.pyq-cover-preview-box {
  overflow: hidden;
  border-radius: 18px;
  background: #f3f4f6;
  min-height: 160px;
}

.pyq-cover-preview-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.qzone-compose-modal-card {
  width: min(100%, 420px);
}

.qzone-compose-url-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.qzone-compose-modal-actions {
  margin-top: 12px;
}

.qzone-compose-modal-actions-end {
  display: flex;
  justify-content: flex-end;
}

.qzone-compose-option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qzone-compose-option-item,
.qzone-compose-check-item {
  width: 100%;
  border: none;
  border-radius: 16px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.qzone-compose-option-item {
  padding: 14px 16px;
}

.qzone-compose-option-item.is-selected {
  background: #eef6ff;
}

.qzone-compose-option-text,
.qzone-compose-check-item-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qzone-compose-option-text strong,
.qzone-compose-check-item-left strong {
  font-size: 15px;
  color: #111827;
  font-weight: 800;
}

.qzone-compose-option-text span,
.qzone-compose-check-item-left span {
  font-size: 12px;
  line-height: 1.5;
  color: #8b9097;
}

.qzone-compose-option-marker,
.qzone-compose-check-marker {
  min-width: 20px;
  text-align: center;
  color: #4aa3f0;
  font-size: 18px;
  font-weight: 800;
}

.qzone-compose-subtitle {
  margin-top: 2px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
}

.qzone-compose-check-item {
  padding: 13px 16px;
}

.qzone-compose-empty {
  border-radius: 14px;
  background: #f8fafc;
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #8b9097;
}

@media (max-width: 480px) {
  .modal-mask {
    padding: 16px 10px;
  }

  .modal-card,
  .pyq-cover-modal-card,
  .qzone-compose-modal-card {
    width: min(100%, 100%);
    border-radius: 22px;
  }

  .modal-head {
    padding: 16px 16px 10px;
  }

  .modal-head strong {
    font-size: 18px;
  }

  .modal-close-btn {
    width: 32px;
    height: 32px;
    font-size: 22px;
  }

  .preview-section {
    padding: 0 16px 16px;
  }

  .builder-input {
    min-height: 42px;
    border-radius: 14px;
    padding: 0 12px;
    font-size: 13px;
  }

  textarea.builder-input {
    min-height: 96px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .builder-btn {
    min-width: 88px;
    min-height: 40px;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 13px;
  }

  .pyq-cover-preview-box {
    min-height: 148px;
  }

  .pyq-cover-preview-box img {
    height: 164px;
  }

  .llx-qzone-compose-page .llx-qzone-topbar {
    grid-template-columns: 52px minmax(0, 1fr) 72px;
    min-height: 54px;
    padding: 0 12px;
  }

  .llx-qzone-compose-page .llx-qzone-topbar__back {
    min-width: 52px;
    height: 32px;
    font-size: 14px;
  }

  .qzone-compose-header-right {
    width: 72px;
    min-width: 72px;
  }

  .qzone-compose-content {
    padding: 12px 10px 18px;
  }

  .qzone-compose-editor-card {
    padding: 16px 14px 14px;
    border-radius: 18px;
  }

  .qzone-compose-textarea {
    min-height: 165px;
    font-size: 16px;
  }

  .qzone-compose-extra-preview {
    gap: 6px;
  }

  .qzone-compose-extra-chip {
    min-height: 28px;
    padding: 0 10px;
    font-size: 11px;
  }

  .qzone-compose-image-item,
  .qzone-compose-upload-tile {
    width: 98px;
    height: 98px;
    border-radius: 14px;
  }

  .qzone-compose-upload-icon {
    width: 36px;
    height: 36px;
    background-size: 36px 36px;
  }

  .qzone-compose-upload-icon::after {
    right: -5px;
    top: -5px;
    width: 16px;
    height: 16px;
    font-size: 12px;
    line-height: 16px;
  }

  .qzone-compose-tags {
    gap: 6px;
  }

  .qzone-compose-tag {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .qzone-compose-tag.is-ai {
    min-height: 34px;
    padding: 0 10px;
  }

  .qzone-compose-setting-row {
    min-height: 66px;
    padding: 0 16px;
  }

  .qzone-compose-setting-left {
    gap: 12px;
    font-size: 15px;
  }

  .qzone-compose-setting-right strong {
    max-width: 150px;
    font-size: 13px;
  }

  .qzone-compose-url-actions {
    gap: 6px;
    margin-top: 10px;
  }

  .qzone-compose-option-item,
  .qzone-compose-check-item {
    padding-left: 14px;
    padding-right: 14px;
    border-radius: 14px;
  }

  .qzone-compose-option-text strong,
  .qzone-compose-check-item-left strong {
    font-size: 14px;
  }

  .qzone-compose-option-text span,
  .qzone-compose-check-item-left span,
  .qzone-compose-empty {
    font-size: 12px;
  }
}
