/* 角色自助改名页面样式（延续全站石器阳光清透风格，无 inline style） */
.rename-page {
  min-height: 100vh;
}

.rename-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 18px 64px;
  position: relative;
  z-index: 2;
}

.rename-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(56, 134, 196, 0.18);
  box-shadow: 0 14px 36px rgba(24, 72, 118, 0.1);
  margin-bottom: 18px;
}

.rename-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #2b7bb9;
}

.rename-hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  color: #1a3550;
}

.rename-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4b6580;
  max-width: 620px;
}

.rename-price-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 14px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff6df, #ffebc2);
  border: 1px solid #f0c674;
  color: #7a4b00;
  min-width: 210px;
}

.rename-price-badge span {
  font-size: 12px;
  font-weight: 600;
}

.rename-price-badge strong {
  font-size: 24px;
  color: #b45309;
  margin: 2px 0;
}

.rename-price-badge small {
  font-size: 12px;
  color: #8b5b10;
}

.rename-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

@media (max-width: 860px) {
  .rename-grid {
    grid-template-columns: 1fr;
  }
  .rename-price-badge {
    align-items: flex-start;
    width: 100%;
  }
}

.rename-card,
.rename-rules,
.history-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(56, 134, 196, 0.18);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 12px 30px rgba(24, 72, 118, 0.08);
}

.account-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f2f8fd;
  border: 1px solid #d7e8f7;
  margin-bottom: 18px;
}

.account-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #20405e;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-pill,
.vip-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.is-offline {
  background: #e3f7eb;
  color: #126b3a;
}

.status-pill.is-online {
  background: #fee7e7;
  color: #b42318;
}

.vip-pill {
  background: #fff3d6;
  color: #9a5800;
}

.section-heading {
  margin: 0 0 12px;
  font-size: 16px;
  color: #193855;
}

.char-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.char-item {
  border: 2px solid #d9e7f3;
  border-radius: 16px;
  padding: 14px 16px;
  background: #fbfdff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.char-item.is-selectable {
  cursor: pointer;
}

.char-item.is-selectable:hover {
  border-color: #4da3e2;
  transform: translateY(-1px);
}

.char-item.is-selected {
  border-color: #1f80cc;
  background: #eef7ff;
  box-shadow: 0 0 0 3px rgba(31, 128, 204, 0.15);
}

.char-item.is-blocked {
  border-color: #f2d5d5;
  background: #fffafa;
}

.char-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.char-name {
  font-size: 17px;
  font-weight: 800;
  color: #16324d;
}

.char-slot {
  font-size: 12px;
  color: #5b7691;
  background: #e8f1f8;
  padding: 2px 8px;
  border-radius: 999px;
}

.char-meta {
  font-size: 13px;
  color: #4f6b85;
}

.char-status-ok {
  font-size: 12px;
  font-weight: 700;
  color: #126b3a;
}

.char-blockers {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.55;
  color: #b42318;
}

.rename-form {
  border-top: 1px dashed #d3e3f0;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.selected-banner {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eff7ff;
  color: #1a4770;
  font-size: 14px;
}

.rename-tip {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #59728b;
}

.rename-rules h2 {
  margin: 0 0 12px;
  font-size: 17px;
  color: #193855;
}

.rule-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: #3d5670;
}

.history-card {
  margin-top: 18px;
}

.history-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.history-head h2 {
  margin: 0;
  font-size: 17px;
  color: #193855;
}

.table-wrap {
  overflow-x: auto;
}

.rename-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.rename-table th,
.rename-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e6eff7;
  text-align: left;
  color: #26425e;
}

.rename-table th {
  background: #f5f9fd;
  font-weight: 700;
}

.rename-table .empty {
  text-align: center;
  color: #7c93aa;
  padding: 18px 12px;
}

.rename-footer {
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  color: #5b748e;
}

.rename-dialog {
  border: none;
  border-radius: 20px;
  padding: 24px 26px;
  max-width: 440px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 60px rgba(15, 42, 72, 0.28);
}

.rename-dialog::backdrop {
  background: rgba(15, 38, 64, 0.45);
}

.rename-dialog h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #16324d;
}

.dialog-desc {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #244564;
}

.dialog-warn {
  margin: 0 0 18px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff6e6;
  color: #8a4b00;
  font-size: 13px;
  line-height: 1.55;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.quiet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid #c9dceb;
  background: #ffffff;
  color: #244b70;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.quiet-button:hover {
  background: #edf5fc;
}

.session-loading {
  margin: 20px 0;
  text-align: center;
  color: #5b748e;
}
