@charset "UTF-8";

.publish-page {
  margin-top: 16px;
  margin-bottom: 30px;
}

.publish-agentqq {
  margin-top: -8px;
  padding: 18px 22px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 246, 0.98) 100%);
  border: 1px solid rgba(255, 222, 206, 0.9);
  box-shadow: 0 18px 36px rgba(60, 23, 8, 0.12);
  text-align: left;
}

.publish-agentqq .publish-agent-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #f1ddd2;
}

.publish-agentqq .publish-agent-title span {
  color: #c6281f;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
}

.publish-agentqq .publish-agent-title em {
  color: #9d6f56;
  font-size: 13px;
  line-height: 1.6;
  font-style: normal;
}

.publish-agentqq ul {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: none;
}

.publish-agentqq li {
  display: block;
  min-width: 0;
  height: auto;
  padding: 0;
  box-sizing: border-box;
  line-height: normal;
  border: none;
  list-style: none;
}

.publish-agentqq li a,
.publish-agentqq .publish-agent-placeholder {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 68px;
  padding: 8px 10px;
  box-sizing: border-box;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff7f3 0%, #fff1e9 100%);
  border: 1px solid #f6ddd0;
  color: #60291f;
  text-align: left;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.publish-agentqq li a {
  font-size: 16px;
  font-weight: 800;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.publish-agentqq li a:hover {
  background: linear-gradient(180deg, #fff0e8 0%, #ffe5d7 100%);
  box-shadow: 0 10px 22px rgba(205, 86, 32, 0.14);
  transform: translateY(-1px);
}

.publish-agentqq .publish-agent-placeholder {
  cursor: default;
  align-items: center;
  justify-content: center;
}

.publish-agentqq li img {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
  vertical-align: middle;
  margin-top: 2px;
  margin-left: 0;
}

.publish-agentqq li span {
  display: block;
  max-width: 100%;
  line-height: 1.3;
}

.publish-agentqq .publish-agent-meta {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  text-align: left;
}

.publish-agentqq .publish-agent-name {
  display: block;
  max-width: 100%;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.publish-agentqq .publish-agent-qq {
  display: block;
  max-width: 100%;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: #8a4a33;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.publish-agentqq .publish-agent-placeholder-item .publish-agent-meta {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.publish-agentqq .publish-agent-placeholder-item .publish-agent-name {
  font-size: 16px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.35;
}

.publish-intro-bar {
  padding: 10px 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff5ea 0%, #fff0de 100%);
  border: 1px solid #f2d2b4;
  color: #ab3518;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 700;
}

.publish-explain-panel,
.publish-calc-panel {
  margin-bottom: 16px;
  padding: 16px 18px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #ece1d7;
  box-shadow: 0 10px 24px rgba(84, 49, 30, 0.07);
}

.publish-section-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.publish-section-title span {
  color: #c6281f;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.publish-section-title em {
  color: #8e7869;
  font-size: 12px;
  line-height: 1.5;
}

.publish-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.publish-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.publish-faq-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f9fbff 0%, #f5f8ff 100%);
  border: 1px solid #dfe8f7;
}

.publish-faq-q {
  display: inline-block;
  padding: 5px 12px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef5ff 0%, #dfeaff 100%);
  color: #284d86;
  font-size: 13px;
  font-weight: 900;
}

.publish-faq-a {
  color: #2f2f2f;
  font-size: 13px;
  line-height: 1.75;
}

.publish-explain-tips {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff7e9 0%, #fff0d2 100%);
  border: 1px solid #f3d59c;
  color: #974e06;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 700;
}

.publish-calc-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.publish-total-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #d93c39 0%, #c81f1a 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(196, 38, 28, 0.18);
}

.publish-total-label {
  font-size: 13px;
  font-weight: 700;
}

#publishGrandTotal {
  min-width: 72px;
  padding: 5px 12px;
  border-radius: 8px;
  background: #fff;
  color: #b81c16;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.publish-total-unit {
  font-size: 14px;
  font-weight: 700;
}

.publish-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.publish-price-table.table {
  width: 100%;
  background: #fff;
  border-top: 2px solid #e13b3b;
  border-left: 1px solid #dddddd;
  box-shadow: none;
}

.publish-price-table td {
  text-align: center;
  line-height: 1.5;
  padding: 9px 8px;
  border: 1px solid #dddddd;
  border-top: none;
  border-left: none;
  color: #333;
  background: #fff;
}

.publish-price-table .th td {
  padding: 12px 8px;
  background: #fff7f7;
  color: #8e1c16;
  font-size: 13px;
  font-weight: 800;
}

.publish-price-table .td td {
  font-size: 12px;
  vertical-align: middle;
}

.publish-price-table .td:hover td,
.publish-price-table tr:hover td {
  background: #fff;
  box-shadow: none;
  transform: none;
}

.publish-site-name {
  width: 120px;
  text-align: left;
  padding-left: 12px;
}

.publish-site-text,
.publish-sync-text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.publish-site-text {
  font-weight: 700;
}

.publish-sync-text {
  max-width: 200px;
}

.publish-price-num {
  color: #222;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.publish-inline-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 5px;
  min-height: 28px;
  white-space: nowrap;
}

.publish-inline-edit .publish-price-num:empty {
  display: none;
}

.publish-inline-edit .publish-count-input {
  margin-left: 2px;
}

.publish-unit {
  color: #222;
  font-size: 12px;
  white-space: nowrap;
}

.publish-count-input {
  width: 50px;
  height: 26px;
  padding: 0 4px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  text-align: center;
  font-size: 13px;
  color: #222;
  outline: none;
  background: #fff;
}

.publish-count-input:focus {
  border-color: #e13b3b;
  box-shadow: 0 0 0 2px rgba(225, 59, 59, 0.1);
}

.publish-row-total {
  color: #cf231c;
  font-size: 15px;
  font-weight: 900;
}

.publish-price-table .href .orgA {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  background: #e13b3b;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.publish-price-table td:first-child {
  width: 120px;
}

.publish-price-table td:nth-child(2) {
  width: 180px;
}

.publish-price-table td:nth-child(3),
.publish-price-table td:nth-child(4),
.publish-price-table td:nth-child(5),
.publish-price-table td:nth-child(6),
.publish-price-table td:nth-child(7) {
  width: 116px;
}

.publish-price-table td:nth-child(8) {
  width: 110px;
}

.publish-price-table td:last-child {
  width: 92px;
}

@media (max-width: 1200px) {
  .publish-agentqq ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .publish-faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .publish-agentqq {
    padding: 14px;
  }

  .publish-agentqq .publish-agent-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .publish-agentqq .publish-agent-title span {
    font-size: 20px;
  }

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

  .publish-agentqq li {
    width: auto;
  }

  .publish-explain-panel,
  .publish-calc-panel {
    padding: 14px;
  }

  .publish-section-title span {
    font-size: 19px;
  }

  .publish-calc-head {
    align-items: flex-start;
  }

  .publish-total-box {
    width: 100%;
  }

  .publish-site-name {
    padding-left: 8px;
  }

  .publish-price-table td {
    padding: 8px 6px;
  }
}
