.publish-page {
  background: #f5f7fa;
}

.publish-banner {
  background: #337ab7;
  color: #fff;
  padding: 28px 0;
}

.publish-banner h1 {
  margin: 0 0 8px;
  font-size: 28px;
  color: #fff;
}

.publish-banner p,
.publish-banner a {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.publish-main {
  padding: 36px 0 80px;
}

.publish-stepper {
  display: flex;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto 32px;
}

.publish-step {
  flex: 1;
  text-align: center;
  position: relative;
  color: #999;
  font-size: 14px;
}

.publish-step:not(:last-child):after {
  content: "";
  position: absolute;
  top: 16px;
  left: 58%;
  width: 84%;
  height: 2px;
  background: #dcdfe6;
}

.publish-step.is-done:not(:last-child):after,
.publish-step.is-active:not(:last-child):after {
  background: #337ab7;
}

.publish-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #dcdfe6;
  color: #fff;
  font-weight: 600;
}

.publish-step.is-active {
  color: #337ab7;
}

.publish-step.is-active .publish-step-index {
  background: #337ab7;
}

.publish-step.is-done {
  color: #2bb673;
}

.publish-step.is-done .publish-step-index {
  background: #2bb673;
}

.publish-card {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 32px 36px 28px;
}

.publish-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.publish-hint {
  margin: 0 0 24px;
  color: #909399;
  font-size: 13px;
}

.publish-field {
  margin-bottom: 22px;
}

.publish-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.publish-field .required {
  color: #f56c6c;
  margin-left: 2px;
}

.publish-field input,
.publish-field select,
.publish-field textarea {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.publish-field textarea {
  height: 140px;
  padding: 10px 12px;
  resize: vertical;
}

.publish-field input:focus,
.publish-field select:focus,
.publish-field textarea:focus {
  border-color: #337ab7;
}

.publish-field .field-tip,
.publish-error {
  margin: 6px 0 0;
  font-size: 12px;
  color: #909399;
}

.publish-error {
  color: #f56c6c;
}

.cover-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  min-height: 180px;
  border: 1px dashed #c0c4cc;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
  cursor: pointer;
}

.cover-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  height: 100%;
}

.cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  color: #909399;
}

.cover-preview {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}

.publish-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.btn-publish {
  min-width: 112px;
  height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
}

.btn-publish-primary {
  background: #337ab7;
  color: #fff;
}

.btn-publish-primary:disabled {
  background: #9ec4e4;
  cursor: not-allowed;
}

.btn-publish-ghost {
  background: #eef1f6;
  color: #606266;
}

.preview-section {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef1f6;
}

.preview-section:last-child {
  border-bottom: none;
}

.preview-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.preview-row {
  display: flex;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.7;
}

.preview-label {
  width: 96px;
  flex-shrink: 0;
  color: #909399;
}

.preview-value {
  color: #333;
  word-break: break-all;
}

.preview-cover {
  max-width: 280px;
  max-height: 160px;
  border-radius: 6px;
  object-fit: cover;
}

.publish-agree {
  margin: 8px 0 20px;
  font-size: 14px;
  color: #606266;
}

.publish-agree a {
  color: #337ab7;
}

.publish-success {
  text-align: center;
  padding: 48px 20px;
}

.publish-success h2 {
  margin: 0 0 12px;
  color: #2bb673;
}

.publish-panel[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .publish-card {
    padding: 24px 16px;
  }

  .publish-step:not(:last-child):after {
    display: none;
  }

  .publish-stepper {
    gap: 8px;
  }
}
