@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #12161f;
  --muted: #5f687a;
  --line: #d9dfeb;
  --accent: #0a66ff;
  --accent-soft: #e8f0ff;
  --shadow: 0 8px 20px rgba(17, 33, 70, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% -10%, #d6e4ff 0%, transparent 36%),
    radial-gradient(circle at 10% 10%, #ecf5ff 0%, transparent 30%),
    var(--bg);
  font-family: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  line-height: 1.6;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

@media (min-width: 1440px) {
  .container {
    width: min(1280px, calc(100% - 80px));
  }
}

@media (min-width: 1920px) {
  .container {
    width: min(1400px, calc(100% - 120px));
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(245, 247, 251, 0.82);
  border-bottom: 1px solid rgba(217, 223, 235, 0.7);
}

.topbar-inner {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.topbar-logout {
  padding: 8px 14px;
  border-radius: 999px;
}

.nav-login {
  color: var(--accent) !important;
  font-weight: 700 !important;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(10, 102, 255, 0.22);
  background: rgba(10, 102, 255, 0.06);
  color: var(--ink) !important;
}

.nav-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0a66ff, #4a8fff);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.nav-user-email {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.hero {
  padding: 64px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 12px;
  color: #2156b7;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(28px, 4vw, 46px);
  max-width: 680px;
}

.subtitle {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 680px;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 9px 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 102, 255, 0.22);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

.hint {
  margin-top: 14px;
  font-size: 14px;
  color: #6f7990;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.panel-title {
  margin: 0;
  font-weight: 700;
}

.panel-desc {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.auth-panel {
  padding: 12px;
}

.auth-page-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, rgba(10, 102, 255, 0.2) 0%, transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(35, 128, 255, 0.22) 0%, transparent 40%),
    #eef3fb;
}

.auth-page-dark {
  background:
    radial-gradient(circle at 18% -10%, rgba(42, 86, 176, 0.3) 0%, transparent 34%),
    radial-gradient(circle at 90% 100%, rgba(28, 64, 152, 0.2) 0%, transparent 44%),
    #0b1019;
  color: #edf2ff;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1fr 460px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #d7e0ef;
  box-shadow: 0 14px 32px rgba(19, 46, 96, 0.16);
}

.auth-shell-dark {
  width: min(920px, 100%);
  grid-template-columns: 1fr;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 25, 37, 0.98), rgba(13, 17, 27, 0.98));
  border: 1px solid rgba(78, 92, 125, 0.5);
  box-shadow: 0 12px 32px rgba(2, 5, 13, 0.5);
}

.auth-visual {
  padding: 32px;
  background:
    linear-gradient(160deg, rgba(6, 65, 171, 0.94), rgba(12, 87, 223, 0.9)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), transparent 42%);
  color: #eef4ff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-visual .brand {
  color: #ffffff;
}

.auth-visual-kicker {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #cddcff;
}

.auth-visual h1 {
  font-size: clamp(24px, 2.6vw, 34px);
}

.auth-visual p {
  margin: 0;
  color: #d9e5ff;
  max-width: 520px;
}

.auth-visual .btn {
  margin-top: 6px;
  width: fit-content;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.auth-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.auth-card-modern {
  padding: clamp(18px, 3vw, 30px);
  gap: 10px;
}

.auth-card-right-dark {
  background: linear-gradient(180deg, rgba(17, 22, 35, 0.98), rgba(11, 15, 24, 0.98));
  color: #edf2ff;
}

.auth-card-right-dark .brand-light {
  color: #eef4ff;
}

.auth-card-right-dark .status-banner {
  border-color: rgba(70, 86, 124, 0.7);
  background: rgba(19, 25, 39, 0.9);
  color: #c9d7f7;
}

.auth-card-right-dark .session-card {
  border-color: rgba(76, 112, 191, 0.45);
  background: rgba(27, 42, 72, 0.45);
}

.auth-card-right-dark .btn-ghost {
  border-color: rgba(78, 96, 133, 0.75);
  background: rgba(20, 27, 40, 0.95);
  color: #e8efff;
}

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

.auth-lang-link {
  color: #2f6bff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.auth-modern-title {
  color: #f5f8ff;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.02em;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.auth-tabs-dark {
  margin-top: 2px;
}

.tab-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 10px;
  cursor: pointer;
}

.remember-row-dark {
  margin-top: 2px;
  color: #d7e2ff;
  font-size: 14px;
  font-weight: 500;
}

.tab-btn.active {
  color: var(--accent);
  border-color: rgba(10, 102, 255, 0.35);
  background: var(--accent-soft);
}

.auth-tabs-dark .tab-btn {
  background: rgba(18, 24, 36, 0.78);
  border: 1px solid rgba(66, 80, 112, 0.72);
  color: #9eb0d5;
}

.auth-tabs-dark .tab-btn.active {
  background: rgba(46, 93, 217, 0.26);
  border-color: rgba(68, 117, 255, 0.78);
  color: #d9e6ff;
}

.auth-form {
  display: grid;
  gap: 8px;
}

.auth-form-modern {
  gap: 12px;
}

.field-label {
  font-size: 13px;
  color: #516078;
  font-weight: 600;
}

.field-label-dark {
  color: #a8b4cf;
}

.field-input {
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input-dark {
  border-radius: 10px;
  border-color: rgba(75, 88, 117, 0.75);
  background: rgba(12, 16, 25, 0.92);
  color: #e7edff;
  padding: 12px 12px 12px 40px;
  font-size: 14px;
}

.field-input-dark::placeholder {
  color: #7e8fb0;
}

.field-input:focus {
  border-color: rgba(10, 102, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(10, 102, 255, 0.16);
}

.field-input-dark:focus {
  border-color: rgba(61, 126, 255, 0.92);
  box-shadow: 0 0 0 3px rgba(61, 126, 255, 0.24);
}

.field-input-wrap {
  position: relative;
}

.field-input-wrap-dark {
  position: relative;
  display: block;
}

.field-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #97a6c7;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

.field-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.field-input-wrap .field-input {
  width: 100%;
  padding-right: 60px;
}

.input-action-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #5f7dbe;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
}

.input-action-btn-dark {
  right: 12px;
  color: #92a3c5;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.input-action-btn-dark:hover {
  color: #d8e4ff;
  background: transparent;
}

.eye-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.remember-row {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4c5d7f;
  font-size: 14px;
  cursor: pointer;
}

.remember-row input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.remember-row-dark input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: #2f6bff;
}

.auth-submit-btn {
  margin-top: 6px;
  height: 46px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 20px rgba(41, 92, 219, 0.28);
}

.auth-card-modern .status-banner {
  margin-top: 0;
}

.auth-card-modern .code-block {
  margin-top: 8px;
  background: rgba(8, 13, 24, 0.95);
  border: 1px solid rgba(56, 73, 110, 0.7);
  color: #cfe0ff;
}

.hidden {
  display: none;
}

.status-banner {
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  font-size: 14px;
}

.status-banner.success {
  border-color: rgba(19, 181, 120, 0.35);
  background: rgba(19, 181, 120, 0.08);
  color: #10664a;
}

.status-banner.error {
  border-color: rgba(237, 52, 86, 0.35);
  background: rgba(237, 52, 86, 0.08);
  color: #8f1731;
}

.auth-top-toast {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: min(92vw, 560px);
  padding: 10px 16px;
  border-radius: 10px;
  background: #ffffff;
  color: rgba(0, 0, 0, 0.85);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.16), 0 9px 28px 0 rgba(0, 0, 0, 0.1),
    0 12px 48px 16px rgba(0, 0, 0, 0.07);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -120%);
  transition: transform 0.32s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.26s ease;
}

.auth-top-toast.show {
  transform: translate(-50%, 24px);
  opacity: 1;
}

.auth-top-toast-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-top-toast-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.auth-top-toast.error .auth-top-toast-icon {
  color: #ff4d4f;
}

.auth-top-toast.success .auth-top-toast-icon {
  color: #52c41a;
}

.auth-top-toast.info .auth-top-toast-icon {
  color: #1677ff;
}

.auth-top-toast-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(22, 119, 255, 0.22);
  border-top-color: #1677ff;
  border-radius: 50%;
  animation: auth-toast-spin 0.7s linear infinite;
}

.auth-top-toast-text {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes auth-toast-spin {
  to { transform: rotate(360deg); }
}

.session-card {
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid rgba(10, 102, 255, 0.25);
  background: rgba(10, 102, 255, 0.08);
  padding: 12px;
}

.session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.code-block {
  margin: 10px 0 0;
  border-radius: 10px;
  background: #0f1320;
  color: #d8e0ff;
  padding: 10px;
  min-height: 64px;
  overflow: auto;
  font-size: 13px;
}

.section {
  padding: 40px 0;
}

.section h2 {
  font-size: clamp(22px, 3vw, 30px);
}

.cards {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.alt {
  background: linear-gradient(180deg, rgba(232, 240, 255, 0.45), rgba(232, 240, 255, 0));
}

.list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}

.contact p {
  color: var(--muted);
  margin: 8px 0 16px;
}

.profile-main {
  padding: 22px 0 38px;
  display: grid;
  gap: 14px;
}

.profile-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.kv-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.kv-list div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  font-size: 14px;
}

.plans-page-body {
  background:
    radial-gradient(circle at 10% 0%, rgba(29, 79, 185, 0.22) 0%, transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(9, 37, 99, 0.35) 0%, transparent 40%),
    #05070d;
  color: #e8eefc;
}

.topbar-dark {
  background: rgba(8, 11, 20, 0.82);
  border-bottom: 1px solid rgba(58, 76, 115, 0.5);
}

.brand-light {
  color: #f1f5ff;
}

.nav-dark a {
  color: #bec9e8;
}

.nav-dark .nav-user {
  border-color: rgba(88, 122, 186, 0.45);
  background: rgba(116, 156, 233, 0.14);
  color: #e8eefc !important;
}

.plans-main {
  padding: 20px 0 38px;
  display: grid;
  gap: 14px;
}

.plans-head h1 {
  font-size: clamp(24px, 3.2vw, 34px);
  color: #f1f5ff;
}

.plans-head p {
  margin-top: 8px;
  color: #98a6cd;
}

.plans-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plan-card {
  background: linear-gradient(180deg, rgba(20, 26, 43, 0.9), rgba(13, 18, 30, 0.95));
  border: 1px solid rgba(56, 74, 113, 0.72);
  border-radius: 10px;
  padding: 14px 12px;
  display: grid;
  gap: 8px;
}

.plan-card.recommended {
  border-color: rgba(60, 122, 255, 0.95);
  box-shadow: 0 8px 18px rgba(16, 76, 196, 0.22);
}

.plan-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #ecf2ff;
}

.plan-price {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #3d82ff;
}

.plan-price span {
  font-size: 14px;
  color: #adc3f5;
}

.plan-price-sub {
  margin: -4px 0 0;
  color: #93abdf;
}

.plan-points {
  margin: 0;
  color: #5ea4ff;
  font-weight: 600;
}

.plan-desc {
  margin: 0;
  color: #8ea0ca;
  font-size: 13px;
}

.panel-dark {
  background: linear-gradient(180deg, rgba(16, 21, 34, 0.9), rgba(10, 14, 24, 0.94));
  border-color: rgba(56, 74, 113, 0.72);
  color: #e7eeff;
}

.panel-dark .panel-desc {
  color: #9baad0;
}

.panel-dark .code-block {
  background: #0a0f1c;
  color: #d7e3ff;
}

.rules-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rules-grid ul {
  margin: 0;
  padding-left: 18px;
  color: #afc2ee;
  display: grid;
  gap: 6px;
}

.pay-main {
  padding: 20px 0 36px;
  display: grid;
  gap: 14px;
}

.pay-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 16px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  color: #6a7387;
  font-size: 14px;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    padding: 28px;
  }

  .auth-card {
    padding: 18px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .pay-actions {
    flex-direction: column;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 14px;
  }
}

/* ============ Runs Page ============ */
.runs-page-body {
  background:
    radial-gradient(circle at 12% 0%, rgba(29, 79, 185, 0.28) 0%, transparent 32%),
    radial-gradient(circle at 88% 14%, rgba(67, 122, 255, 0.18) 0%, transparent 40%),
    #06080f;
  /* 固定到视口：避免筛选导致页面高度变化时，百分比定位的渐变被重新拉伸，整页壁纸颜色发生变化 */
  background-attachment: fixed;
  background-color: #06080f;
  color: #e8eefc;
  min-height: 100vh;
}

.runs-main {
  padding: 24px 0 48px;
  display: grid;
  gap: 18px;
}

.runs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.runs-head h1 {
  font-size: clamp(24px, 3vw, 34px);
  color: #f3f7ff;
}

.runs-head p {
  margin: 8px 0 0;
  color: #93a3cd;
  max-width: 620px;
}

.runs-create-btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 22px rgba(40, 92, 219, 0.28);
}

.runs-create-plus {
  font-size: 18px;
  line-height: 1;
  margin-right: 2px;
}

.runs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.92), rgba(11, 16, 28, 0.94));
  border: 1px solid rgba(58, 76, 115, 0.55);
}

.runs-stats {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.runs-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.runs-stat-label {
  font-size: 12px;
  color: #8294c0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.runs-stat-value {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #e9f0ff;
}

.runs-refresh-btn {
  border-color: rgba(78, 96, 133, 0.7);
  background: rgba(22, 28, 42, 0.9);
  color: #d8e3ff;
}

.runs-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.runs-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-task-wrap {
  display: flex;
  align-items: center;
}

.search-task-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: rgba(78, 96, 133, 0.7);
  background: rgba(22, 28, 42, 0.9);
  color: #d8e3ff;
}

.search-task-btn svg {
  flex-shrink: 0;
}

.search-task-input-wrap {
  display: flex;
  align-items: center;
  position: relative;
  margin-left: 8px;
}

.search-task-input {
  width: 200px;
  height: 36px;
  padding: 0 32px 0 10px;
  font-size: 13px;
}

.search-task-close {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.search-task-input-wrap:hover .search-task-close,
.search-task-input:focus ~ .search-task-close {
  color: #6b7fa8;
}

.search-task-close:hover {
  background: rgba(78, 96, 133, 0.4);
  color: #d8e3ff;
}

.runs-list {
  display: grid;
  gap: 12px;
}

.runs-empty {
  text-align: center;
  padding: 28px;
  color: #8294c0;
  background: rgba(18, 24, 38, 0.6);
  border: 1px dashed rgba(58, 76, 115, 0.55);
  border-radius: 12px;
}

.runs-empty-loading {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.runs-loader {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid rgba(129, 165, 235, 0.28);
  border-top-color: #6ba7ff;
  animation: runs-spin 0.85s linear infinite;
}

@keyframes runs-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.run-card {
  background: linear-gradient(180deg, rgba(20, 26, 42, 0.94), rgba(13, 18, 30, 0.96));
  border: 1px solid rgba(58, 76, 115, 0.55);
  border-radius: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.run-card:hover {
  border-color: rgba(98, 138, 240, 0.7);
  transform: translateY(-1px);
}

.run-card.expanded {
  border-color: rgba(86, 132, 242, 0.85);
  box-shadow: 0 8px 20px rgba(20, 56, 144, 0.3);
}

.run-card-row {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  user-select: none;
}

.run-card-main {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.run-card-asin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.run-card-asin-text {
  font-family: 'Space Grotesk', monospace;
  font-size: 15px;
  font-weight: 700;
  color: #f1f5ff;
  letter-spacing: 0.02em;
}

.run-card-country {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(86, 132, 242, 0.6);
  background: rgba(46, 93, 217, 0.18);
  color: #b6cdff;
}

.run-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #92a4cf;
  font-size: 13px;
}

.run-card-time::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(146, 164, 207, 0.78);
  display: inline-block;
  margin-right: 4px;
}

.run-card-reviews::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(121, 187, 255, 0.88);
  display: inline-block;
  margin-right: 4px;
}

.run-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.run-badge-running {
  background: rgba(28, 162, 110, 0.16);
  color: #6df1b1;
  border: 1px solid rgba(28, 162, 110, 0.45);
}

.run-badge-waiting {
  background: rgba(245, 191, 66, 0.18);
  color: #ffd97a;
  border: 1px solid rgba(245, 191, 66, 0.5);
}

.run-badge-initializing {
  background: rgba(61, 126, 255, 0.2);
  color: #c8deff;
  border: 1px solid rgba(80, 143, 255, 0.55);
}

.run-badge-closed {
  background: rgba(110, 122, 156, 0.18);
  color: #c5cee0;
  border: 1px solid rgba(110, 122, 156, 0.5);
}

.run-badge-hidden {
  background: rgba(80, 146, 255, 0.18);
  color: #b8d7ff;
  border: 1px solid rgba(109, 167, 255, 0.52);
}

.run-badge-demo {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(99, 102, 241, 0.22));
  color: #d9c6ff;
  border: 1px solid rgba(168, 85, 247, 0.5);
}

.run-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.22);
  animation: run-pulse 1.4s infinite ease-in-out;
}

.run-badge-dot-initializing {
  background: #6ba6ff;
  box-shadow: 0 0 0 3px rgba(107, 166, 255, 0.24);
  animation: run-pulse 1.4s infinite ease-in-out;
}

@keyframes run-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes run-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.run-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.run-action {
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.run-start-btn,
.run-restart-btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 102, 255, 0.22);
}

.run-hide-btn {
  width: 36px;
  padding: 7px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(140, 188, 255, 0.6);
  background: rgba(70, 132, 255, 0.16);
  color: #a8ceff;
}

.run-hide-btn .run-hide-text {
  display: none;
}

.run-hide-btn:hover .run-hide-icon {
  display: none;
}

.run-hide-btn:hover .run-hide-text {
  display: inline;
}

.run-card-actions .btn-ghost {
  border-color: rgba(78, 96, 133, 0.75);
  background: rgba(22, 30, 46, 0.9);
  color: #d8e3ff;
}

.run-card-actions .btn-ghost[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.run-toggle {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(78, 96, 133, 0.55);
  background: rgba(22, 30, 46, 0.85);
  color: #b6c4e6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.run-toggle svg {
  pointer-events: none;
}

.run-card.expanded .run-toggle {
  color: #ecf2ff;
  transform: rotate(180deg);
}

.run-detail {
  padding: 0 16px 16px;
  border-top: 1px dashed rgba(58, 76, 115, 0.6);
}

.run-detail-grid {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 18px;
}

.run-detail-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.run-detail-grid dt {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #7b8cb5;
  text-transform: uppercase;
}

.run-detail-grid dd {
  margin: 0;
  font-size: 14px;
  color: #e7eeff;
  word-break: break-word;
}

.run-detail-wide {
  grid-column: span 4;
}

/* ============ Modal ============ */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}

.modal-mask.hidden {
  display: none;
}

.modal-card {
  width: min(460px, 100%);
  background: linear-gradient(180deg, rgba(20, 26, 42, 0.98), rgba(11, 16, 28, 0.98));
  border-radius: 12px;
  border: 1px solid rgba(72, 92, 134, 0.65);
  padding: 20px;
  box-shadow: 0 18px 40px rgba(2, 8, 22, 0.5);
  color: #e8eefc;
}

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

.modal-head h2 {
  font-size: 18px;
  color: #f3f7ff;
}

.modal-close {
  border: none;
  background: transparent;
  color: #9badd6;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modal-body {
  display: grid;
  gap: 10px;
}

.runs-input {
  width: 100%;
}

.runs-input.field-input-dark {
  padding: 12px 14px;
}

.runs-switch {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d3deff;
  font-size: 14px;
  cursor: pointer;
}

.runs-switch input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: #3d82ff;
}

.form-tip {
  background: rgba(237, 52, 86, 0.16);
  border: 1px solid rgba(237, 52, 86, 0.45);
  color: #ffbfca;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.form-tip-warning {
  background: rgba(255, 193, 7, 0.12);
  border-color: rgba(255, 193, 7, 0.45);
  color: #ffd54f;
}

.modal-foot {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-foot .btn-ghost {
  border-color: rgba(78, 96, 133, 0.75);
  background: rgba(22, 30, 46, 0.85);
  color: #d8e3ff;
}

.start-modal-body {
  gap: 12px;
}

.start-modal-title {
  margin: 0;
  color: #eff5ff;
  font-size: 16px;
  font-weight: 700;
}

.start-modal-desc {
  margin: 0;
  color: #9fb1da;
  line-height: 1.8;
  font-size: 14px;
}

/* ============ Run Reviews ============ */
.run-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
  padding: 16px 18px;
  border-radius: 12px;
}

.run-summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.run-summary-item span {
  font-size: 12px;
  color: #7e8fb6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.run-summary-item strong {
  font-size: 15px;
  color: #ecf2ff;
  word-break: break-word;
}

.reviews-list {
  display: grid;
  gap: 12px;
  max-width: 850px;
  margin: 0 auto;
}

.review-card {
  background: linear-gradient(180deg, rgba(20, 26, 42, 0.92), rgba(13, 18, 30, 0.94));
  border: 1px solid rgba(58, 76, 115, 0.5);
  border-radius: 10px;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
  font-family: Arial, Helvetica, 'PingFang SC', 'Noto Sans SC', sans-serif;
  line-height: 1.4;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(86, 110, 160, 0.35);
  border: 1px solid rgba(120, 146, 200, 0.4);
  color: #cdd9f5;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.review-author-name {
  color: #c8d4f0;
  font-size: 14px;
  font-weight: 500;
}

/* new! 标签 - 评论页面中显示未查看评论 */
.review-new-tag {
  display: inline-block;
  background: #fff;
  color: #1a1a2e;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 6px;
  flex-shrink: 0;
}

.review-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.review-stars {
  display: inline-flex;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.review-star {
  color: rgba(120, 134, 165, 0.55);
  font-size: 15px;
  line-height: 1;
}

.review-star.filled {
  color: #ff9900;
}

.review-title {
  font-weight: 700;
  color: #f0f4ff;
  font-size: 16px;
}

.review-sub {
  color: #8294c0;
  font-size: 13px;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.review-tag {
  font-size: 12px;
  font-weight: 600;
}

.review-tag-vp {
  color: #ff9f43;
}

.review-tag-vine {
  color: #6ee7c8;
}

.review-tag-early {
  color: #9db4ff;
}

.review-tag-video {
  color: #c8a2ff;
}

.review-comment {
  margin: 4px 0 0;
  color: #d4dcf3;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.review-comment.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-comment.clickable {
  cursor: pointer;
}

.review-expand {
  justify-self: start;
  margin-top: 2px;
  padding: 0;
  border: none;
  background: transparent;
  color: #6ba7ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.review-expand:hover {
  color: #93c1ff;
  text-decoration: underline;
}

.review-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.review-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(58, 76, 115, 0.6);
}

.review-helpful {
  margin-top: 4px;
  color: #8294c0;
  font-size: 13px;
}

/* ============ 评论筛选工具栏 ============ */
.review-toolbar {
  display: grid;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
}

.review-toolbar[hidden] {
  display: none;
}

.rt-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.rt-foot {
  justify-content: space-between;
  border-top: 1px dashed rgba(58, 76, 115, 0.5);
  padding-top: 12px;
}

.rt-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rt-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8294c0;
}

.rt-stars {
  display: inline-flex;
  gap: 6px;
}

.rt-chip {
  border: 1px solid rgba(78, 96, 133, 0.6);
  background: rgba(22, 30, 46, 0.85);
  color: #c8d4f0;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.rt-chip:hover {
  border-color: rgba(109, 167, 255, 0.7);
  color: #eaf1ff;
}

.rt-chip.active {
  border-color: rgba(255, 153, 0, 0.85);
  color: #ffce8a;
}

.rt-select,
.rt-date {
  background: rgba(22, 30, 46, 0.9);
  border: 1px solid rgba(78, 96, 133, 0.6);
  border-radius: 10px;
  color: #e3ebff;
  padding: 8px 10px;
  font-size: 13px;
}

.rt-date {
  color-scheme: dark;
}

/* 去掉下拉/筛选控件聚焦后残留的白色描边（截图里选完选项出现的一圈白边） */
.rt-select:focus,
.rt-select:focus-visible {
  outline: none;
  border-color: rgba(109, 167, 255, 0.7);
}

.rt-chip:focus,
.rt-chip:focus-visible,
.rt-reset:focus,
.rt-reset:focus-visible {
  outline: none;
}

/* 自定义日期输入：点击后展示 20□□-□□-□□ 模板，已填数字高亮、待填方框提示 */
.rt-date-field {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* 字段外观（底色/边框/聚焦光圈）放到 shell 上，让输入框保持透明背景，
   这样输入框可以叠在模板层之上、光标不会被格子图层遮住。 */
.rt-date-shell {
  position: relative;
  display: inline-block;
  background: rgba(22, 30, 46, 0.9);
  border: 1px solid rgba(78, 96, 133, 0.6);
  border-radius: 10px;
}

.rt-date-shell:focus-within {
  border-color: rgba(255, 153, 0, 0.85);
  box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.18);
}

/* 真实输入框：透明背景/边框、文字透明，仅保留橙色跳动光标，并叠在模板层上方 */
.rt-date-input {
  position: relative;
  z-index: 2;
  width: 158px;
  padding-right: 30px;
  background: transparent;
  border-color: transparent;
  color: transparent;
  caret-color: #ff9f43;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13px;
  letter-spacing: 2px;
}

.rt-date-input:focus {
  outline: none;
  border-color: transparent;
  box-shadow: none;
}

.rt-date-tmpl {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 0 31px 0 11px;
  pointer-events: none;
}

/* 单行内联容器：已输入数字/连字符保持等宽（与输入框光标对齐），未输入位渲染为长方格子 */
.rt-date-line {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13px;
  letter-spacing: 2px;
  white-space: pre;
  color: #e9f0ff;
}

.rt-date-line.is-hint {
  color: #7e8fb6;
}

/* 已输入数字 */
.dt-num {
  color: #e9f0ff;
}

/* 关键：每个位（数字/连字符/格子）都占据“一个等宽字符”的宽度——
   连字符与格子的字符本身透明、只占位，视觉元素用居中的伪元素绘制，
   这样数字替换格子时宽度完全不变，输入过程中不会有任何位移。 */

/* 连字符：占位字符透明，用居中的短横线绘制，确保卡在格子中线位置。
   默认暗色；当其后一位已有输入时（.dt-dash-on）才点亮。 */
.dt-dash {
  position: relative;
  color: transparent;
}

.dt-dash::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 2px;
  border-radius: 1px;
  background: #4d5774;
}

.dt-dash-on::before {
  background: #cdd6ee;
}

/* 待输入位：占位字符透明，用居中的长方格子绘制（两倍高，体型与数字相当） */
.dt-box {
  position: relative;
  color: transparent;
}

.dt-box::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 16px;
  border: 1px solid #5f6b88;
  border-radius: 3px;
}

.rt-date-cal,
.rt-date-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #8aa0d0;
  cursor: pointer;
  z-index: 3;
  transition: color 0.2s ease, background 0.2s ease;
}

.rt-date-cal:hover,
.rt-date-clear:hover {
  color: #ff9f43;
  background: rgba(255, 153, 0, 0.12);
}

.rt-date-clear.hidden,
.rt-date-cal.hidden {
  display: none;
}

.rt-date-native {
  position: absolute;
  right: 4px;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
  padding: 0;
  color-scheme: dark;
}

.rt-sep {
  color: #6f7fa6;
}

.rt-reset {
  border-color: rgba(78, 96, 133, 0.75);
  background: rgba(22, 30, 46, 0.85);
  color: #d8e3ff;
  padding: 8px 16px;
  font-size: 13px;
}

.rt-count {
  color: #c2cfee;
  font-size: 14px;
}

.rt-count strong {
  color: #ff9f43;
  font-size: 16px;
}

.rt-report {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rt-report[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.rt-report.is-ready {
  background: linear-gradient(140deg, rgba(36, 160, 110, 0.95), rgba(52, 211, 153, 0.92));
  box-shadow: 0 6px 16px rgba(28, 162, 110, 0.26);
}

.rt-report-spinner {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.rt-report-spinner[hidden] {
  display: none;
}

.rt-report-tip {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 10px;
}

.rt-report-tip[hidden] {
  display: none;
}

.rt-report-tip-info {
  background: rgba(61, 126, 255, 0.16);
  border: 1px solid rgba(80, 143, 255, 0.45);
  color: #c8deff;
}

.rt-report-tip-success {
  background: rgba(28, 162, 110, 0.16);
  border: 1px solid rgba(28, 162, 110, 0.45);
  color: #8af0bf;
}

.rt-report-tip-error {
  background: rgba(237, 52, 86, 0.16);
  border: 1px solid rgba(237, 52, 86, 0.45);
  color: #ffbfca;
}

/* 左侧浏览进度指示 */
.review-progress {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 26, 42, 0.96), rgba(11, 16, 28, 0.96));
  border: 1px solid rgba(58, 76, 115, 0.6);
  box-shadow: 0 10px 22px rgba(2, 8, 22, 0.4);
  color: #c8d4f0;
  pointer-events: none;
  user-select: none;
}

/* 宽屏下 .container 会随视口增宽（见顶部媒体查询），这里让浮标跟随容器左边缘外侧，
   避免在超宽屏上和内容之间出现一大块脱节的空白 */
@media (min-width: 1440px) {
  .review-progress {
    left: max(18px, calc(50% - 730px));
  }
}

@media (min-width: 1920px) {
  .review-progress {
    left: calc(50% - 790px);
  }
}

.review-progress.hidden {
  display: none;
}

.review-progress-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #7e8fb6;
}

.review-progress-num {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 13px;
  color: #8294c0;
}

.review-progress-num strong {
  color: #ff9f43;
  font-size: 20px;
  font-weight: 700;
}

.review-progress-unit {
  font-size: 11px;
  color: #7e8fb6;
}

@media (max-width: 1180px) {
  .review-progress {
    display: none !important;
  }
}

/* ============ AI 报告页 ============ */
.report-main {
  padding: 24px 0 56px;
  display: grid;
  gap: 18px;
}

.report-state {
  text-align: center;
  padding: 44px 20px;
  color: #9fb1da;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.report-hero {
  background: linear-gradient(160deg, rgba(20, 26, 42, 0.95), rgba(11, 16, 28, 0.96));
  border: 1px solid rgba(58, 76, 115, 0.55);
  border-radius: 14px;
  padding: 20px 22px;
  display: grid;
  gap: 12px;
}

.report-hero h1 {
  font-size: clamp(20px, 2.6vw, 28px);
  color: #f3f7ff;
}

.report-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #93a3cd;
  font-size: 13px;
}

.report-hero-meta strong {
  color: #d7e3ff;
  font-weight: 600;
}

.report-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-pill {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(86, 132, 242, 0.5);
  background: rgba(46, 93, 217, 0.16);
  color: #b6cdff;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.report-stat {
  background: linear-gradient(180deg, rgba(20, 26, 42, 0.92), rgba(13, 18, 30, 0.94));
  border: 1px solid rgba(58, 76, 115, 0.5);
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.report-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8294c0;
}

.report-stat-value {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ecf2ff;
}

.report-stat-sub {
  font-size: 12px;
  color: #7e8fb6;
}

.report-section {
  background: linear-gradient(180deg, rgba(20, 26, 42, 0.92), rgba(13, 18, 30, 0.94));
  border: 1px solid rgba(58, 76, 115, 0.5);
  border-radius: 12px;
  padding: 18px 20px;
  display: grid;
  gap: 12px;
}

.report-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.report-section-head h2 {
  font-size: 16px;
  color: #f0f4ff;
}

.ai-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(168, 85, 247, 0.6);
  background: rgba(168, 85, 247, 0.14);
  color: #d9c6ff;
}

.report-bars {
  display: grid;
  gap: 10px;
}

.report-bar-row {
  display: grid;
  grid-template-columns: 48px 1fr 110px;
  align-items: center;
  gap: 12px;
}

.report-bar-label {
  color: #ffce8a;
  font-weight: 600;
  font-size: 13px;
}

.report-bar-track {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(58, 76, 115, 0.4);
  overflow: hidden;
}

.report-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9900, #ffbf66);
}

.report-bar-meta {
  text-align: right;
  color: #93a3cd;
  font-size: 12px;
}

.report-prose {
  color: #d4dcf3;
  line-height: 1.8;
  font-size: 14px;
  margin: 0;
}

.report-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.report-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #d4dcf3;
  font-size: 14px;
  line-height: 1.6;
}

.report-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-tag {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(78, 96, 133, 0.6);
  background: rgba(22, 30, 46, 0.85);
  color: #c8d4f0;
}

.report-tag-clickable {
  cursor: pointer;
  transition: all 0.15s;
}

.report-tag-clickable:hover {
  background: rgba(86,132,242,0.2);
  border-color: rgba(86,132,242,0.6);
  color: #90b6ff;
}

.report-quotes {
  display: grid;
  gap: 12px;
}

.report-quote {
  border-left: 3px solid rgba(255, 153, 0, 0.7);
  background: rgba(22, 30, 46, 0.6);
  border-radius: 0 10px 10px 0;
  padding: 10px 14px;
  display: grid;
  gap: 6px;
}

.report-quote-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.report-quote-stars {
  color: #ff9900;
  letter-spacing: 1px;
  font-size: 13px;
}

.report-quote-name {
  color: #9fb1da;
  font-size: 13px;
}

.report-quote-text {
  color: #dfe6f7;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 860px) {
  .rt-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .rt-report {
    justify-content: center;
  }
  .report-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .run-card-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .run-card-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .run-detail-grid,
  .run-summary {
    grid-template-columns: 1fr 1fr;
  }
  .run-detail-wide {
    grid-column: span 2;
  }
}

/* ============ 滚动加载（方案 B） ============ */
.list-sentinel {
  width: 100%;
  height: 1px;
}

#reviews-cards {
  display: grid;
  gap: 12px;
}

.list-loading-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 0 2px;
  color: #8294c0;
  font-size: 13px;
}

.list-loading-more .runs-loader {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

.list-loading-more.hidden {
  display: none;
}

/* ============ 回到顶部 ============ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 26px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(120, 146, 200, 0.55);
  background: linear-gradient(140deg, rgba(50, 112, 232, 0.96), rgba(76, 153, 255, 0.94));
  color: #f1f6ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(20, 56, 144, 0.38);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top svg {
  flex-shrink: 0;
}

.back-to-top-label {
  white-space: nowrap;
}

.back-to-top:hover {
  background: linear-gradient(140deg, rgba(62, 124, 244, 1), rgba(96, 168, 255, 1));
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(20, 56, 144, 0.46);
}

.back-to-top.hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

@media (max-width: 860px) {
  .back-to-top {
    right: 16px;
    bottom: 20px;
    padding: 10px 14px;
  }
}

/* ============ 图片预览灯箱 ============ */
.review-thumb {
  cursor: zoom-in;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.review-thumb:hover {
  transform: scale(1.04);
  border-color: rgba(109, 167, 255, 0.8);
}

.rt-date {
  cursor: text;
}

.rt-date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.7);
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 8, 16, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox.hidden {
  display: none;
}

.lightbox-img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(2, 8, 22, 0.6);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(150, 170, 210, 0.5);
  background: rgba(20, 26, 42, 0.85);
  color: #e8eefc;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(40, 52, 80, 0.95);
  transform: scale(1.05);
}

/* ============ Run Card: ASIN Thumbnail ============ */
.run-card-thumb-wrap {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.run-card-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(72, 92, 134, 0.4);
  flex-shrink: 0;
}

/* new! 标签 - runs列表中显示新评论 */
.new-tag {
  display: inline-block;
  background: #fff;
  color: #1a1a2e;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}

.run-card-main {
  flex: 1;
  min-width: 0;
}

/* ============ Create Modal Multi-Step ============ */
.create-step.hidden {
  display: none !important;
}

.create-step.modal-body {
  min-height: 220px;
}

/* --- Step: collecting / creating (centered loader) --- */
.cstep-centered {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 0;
}

.cstep-loading-text {
  color: #9fb1da;
  font-size: 14px;
  text-align: center;
}

/* --- Step: confirm product preview --- */
.cstep-product-preview {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 0 4px;
}

.cconfirm-img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  border: 1px solid rgba(72, 92, 134, 0.5);
}

.cconfirm-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.cconfirm-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #5b9df5;
  text-transform: uppercase;
}

.cconfirm-title {
  font-size: 14px;
  color: #dce8ff;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cconfirm-question {
  margin: 0;
  font-size: 14px;
  color: #9fb1da;
  padding-top: 2px;
}

/* --- Step: variant choice --- */
.create-step-variant {
  padding: 16px 0 8px;
}

.variant-choice-wrap {
  display: flex;
  gap: 10px;
  min-height: 190px;
}

.variant-choice-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 14px 10px;
  background: rgba(25, 34, 56, 0.9);
  border: 1.5px solid rgba(72, 92, 134, 0.6);
  border-radius: 10px;
  color: #e8eefc;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  text-align: center;
  min-height: 180px;
}

.variant-choice-btn:hover {
  border-color: #3d82ff;
  background: rgba(36, 50, 80, 0.95);
  transform: translateY(-2px);
}

.vchoice-asin {
  font-size: 13px;
  font-weight: 700;
  color: #90b6f5;
  letter-spacing: 0.04em;
  word-break: break-all;
}

.vchoice-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(72, 92, 134, 0.4);
}

.vchoice-label {
  font-size: 12px;
  color: #9fb1da;
  line-height: 1.5;
  margin-top: auto;
}

.variant-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  max-width: 180px;
}

.variant-thumb {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(72, 92, 134, 0.4);
}

.variant-more {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 130, 255, 0.18);
  border: 1px solid rgba(61, 130, 255, 0.4);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #90b6f5;
}

/* --- 母ASIN样式卡片 (variant choice: all-variants button image) --- */
.vchoice-parent-card {
  width: 100%;
  border: 1px solid rgba(72, 92, 134, 0.7);
  border-radius: 10px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(10, 14, 26, 0.75);
}

.vchoice-parent-card-asin {
  font-family: 'Space Grotesk', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #5b9df5;
  text-decoration: underline;
  text-decoration-color: rgba(91, 157, 245, 0.45);
  word-break: break-all;
  text-align: center;
}

.vchoice-parent-card-title {
  font-size: 12px;
  color: #dce8ff;
  text-align: center;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- 问号卡片 (parent-choice: left button image) --- */
.vchoice-qmark-card {
  width: 100%;
  border: 1px solid rgba(72, 92, 134, 0.7);
  border-radius: 10px;
  padding: 18px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 26, 0.75);
  min-height: 76px;
}

.vchoice-qmark-symbol {
  font-size: 32px;
  color: #6b7fa8;
  font-weight: 700;
  line-height: 1;
  font-family: 'Space Grotesk', sans-serif;
}

/* --- 父ASIN提示文字 --- */
.cstep-parent-prompt {
  font-size: 13px;
  color: #9fb1da;
  margin: 0 0 10px;
  padding: 0 2px;
  line-height: 1.6;
}

.cstep-parent-prompt strong {
  color: #c8d4f0;
}

/* --- Step: 子变体列表选择 --- */
.cstep-variant-select {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 4px;
}

.variant-select-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(72, 92, 134, 0.4) transparent;
}

.variant-select-list::-webkit-scrollbar {
  width: 4px;
}

.variant-select-list::-webkit-scrollbar-track {
  background: transparent;
}

.variant-select-list::-webkit-scrollbar-thumb {
  background: rgba(72, 92, 134, 0.45);
  border-radius: 2px;
}

.variant-select-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6b7fa8;
  text-transform: uppercase;
  padding: 6px 2px 2px;
}

.variant-select-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: rgba(22, 30, 48, 0.9);
  border: 1px solid rgba(58, 76, 115, 0.55);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  color: #e8eefc;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}

.variant-select-item:hover {
  border-color: rgba(61, 130, 255, 0.75);
  background: rgba(32, 46, 74, 0.95);
}

.vsel-item-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(72, 92, 134, 0.35);
  flex-shrink: 0;
}

.vsel-item-img-placeholder {
  background: rgba(58, 76, 115, 0.2);
  border-color: rgba(58, 76, 115, 0.3);
}

.vsel-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.vsel-item-asin {
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #90b6f5;
}

.vsel-item-name {
  font-size: 12px;
  color: #9fb1da;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ Run Card: ASIN Info Section ============ */
.run-asin-section {
  padding: 14px 0 10px;
  border-bottom: 1px solid rgba(72, 92, 134, 0.3);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.run-asin-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.run-asin-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(72, 92, 134, 0.45);
  flex-shrink: 0;
}

.run-asin-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.run-asin-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.run-asin-star {
  font-size: 13px;
  color: #f5c742;
  font-weight: 600;
}

.run-asin-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #5b9df5;
  text-transform: uppercase;
  background: rgba(61, 130, 255, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
}

.run-asin-title {
  font-size: 13px;
  color: #cad7f0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.run-variant-section {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.run-variant-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #6b7fa8;
  text-transform: uppercase;
  white-space: nowrap;
}

.run-variant-grid {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.run-variant-thumb {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(72, 92, 134, 0.35);
}

.run-variant-more {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 130, 255, 0.14);
  border: 1px solid rgba(61, 130, 255, 0.35);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #7aaeff;
}

.run-detail-asin-link {
  align-self: flex-start;
  font-size: 12px;
  padding: 5px 12px;
  border-color: rgba(78, 96, 133, 0.6);
  background: rgba(22, 30, 46, 0.7);
  color: #90b6f5;
  text-decoration: none;
  border-radius: 8px;
}

.run-detail-asin-link:hover {
  border-color: #3d82ff;
  color: #c0d8ff;
}

/* ============ ASIN Detail Page ============ */
.asin-detail-body {
  background: #060c1a;
  min-height: 100vh;
  color: #e8eefc;
}

.asin-detail-main {
  padding: 26px 0 48px;
}

.asin-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.asin-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #7a9cd8;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.asin-detail-back:hover { color: #c0d8ff; }

.asin-detail-header {
  display: flex;
  gap: 22px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.asin-detail-main-img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(72, 92, 134, 0.5);
  flex-shrink: 0;
}

.asin-detail-info {
  flex: 1;
  min-width: 0;
}

.asin-detail-crumb {
  font-size: 12px;
  color: #6b7fa8;
  margin-bottom: 8px;
}

.asin-detail-title {
  font-size: 18px;
  font-weight: 700;
  color: #f3f7ff;
  line-height: 1.45;
  margin: 0 0 10px;
}

.asin-detail-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.asin-detail-star {
  font-size: 16px;
  color: #f5c742;
  font-weight: 700;
}

.asin-detail-category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #5b9df5;
  text-transform: uppercase;
  background: rgba(61, 130, 255, 0.12);
  padding: 3px 10px;
  border-radius: 5px;
}

.asin-detail-asin-tag {
  font-size: 12px;
  color: #6b7fa8;
  font-family: monospace;
}

.asin-detail-section {
  background: rgba(15, 22, 38, 0.85);
  border: 1px solid rgba(72, 92, 134, 0.35);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.asin-detail-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #90b6f5;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}

.asin-rating-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asin-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.asin-rating-star-label {
  width: 40px;
  color: #9fb1da;
  white-space: nowrap;
}

.asin-rating-bar-wrap {
  flex: 1;
  height: 8px;
  background: rgba(72, 92, 134, 0.25);
  border-radius: 4px;
  overflow: hidden;
}

.asin-rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3d82ff, #5b9df5);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.asin-rating-pct {
  width: 40px;
  text-align: right;
  color: #9fb1da;
}

.asin-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(72, 92, 134, 0.4) transparent;
}

.asin-gallery-thumb {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(72, 92, 134, 0.4);
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
  cursor: zoom-in;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.asin-gallery-thumb:hover { border-color: #3d82ff; transform: scale(1.05); }

.asin-ai-summary {
  font-size: 14px;
  color: #cad7f0;
  line-height: 1.8;
  white-space: pre-line;
}

.asin-variants-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.asin-variant-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asin-variant-group-label {
  font-size: 12px;
  font-weight: 600;
  color: #9fb1da;
  letter-spacing: 0.04em;
}

.asin-variant-group-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.asin-variant-card {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  background: rgba(22, 30, 50, 0.8);
  border: 1px solid rgba(72, 92, 134, 0.4);
  border-radius: 10px;
  font-size: 11px;
  text-align: center;
  color: #9fb1da;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.asin-variant-card:hover {
  border-color: #3d82ff;
  background: rgba(36, 50, 80, 0.9);
}

.asin-variant-card-current {
  background: rgba(61, 130, 255, 0.16);
  border-color: rgba(91, 157, 245, 0.7);
  cursor: default;
}

.asin-variant-card-current:hover {
  border-color: rgba(91, 157, 245, 0.7);
  background: rgba(61, 130, 255, 0.16);
}

.asin-variant-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.asin-variant-asin {
  font-size: 10px;
  color: #7aaeff;
  font-family: monospace;
  word-break: break-all;
}

.asin-competitors-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 4px;
  font-size: 13px;
  color: #9fb1da;
}

.asin-competitors-loading.hidden {
  display: none;
}

.asin-competitors-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(122, 174, 255, 0.25);
  border-top-color: #4dabf7;
  border-radius: 50%;
  animation: asin-competitors-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes asin-competitors-spin {
  to { transform: rotate(360deg); }
}

/* 关键词商品卡片网格 */
.asin-competitors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.asin-competitors-grid.hidden {
  display: none;
}

.competitor-card {
  position: relative;
  width: 180px;
  background: rgba(22, 30, 50, 0.85);
  border: 1px solid rgba(72, 92, 134, 0.35);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.competitor-card:hover {
  border-color: rgba(77, 171, 247, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.competitor-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(77, 171, 247, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.competitor-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.competitor-card-img-wrap {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
}

.competitor-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.competitor-card-img-placeholder {
  width: 60px;
  height: 60px;
  background: rgba(72, 92, 134, 0.25);
  border-radius: 8px;
}

.competitor-card-body {
  padding: 10px 12px 12px;
}

.competitor-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  color: #dbe8ff;
  min-height: 35px;
}

.competitor-card-link:hover .competitor-card-title {
  color: #4dabf7;
}

.competitor-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 13px;
}

.competitor-card-star {
  color: #ffb547;
}

.competitor-card-star-val {
  color: #c6d4f2;
}

.competitor-card-sales-row {
  margin-top: 4px;
}

.competitor-card-sales {
  font-size: 12px;
  color: #78a3d4;
}

.competitor-card-price-row {
  margin-top: 6px;
}

.competitor-card-price {
  font-size: 15px;
  font-weight: 600;
  color: #f5c742;
}

.competitor-card-asin-row {
  margin-top: 6px;
}

.competitor-card-asin {
  font-size: 10px;
  font-family: monospace;
  color: #7aaeff;
}

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

.asin-attr-item {
  background: rgba(22, 30, 50, 0.7);
  border: 1px solid rgba(72, 92, 134, 0.3);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
}

.asin-attr-key {
  color: #6b7fa8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.asin-attr-val {
  color: #cad7f0;
}

/* ============ 单品ASIN选择：单按钮居中布局 ============ */
.variant-choice-single {
  justify-content: center;
}

.variant-choice-single .variant-choice-btn {
  max-width: 220px;
}

/* ============ Run Card: 父ASIN图片替代卡片 ============ */
.run-asin-parent-card {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border: 1px solid rgba(91, 157, 245, 0.55);
  border-radius: 8px;
  background: rgba(12, 22, 46, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
}

.run-asin-parent-card-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #5b9df5;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
}

.run-asin-parent-card-asin {
  font-size: 7px;
  color: #7aaeff;
  text-align: center;
  word-break: break-all;
  font-family: monospace;
  line-height: 1.3;
}

/* ============ Run Card: PARENT ASIN 类型徽标 ============ */
.run-asin-type-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #3d82ff;
  text-transform: uppercase;
  background: rgba(61, 130, 255, 0.14);
  border: 1px solid rgba(61, 130, 255, 0.35);
  padding: 1px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ============ Runs Page: Parent-ASIN Changed Badge ============ */
.run-asin-parent-changed-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffc107;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.4);
  padding: 1px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ============ Run Card: collapsed header parent-changed icon ============ */
.run-card-parent-changed-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #ffc107;
  margin-left: 5px;
  line-height: 1;
  vertical-align: middle;
  cursor: default;
}

/* ============ ASIN Detail Page: Parent-Changed Banner ============ */
.asin-parent-changed-banner {
  padding: 10px 16px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.45);
  border-radius: 8px;
  color: #ffd54f;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ============ RunReviews Page: Free Reviews Banner ============ */
.free-reviews-banner {
  padding: 10px 16px;
  background: rgba(61, 130, 255, 0.1);
  border: 1px solid rgba(61, 130, 255, 0.35);
  border-radius: 8px;
  color: #7aaeff;
  font-size: 13px;
  margin-bottom: 14px;
}

/* ============ ASIN Detail Page: Refresh Button ============ */
.detail-refresh-btn {
  margin-top: 10px;
  font-size: 12px;
  padding: 5px 12px;
}

.detail-update-time {
  margin-left: 12px;
  font-size: 11px;
  color: #8ba3c7;
  vertical-align: middle;
}

.detail-update-time.hidden {
  display: none;
}

/* ============ ASIN Detail Page: Parent ASIN Card ============ */
.asin-detail-parent-card {
  width: 170px;
  height: 170px;
  flex-shrink: 0;
  border: 1px solid rgba(91, 157, 245, 0.55);
  border-radius: 10px;
  background: rgba(12, 22, 46, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}

.asin-detail-parent-card.hidden {
  display: none;
}

.asin-detail-parent-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #5b9df5;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.4;
}

.asin-detail-parent-asin-text {
  font-size: 11px;
  color: #7aaeff;
  text-align: center;
  word-break: break-all;
  font-family: monospace;
  line-height: 1.4;
}

/* ============ ASIN Detail: New Product Info Styles ============ */
.asin-detail-rating-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.asin-detail-star-single {
  font-size: 18px;
  color: #f5c742;
  line-height: 1;
}

.asin-detail-star-value {
  font-size: 18px;
  font-weight: 700;
  color: #f5c742;
}

.asin-detail-rating-count {
  font-size: 13px;
  color: #7d92ba;
  text-decoration: none;
  margin-left: 4px;
}

.asin-detail-rating-count:hover {
  color: #c0d8ff;
  text-decoration: underline;
}

/* --- Generic info table (Amazon's Choice) --- */
.asin-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.asin-info-table th,
.asin-info-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(72, 92, 134, 0.25);
}

.asin-info-table tr:last-child th,
.asin-info-table tr:last-child td {
  border-bottom: none;
}

.asin-info-table th {
  width: 90px;
  color: #7d92ba;
  font-weight: 600;
  white-space: nowrap;
}

.asin-info-table td {
  color: #d7e2f7;
  line-height: 1.6;
}

.asin-choice-badge {
  display: inline-block;
  background: linear-gradient(135deg, #232f3e 0%, #37475a 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid rgba(146, 172, 214, 0.35);
}

/* --- Price box (in header, top-right) --- */
.asin-detail-price-box {
  flex-shrink: 0;
  align-self: flex-start;
  min-width: 180px;
  background: rgba(15, 22, 38, 0.85);
  border: 1px solid rgba(72, 92, 134, 0.35);
  border-radius: 10px;
  padding: 14px 16px;
}

.asin-detail-price-box.hidden {
  display: none;
}

.asin-detail-price-box-title {
  font-size: 14px;
  font-weight: 700;
  color: #90b6f5;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

/* --- Price section (Amazon-style hero) --- */
.asin-price-hero {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.asin-price-discount {
  font-size: 26px;
  font-weight: 400;
  color: #cc4a3a;
  line-height: 1;
}

.asin-price-current {
  color: #f3f7ff;
  line-height: 1;
}

.asin-price-current .asin-price-sym {
  font-size: 15px;
  font-weight: 600;
  vertical-align: super;
  margin-right: 1px;
}

.asin-price-current .asin-price-whole {
  font-size: 28px;
  font-weight: 500;
}

.asin-price-current .asin-price-cents {
  font-size: 15px;
  font-weight: 600;
  vertical-align: super;
}

.asin-price-listrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  color: #7d92ba;
}

.asin-price-strike {
  text-decoration: line-through;
  color: #9aa9c4;
}

.asin-price-info-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.asin-price-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #7d92ba;
  background: transparent;
  color: #7d92ba;
  font-size: 10px;
  font-style: italic;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: all 0.2s ease;
}

.asin-price-info-btn:hover {
  border-color: #c0d8ff;
  color: #c0d8ff;
}

.asin-price-popover {
  position: absolute;
  top: 24px;
  left: 0;
  z-index: 20;
  width: 320px;
  max-width: 80vw;
  background: #1b2740;
  border: 1px solid rgba(146, 172, 214, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.7;
  color: #d7e2f7;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

/* --- Best sellers rank + sales --- */
.asin-detail-sales-badge {
  display: inline-block;
  background: rgba(61, 130, 255, 0.12);
  border: 1px solid rgba(61, 130, 255, 0.35);
  color: #5b9df5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 5px;
  margin-bottom: 14px;
}

.asin-detail-sales-badge.hidden {
  display: none;
}

.asin-rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.asin-rank-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #b9cbec;
  line-height: 1.5;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(72, 92, 134, 0.3);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.asin-rank-arrow {
  color: #6b7fa8;
  font-size: 14px;
  flex-shrink: 0;
}

a.asin-rank-item:hover {
  background: rgba(77, 171, 247, 0.1);
  border-color: rgba(77, 171, 247, 0.4);
  color: #dbe8ff;
}

a.asin-rank-item:hover .asin-rank-arrow {
  color: #4dabf7;
}

/* ============ Switch-Parent Modal ============ */
.switch-parent-compare {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 16px 0 12px;
}

.switch-parent-side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.switch-parent-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.switch-parent-arrow {
  font-size: 22px;
  color: #5b9df5;
  align-self: center;
  flex-shrink: 0;
  padding-top: 24px;
}

.switch-parent-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(72, 92, 134, 0.45);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 88px;
}

.switch-parent-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.switch-parent-card-asin {
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  color: #e8eeff;
  word-break: break-all;
  text-align: center;
}

.switch-parent-card-title {
  font-size: 11px;
  color: #7a8daa;
  text-align: center;
  line-height: 1.4;
  max-height: 3em;
  overflow: hidden;
}

.switch-parent-card-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.switch-parent-card-variants img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.badge-deprecated {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ff7675;
  background: rgba(255, 118, 117, 0.12);
  border: 1px solid rgba(255, 118, 117, 0.4);
  padding: 1px 7px;
  border-radius: 4px;
}

.badge-new {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #00b894;
  background: rgba(0, 184, 148, 0.12);
  border: 1px solid rgba(0, 184, 148, 0.4);
  padding: 1px 7px;
  border-radius: 4px;
}

.run-asin-parent-changed-badge.clickable {
  cursor: pointer;
}

.run-asin-parent-changed-badge.clickable:hover {
  background: rgba(255, 193, 7, 0.22);
  border-color: rgba(255, 193, 7, 0.7);
}

/* ============ AI Report: Distribution Two-Column Layout ============ */
.report-dist-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.report-dist-half {
  flex: 1;
  min-width: 0;
}

@media (max-width: 640px) {
  .report-dist-row { flex-direction: column; gap: 20px; }
}

/* ============ AI Report: Sentiment Pie Chart ============ */
.report-sentiment-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 0 6px;
}

.report-sentiment-pie {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}

.report-sentiment-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-sentiment-item {
  display: grid;
  grid-template-columns: 12px 72px auto;
  align-items: center;
  gap: 8px;
}

.report-sentiment-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.report-sentiment-label {
  font-size: 13px;
  color: #9aaccc;
}

.report-sentiment-pct {
  font-size: 14px;
  font-weight: 700;
  color: #e8eeff;
  text-align: left;
}

/* ============ AI Report: Theme Blocks ============ */
.report-theme-block {
  margin-bottom: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(58,76,115,0.45);
  border-radius: 12px;
  overflow: hidden;
}

.report-theme-block:last-child { margin-bottom: 0; }

.report-theme-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #c8d8ff;
  border-bottom: 1px solid rgba(58,76,115,0.4);
  background: rgba(40,60,100,0.18);
}

.report-theme-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(86,132,242,0.22);
  border: 1px solid rgba(86,132,242,0.5);
  font-size: 11px;
  font-weight: 800;
  color: #90b6ff;
  flex-shrink: 0;
}

.report-theme-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (max-width: 640px) {
  .report-theme-cols { grid-template-columns: 1fr; }
}

.report-theme-col {
  padding: 12px 14px 14px;
}

.report-theme-col:first-child {
  border-right: 1px solid rgba(58,76,115,0.35);
}

@media (max-width: 640px) {
  .report-theme-col:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(58,76,115,0.35);
  }
}

.report-theme-col-head {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px 3px 0;
  margin-bottom: 10px;
}

.report-theme-col-head-pro { color: #4ade80; }
.report-theme-col-head-con { color: #f87171; }

/* ============ AI Report: Point Items ============ */
.report-point-item {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.report-point-item:last-child { margin-bottom: 0; }

.report-point-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.report-point-dot-pro { background: #4ade80; }
.report-point-dot-con { background: #f87171; }

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

.report-point-text {
  font-size: 13.5px;
  color: #d4dfff;
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.report-point-pct {
  font-size: 11px;
  font-weight: 700;
  color: #90b6ff;
  background: rgba(86,132,242,0.15);
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

.report-point-excerpts {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.report-point-excerpt {
  font-size: 12px;
  color: #6b80aa;
  line-height: 1.5;
  font-style: italic;
  padding-left: 4px;
  border-left: 2px solid rgba(86,132,242,0.3);
}

.report-excerpt-clickable {
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.report-excerpt-clickable:hover {
  color: #90b6ff;
  border-color: rgba(86,132,242,0.6);
}

/* ============ AI Report: Extreme Reviews Section ============ */
.report-extreme-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.report-extreme-row.report-extreme-single {
  grid-template-columns: 1fr;
  max-width: 560px;
}

@media (max-width: 640px) {
  .report-extreme-row { grid-template-columns: 1fr; }
}

.report-extreme-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(58,76,115,0.45);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-extreme-positive {
  border-left: 3px solid #4ade80;
}

.report-extreme-negative {
  border-left: 3px solid #f87171;
}

.report-extreme-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-extreme-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
}

.report-extreme-positive .report-extreme-type {
  background: rgba(74,222,128,0.15);
  color: #4ade80;
}

.report-extreme-negative .report-extreme-type {
  background: rgba(248,113,113,0.15);
  color: #f87171;
}

.report-extreme-stars {
  color: #ffce8a;
  font-size: 12px;
  letter-spacing: 1px;
}

.report-extreme-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #8294c0;
}

.report-extreme-author {
  font-weight: 600;
  color: #a8badf;
}

.report-extreme-content {
  font-size: 13px;
  line-height: 1.65;
  color: #d4dfff;
}

.report-extreme-divider {
  border-top: 1px dashed rgba(86,132,242,0.3);
  margin: 2px 0;
}

.report-extreme-translation {
  font-size: 12px;
  font-style: italic;
  line-height: 1.6;
  color: #8fa4cc;
}

.report-extreme-value {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(40,60,100,0.18);
  border-radius: 8px;
  margin-top: 4px;
}

.report-extreme-value-label {
  font-size: 11px;
  font-weight: 700;
  color: #90b6ff;
}

.report-extreme-value-text {
  font-size: 13px;
  color: #c8d8ff;
  line-height: 1.5;
}

.report-extreme-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  color: #6b80aa;
  font-size: 13px;
}

/* ============ AI Report: Excerpt Popup ============ */
.report-excerpt-popup {
  position: absolute;
  z-index: 1000;
  width: 380px;
  max-width: calc(100vw - 32px);
}

.report-excerpt-popup.hidden {
  display: none;
}

.report-excerpt-popup-content {
  background: linear-gradient(180deg, rgba(28, 36, 56, 0.98), rgba(18, 24, 40, 0.98));
  border: 1px solid rgba(86,132,242,0.4);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
}

.report-excerpt-popup-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-excerpt-popup-stars {
  color: #ffce8a;
  font-size: 12px;
  letter-spacing: 1px;
}

.report-excerpt-popup-title {
  font-size: 13px;
  font-weight: 600;
  color: #d4dfff;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-excerpt-popup-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: #8294c0;
}

.report-excerpt-popup-author {
  font-weight: 600;
  color: #a8badf;
}

.report-excerpt-popup-original {
  font-size: 13px;
  line-height: 1.65;
  color: #d4dfff;
}

.report-excerpt-popup-divider {
  border-top: 1px dashed rgba(86,132,242,0.3);
}

.report-excerpt-popup-divider.hidden {
  display: none;
}

.report-excerpt-popup-translation {
  font-size: 12px;
  font-style: italic;
  line-height: 1.6;
  color: #8fa4cc;
}

.report-excerpt-popup-translation.hidden {
  display: none;
}

/* ====================================================
   Dark Homepage  (home.html)
   ==================================================== */

.dark-eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6ba7ff;
}

.dark-hero {
  padding: 64px 0 44px;
}

.dark-hero-title {
  font-size: clamp(30px, 4.4vw, 50px);
  color: #f3f7ff;
  line-height: 1.15;
  max-width: 760px;
  margin: 0 0 18px;
}

.dark-hero-sub {
  color: #8294c0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 26px;
}

.dark-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dark-btn-ghost {
  border-color: rgba(78, 96, 133, 0.75) !important;
  background: rgba(22, 30, 46, 0.85) !important;
  color: #d8e3ff !important;
}

.dark-btn-ghost:hover {
  border-color: rgba(98, 138, 240, 0.7) !important;
  color: #eaf1ff !important;
}

.dark-stats-bar {
  padding: 20px 0;
  border-top: 1px solid rgba(58, 76, 115, 0.4);
  border-bottom: 1px solid rgba(58, 76, 115, 0.4);
  background: rgba(10, 14, 24, 0.55);
}

.dark-stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.dark-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0 32px;
}

.dark-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #e9f0ff;
}

.dark-stat-label {
  font-size: 12px;
  color: #8294c0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dark-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(58, 76, 115, 0.55);
  flex-shrink: 0;
}

.dark-section {
  padding: 44px 0;
}

.dark-section-alt {
  background: rgba(10, 14, 24, 0.5);
  border-top: 1px solid rgba(58, 76, 115, 0.35);
  border-bottom: 1px solid rgba(58, 76, 115, 0.35);
}

.dark-section-title {
  font-size: clamp(22px, 3vw, 32px);
  color: #f3f7ff;
  margin: 0 0 8px;
}

.dark-section-sub {
  color: #8294c0;
  font-size: 14px;
  margin: 0 0 26px;
}

.dark-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dark-card {
  background: linear-gradient(180deg, rgba(20, 26, 42, 0.92), rgba(13, 18, 30, 0.96));
  border: 1px solid rgba(58, 76, 115, 0.55);
  border-radius: 12px;
  padding: 18px 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.dark-card:hover {
  border-color: rgba(98, 138, 240, 0.65);
  transform: translateY(-2px);
}

.dark-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(74, 130, 255, 0.16);
  border: 1px solid rgba(74, 130, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #6ba7ff;
}

.dark-card h3 {
  font-size: 16px;
  color: #ecf2ff;
  margin: 0 0 8px;
}

.dark-card p {
  color: #8294c0;
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}

.dark-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
}

.dark-step {
  padding: 18px 16px;
  background: linear-gradient(180deg, rgba(20, 26, 42, 0.88), rgba(13, 18, 30, 0.92));
  border: 1px solid rgba(58, 76, 115, 0.5);
  border-radius: 12px;
}

.dark-step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: rgba(74, 130, 255, 0.32);
  line-height: 1;
  margin-bottom: 10px;
}

.dark-step h3 {
  font-size: 15px;
  color: #ecf2ff;
  margin: 0 0 8px;
}

.dark-step p {
  color: #8294c0;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.dark-step-arrow {
  text-align: center;
  padding: 0 10px;
  color: rgba(98, 138, 240, 0.4);
  font-size: 18px;
  font-weight: 700;
  user-select: none;
}

.dark-cta-section {
  padding: 56px 0;
  text-align: center;
}

.dark-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.dark-cta-title {
  font-size: clamp(22px, 3vw, 34px);
  color: #f3f7ff;
  margin: 0;
}

.dark-cta-sub {
  color: #8294c0;
  font-size: 16px;
  margin: 0;
}

.dark-footer {
  border-top: 1px solid rgba(58, 76, 115, 0.45);
  padding: 18px 0 30px;
}

.dark-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.dark-footer-copy {
  color: #5a6a8e;
  font-size: 13px;
}

/* ====================================================
   Dark Profile  (profile.html)
   ==================================================== */

.profile-dark-main {
  padding: 26px 0 48px;
  display: grid;
  gap: 16px;
}

.profile-dark-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-dark-head h1 {
  font-size: clamp(24px, 3vw, 34px);
  color: #f3f7ff;
  margin: 0;
}

.profile-dark-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.dark-panel {
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.92), rgba(11, 16, 28, 0.94));
  border: 1px solid rgba(58, 76, 115, 0.55);
  border-radius: 12px;
  padding: 18px;
}

.dark-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: #ecf2ff;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dark-panel-title::before {
  content: '';
  width: 3px;
  height: 15px;
  background: #4a82ff;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

.dark-panel .kv-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.dark-panel .kv-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  background: rgba(20, 26, 42, 0.7);
  border: 1px solid rgba(58, 76, 115, 0.38);
  border-radius: 10px;
  font-size: 14px;
  color: #e7eeff;
}

.dark-panel .kv-list div strong {
  color: #8294c0;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.dark-panel .kv-list div span {
  color: #e7eeff;
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.dark-panel .status-banner {
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid rgba(58, 76, 115, 0.55);
  background: rgba(20, 26, 42, 0.7);
  color: #9baad0;
  padding: 9px 12px;
  font-size: 14px;
}

.dark-panel .status-banner.success {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.1);
  color: #6df1b1;
}

.dark-panel .status-banner.error {
  border-color: rgba(237, 52, 86, 0.4);
  background: rgba(237, 52, 86, 0.1);
  color: #ffbfca;
}

.topbar-logout-dark {
  padding: 7px 16px;
  border-radius: 10px;
  border: 1px solid rgba(78, 96, 133, 0.7);
  background: rgba(22, 30, 46, 0.9);
  color: #d8e3ff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.topbar-logout-dark:hover {
  border-color: rgba(237, 52, 86, 0.55);
  color: #ffb3bd;
}

/* ====================================================
   Plans Dark Enhancement
   ==================================================== */

.plans-dark-head h1 {
  font-size: clamp(22px, 3.2vw, 34px);
  color: #f1f5ff;
  margin: 0 0 8px;
}

.plans-dark-head p {
  color: #8294c0;
  margin: 0 0 20px;
  font-size: 14px;
}

.plan-card .btn-ghost {
  border-color: rgba(78, 96, 133, 0.7);
  background: rgba(22, 30, 46, 0.85);
  color: #d8e3ff;
  margin-top: 4px;
}

.plan-card .btn-ghost:hover {
  border-color: rgba(98, 138, 240, 0.7);
  color: #eaf1ff;
}

.plan-card.recommended .btn-ghost {
  border-color: rgba(60, 122, 255, 0.7);
  background: rgba(40, 92, 220, 0.2);
  color: #b6d0ff;
}

/* ====================================================
   Back-to-top (dark pages)
   ==================================================== */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
}

.back-to-top.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.runs-page-body .back-to-top,
.plans-page-body .back-to-top {
  background: rgba(22, 30, 46, 0.95);
  border-color: rgba(78, 96, 133, 0.65);
  color: #d8e3ff;
}

.runs-page-body .back-to-top:hover,
.plans-page-body .back-to-top:hover {
  border-color: rgba(98, 138, 240, 0.7);
  color: #eaf1ff;
}

/* 带文字标签的回到顶部按钮（评论页/报告页）：还原为图标+文字的胶囊形状，
   避免被上面暗色页通用的 38x38 方形图标按钮样式挤压，导致文字溢出方框。 */
.back-to-top.back-to-top-labeled {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
}

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

@media (max-width: 960px) {
  .dark-cards {
    grid-template-columns: 1fr 1fr;
  }

  .dark-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dark-step-arrow {
    display: none;
  }

  .profile-dark-grid {
    grid-template-columns: 1fr;
  }

  .dark-stat-item {
    padding: 8px 20px;
  }
}

@media (max-width: 600px) {
  .dark-cards {
    grid-template-columns: 1fr;
  }

  .dark-stats-bar {
    padding: 14px 0;
  }

  .dark-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .dark-hero {
    padding: 48px 0 32px;
  }
}

/* ============ Bestsellers Dropdown (ASIN Detail) ============ */
.asin-rank-dropdown {
  display: flex;
  flex-direction: column;
}

.asin-rank-item-clickable {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.asin-rank-item-clickable:hover {
  background: rgba(77, 171, 247, 0.1);
  border-color: rgba(77, 171, 247, 0.4);
}

.asin-rank-item-clickable.expanded {
  background: rgba(77, 171, 247, 0.12);
  border-color: rgba(77, 171, 247, 0.5);
}

.asin-rank-chevron {
  flex-shrink: 0;
  color: #6b7fa8;
  transition: transform 0.2s ease;
}

.asin-rank-item-clickable.expanded .asin-rank-chevron {
  transform: rotate(180deg);
  color: #4dabf7;
}

.asin-rank-dropdown-content {
  margin-top: 8px;
  padding: 14px;
  background: rgba(18, 24, 38, 0.95);
  border: 1px solid rgba(72, 92, 134, 0.5);
  border-radius: 10px;
}

.asin-rank-dropdown-content.hidden {
  display: none;
}

.rank-dropdown-empty {
  text-align: center;
  padding: 16px 8px;
  color: #9fb1da;
  font-size: 13px;
}

.rank-dropdown-empty p {
  margin: 0 0 12px;
}

.rank-dropdown-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 8px;
  color: #9fb1da;
  font-size: 13px;
}

.rank-collect-btn {
  padding: 8px 16px;
  font-size: 13px;
}

/* Bestsellers Cards Row in Dropdown */
.bs-dropdown-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bs-cards-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(72, 92, 134, 0.4) transparent;
}

.bs-cards-row::-webkit-scrollbar {
  height: 4px;
}

.bs-cards-row::-webkit-scrollbar-track {
  background: transparent;
}

.bs-cards-row::-webkit-scrollbar-thumb {
  background: rgba(72, 92, 134, 0.45);
  border-radius: 2px;
}

.bs-card {
  position: relative;
  width: 130px;
  flex-shrink: 0;
  background: rgba(22, 30, 50, 0.85);
  border: 1px solid rgba(72, 92, 134, 0.5);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.bs-card:hover {
  border-color: rgba(77, 171, 247, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bs-card-rank {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, #e67e22, #f39c12);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
  line-height: 1.3;
}

.bs-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.bs-card-img-wrap {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
}

.bs-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bs-card-img-placeholder {
  width: 40px;
  height: 40px;
  background: rgba(72, 92, 134, 0.25);
  border-radius: 6px;
}

.bs-card-body {
  padding: 8px 10px 10px;
}

.bs-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.4;
  color: #cad7f0;
  min-height: 30px;
}

.bs-card-link:hover .bs-card-title {
  color: #4dabf7;
}

.bs-card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  font-size: 11px;
}

.bs-card-star {
  color: #ffb547;
}

.bs-card-star-val {
  color: #c6d4f2;
}

.bs-card-price-row {
  margin-top: 4px;
}

.bs-card-price {
  font-size: 13px;
  font-weight: 600;
  color: #f5c742;
}

.bs-view-all-btn {
  align-self: flex-start;
  font-size: 13px;
  padding: 8px 14px;
}

/* ============ Bestsellers Full Page ============ */
.bestsellers-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% -10%, rgba(42, 86, 176, 0.25) 0%, transparent 34%),
    radial-gradient(circle at 90% 100%, rgba(28, 64, 152, 0.18) 0%, transparent 44%),
    #0b1019;
  color: #edf2ff;
}

.bestsellers-main {
  padding: 24px 0 48px;
}

.bestsellers-header {
  margin-bottom: 24px;
}

.bestsellers-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8eaadc;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 16px;
}

.bestsellers-back:hover {
  color: #4dabf7;
}

.bestsellers-title {
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  color: #e8f0ff;
  margin: 0 0 6px;
}

.bestsellers-meta {
  font-size: 13px;
  color: #8eaadc;
}

.bestsellers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.bs-page-card {
  position: relative;
  background: rgba(22, 30, 50, 0.85);
  border: 1px solid rgba(72, 92, 134, 0.5);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.bs-page-card:hover {
  border-color: rgba(77, 171, 247, 0.5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.bs-page-card-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #e67e22, #f39c12);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

.bs-page-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.bs-page-card-img-wrap {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
}

.bs-page-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bs-page-card-body {
  padding: 10px 12px 12px;
}

.bs-page-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  color: #cad7f0;
  min-height: 38px;
}

.bs-page-card-link:hover .bs-page-card-title {
  color: #4dabf7;
}

.bs-page-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 13px;
}

.bs-page-card-star {
  color: #ffb547;
}

.bs-page-card-star-val {
  color: #c6d4f2;
}

.bs-page-card-rating-count {
  color: #78a3d4;
  font-size: 12px;
}

.bs-page-card-price-row {
  margin-top: 6px;
}

.bs-page-card-price {
  font-size: 15px;
  font-weight: 600;
  color: #f5c742;
}

.bs-page-card-asin {
  margin-top: 6px;
  font-size: 10px;
  font-family: monospace;
  color: #7aaeff;
}

.bestsellers-empty {
  text-align: center;
  padding: 48px 20px;
  color: #8eaadc;
  font-size: 14px;
}

.bestsellers-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 20px;
  color: #9fb1da;
  font-size: 14px;
}

/* ====== AI Report List ====== */
.report-list-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #1a2234;
  border-radius: 10px;
  border: 1px solid rgba(100, 130, 180, 0.15);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.report-list-card:hover {
  border-color: rgba(100, 140, 220, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.report-list-card-main {
  flex: 1;
  min-width: 0;
}

.report-list-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.report-list-card-id {
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #b4c8f0;
  letter-spacing: 0.02em;
}

.report-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.report-status-ready {
  background: rgba(40, 167, 69, 0.18);
  color: #4ade80;
}

.report-status-generating {
  background: rgba(255, 193, 7, 0.15);
  color: #fcd34d;
}

.report-status-failed {
  background: rgba(220, 53, 69, 0.18);
  color: #f87171;
}

.report-list-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 12px;
  color: #8ca3c7;
  margin-bottom: 6px;
}

.report-list-card-asin {
  font-weight: 500;
  color: #aac0e0;
}

.report-list-card-count {
  color: #7a9cc0;
}

.report-list-card-time {
  color: #6b8ab0;
}

.report-list-card-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.report-filter-pill {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(100, 150, 220, 0.12);
  border-radius: 999px;
  font-size: 11px;
  color: #8db3e0;
}

.report-list-card-actions {
  flex-shrink: 0;
}

.report-list-view-btn {
  min-width: 88px;
  font-size: 13px;
  padding: 8px 14px;
}

.report-list-view-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ====== Run Card Reports Badge ====== */
.run-card-reports {
  color: #7aaeff;
  font-size: 12px;
}

/* ====== RT Report Actions ====== */
.rt-report-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rt-report-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  padding: 8px 12px;
}

.rt-report-list-btn svg {
  flex-shrink: 0;
}
