/* =========================================================
   发布出租 / 号主发布中心
   按登录后截图重做：浅蓝背景、白色编号卡片、蓝色主色
   ========================================================= */

.publish-page {
  --pub-bg: #eef3f9;
  --pub-card: #ffffff;
  --pub-line: #e5ebf2;
  --pub-line-2: #d8e2ed;
  --pub-ink: #1b2a3b;
  --pub-text: #35465a;
  --pub-muted: #8796a7;
  --pub-dim: #a0adbb;
  --pub-blue: #0b4d9f;
  --pub-blue-deep: #073b7e;
  --pub-blue-soft: #f2f7fd;
  --pub-blue-line: #dce8f7;
  --pub-orange: #d39647;
  --pub-orange-bg: #fdf8f0;
  --pub-orange-line: #f2e2ca;
  --pub-red: #e45b5b;
  --pub-green: #37a06b;
  min-height: 100vh;
  color: var(--pub-text);
  background-color: var(--pub-bg);
  background-image: radial-gradient(circle at 86% 0, rgba(174, 202, 235, 0.26), transparent 30%);
}

.publish-page .container {
  width: min(1100px, calc(100% - 48px));
}

.publish-page ::selection {
  background: var(--pub-blue);
  color: #fff;
}

.pub-wrap {
  width: min(1100px, calc(100% - 48px));
  margin-inline: auto;
}

/* =========================================================
   Header
   ========================================================= */

.pub-header {
  position: relative;
  z-index: 30;
  height: 72px;
  border-bottom: 1px solid var(--pub-line);
  background: rgba(255, 255, 255, 0.96);
}

.pub-header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 42px;
}

.pub-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.pub-brand__mark {
  display: block;
  width: 36px;
  height: 36px;
  color: var(--pub-blue);
}

.pub-brand__mark svg {
  width: 100%;
  height: 100%;
}

.pub-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.pub-brand__text strong {
  color: var(--pub-ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pub-brand__text em {
  color: var(--pub-muted);
  font-family: var(--mono);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.pub-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.pub-nav a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  color: #718194;
  font-size: 13px;
  transition: color 0.2s;
}

.pub-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--pub-blue);
  transform: scaleX(0);
  transition: transform 0.22s;
}

.pub-nav a:hover,
.pub-nav a.is-active {
  color: var(--pub-blue);
}

.pub-nav a.is-active::after {
  transform: scaleX(1);
}

.pub-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-left: auto;
}

.pub-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pub-muted);
  font-size: 11px;
  transition: color 0.2s;
}

.pub-back:hover {
  color: var(--pub-blue);
}

.pub-back .icon {
  width: 12px;
  height: 12px;
}

.pub-login {
  height: 35px;
  padding: 0 16px;
  border: 1px solid var(--pub-line-2);
  border-radius: 5px;
  background: #fff;
  color: var(--pub-blue);
  font-size: 11px;
  transition: border-color 0.2s, background 0.2s;
}

.pub-login:hover {
  border-color: var(--pub-blue);
  background: var(--pub-blue-soft);
}

.publish-page .user-chip__button {
  height: 35px;
  border-color: var(--pub-line-2);
  background: #fff;
  color: var(--pub-text);
}

.publish-page .user-chip__button:hover {
  border-color: var(--pub-blue);
}

.publish-page .user-avatar {
  background: var(--pub-blue);
  color: #fff;
}

.publish-page .user-name {
  color: var(--pub-text);
}

.publish-page .user-menu {
  border-color: var(--pub-line-2);
  background: #fff;
  box-shadow: 0 12px 30px rgba(35, 61, 94, 0.14);
}

.publish-page .user-menu button {
  color: #596b7e;
}

.publish-page .user-menu button:hover {
  background: var(--pub-blue-soft);
  color: var(--pub-blue);
}

/* =========================================================
   Page shell
   ========================================================= */

.pub-main {
  padding: 18px 0 37px;
}

.pub-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 15px;
  color: #9aa8b7;
  font-size: 10px;
}

.pub-crumb a {
  transition: color 0.2s;
}

.pub-crumb a:hover {
  color: var(--pub-blue);
}

.pub-crumb span {
  color: #b8c3ce;
}

.pub-crumb strong {
  color: #76879a;
  font-weight: 400;
}

.pub-page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.pub-page-title h1 {
  margin-bottom: 2px;
  color: var(--pub-ink);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pub-page-title p {
  color: var(--pub-muted);
  font-size: 11px;
}

.pub-page-title p i {
  color: var(--pub-red);
  font-style: normal;
}

.pub-page-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 3px;
  color: #8090a2;
  font-size: 10px;
}

.pub-page-meta em {
  padding-left: 10px;
  border-left: 1px solid var(--pub-line-2);
  color: #a0adbb;
  font-style: normal;
}

.pub-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pub-green);
  box-shadow: 0 0 0 3px rgba(55, 160, 107, 0.11);
}

/* =========================================================
   Sections
   ========================================================= */

.pub-form {
  display: grid;
  gap: 14px;
}

.pub-section {
  overflow: hidden;
  border: 1px solid var(--pub-line);
  border-radius: 10px;
  background: var(--pub-card);
  box-shadow: 0 2px 8px rgba(53, 82, 119, 0.025);
}

.pub-section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 60px;
  padding: 14px 25px 12px;
  border-bottom: 1px solid var(--pub-line);
}

.pub-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 32px;
  border-radius: 6px;
  background: var(--pub-blue);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  box-shadow: 0 4px 9px rgba(11, 77, 159, 0.18);
}

.pub-section-head h2 {
  color: var(--pub-ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pub-section-en {
  display: none;
}

.pub-section-body {
  padding: 18px 25px 22px;
}

.pub-section--plain {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.pub-section--plain .pub-section-head {
  min-height: 0;
  padding: 2px 4px 12px;
  border-bottom: 0;
}

.pub-section--plain .pub-section-head h2 {
  font-size: 17px;
}

.pub-section--plain .pub-section-body {
  padding: 0;
}

.pub-subtitle {
  margin: 2px 0 12px;
  color: var(--pub-ink);
  font-size: 15px;
  font-weight: 700;
}

/* =========================================================
   Fields
   ========================================================= */

.pub-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.pub-grid:last-child {
  margin-bottom: 0;
}

.pub-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pub-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pub-grid--rank {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.1fr);
}

.pub-field {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  padding: 15px 16px;
  border: 1px solid var(--pub-line);
  border-radius: 7px;
  background: #fff;
}

.pub-field--stack {
  margin-top: 0;
  padding: 15px 16px 13px;
}

.pub-field--stack + .pub-field--stack {
  margin-top: 12px;
}

.pub-field--stack + .pub-grid {
  margin-top: 12px;
}

.pub-info + .pub-field--stack {
  margin-top: 12px;
}

.pub-grid .pub-field--stack {
  margin-top: 0;
}

.pub-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: #67788b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.pub-label > i {
  order: -2;
  color: var(--pub-red);
  font-style: normal;
}

.pub-label > .pub-ficon {
  order: -1;
}

.pub-ficon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #4f86c5;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pub-tip {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid #d5dee8;
  border-radius: 50%;
  color: #9aabbb;
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  font-weight: 400;
  cursor: help;
}

.pub-input {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  color: #33465a;
  font-size: 12px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.pub-input::placeholder {
  color: #aab6c3;
  font-size: 11px;
}

.pub-input:hover {
  border-color: #cfdae6;
}

.pub-input:focus {
  border-color: var(--pub-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 77, 159, 0.08);
}

.pub-input[type="number"] {
  appearance: textfield;
}

.pub-input[type="number"]::-webkit-inner-spin-button,
.pub-input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.pub-input-wrap {
  display: flex;
  align-items: center;
  height: 38px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.pub-input-wrap:focus-within {
  border-color: var(--pub-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 77, 159, 0.08);
}

.pub-input-wrap .pub-input {
  height: 100%;
  flex: 1;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.pub-input-wrap > span {
  flex: 0 0 auto;
  padding: 0 11px 0 5px;
  color: #8b99a8;
  font-size: 11px;
}

.pub-input-wrap > .pub-ficon {
  margin-left: 10px;
}

.pub-input-wrap .pub-input[type="time"] {
  padding-left: 6px;
}

.pub-hint {
  margin: 0;
  color: var(--pub-orange);
  font-size: 9px;
  line-height: 1.65;
}

.pub-info {
  margin-top: 1px;
  padding: 10px 12px;
  border: 1px solid var(--pub-orange-line);
  border-radius: 4px;
  background: var(--pub-orange-bg);
}

.pub-info b {
  display: block;
  margin-bottom: 3px;
  color: #bb7f36;
  font-size: 10px;
  font-weight: 500;
}

.pub-info p {
  margin: 0;
  color: #ae8b62;
  font-size: 9px;
  line-height: 1.75;
}

.pub-info p + p {
  margin-top: 5px;
}

.pub-info--full {
  margin-top: 12px;
}

.pub-grid + .pub-info--full {
  margin-top: 0;
}

.pub-info--channel p {
  margin-top: 4px;
}

.pub-static {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
}

.pub-static b {
  color: #41566e;
  font-size: 12px;
  font-weight: 600;
}

.pub-static em {
  color: #aab6c3;
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.05em;
}

/* Option buttons */

.pub-btns {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 6px;
}

.pub-opt {
  position: relative;
  display: inline-flex;
  min-width: 0;
  flex: 1 1 auto;
  cursor: pointer;
}

.pub-opt input {
  position: absolute;
  opacity: 0;
}

.pub-opt > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #e1e8f0;
  border-radius: 4px;
  background: #fff;
  color: #5f7185;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.pub-opt > span small {
  color: #8495a7;
  font-size: 9px;
}

.pub-opt:hover > span {
  border-color: #b9cbe0;
  color: #354a62;
}

.pub-opt input:checked + span {
  border-color: var(--pub-blue);
  background: #f6faff;
  color: var(--pub-blue);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--pub-blue);
}

.pub-opt input:checked + span small {
  color: var(--pub-blue);
}

.pub-opt input:focus-visible + span {
  outline: 2px solid rgba(11, 77, 159, 0.35);
  outline-offset: 2px;
}

.pub-btns--7 .pub-opt {
  flex-basis: calc((100% - 36px) / 7);
}

.pub-btns--4 .pub-opt {
  flex-basis: calc((100% - 18px) / 4);
}

.pub-btns--3 .pub-opt {
  flex-basis: calc((100% - 12px) / 3);
}

.pub-btns--rank .pub-opt > span {
  padding: 0 7px;
  font-size: 11px;
}

.pub-btns--realname .pub-opt > span {
  min-height: 49px;
  flex-direction: column;
  gap: 0;
  padding: 5px 6px;
  font-size: 11px;
}

.pub-btns--area {
  gap: 8px;
}

.pub-btns--area .pub-opt > span {
  min-height: 39px;
  font-size: 12px;
}

.pub-btns--area .icon {
  width: 14px;
  height: 14px;
}

/* Chips */

.pub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 6px;
}

.pub-chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.pub-chip input {
  position: absolute;
  opacity: 0;
}

.pub-chip > span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #e2e8ef;
  border-radius: 16px;
  background: #fff;
  color: #5d6e81;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.pub-chip:hover > span {
  border-color: #b9cbe0;
  color: #354a62;
}

.pub-chip input:checked + span {
  border-color: var(--pub-blue);
  background: #f5f9ff;
  color: var(--pub-blue);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--pub-blue);
}

.pub-chip input:focus-visible + span {
  outline: 2px solid rgba(11, 77, 159, 0.35);
  outline-offset: 2px;
}

/* Read-only field bits */

.pub-field--readonly {
  background: #fbfcfe;
}

.pub-system {
  margin-left: auto;
  color: #aab6c3;
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
}

.pub-dash {
  color: #8e9dad;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pub-money {
  color: var(--pub-ink);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.pub-system-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  color: #9aa9b8;
}

.pub-system-box .icon {
  width: 14px;
  height: 14px;
}

.pub-system-box strong {
  color: #8e9dad;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.pub-readonly {
  padding: 9px 11px;
  border-radius: 4px;
  background: #faf4e9;
  color: #8c7557;
  font-size: 11px;
}

.pub-time {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pub-time .pub-input-wrap {
  flex: 1;
}

.pub-time > em {
  color: #a3b0bd;
  font-style: normal;
}

.pub-count {
  align-self: flex-end;
  margin-top: -1px;
  color: #a9b5c1;
  font-family: var(--mono);
  font-size: 9px;
}

.pub-textarea {
  min-height: 96px;
  padding: 9px 11px;
  resize: vertical;
  line-height: 1.7;
}

.pub-optional {
  color: #9caab8;
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
}

/* Manual price settings */

.pub-price-mode {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 18px;
}

.pub-price-mode__card {
  display: inline-flex;
  width: 178px;
  min-height: 55px;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid #d8e5f2;
  border-radius: 5px;
  background: #f8fbff;
  color: #61758c;
}

.pub-price-mode__card.is-active {
  border-color: var(--pub-blue);
  background: #f5faff;
  box-shadow: inset 0 0 0 1px var(--pub-blue), 0 0 0 3px rgba(11, 77, 159, 0.05);
}

.pub-price-mode__card .icon {
  width: 18px;
  height: 18px;
  color: #c69235;
}

.pub-price-mode__card strong {
  display: block;
  color: var(--pub-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.pub-price-mode__card small {
  display: block;
  color: #9aa8b7;
  font-size: 8.5px;
  line-height: 1.35;
}

.pub-price-mode > p {
  color: #9ba8b6;
  font-size: 9px;
}

.pub-price-block {
  padding: 14px 15px 15px;
  border: 1px solid #e7edf5;
  border-radius: 6px;
  background: #fbfcfe;
}

.pub-price-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.pub-price-heading > span {
  color: #52677d;
  font-size: 11px;
  font-weight: 500;
}

.pub-price-heading > small {
  color: #a4b0bd;
  font-size: 8.5px;
}

.pub-diamond {
  margin-right: 3px;
  color: #d5a346;
  font-size: 9px;
  font-style: normal;
}

.pub-ratio-group {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.pub-ratio {
  position: relative;
  display: flex;
  cursor: pointer;
}

.pub-ratio input {
  position: absolute;
  opacity: 0;
}

.pub-ratio > span {
  display: inline-flex;
  width: 100%;
  min-height: 35px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #e0e8f1;
  border-radius: 4px;
  background: #fff;
  color: #66798d;
  font-family: var(--mono);
  font-size: 10px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.pub-ratio > span i {
  color: #c7a259;
  font-size: 8px;
  font-style: normal;
}

.pub-ratio:hover > span {
  border-color: #b9cfe5;
}

.pub-ratio input:checked + span {
  border-color: var(--pub-blue);
  background: #f3f9ff;
  color: var(--pub-blue);
  box-shadow: inset 0 0 0 1px var(--pub-blue);
  font-weight: 600;
}

.pub-ratio input:focus-visible + span {
  outline: 2px solid rgba(11, 77, 159, 0.3);
  outline-offset: 2px;
}

.pub-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.pub-price-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.pub-price-field > span {
  color: #6d7f92;
  font-size: 10px;
}

.pub-price-field .pub-input-wrap {
  height: 38px;
}

.pub-price-field .pub-input {
  font-size: 11px;
}

.pub-exchange {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  color: #7d8d9f;
  font-size: 10px;
}

.pub-exchange input {
  width: 63px;
  height: 26px;
  padding: 0 6px;
  border: 0;
  border-bottom: 1px solid #cfdbe8;
  outline: 0;
  background: transparent;
  color: var(--pub-ink);
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
}

.pub-exchange input:focus {
  border-bottom-color: var(--pub-blue);
}

.pub-price-note {
  margin-top: 12px;
  color: #9daab8;
  font-size: 9px;
  line-height: 1.7;
}

.pub-submit-note {
  margin-top: 10px;
  color: #a0adba;
  font-size: 9px;
  text-align: center;
}

/* =========================================================
   Upload / gallery
   ========================================================= */

.pub-upload {
  display: flex;
  width: 88px;
  height: 88px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px dashed #cfdae6;
  border-radius: 6px;
  background: #fbfcfe;
  color: #8a9aaa;
  font-size: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.pub-upload:hover,
.pub-upload.is-dragover {
  border-color: var(--pub-blue);
  background: var(--pub-blue-soft);
  color: var(--pub-blue);
}

.pub-upload__plus {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #d8e1eb;
  border-radius: 50%;
  color: #96a6b6;
}

.pub-upload__plus .icon {
  width: 12px;
  height: 12px;
}

.pub-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pub-shot {
  position: relative;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border: 1px solid var(--pub-line);
  border-radius: 5px;
  background: #f7f9fc;
}

.pub-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-shot button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(25, 43, 64, 0.68);
  color: #fff;
}

.pub-shot button .icon {
  width: 9px;
  height: 9px;
}

/* =========================================================
   Bottom submit
   ========================================================= */

.pub-submit-footer {
  padding: 4px 2px 8px;
}

.pub-agree {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #718194;
  font-size: 10px;
  line-height: 1.7;
  cursor: pointer;
}

.pub-agree input {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin: 0;
  border: 1px solid #c7d3e0;
  border-radius: 2px;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.pub-agree input:checked {
  border-color: var(--pub-blue);
  background: var(--pub-blue);
  box-shadow: inset 0 0 0 2px #fff;
}

.pub-agree a {
  color: var(--pub-blue);
  font-weight: 500;
}

.pub-submit-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 20px;
}

.pub-reset,
.pub-publish {
  width: 178px;
  height: 42px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, filter 0.2s;
}

.pub-reset {
  border: 1px solid #dfe6ee;
  background: #fff;
  color: #5e7085;
}

.pub-reset:hover {
  border-color: #b8c8d9;
  color: #33465a;
}

.pub-publish {
  border: 1px solid var(--pub-blue);
  background: var(--pub-blue);
  color: #fff;
  box-shadow: 0 5px 12px rgba(11, 77, 159, 0.16);
}

.pub-publish:hover {
  background: var(--pub-blue-deep);
}

.pub-publish[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* =========================================================
   Footer
   ========================================================= */

.pub-footer {
  padding: 18px 0 22px;
  border-top: 1px solid var(--pub-line);
  background: rgba(255, 255, 255, 0.45);
  color: #9aa8b7;
  font-size: 9px;
}

.pub-footer .pub-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pub-footer > div > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pub-footer a,
.pub-footer button {
  color: #8393a5;
  font-size: 9px;
  transition: color 0.2s;
}

.pub-footer a:hover,
.pub-footer button:hover {
  color: var(--pub-blue);
}

/* =========================================================
   Login gate / success
   ========================================================= */

.publish-overlay {
  position: fixed;
  inset: 0;
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s var(--ease), visibility 0.24s;
}

.publish-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.publish-overlay__mask {
  position: absolute;
  inset: 0;
  background: rgba(18, 34, 53, 0.34);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.publish-gate-card {
  position: relative;
  z-index: 1;
  width: min(364px, 100%);
  padding: 28px 27px 23px;
  border: 1px solid #e3eaf2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(30, 50, 75, 0.22);
  text-align: center;
  transform: translateY(10px) scale(0.99);
  transition: transform 0.24s var(--ease);
}

.publish-overlay.is-open .publish-gate-card {
  transform: translateY(0) scale(1);
}

.publish-gate-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 13px;
  border: 1px solid #d7e4f2;
  border-radius: 50%;
  background: var(--pub-blue-soft);
  color: var(--pub-blue);
}

.publish-gate-icon .icon {
  width: 19px;
  height: 19px;
}

.publish-gate-card h2 {
  margin-bottom: 4px;
  color: var(--pub-ink);
  font-size: 22px;
  font-weight: 800;
}

.publish-gate-card > p {
  margin-bottom: 19px;
  color: var(--pub-muted);
  font-size: 10px;
}

.publish-gate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.publish-gate-actions button,
.publish-gate-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: 4px;
  font-size: 11px;
  transition: 0.2s;
}

.publish-gate-actions button:first-child {
  border: 1px solid #dbe3ec;
  background: #fff;
  color: #718194;
}

.publish-gate-actions button:first-child:hover {
  border-color: #b9cbe0;
  color: #3d5269;
}

.publish-gate-primary,
.publish-gate-actions button:last-child {
  border: 1px solid var(--pub-blue);
  background: var(--pub-blue);
  color: #fff;
}

.publish-gate-primary:hover,
.publish-gate-actions button:last-child:hover {
  background: var(--pub-blue-deep);
}

.publish-gate-icon--success {
  border-color: #d3ebdf;
  background: #f0faf5;
  color: var(--pub-green);
}

.publish-audit-no {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 9px 10px;
  border: 1px solid var(--pub-line);
  border-radius: 4px;
  background: #f8fafc;
  color: #8b9aaa;
  font-size: 9px;
}

.publish-audit-no b {
  color: var(--pub-blue);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
}

/* =========================================================
   Login modal accent on publish page
   ========================================================= */

.publish-page .login-aside {
  border-color: var(--pub-line);
  background: linear-gradient(150deg, #f3f8fe, #eef4fb 65%);
}

.publish-page .login-aside::before {
  border-color: rgba(11, 77, 159, 0.12);
  box-shadow: 0 0 0 40px rgba(11, 77, 159, 0.025), 0 0 0 80px rgba(11, 77, 159, 0.015);
}

.publish-page .login-aside h2 {
  color: var(--pub-ink);
}

.publish-page .login-aside > p {
  color: #8796a7;
}

.publish-page .login-aside li {
  color: #5f7287;
}

.publish-page .login-aside li .icon {
  color: var(--pub-blue);
}

.publish-page .login-aside__mark {
  color: rgba(11, 77, 159, 0.055);
}

.publish-page .login-main h2 {
  color: var(--pub-ink);
}

.publish-page .login-main__kicker {
  color: var(--pub-blue);
}

.publish-page .login-main__sub {
  color: #8796a7;
}

.publish-page .form-field > span:first-child {
  color: #5f7287;
}

.publish-page .input-wrap {
  border-color: #dfe7ef;
  background: #f8fafc;
}

.publish-page .input-wrap:focus-within {
  border-color: var(--pub-blue);
  box-shadow: 0 0 0 3px rgba(11, 77, 159, 0.08);
}

.publish-page .input-prefix {
  border-color: #e2e8f0;
  color: #8a99a8;
}

.publish-page .input-wrap input {
  color: #33465a;
}

.publish-page .input-wrap input::placeholder {
  color: #aab6c3;
}

.publish-page .input-wrap--code button {
  border-color: #d6e2ef;
  color: var(--pub-blue);
}

.publish-page .agree-line {
  color: #8796a7;
}

.publish-page .agree-line a {
  color: var(--pub-blue);
}

.publish-page .login-main .btn--gold {
  border-color: var(--pub-blue);
  background: var(--pub-blue);
  color: #fff;
  box-shadow: 0 6px 14px rgba(11, 77, 159, 0.15);
}

.publish-page .login-main .btn--gold:hover {
  background: var(--pub-blue-deep);
}

.publish-page .modal__close {
  border-color: var(--pub-line-2);
  background: #fff;
  color: #8b9aaa;
}

.publish-page .modal__close:hover {
  border-color: var(--pub-blue);
  color: var(--pub-blue);
}

.publish-page .form-error {
  color: var(--pub-red);
}

.publish-page .login-hint {
  color: #a0adbb;
}

.publish-page .login-hint .icon {
  color: var(--pub-blue);
}

.publish-page .toast {
  border-color: var(--pub-line);
  background: #fff;
  color: #42556a;
  box-shadow: 0 12px 30px rgba(31, 51, 76, 0.14);
}

.publish-page .toast__icon {
  background: #fff0f0;
  color: var(--pub-red);
}

.publish-page .toast--success .toast__icon {
  background: #effaf4;
  color: var(--pub-green);
}

.publish-page .support-fab {
  display: none;
}

.publish-page .modal__mask {
  background: rgba(18, 34, 53, 0.36);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
  .publish-page .container,
  .pub-wrap {
    width: calc(100% - 36px);
  }

  .pub-nav {
    gap: 18px;
  }

  .pub-header__inner {
    gap: 25px;
  }

  .pub-grid--rank {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

  .pub-section-body {
    padding: 16px 18px 19px;
  }

  .pub-section-head {
    padding: 13px 19px 11px;
  }
}

@media (max-width: 820px) {
  .pub-nav {
    display: none;
  }

  .pub-header__inner {
    justify-content: space-between;
  }

  .pub-grid--2,
  .pub-grid--3,
  .pub-grid--rank {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pub-field--stack {
    grid-column: 1 / -1;
  }

  .pub-page-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .pub-page-meta {
    padding-top: 8px;
    border-top: 1px solid var(--pub-line);
    width: 100%;
  }
}

@media (max-width: 640px) {
  .publish-page .container,
  .pub-wrap {
    width: calc(100% - 28px);
  }

  .pub-header {
    height: 62px;
  }

  .pub-brand__mark {
    width: 32px;
    height: 32px;
  }

  .pub-brand__text strong {
    font-size: 16px;
  }

  .pub-brand__text em {
    display: none;
  }

  .pub-back {
    display: none;
  }

  .pub-login {
    height: 32px;
    padding: 0 10px;
    font-size: 10px;
  }

  .pub-main {
    padding-top: 12px;
    padding-bottom: 26px;
  }

  .pub-page-title h1 {
    font-size: 23px;
  }

  .pub-page-title p {
    font-size: 10px;
  }

  .pub-section-head {
    padding: 12px 14px 10px;
  }

  .pub-number {
    width: 29px;
    height: 28px;
    font-size: 11px;
  }

  .pub-section-head h2 {
    font-size: 17px;
  }

  .pub-section-en {
    display: none;
  }

  .pub-section-body {
    padding: 12px 13px 15px;
  }

  .pub-grid--2,
  .pub-grid--3,
  .pub-grid--rank {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pub-field {
    padding: 12px 12px 11px;
  }

  .pub-field--stack {
    padding: 12px;
  }

  .pub-label {
    font-size: 11px;
  }

  .pub-btns--7 .pub-opt {
    flex-basis: calc((100% - 24px) / 4);
  }

  .pub-btns--4 .pub-opt {
    flex-basis: calc((100% - 12px) / 3);
  }

  .pub-btns--3 .pub-opt {
    flex-basis: calc((100% - 6px) / 2);
  }

  .pub-opt > span {
    padding: 0 7px;
    font-size: 10px;
  }

  .pub-btns--realname .pub-opt > span {
    min-height: 43px;
    font-size: 10px;
  }

  .pub-time {
    flex-wrap: wrap;
  }

  .pub-time .pub-input-wrap {
    flex-basis: calc(50% - 10px);
  }

  .pub-submit-actions {
    gap: 10px;
    margin-top: 16px;
  }

  .pub-reset,
  .pub-publish {
    width: auto;
    flex: 1;
    height: 40px;
  }

  .pub-agree {
    align-items: flex-start;
    font-size: 9px;
  }

  .pub-footer .pub-wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .publish-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .publish-gate-card {
    width: 100%;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 12px 12px 0 0;
    padding: 26px 22px 21px;
  }

  .publish-page .login-box {
    display: block;
    max-height: 92vh;
    overflow-y: auto;
  }

  .publish-page .login-aside {
    display: none;
  }

  .publish-page .login-main {
    padding: 30px 21px 23px;
  }
}

@media (max-width: 420px) {
  .pub-btns--7 .pub-opt {
    flex-basis: calc((100% - 12px) / 3);
  }

  .pub-btns--4 .pub-opt {
    flex-basis: calc((100% - 6px) / 2);
  }

  .pub-btns--3 .pub-opt {
    flex-basis: 1;
  }

  .pub-page-meta em {
    display: none;
  }

  .pub-chip > span {
    padding: 0 9px;
    font-size: 9px;
  }

  .pub-upload {
    width: 76px;
    height: 76px;
  }

  .pub-shot {
    width: 76px;
    height: 76px;
  }

  .pub-section-head {
    gap: 7px;
  }

  .pub-section-head h2 {
    font-size: 16px;
  }
}

@media (max-width: 760px) {
  .pub-price-mode {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .pub-price-mode__card {
    width: 100%;
  }

  .pub-price-grid {
    grid-template-columns: 1fr;
  }

  .pub-ratio-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pub-price-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}
