.account-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  white-space: nowrap;
}

.community-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid #aebdca;
  border-radius: 999px;
  background: linear-gradient(#fff, #eaf0f4);
  box-shadow: 0 2px 0 #cfd8e1;
  color: var(--ink);
  font: 700 12px/1 var(--font);
  cursor: pointer;
  text-decoration: none;
}

.lang-toggle-btn,
.community-nav-button {
  width: auto;
  height: 34px;
  min-height: 34px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.community-nav-button:hover {
  border-color: #6f8798;
  background: #fff;
}

.community-nav-button.admin-entry {
  border-color: #1b1f24;
  background: linear-gradient(#3b434b, #24292f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 2px 0 #11151a;
  color: #fff;
}

.community-nav-button.admin-entry:hover {
  border-color: #1b1f24;
  background: linear-gradient(#454e57, #2c3238);
  color: #fff;
}

.community-nav-button.primary {
  border-color: #0874a8;
  background: linear-gradient(#6adcf6, #16a5d7 56%, #0780b7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 0 #075d88;
  color: #fff;
}

.community-user-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.community-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 18px;
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(4px);
}

.community-overlay.open {
  display: flex;
}

.community-dialog {
  width: min(100%, 560px);
  max-height: min(90vh, 900px);
  overflow-y: auto;
  border: 2px solid var(--rim);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(10, 30, 48, .24);
}

.community-dialog.wide {
  width: min(100%, 760px);
}

.community-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.community-dialog-head h2 {
  font-size: 18px;
}

.community-dialog-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--rim);
  border-radius: 6px;
  background: var(--well);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
}

.community-dialog-body {
  padding: 18px;
}

.community-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 7px;
  background: var(--well);
}

.community-switcher button {
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--mute);
  font: 700 13px var(--font);
  cursor: pointer;
}

.community-switcher button.active {
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 40, 56, .12);
  color: var(--ink);
}

.community-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.community-field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.community-field input,
.community-field select,
.community-field textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--rim);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: 500 14px/1.5 var(--font);
}

.community-field textarea {
  min-height: 110px;
  resize: vertical;
}

.community-field input:focus,
.community-field select:focus,
.community-field textarea:focus {
  border-color: #1b8aba;
  outline: 3px solid rgba(52, 190, 237, .2);
}

.community-submit {
  width: 100%;
  min-height: 42px;
  border: 1px solid #0874a8;
  border-radius: 6px;
  background: linear-gradient(#6adcf6, #16a5d7 56%, #0780b7);
  box-shadow: 0 3px 0 #075d88;
  color: #fff;
  font: 800 14px var(--font);
  cursor: pointer;
}

.community-message {
  min-height: 20px;
  margin: 0 0 12px;
  color: var(--a-ink);
  font-size: 13px;
}

.game-page {
  width: min(1040px, calc(100% - 32px));
  margin: 28px auto 32px;
}

body.detail-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

body.detail-page > .game-page {
  flex: 1 0 auto;
  margin-bottom: 28px;
}

body.detail-page > .transhub-footer {
  flex: none;
  width: 100%;
}

.footer-legal {
  width: min(980px, 100%);
  margin: 18px auto 0;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.7;
}

.footer-legal p + p {
  margin-top: 4px;
}

.game-qr-button {
  color: #fff;
  font: 700 13px/1.4 var(--font);
  cursor: pointer;
}

.game-qr-button[hidden] {
  display: none;
}

.game-qr-modal {
  width: min(460px, calc(100vw - 32px));
}

.game-qr-url {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #fff;
  font: 11px/1.5 var(--mono);
  overflow-wrap: anywhere;
}

.game-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 14px;
  padding: 6px 11px;
  border: 1px solid #b8c4cf;
  border-bottom-width: 2px;
  border-radius: 7px;
  background: linear-gradient(#fff, #edf2f5);
  box-shadow: 0 1px 0 rgba(34, 48, 60, .08);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .14s ease, background .14s ease, transform .14s ease;
}

.game-back-link:hover {
  border-color: var(--cyan-ink);
  background: #fff;
  transform: translateY(-1px);
}

.game-back-arrow {
  color: var(--a-ink);
  font-size: 17px;
  line-height: 1;
}

.game-detail-panel {
  position: relative;
  overflow: visible;
  border: 2px solid var(--rim);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 3px 0 var(--rim-lo);
}

.comments-panel {
  overflow: hidden;
  border: 2px solid var(--rim);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 3px 0 var(--rim-lo);
}

/* 卡片左上角：发布人与汉化组专属展示栏 (3dsDL 掌机浅灰微拟物规范) */
.game-card-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 20px;
  background: linear-gradient(180deg, #fbfcfe 0%, #edf3f8 100%);
  border-bottom: 2px solid var(--rim, #c8d3dc);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.game-meta-badges-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.game-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--rim, #c8d3dc);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  font-size: 13px;
  color: var(--ink, #1f2937);
  text-decoration: none;
  transition: all 0.15s ease;
}

.game-submitter-badge {
  cursor: pointer;
}

.game-submitter-badge:hover {
  border-color: #0874a8;
  background: #f0f9ff;
  color: #0369a1;
  box-shadow: 0 2px 5px rgba(8, 116, 168, 0.12);
}

.game-meta-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rim, #c8d3dc);
  flex-shrink: 0;
}

.game-meta-k {
  font-size: 11px;
  font-weight: 600;
  color: var(--mute, #64748b);
  background: var(--well, #e2e8f0);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.game-meta-name {
  font-weight: 700;
  color: inherit;
}

.game-group-badge {
  border-color: #b9d5e9;
  background: #f7fafc;
}

.game-meta-icon {
  color: #0874a8;
  font-size: 13px;
}

.game-meta-verified {
  display: inline-flex;
  align-items: center;
  margin-left: -2px;
}

.game-card-meta-bar .verified-tooltip {
  top: calc(100% + 9px);
  bottom: auto;
  transform: translateX(-50%) translateY(-3px);
  z-index: 100;
}

.game-card-meta-bar .verified-tooltip::after {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: -5px;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid var(--rim, #c8d3dc);
  border-top: 1px solid var(--rim, #c8d3dc);
}

.game-card-meta-bar .verified-badge-wrap:hover .verified-tooltip,
.game-card-meta-bar .verified-badge-wrap.active .verified-tooltip {
  transform: translateX(-50%) translateY(0);
}

.game-meta-right {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--mute, #64748b);
}

.game-meta-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 640px) {
  .game-card-meta-bar {
    padding: 8px 14px;
  }
  .game-meta-badges-left {
    gap: 8px;
  }
  .game-meta-badge {
    padding: 4px 10px;
    font-size: 12px;
  }
  .game-meta-avatar {
    width: 22px;
    height: 22px;
  }
}

.game-detail-grid {
  display: grid;
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
}

.game-detail-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--rim);
  border-radius: 6px;
  background: var(--well);
  object-fit: cover;
}

.game-detail-title {
  margin: 2px 0 6px;
  font-size: 28px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.game-detail-original {
  margin-bottom: 14px;
  color: var(--dim);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.game-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 18px;
}

.game-detail-tag {
  padding: 4px 9px;
  border: 1px solid var(--rim);
  border-radius: 999px;
  background: var(--well);
  color: var(--ink);
  font-size: 12px;
}

.game-detail-description {
  color: var(--ink);
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.game-downloads {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  margin-top: 16px;
}

.game-download-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #0874a8;
  border-radius: 6px;
  background: linear-gradient(#6adcf6, #16a5d7 56%, #0780b7);
  box-shadow: 0 2px 0 #075d88;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.comments-panel {
  margin-top: 22px;
  padding: 20px 22px;
}

.comments-heading {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 16px;
}

.comments-heading h2 {
  font-size: 20px;
}

.comments-count {
  color: var(--dim);
  font-size: 13px;
}

.comment-composer {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.comment-composer textarea {
  width: 100%;
  min-height: 94px;
  padding: 11px 12px;
  border: 1px solid var(--rim);
  border-radius: 6px;
  resize: vertical;
  color: var(--ink);
  font: 500 14px/1.6 var(--font);
}

.comment-composer textarea:focus {
  border-color: #1b8aba;
  outline: 3px solid rgba(52, 190, 237, .2);
}

.comment-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
}

.comment-login-hint,
.comments-empty {
  color: var(--dim);
  font-size: 13px;
}

.comment-submit {
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid #0874a8;
  border-radius: 6px;
  background: linear-gradient(#6adcf6, #16a5d7 56%, #0780b7);
  box-shadow: 0 2px 0 #075d88;
  color: #fff;
  font: 700 13px var(--font);
  cursor: pointer;
}

.comment-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.comment-item:last-child {
  border-bottom: 0;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--dim);
  font-size: 12px;
}

.comment-author {
  color: var(--ink);
  font-weight: 800;
}

.studio-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.studio-heading h1 {
  font-size: 23px;
}

.studio-heading p {
  margin-top: 6px;
  color: var(--dim);
  font-size: 13px;
}

.studio-submission {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.studio-submission:last-child {
  border-bottom: 0;
}

.studio-submission-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.studio-submission-info strong {
  overflow-wrap: anywhere;
}

.studio-submission-info span {
  color: var(--dim);
  font-size: 12px;
}

.studio-status {
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef2f5;
  color: var(--mute);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.studio-status-approved {
  background: #e5f6ee;
  color: #19734b;
}

.studio-status-pending {
  background: #fff4d9;
  color: #876111;
}

.studio-status-rejected {
  background: #fff0f1;
  color: #b43140;
}

.studio-view-link {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.comment-content {
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .head-in {
    gap: 8px;
    padding: 0 10px;
  }

  .head-in .brand img,
  .tray {
    display: none;
  }

  .community-nav-button {
    padding-inline: 9px;
  }

  .community-user-name {
    max-width: 72px;
  }

  .game-page {
    width: min(100% - 20px, 1040px);
    margin-top: 16px;
  }

  body.detail-page > .game-page {
    margin-bottom: 20px;
  }

  .game-detail-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px;
  }

  .game-detail-cover {
    max-height: 310px;
  }

  .game-detail-title {
    font-size: 23px;
  }

  .comments-panel {
    padding: 16px 14px;
  }

  .studio-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .studio-submission {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
  }

  .studio-view-link {
    grid-column: 1 / -1;
  }
}

.game-detail-title-id {
  width: fit-content;
  margin: -6px 0 12px;
  padding: 3px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--well);
  color: var(--dim);
  font: 12px/1.5 var(--mono);
  overflow-wrap: anywhere;
}

.game-screenshots-panel {
  margin-top: 22px;
  padding: 20px 22px;
  border: 2px solid var(--rim);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 3px 0 var(--rim-lo);
}

.game-screenshots-panel h2 {
  font-size: 20px;
}

.game-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.game-screenshot-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rim);
  border-radius: 5px;
  background: var(--well);
}

.game-screenshot-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dual-screen-preview {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.dual-screen-preview[hidden],
.dual-screen-shot[hidden] {
  display: none !important;
}

.dual-screen-device {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
}

.dual-screen-shell {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dual-screen-shot {
  position: absolute;
  z-index: 2;
  display: block;
  object-fit: cover;
}

.dual-screen-shot-top {
  top: 15%;
  left: 25.2%;
  width: 49.7%;
  height: 30.2%;
}

.dual-screen-shot-bottom {
  top: 55.3%;
  left: 30.2%;
  width: 39.8%;
  height: 30.1%;
}

@media (max-width: 760px) {
  .game-screenshots-panel {
    padding: 16px 14px;
  }

  .game-screenshot-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .dual-screen-device {
    width: min(100%, 360px);
  }
}

.community-user-name {
  cursor: pointer;
}

.community-notification-wrap {
  position: relative;
}

.community-notification-button {
  gap: 6px;
}

.community-notification-count {
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: #b93e42;
  color: #fff;
  font-size: 10px;
}

.community-notification-panel {
  position: absolute;
  z-index: 10002;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 20px));
  overflow: hidden;
  border: 1px solid #aebdca;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 35, 48, .2);
}

.community-notification-panel[hidden] {
  display: none;
}

.community-notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.community-notification-head button,
.profile-device-remove {
  border: 0;
  background: transparent;
  color: #0874a8;
  cursor: pointer;
  font: 700 12px var(--font);
}

.community-notification-items {
  max-height: 340px;
  overflow-y: auto;
}

.community-notification-item {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 5px;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font: 500 12px/1.55 var(--font);
}

.community-notification-item:hover,
.community-notification-item.unread {
  background: #eff9fc;
}

.community-notification-item time,
.community-notification-empty {
  color: var(--dim);
  font-size: 11px;
}

.community-notification-empty {
  margin: 0;
  padding: 18px 12px;
  text-align: center;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.profile-avatar-large {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  object-fit: cover;
}

.profile-avatar-large[hidden] {
  display: none !important;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-fallback {
  background: #d9f1f5;
  color: #12647b;
  font-size: 23px;
  font-weight: 800;
}

.profile-avatar-upload {
  padding: 7px 10px;
  border: 1px solid #aebdca;
  border-radius: 5px;
  background: #f7fafc;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.profile-points {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-left: auto;
  color: var(--dim);
  font-size: 12px;
}

.profile-points strong {
  color: #19734b;
  font-size: 21px;
}

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

.profile-form .community-field:nth-of-type(3),
.profile-form .profile-note,
.profile-form .community-submit {
  grid-column: 1 / -1;
}

.profile-form input,
.profile-form textarea,
.profile-device-form input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #bac7d0;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: 500 13px/1.5 var(--font);
}

.profile-form textarea {
  resize: vertical;
}

.profile-form input:focus,
.profile-form textarea:focus,
.profile-device-form input:focus {
  border-color: #159aca;
  outline: 3px solid rgba(21, 154, 202, .14);
}

.profile-note {
  margin: 0 0 10px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.5;
}

.profile-section {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line-soft);
}

.profile-section h3,
.member-profile-dialog h3 {
  margin: 0 0 9px;
  font-size: 14px;
}

.profile-checkin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-checkin p {
  margin: 3px 0 0;
  color: var(--dim);
  font-size: 12px;
}

.profile-checkin .community-submit {
  width: auto;
  min-width: 104px;
}

.profile-device-list {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
}

.profile-device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  font-size: 12px;
}

.profile-device-row span {
  overflow-wrap: anywhere;
}

.profile-device-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: end;
  gap: 9px;
}

.profile-device-form .community-field {
  margin: 0;
}

.profile-device-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
}

.profile-device-form .community-submit {
  width: auto;
  white-space: nowrap;
}

.member-profile-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}

.member-profile-heading > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.member-profile-heading strong {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.member-profile-heading span:not(.profile-avatar-large) {
  color: var(--dim);
  font-size: 12px;
}

.member-profile-bio {
  margin: 0 0 17px;
  overflow-wrap: anywhere;
  line-height: 1.65;
  white-space: pre-wrap;
}

.member-profile-device {
  margin: 6px 0;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  font-size: 12px;
}

.member-profile-registered {
  margin: 16px 0 0;
  color: var(--dim);
  font-size: 12px;
}

.comment-sort {
  display: inline-flex;
  gap: 3px;
  margin: 0 0 14px;
  padding: 3px;
  border: 1px solid #c8d3db;
  border-radius: 6px;
  background: #f4f7f9;
}

.comment-sort button {
  min-height: 30px;
  padding: 5px 11px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font: 700 12px var(--font);
}

.comment-sort button.active {
  background: #fff;
  box-shadow: 0 1px 3px rgba(24, 39, 52, .16);
  color: var(--ink);
}

.comment-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.comment-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 1px solid #bdcbd4;
  border-radius: 50%;
  background: #e1f2f5;
  color: #17687d;
  cursor: pointer;
  font: 800 14px var(--font);
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-body {
  min-width: 0;
  flex: 1;
}

.comment-author {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font: 800 12px var(--font);
}

.comment-author:hover {
  color: #0874a8;
  text-decoration: underline;
}

.comment-actions,
.comment-reply-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
}

.comment-vote,
.comment-reply-button {
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font: 700 11px var(--font);
}

.comment-vote i,
.comment-reply-button i {
  font-size: 11px;
  line-height: 1;
}

.comment-submit.comment-reply-submit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.comment-vote:hover,
.comment-reply-button:hover {
  border-color: #d4dee4;
  background: #f5f8fa;
}

.comment-vote.active[aria-pressed="true"]:first-child {
  border-color: #b8ddc9;
  background: #eaf7ef;
  color: #19734b;
}

.comment-vote.active[aria-pressed="true"]:nth-child(2) {
  border-color: #e7c6c5;
  background: #fff1f0;
  color: #a94442;
}

.comment-reply-form {
  margin-top: 8px;
}

.comment-reply-form[hidden] {
  display: none;
}

.comment-reply-form textarea {
  width: 100%;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid #bac7d0;
  border-radius: 5px;
  resize: vertical;
  font: 500 12px/1.5 var(--font);
}

.comment-reply-foot {
  justify-content: flex-end;
}

.comment-reply-submit {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 11px;
}

.comment-replies {
  margin: 10px 0 0 17px;
  padding-left: 14px;
  border-left: 2px solid #dce5ea;
}

.comment-reply-item {
  padding: 9px 0;
}

.comment-highlight {
  background: #fff8df;
}

@media (max-width: 600px) {
  .profile-form,
  .profile-device-form {
    grid-template-columns: 1fr;
  }

  .profile-form .community-field:nth-of-type(3),
  .profile-form .profile-note,
  .profile-form .community-submit {
    grid-column: auto;
  }

  .profile-summary {
    flex-wrap: wrap;
  }

  .profile-points {
    margin-left: auto;
  }

  .comment-replies {
    margin-left: 9px;
    padding-left: 9px;
  }

  .comment-avatar {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }
}

/* =========================================================
   官方/个人/汉化组 认证标志 (Verified Badge) 与 3DS 系统提示气泡
   ========================================================= */
.verified-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.12s ease;
}

.verified-badge svg {
  width: 9.5px;
  height: 9.5px;
  fill: currentColor;
}

.verified-badge:hover,
.verified-badge-wrap.active .verified-badge {
  transform: scale(1.12);
}

/* 官方管理员认证：任天堂红 */
.verified-badge-admin {
  background: linear-gradient(180deg, #e53935 0%, #c62828 100%);
}

/* 汉化团队认证：掌机草木绿 */
.verified-badge-group {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

/* 开发者认证：掌机海蓝 */
.verified-badge-dev {
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
}

/* 贡献者/个人独立认证：琥珀橙 */
.verified-badge-contributor,
.verified-badge-translator {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

/* 3DS 系统拟物提示气泡 (浅色原生风格) */
.verified-tooltip {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  width: 220px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink, #1e293b);
  border: 1px solid var(--rim, #c8d3dc);
  border-radius: 7px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
  font: 400 12px/1.45 var(--font), system-ui, sans-serif;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 1000;
  white-space: normal;
  text-align: left;
}

/* 气泡三角尖角 (带浅灰描边与纯白底) */
.verified-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: -5px;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-right: 1px solid var(--rim, #c8d3dc);
  border-bottom: 1px solid var(--rim, #c8d3dc);
}

.verified-badge-wrap:hover .verified-tooltip,
.verified-badge-wrap.active .verified-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.verified-tooltip-header {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 10.5px;
  margin-bottom: 6px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.verified-tooltip-header.admin {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.verified-tooltip-header.group {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.verified-tooltip-header.dev {
  background: #f0f9ff;
  color: #0369a1;
  border-color: #bae6fd;
}

.verified-tooltip-title {
  color: #0f172a;
  font-weight: 700;
  font-size: 12.5px;
  margin-bottom: 3px;
}

.verified-tooltip-desc {
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
}

/* =========================================================
   独立用户个人主页 (User Profile Page) 3dsDL 掌机浅色拟物规范
   ========================================================= */
.user-profile-page {
  max-width: 980px;
  margin: 20px auto 48px;
  padding: 0 16px;
}

.user-page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.user-page-crumbs {
  font-size: 13px;
  color: var(--dim, #64748b);
  font-weight: 600;
}

/* 1. 用户公开资料主卡片 */
.user-main-card {
  background: var(--panel, #fbfcfd);
  border: 1px solid var(--rim, #c8d3dc);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 3px 12px rgba(0, 0, 0, 0.05);
  padding: 24px 28px;
  margin-bottom: 24px;
}

.user-main-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft, #e2e8f0);
  flex-wrap: wrap;
}

.user-avatar-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
}

.user-avatar-box,
.user-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--rim, #c8d3dc);
}

.user-avatar-box {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  color: #334155;
  font-size: 26px;
  font-weight: 700;
}

.user-identity-box {
  flex: 1;
  min-width: 200px;
}

.user-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.user-display-nickname {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink, #1e293b);
  line-height: 1.25;
}

.user-handle-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.user-username-handle {
  color: var(--dim, #64748b);
  font-family: inherit;
}

.user-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.user-role-badge.admin {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.user-role-badge.contributor {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.user-score-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-left: auto;
}

.user-points-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fef3c7;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(180, 83, 9, 0.08);
  font-size: 12px;
}

.user-points-pill .points-icon {
  color: #f59e0b;
}

.user-points-pill strong {
  font-size: 15px;
  font-weight: 800;
  color: #b45309;
}

.user-joined-date {
  font-size: 11.5px;
  color: var(--dim, #64748b);
}

.user-bio-container {
  margin: 18px 0;
  padding: 12px 16px;
  background: var(--well, #f0f3f6);
  border: 1px solid var(--rim, #c8d3dc);
  border-radius: 6px;
}

.user-bio-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--dim, #64748b);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.user-bio-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink, #1e293b);
  word-break: break-word;
}

/* 公开掌机展示栏 */
.user-devices-container {
  margin-top: 18px;
}

.user-devices-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.devices-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #1e293b);
  display: flex;
  align-items: center;
  gap: 6px;
}

.devices-count-tag {
  font-size: 11.5px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}

.user-devices-public-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.user-device-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--rim, #c8d3dc);
  border-radius: 6px;
}

.user-device-item .device-icon {
  font-size: 18px;
  color: #0284c7;
}

.user-device-item .device-info {
  display: flex;
  flex-direction: column;
}

.user-device-item .device-model {
  font-size: 13px;
  color: #1e293b;
  font-weight: 700;
}

.user-device-item .device-type-label {
  font-size: 11px;
  color: #64748b;
}

.devices-empty-tip {
  margin: 0;
  font-size: 12.5px;
  color: var(--dim, #64748b);
  padding: 8px 0;
}

/* 公开作品列表展示专区 */
.user-works-container {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--rim, #c8d3dc);
}

.user-works-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.works-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink, #1e293b);
  display: flex;
  align-items: center;
  gap: 6px;
}

.works-count-tag {
  font-size: 11.5px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}

.user-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 680px) {
  .user-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .user-works-grid {
    grid-template-columns: 1fr;
  }
}

.user-work-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--rim, #c8d3dc);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.user-work-card:hover {
  transform: translateY(-2px);
  border-color: #94a3b8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.work-card-cover-wrap {
  position: relative;
  width: 100%;
  height: 110px;
  background: #f1f5f9;
  overflow: hidden;
}

.work-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card-details {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.work-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink, #1e293b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-card-orig {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.work-meta-tag {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 3px;
  background: #f1f5f9;
  color: #475569;
}

.work-meta-tag.author {
  background: #eff6ff;
  color: #1d4ed8;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
  font-size: 11px;
}

.work-progress-badge {
  font-weight: 700;
  font-size: 10.5px;
}

.work-progress-badge.done {
  color: #166534;
}

.work-progress-badge.doing {
  color: #0284c7;
}

.work-downloads {
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 3px;
}

.works-empty-tip {
  margin: 0;
  font-size: 12.5px;
  color: var(--dim, #64748b);
  padding: 10px 0;
}

/* 2. 本人专属设置面板 (掌机卡片组) */
.user-self-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.user-subcard {
  background: var(--panel, #fbfcfd);
  border: 1px solid var(--rim, #c8d3dc);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 3px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 24px;
}

.user-subcard:last-child {
  margin-bottom: 0;
}

.subcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bar, linear-gradient(#f8fafc, #edf2f6));
  border-bottom: 1px solid var(--rim, #c8d3dc);
}

.subcard-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink, #1e293b);
  display: flex;
  align-items: center;
  gap: 8px;
}

.subcard-desc {
  font-size: 12px;
  color: var(--dim, #64748b);
}

.subcard-body {
  padding: 20px 24px;
}

.user-settings-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .settings-grid-2col {
    grid-template-columns: 1fr;
  }
}

.readonly-input {
  background: #f1f5f9 !important;
  color: #64748b !important;
  cursor: not-allowed;
}

.field-hint {
  display: block;
  font-size: 11.5px;
  color: var(--dim, #64748b);
  margin-top: 4px;
}

.avatar-uploader-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.avatar-upload-status {
  font-size: 12px;
  color: #64748b;
}

.btn-subcard-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid var(--rim, #c8d3dc);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.12s ease;
}

.btn-subcard-action:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.form-actions-right {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

/* 签到横幅与设备管理 */
.checkin-banner-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  margin-bottom: 22px;
}

.checkin-title {
  font-weight: 700;
  color: #166534;
  font-size: 14px;
  margin-bottom: 3px;
}

.checkin-desc {
  font-size: 12px;
  color: #15803d;
}

.checkin-btn {
  display: inline-flex;
  width: 150px;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 13px;
  white-space: nowrap;
}

.device-manage-section {
  padding-top: 14px;
  border-top: 1px dashed var(--rim, #c8d3dc);
}

.device-manage-title {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink, #1e293b);
  display: flex;
  align-items: center;
  gap: 6px;
}

.device-manage-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.device-bound-count {
  font-size: 11.5px;
  color: var(--dim, #64748b);
  background: var(--well, #e2e8f0);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}

.own-devices-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.own-device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--rim, #c8d3dc);
  border-radius: 6px;
}

.own-device-details {
  display: flex;
  align-items: center;
  gap: 10px;
}

.own-device-details .device-icon {
  font-size: 18px;
  color: #0284c7;
}

.own-device-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.own-device-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.own-device-name {
  font-size: 13px;
  color: #1e293b;
  font-weight: 700;
}

.own-device-meta {
  font-size: 11.5px;
  color: #64748b;
}

.btn-device-remove {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11.5px;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-device-remove:hover {
  background: #fee2e2;
  border-color: #f87171;
}

/* 掌机无线自动同步绑定面板 */
.device-sync-panel {
  padding: 16px;
  background: linear-gradient(180deg, #fbfcfe 0%, #edf3f8 100%);
  border: 1px solid var(--rim, #c8d3dc);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 4px rgba(0,0,0,0.03);
}

.sync-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.sync-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: #0284c7;
  color: #ffffff;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.25);
}

.sync-reward-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);
  color: #713f12;
  border: 1px solid #eab308;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(202, 138, 4, 0.2);
}

.sync-panel-tip {
  font-size: 12px;
  color: var(--dim, #64748b);
}

.pairing-code-display-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  background: #ffffff;
  border: 2px dashed #93c5fd;
  border-radius: 8px;
  margin-bottom: 14px;
}

.pairing-code-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e3a8a;
  letter-spacing: 0.5px;
}

.pairing-code-digits {
  display: flex;
  gap: 8px;
}

.pairing-digit {
  width: 38px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  font-family: 'Consolas', 'Courier New', monospace;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid #94a3b8;
  border-bottom: 2px solid #64748b;
  border-radius: 6px;
  color: #0f172a;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pairing-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-refresh-code {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-refresh-code:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

.pairing-countdown {
  font-size: 11.5px;
  color: #64748b;
}

.sync-instructions-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(200, 211, 220, 0.6);
  border-radius: 6px;
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}

.sync-step {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sync-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.sync-step code {
  font-family: monospace;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  color: #0369a1;
}

/* 设备颜色标签 */
.device-color-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.device-color-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  border: 1px solid rgba(0,0,0,0.15);
}

/* 创作者认证申请状态横幅 */
.verify-intro-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink, #334155);
  margin-top: 0;
  margin-bottom: 14px;
}

.verify-audit-alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.verify-audit-alert.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.verify-audit-alert.pending {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

.verify-audit-alert.rejected {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.verify-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.verify-status-badge.verify-status-approved {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.verify-status-badge.verify-status-pending {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

.verify-status-badge.verify-status-rejected {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

