﻿* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --black: #111111;
  --gray-1: #f5f5f5;
  --gray-2: #e8e8e8;
  --gray-3: #aaaaaa;
  --white: #ffffff;
  --font: -apple-system, "PingFang SC", "Helvetica Neue", sans-serif;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

/* App shell. */
.site-shell {
  width: 100%;
  max-width: 960px;
  min-height: calc(100vh - 60px);
  margin: 0 auto;
}

.site-main.el-main {
  padding: 0;
  overflow: hidden;
}

.page {
  display: none;
  min-height: calc(100vh - 60px);
}

.page.active {
  display: block;
}

.app-page-container {
  min-height: calc(100vh - 60px);
}

.app-page-header.el-header {
  height: auto;
  padding: 0;
  background: transparent;
}

.app-main.el-main {
  padding: 0;
}

/* Home page: animated character rows and primary entry buttons. */
#page-home {
  min-height: calc(100vh - 60px);
  background: #fff;
  overflow-y: auto;
  position: relative;
  scroll-behavior: smooth;
}

.home-pixel-title {
  text-align: center;
  padding: 24px 0 0;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.characters-stage {
  width: 100%;
  overflow: hidden;
  padding: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.characters-row {
  display: flex;
  gap: 0;
  width: max-content;
}

.characters-row.row-1 { animation: scroll-left 18s linear infinite; }
.characters-row.row-2 { animation: scroll-right 22s linear infinite; }
.characters-row.row-3 { animation: scroll-left 16s linear infinite; }

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes scroll-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.character-cell {
  width: 108px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Shared pixel avatar sizes used by the template and poster DOM. */
.pixel-avatar {
  image-rendering: pixelated;
  object-fit: contain;
}

.pixel-avatar-home {
  width: 94px;
  height: 94px;
}

.pixel-avatar-guide {
  width: 40px;
  height: 40px;
}

.pixel-avatar-result {
  width: 230px;
  height: 230px;
}

.home-bottom {
  padding: 36px 28px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.home-main-title {
  font-size: 24px;
  font-weight: 900;
  color: #111;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.home-tagline {
  font-size: 13px;
  color: #999;
  font-style: italic;
  text-align: center;
  margin-bottom: 36px;
}

.home-feature-note {
  width: 100%;
  max-width: 340px;
  margin: 0 0 8px;
  padding: 14px 16px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 12px;
  color: #666;
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.btn-start {
  width: 100%;
  max-width: 340px;
  height: 64px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  letter-spacing: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: opacity 0.15s;
  box-shadow: none;
}

.btn-start.el-button {
  border: none;
}

.btn-start.el-button:hover,
.btn-start.el-button:focus {
  background: #111;
  color: #fff;
  border: none;
}

.btn-start:active { opacity: 0.75; }

.btn-start-icon {
  width: 26px;
  height: 26px;
  border: 2.5px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-start-icon::after {
  content: '';
  border-left: 9px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 2px;
}

/* Quiz page: progress bar, guide bubble and option states. */
#page-quiz {
  min-height: calc(100vh - 60px);
  padding-bottom: 40px;
}

.quiz-header {
  padding: 14px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--black);
}

.quiz-counter {
  font-size: 13px;
  color: var(--gray-3);
  font-weight: 500;
}

.progress-wrap {
  padding: 16px 20px 0;
}

.progress-track {
  height: 3px;
  background: var(--gray-2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--black);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.quiz-body {
  padding: 32px 24px 0;
}

.quiz-guide-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.quiz-guide-icon {
  width: 56px;
  height: 56px;
  background: var(--gray-1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quiz-guide-bubble {
  background: var(--gray-1);
  border-radius: 12px 12px 12px 4px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--gray-3);
  line-height: 1.6;
  flex: 1;
}

.question-text {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.3px;
  margin-bottom: 28px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opt {
  padding: 16px 18px;
  border: 1.5px solid var(--gray-2);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.15s;
}

.opt-key {
  font-size: 11px;
  color: var(--gray-3);
  font-weight: 600;
  min-width: 14px;
  margin-top: 1px;
}

.opt:active, .opt.selected {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.opt.selected .opt-key {
  color: rgba(255,255,255,0.5);
}

.btn-next {
  margin: 28px 24px 0;
  width: calc(100% - 48px);
  height: 52px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.15s;
  opacity: 0.25;
  pointer-events: none;
}

.btn-next.enabled {
  opacity: 1;
  pointer-events: all;
}

.btn-next.enabled:active { opacity: 0.75; }

#page-result {
  min-height: calc(100vh - 60px);
  padding-bottom: 60px;
}

#page-realtime {
  min-height: calc(100vh - 60px);
  padding: 24px 0 48px;
  background: #f5f5f5;
}

/* Dashboard container */
.realtime-dashboard {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header row: title + tab switcher */
.realtime-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.realtime-title {
  font-size: 22px;
  font-weight: 800;
}

.realtime-tab-group {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.realtime-tab-btn {
  padding: 7px 24px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  color: #666;
  transition: all 0.2s;
}

.realtime-tab-btn.active {
  background: #111;
  color: #fff;
}

/* KPI card row */
.realtime-kpi-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.realtime-kpi-card {
  flex: 1;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 18px 16px;
}

.realtime-kpi-label {
  font-size: 12px;
  color: #999;
}

.realtime-kpi-value {
  font-size: 32px;
  font-weight: 800;
  margin: 6px 0;
}

.realtime-kpi-sub {
  font-size: 11px;
}

/* Chart + Feed two-column area */
.realtime-main-row {
  display: flex;
  gap: 12px;
  height: 420px;
}

.realtime-chart-card {
  flex: 1.2;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.realtime-feed-card {
  flex: 0.8;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-width: 280px;
}

.realtime-card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.realtime-chart-box {
  flex: 1;
  width: 100%;
  min-height: 0;
}

.realtime-feed-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.realtime-feed-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.realtime-feed-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f0f0f0;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #666;
  font-weight: 600;
}

.realtime-feed-name {
  flex: 1;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.realtime-feed-type {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  color: #888;
  flex-shrink: 0;
}

.realtime-feed-time {
  color: #bbb;
  font-size: 10px;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .realtime-main-row {
    flex-direction: column;
    height: auto;
  }
  .realtime-chart-card {
    height: 380px;
  }
  .realtime-feed-card {
    height: 260px;
    min-width: auto;
  }
  .realtime-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .realtime-kpi-row {
    flex-direction: column;
  }
}

.about-dialog-content h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.about-dialog-content h4 + p {
  margin-bottom: 12px;
}

.about-dialog-content p {
  font-size: 13px;
  line-height: 1.7;
  color: #444;
}

.about-link {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.about-mx-qrcode {
  width: min(100%, 280px);
  display: block;
  margin: 10px auto 14px;
  border-radius: 12px;
  border: 1px solid #ececec;
}

.about-note {
  font-size: 12px;
  color: #9f9f9f;
}

.about-note-tiny {
  font-size: 4px;
  line-height: 1.5;
  color: #b0aeaeca;
}

.about-center-text {
  text-align: center;
}

.profile-card {
  margin: 18px 24px 0;
  padding: 14px;
  border: 1px solid var(--gray-2);
  border-radius: 12px;
  background: #fff;
}

.profile-title {
  font-size: 16px;
  margin-bottom: 10px;
}

.profile-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.profile-title-row .profile-title {
  margin-bottom: 0;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.profile-actions .el-button + .el-button {
  margin-left: 0;
}

.profile-card p {
  font-size: 13px;
  line-height: 1.8;
  color: #444;
}

.profile-benefit-card {
  text-align: center;
}

.profile-benefit-qrcode {
  width: min(100%, 140px);
  display: block;
  margin: 10px auto 0;
  border-radius: 12px;
  border: 1px solid #ececec;
}

.latest-result-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.latest-result-avatar {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  object-fit: contain;
  image-rendering: pixelated;
}

.profile-edit-form .el-form-item,
.password-form .el-form-item {
  margin-bottom: 12px;
}

.profile-phone-lock-hint {
  margin: 6px 0 0;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.6;
}

.btn-identity.el-button.is-link {
  margin-top: 10px;
  color: #666;
  font-size: 12px;
}

.btn-identity.el-button.is-link:hover {
  color: #111;
}

.home-copyright {
  margin-top: 18px;
  font-size: 12px;
  color: #999;
  text-align: center;
  line-height: 1.6;
}

.home-copyright-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-copyright-link:hover {
  color: #666;
}

.identity-dialog-intro {
  margin-bottom: 14px;
}

.identity-dialog-title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}

.identity-dialog-intro p {
  font-size: 13px;
  line-height: 1.7;
  color: #555;
}

.identity-form .el-form-item {
  margin-bottom: 12px;
}

.camp-select-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
}

.camp-select-row .el-select {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.camp-select-row .el-select .el-select__wrapper {
  width: 100%;
}

.camp-search-btn {
  flex-shrink: 0;
}

.camp-status-text {
  font-weight: 600;
}

.camp-status-builtin,
.camp-status-approved {
  color: #15803d;
}

.camp-status-pending {
  color: #b45309;
}

.camp-status-rejected {
  color: #b42318;
}

.login-form .el-form-item__label {
  width: 100%;
}

.login-username-label-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-username-label {
  color: #303133;
  font-size: 14px;
  line-height: 1.4;
}

.login-scan-entry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #606266;
  cursor: pointer;
  user-select: none;
}

.login-scan-entry:hover {
  color: #111;
}

.login-scan-entry:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
  border-radius: 6px;
}

.login-scan-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.login-scan-text {
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.forgot-password-row {
  width: 100%;
  margin-top: 6px;
  text-align: right;
}

.forgot-password-link.el-button.is-link {
  padding: 0;
  color: #606266;
  font-size: 12px;
}

.forgot-password-link.el-button.is-link:hover {
  color: #111;
}

.password-reset-tip {
  margin: 0 0 12px;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.password-reset-form .el-form-item {
  margin-bottom: 12px;
}

.password-reset-code-row {
  display: flex;
  width: 100%;
  gap: 8px;
  align-items: center;
}

.password-reset-code-row .el-input {
  flex: 1 1 auto;
}

.password-reset-code-row .el-button {
  flex-shrink: 0;
}

.register-captcha-img {
  display: block;
  width: 140px;
  height: 44px;
  object-fit: contain;
  margin-top: 8px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
}

.scan-login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.scan-login-qrcode {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.scan-login-tip {
  font-size: 14px;
  color: #111;
  line-height: 1.5;
  text-align: center;
}

.scan-login-subtip {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  text-align: center;
}

.identity-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.result-header {
  padding: 14px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-3);
}

.result-label {
  font-size: 12px;
  color: var(--gray-3);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.result-type {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 6px;
  text-align: center;
}

.result-subname {
  font-size: 14px;
  color: var(--gray-3);
  text-align: center;
  margin-bottom: 28px;
}

.result-quote {
  background: var(--gray-1);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 24px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--black);
  position: relative;
}

.result-quote::before {
  content: '"';
  font-size: 36px;
  color: var(--gray-2);
  position: absolute;
  top: 8px;
  left: 14px;
  line-height: 1;
  font-family: Georgia, serif;
}

.result-quote p {
  padding-left: 6px;
}
.traits {
  padding: 0 24px 20px;
}

.trait-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trait {
  background: var(--gray-1);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--black);
  font-weight: 500;
}

.result-desc {
  padding: 0 24px 24px;
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}

.divider {
  height: 1px;
  background: var(--gray-2);
  margin: 4px 24px 20px;
}

.result-actions {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 120px;
}

.result-primary-actions {
  display: flex;
  gap: 10px;
}

.result-primary-actions .btn-share {
  flex: 1;
  min-width: 0;
}

.btn-share {
  width: 100%;
  height: 52px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-lead-entry {
  height: auto;
  min-height: 52px;
  padding: 10px 8px;
  text-align: center;
  line-height: 1.35;
}

.btn-retry {
  width: 100%;
  height: 52px;
  background: var(--white);
  color: var(--black);
  border: 1.5px solid var(--gray-2);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
}

.btn-share:active, .btn-retry:active { opacity: 0.7; }

/* OLD - replaced by Dark Character Card styles below */
/* .poster-card {
  margin: 0 16px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  overflow: hidden;
} */

/* OLD - replaced by Dark Character Card styles below */
/* .poster-topline {
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 8px 12px;
} */

.poster-nickname {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
}

.ability-radar-chart {
  width: 100%;
  height: 260px;
}

.weakness-card {
  margin: 0 24px 18px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fafafa;
  padding: 12px 14px;
}

.weakness-card h3 {
  font-size: 14px;
  margin-bottom: 8px;
}

.weakness-text {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

.tips-list {
  margin: 8px 0 0;
  padding-left: 16px;
  color: #444;
  font-size: 13px;
  line-height: 1.6;
}

.btn-share-outline {
  background: #fff;
  color: #111;
  border: 1.5px solid #d8d8d8;
}

.el-button + .el-button {
  margin-left: 0;
}

@media (max-width: 640px) {
  body {
    max-width: 100%;
  }

  .result-actions {
    margin-bottom: 132px;
  }

  .login-scan-entry {
    gap: 4px;
  }

  .login-scan-text {
    font-size: 11px;
  }

  .scan-login-qrcode {
    width: 160px;
    height: 160px;
  }

}


/* ── Bond Dashboard (redesigned) ────────────────────────────── */
.bond-dashboard-container {
  min-height: calc(100vh - 60px);
  padding: 14px 0 40px;
}

.bond-top-bar {
  margin-bottom: 20px;
}

.bond-role-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  background: #f5edff;
  color: #7f56d9;
}

.bond-role-tag.coach {
  background: #fff8e1;
  color: #b37f00;
}

.bond-dashboard {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* Character card */
.bond-char-card {
  flex: 0 0 320px;
  background: linear-gradient(135deg, #fafafa 0%, #f8f6ff 100%);
  border: 1.5px solid #e8e8e8;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
}

.char-card-label {
  font-size: 10px;
  color: #7f56d9;
  letter-spacing: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.char-card-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5edff, #e8dff5);
  border: 2px solid #7f56d9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #7f56d9;
  overflow: hidden;
}

.char-card-avatar img {
  width: 120%;
  height: 120%;
  object-fit: cover;
}

.char-card-type {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  letter-spacing: 1px;
}

.char-card-subname {
  font-size: 13px;
  font-weight: 600;
  color: #7f56d9;
  margin-top: 2px;
}

.char-card-quote {
  font-size: 11px;
  color: #999;
  margin-top: 6px;
  font-style: italic;
}

.char-card-code {
  margin-top: 12px;
  display: inline-block;
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 14px;
  padding: 5px 16px;
}

.char-card-code .code-label {
  font-size: 10px;
  color: #aaa;
  margin-right: 4px;
}

.char-card-code .code-value {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  letter-spacing: 1px;
}

.char-card-bond-active {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5edff;
  border-radius: 10px;
  padding: 5px 12px;
  font-size: 11px;
  color: #7f56d9;
  font-weight: 600;
}

/* Action area */
.bond-actions {
  flex: 1;
  min-width: 0;
}

.bond-quick-find {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.bond-quick-find .el-input {
  flex: 1;
}

.bond-action-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bond-action-card {
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
}

.bond-action-card:hover {
  border-color: #7f56d9;
  box-shadow: 0 2px 12px rgba(127, 86, 217, 0.08);
}

.bond-action-card:active {
  opacity: 0.75;
}

.bond-action-card.album-card {
  grid-column: 1 / -1;
}

.bond-action-card .card-icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5edff;
  border-radius: 8px;
  flex-shrink: 0;
}

.bond-action-card .card-label {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  flex: 1;
}

.bond-action-card .card-arrow {
  color: #aaa;
  font-size: 16px;
}

.bond-action-card .card-badge {
  background: #ff6b6b;
  color: #fff;
  font-size: 10px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 0 4px;
}

.bond-action-card .card-stat {
  font-size: 11px;
  color: #999;
}

/* ===== Panel dialogs ===== */

.panel-section {
  margin-bottom: 20px;
}

.panel-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
}

.section-title-purple { color: #7f56d9 !important; }
.section-title-gold { color: #b37f00 !important; }

.panel-rules {
  background: #fafafa;
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 16px;
}

.panel-rules .rules-title {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
}

.panel-rules ul {
  font-size: 12px;
  color: #666;
  line-height: 2;
  padding-left: 16px;
  list-style: disc;
}

.tag-student {
  background: #f5edff;
  color: #5e2ca5;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.tag-coach {
  background: #fff8e1;
  color: #b37f00;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.panel-empty {
  text-align: center;
  color: #ccc;
  padding: 40px 0;
  font-size: 14px;
}

.panel-batch {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

/* Request rows */
.request-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #fafafa;
  border-radius: 10px;
  margin-bottom: 8px;
}

.request-row .request-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.request-row .request-name {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.request-row .request-type-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.request-row .request-type-tag.student {
  background: #f5edff;
  color: #5e2ca5;
}

.request-row .request-type-tag.coach {
  background: #fff8e1;
  color: #b37f00;
}

.request-row .request-status-pending {
  font-size: 12px;
  color: #aaa;
}

.request-row .status-accepted { color: #4ecca3; font-size: 12px; font-weight: 600; }
.request-row .status-rejected { color: #ff6b6b; font-size: 12px; }

/* Recommendation cards */
.reco-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fafafa;
  border-radius: 10px;
  margin-bottom: 8px;
}

.reco-card.coach {
  background: linear-gradient(135deg, #fffdf0, #fff8f0);
  border: 1.5px solid #ffd700;
}

.reco-card .reco-label {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  flex-shrink: 0;
}

.reco-card .reco-type {
  flex-shrink: 0;
}

.reco-card .reco-desc {
  font-size: 11px;
  color: #999;
}

.reco-card.coach .reco-desc {
  color: #b37f00;
}

.reco-student-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Rankings */
.rank-columns {
  display: flex;
  gap: 24px;
}

.rank-col {
  flex: 1;
}

.rank-col h4 {
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
}

.rank-num {
  color: #aaa;
  width: 24px;
  font-weight: 700;
  text-align: center;
}

.rank-type {
  color: #111;
  font-weight: 600;
  flex: 1;
}

.rank-pct {
  color: #666;
  font-size: 12px;
}

.rank-rare {
  background: #f5edff;
  color: #7f56d9;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* Album grid */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.album-item {
  background: #fafafa;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  position: relative;
}

.album-item.lit {
  background: #fff0fb;
  border-color: #ff85d8;
}

.album-item .album-pair {
  font-size: 12px;
  font-weight: 700;
  color: #111;
}

.album-item .album-title {
  font-size: 10px;
  color: #999;
  margin-top: 3px;
}

.album-lit-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ff85d8;
  color: #fff;
  font-size: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.album-cross-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ffd700;
  color: #b37f00;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* ===== Responsive ===== */

@media (max-width: 639px) {
  .bond-dashboard {
    flex-direction: column;
  }

  .bond-char-card {
    flex: none;
    width: 100%;
  }

  .bond-action-cards {
    grid-template-columns: 1fr 1fr;
  }

  .rank-columns {
    flex-direction: column;
  }

  .bond-action-card.album-card {
    grid-column: auto;
  }
}

@media (min-width: 640px) and (max-width: 959px) {
  .bond-char-card {
    flex: 0 0 260px;
  }

  .bond-action-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  /* Desktop defaults */
}

/* ── Result Page: Dark Character Card ──────────────────────────── */
.result-date-mono {
  font-family: "DM Mono", "SF Mono", Consolas, monospace;
  font-size: 13px;
  color: #999;
}

/* Card shell */
.poster-card {
  margin: 0 16px 18px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: #0c0c1a;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 4px 24px rgba(0,0,0,0.08),
    0 20px 60px rgba(0,0,0,0.12);
  --accent: #FFD700;
  --accent-dim: rgba(255,215,0,0.15);
  --accent-glow: rgba(255,215,0,0.25);
}

.card-accent-line {
  height: 3px;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.card-header {
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.3);
  font-family: "DM Mono", "SF Mono", Consolas, monospace;
}

/* Hero */
.card-hero {
  padding: 24px 24px 0;
  text-align: center;
}

.avatar-frame {
  width: 150px;
  height: 150px;
  margin: 0 auto 18px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.04) 0%, transparent 60%),
    linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    0 0 0 4px rgba(0,0,0,0.4),
    0 0 40px var(--accent-dim),
    inset 0 0 60px rgba(0,0,0,0.3);
}

.rarity-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  font-family: "Orbitron", "SF Mono", monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 3px 12px 3px 14px;
  border-radius: 0 6px 0 12px;
  box-shadow: 0 4px 16px var(--accent-glow);
  color: #0c0c1a;
}

.type-label {
  font-size: 9px;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.type-code {
  font-family: "Orbitron", "SF Mono", monospace;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 8px;
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
  line-height: 1;
  margin: 0;
}

.type-subname {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
  letter-spacing: 1px;
}

.type-quote {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  font-style: italic;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.card-nickname {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}

.section-divider {
  height: 1px;
  margin: 20px 24px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), var(--accent-dim), rgba(255,255,255,0.08), transparent);
}

/* Radar */
.radar-section {
  padding: 0 20px 8px;
  text-align: center;
}

.radar-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,0.3);
  font-family: "DM Mono", "SF Mono", Consolas, monospace;
  margin-bottom: 12px;
}

.ability-radar-chart {
  width: 100%;
  height: 280px;
}

/* Traits */
.traits-row {
  padding: 6px 20px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.trait-tag {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
}

.trait-tag.highlight {
  background: var(--accent-dim);
  border-color: rgba(255,255,255,0.15);
  color: var(--accent);
}

/* Description */
.desc-card {
  margin: 14px 20px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border-left: 3px solid var(--accent);
}

.desc-text {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
}

/* Weakness */
.weakness-panel {
  margin: 6px 20px 4px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,70,70,0.04);
  border: 1px solid rgba(255,70,70,0.1);
}

.weakness-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,140,140,0.75);
}

.weakness-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,100,100,0.6);
  box-shadow: 0 0 6px rgba(255,100,100,0.4);
}

.weakness-text {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  margin-bottom: 8px;
}

.weakness-tips {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.weakness-tip {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
  padding-left: 12px;
  position: relative;
}

.weakness-tip::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.5;
}

/* Coach extra cards */
.coach-extra-card {
  margin: 8px 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
}

.coach-extra-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.coach-extra-text {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

/* Actions */
.card-actions {
  padding: 18px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-save-poster {
  width: 100%;
  padding: 15px;
  background: var(--accent);
  color: #0c0c1a;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-save-poster:active {
  opacity: 0.75;
}

.btn-row-secondary {
  display: flex;
  gap: 8px;
}

.btn-secondary-dark {
  flex: 1;
  padding: 13px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.btn-secondary-dark:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
}

.btn-ghost-dark {
  width: 100%;
  padding: 13px;
  background: transparent;
  color: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.btn-ghost-dark:hover {
  color: rgba(255,255,255,0.55);
  border-color: rgba(255,255,255,0.12);
}

.card-footer {
  text-align: center;
  padding: 0 20px 20px;
  font-size: 10px;
  color: rgba(255,255,255,0.15);
  letter-spacing: 2px;
  font-family: "DM Mono", "SF Mono", Consolas, monospace;
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}


.card-hero { animation: fadeUp 0.6s ease both; }
.radar-section { animation: fadeUp 0.6s 0.1s ease both; }
.traits-row { animation: fadeUp 0.5s 0.2s ease both; }
.desc-card { animation: fadeUp 0.5s 0.25s ease both; }
.weakness-panel { animation: fadeUp 0.5s 0.3s ease both; }
.card-actions { animation: fadeUp 0.5s 0.35s ease both; }
.avatar-frame { animation: none; }

/* ── Override old conflicting styles ────────────────── */
#page-result {
  min-height: calc(100vh - 60px);
  padding-bottom: 60px;
}

/* Override old pixel-avatar-result size for new avatar-frame */
.pixel-avatar-result {
  width: 100%;
  height: 100%;
  border-radius: 30px;
}

@media (max-width: 640px) {
  .type-code {
    font-size: 40px;
    letter-spacing: 6px;
  }

  .avatar-frame {
    width: 130px;
    height: 130px;
  }

  .ability-radar-chart {
    height: 240px;
  }
}

/* ── Partner Panel ──────────────────────────────────────────────── */
.partner-panel {
  text-align: center;
}

.partner-header {
  margin-bottom: 8px;
}

.partner-bond-title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.partner-bond-buff {
  font-size: 14px;
  color: #7f56d9;
  font-weight: 500;
}

.partner-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 24px;
}

.partner-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.partner-card-item {
  flex: 1;
  max-width: 180px;
  background: #fafafa;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
}

.partner-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5edff, #fff);
  border: 2px solid #d4c5f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-card-type {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  letter-spacing: 1px;
}

.partner-card-subname {
  font-size: 12px;
  color: #7f56d9;
  margin-bottom: 4px;
}

.partner-card-quote {
  font-size: 11px;
  color: #999;
  margin-bottom: 8px;
  font-style: italic;
}

.partner-card-role-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
}

.partner-card-role-tag.student {
  background: #f5edff;
  color: #5e2ca5;
}

.partner-card-role-tag.coach {
  background: #fff8e1;
  color: #b37f00;
}

.partner-divider {
  font-size: 24px;
  flex-shrink: 0;
  color: #ccc;
}

.partner-unbind {
  margin-top: 8px;
}

.partner-unbind .el-button {
  color: #999;
  font-size: 13px;
}

.partner-unbind .el-button:hover {
  color: #ff6b6b;
}

/* 入口卡片高亮 */
.bond-action-card.partner-card {
  border-color: #d4c5f0;
  background: linear-gradient(135deg, #fdfbff, #f8f6ff);
}

/* ── Partner List (multi-bond) ──────────────────────────────────── */
.bond-list-item {
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
  background: #fafafa;
}

.bond-list-item:hover {
  border-color: #d4c5f0;
}

.bond-list-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 14px;
}

.bond-list-avatars {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bond-list-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e8e8e8;
}

.bond-list-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5edff;
  color: #7f56d9;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid #d4c5f0;
}

.bond-list-vs {
  font-size: 16px;
  color: #ccc;
  flex-shrink: 0;
}

.bond-list-info {
  flex: 1;
  min-width: 0;
}

.bond-list-title {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin-bottom: 2px;
}

.bond-list-types {
  font-size: 12px;
  color: #7f56d9;
  margin-bottom: 2px;
}

.bond-list-date {
  font-size: 11px;
  color: #999;
}

.bond-list-arrow {
  font-size: 12px;
  color: #ccc;
  flex-shrink: 0;
}

/* 展开详情区 */
.bond-list-detail {
  padding: 0 16px 16px;
  text-align: center;
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
}

.bond-list-detail .partner-bond-buff {
  font-size: 14px;
  color: #7f56d9;
  font-weight: 500;
  margin-bottom: 16px;
}

.bond-list-detail .partner-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.bond-list-detail .partner-unbind {
  margin-top: 4px;
}
