@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: #0052d9;
  --accent-soft: #e8f0ff;
  --shadow: 0 8px 20px rgba(17, 33, 70, 0.10);
  /* 腾讯云风格变量 */
  --tcloud-bg: #f5f7fa;
  --tcloud-surface: #ffffff;
  --tcloud-ink: #262626;
  --tcloud-muted: #8c8c8c;
  --tcloud-line: #e5e8ed;
  --tcloud-accent: #0052d9;
  --tcloud-accent-hover: #0040b5;
  --tcloud-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  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: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0a66ff, #4a8fff);
  color: #fff;
  font-size: 13px;
  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: var(--tcloud-ink);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
}

.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: #fff;
  border: 1px solid #e5e7eb;
  color: #1f2937;
}

.panel-dark .panel-desc {
  color: #6b7280;
}

.panel-dark .code-block {
  background: #f9fafb;
  color: #1f2937;
}

.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: var(--tcloud-bg);
  color: var(--tcloud-ink);
  min-height: 100vh;
  font-family: var(--tcloud-font);
}

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

.runs-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(90deg, #0a3ed0 0%, #1e56ea 46%, #4577f6 74%, #7ba1ff 100%);
  box-shadow: 0 4px 14px rgba(16, 62, 205, 0.22);
}

.runs-head::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 44%, rgba(255, 255, 255, 0.08) 44%, rgba(255, 255, 255, 0.08) 62%, transparent 62%),
    linear-gradient(112deg, transparent 70%, rgba(255, 255, 255, 0.14) 70%);
}

.runs-head > div {
  position: relative;
  z-index: 1;
}

.runs-head h1 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(20px, 2.6vw, 26px);
  color: #fff;
  font-family: var(--tcloud-font);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.runs-head-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0a3ed0;
  font-size: 14px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(6, 34, 110, 0.3);
}

.runs-head p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  font-size: 14px;
}

.runs-create-btn {
  padding: 0 18px;
  height: 38px;
  border-radius: 9px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #3b82f6, #0052d9);
  border: 1px solid transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 82, 217, 0.25);
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.runs-create-btn:hover {
  background: linear-gradient(135deg, #2f74ee, #0043b8);
  box-shadow: 0 6px 16px rgba(0, 82, 217, 0.32);
  transform: translateY(-1px);
}

.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: var(--tcloud-surface);
  border: 1px solid #e8ebf0;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.runs-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.runs-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 9px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.runs-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.runs-stat-icon svg {
  width: 16px;
  height: 16px;
}

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

.runs-stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  white-space: nowrap;
}

.runs-stat-value {
  font-family: var(--tcloud-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.runs-stat-total {
  background: #eef4ff;
  border-color: #dce8fd;
}

.runs-stat-total .runs-stat-icon {
  background: linear-gradient(135deg, #3b82f6, #0052d9);
  box-shadow: 0 2px 6px rgba(0, 82, 217, 0.25);
}

.runs-stat-total .runs-stat-label {
  color: #5b7bb2;
}

.runs-stat-total .runs-stat-value {
  color: #0b4dc2;
}

.runs-stat-running {
  background: #edfaf2;
  border-color: #d5f0e0;
}

.runs-stat-running .runs-stat-icon {
  background: linear-gradient(135deg, #34d399, #0a9f66);
  box-shadow: 0 2px 6px rgba(10, 159, 102, 0.25);
}

.runs-stat-running .runs-stat-label {
  color: #4f9a77;
}

.runs-stat-running .runs-stat-value {
  color: #0a7d52;
}

.runs-stat-reviews {
  background: #f5f2ff;
  border-color: #e5ddfa;
}

.runs-stat-reviews .runs-stat-icon {
  background: linear-gradient(135deg, #a78bfa, #6d3ef2);
  box-shadow: 0 2px 6px rgba(109, 62, 242, 0.22);
}

.runs-stat-reviews .runs-stat-label {
  color: #8578b8;
}

.runs-stat-reviews .runs-stat-value {
  color: #5b32c7;
}

.runs-refresh-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid #e2e6ee;
  background: var(--tcloud-surface);
  color: #495261;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.runs-refresh-btn:hover {
  border-color: var(--tcloud-accent);
  background: #eef4ff;
  color: var(--tcloud-accent);
  transform: none;
}

.runs-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1 1 0;
}

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

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

.search-task-input {
  width: 208px;
  height: 38px;
  padding: 0 42px 0 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 9px;
  border: 1.5px solid #b8c2d4;
  background: var(--tcloud-surface);
  color: #1f2733;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-task-input:focus {
  border-color: var(--tcloud-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 82, 217, 0.12);
}

.search-task-input::placeholder {
  color: #8a94a6;
  font-weight: 400;
}

.search-task-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #9aa4b5;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.search-task-btn:hover {
  background: #eef2f8;
  color: #5b6577;
}

.search-task-wrap.has-text .search-task-btn {
  background: linear-gradient(135deg, #3b82f6, #0052d9);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 82, 217, 0.28);
}

.search-task-wrap.has-text .search-task-btn:hover {
  background: linear-gradient(135deg, #2f74ee, #0043b8);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25), 0 2px 6px rgba(0, 82, 217, 0.28);
}

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

.runs-empty {
  text-align: center;
  padding: 28px;
  color: var(--tcloud-muted);
  background: var(--tcloud-surface);
  border: 1px dashed #d7dce4;
  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 var(--tcloud-line);
  border-top-color: var(--tcloud-accent);
  animation: runs-spin 0.85s linear infinite;
}

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

.run-card {
  position: relative;
  background: var(--tcloud-surface);
  border: 1px solid #e8ebf0;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.run-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #22d3ee 0%, #3b82f6 42%, #6366f1 78%, #0052d9 100%);
  background-size: 100% 220%;
  background-position: 0% 0%;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.run-card:hover {
  border-color: #cddaf5;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.10);
  transform: translateY(-1px);
}

.run-card:hover::before {
  opacity: 1;
  animation: run-accent-flow 3.6s ease-in-out infinite;
}

.run-card.expanded {
  border-color: #bcd0f7;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.10);
}

.run-card.expanded:hover {
  transform: none;
}

.run-card.expanded::before {
  opacity: 1;
  width: 4px;
  animation: run-accent-flow 3.6s ease-in-out infinite;
}

@keyframes run-accent-flow {
  0% { background-position: 0% 0%; }
  50% { background-position: 0% 100%; }
  100% { background-position: 0% 0%; }
}

@media (prefers-reduced-motion: reduce) {
  .run-card:hover::before,
  .run-card.expanded::before {
    animation: none;
  }
}

.run-card-row {
  padding: 14px 18px;
  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: var(--tcloud-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--tcloud-ink);
  letter-spacing: 0;
  user-select: text;
  cursor: text;
}

.run-card-asin-text.editable {
  cursor: pointer;
  border-radius: 6px;
  padding: 2px 4px;
  margin: -2px -4px;
}

.run-card-asin-text.editable:hover {
  background: #eef4ff;
}

.run-card-asin-input {
  font-family: var(--tcloud-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--tcloud-ink);
  padding: 2px 6px;
  margin: -3px -7px;
  width: 220px;
  max-width: 100%;
  border: 1px solid var(--tcloud-accent, #2f6bff);
  border-radius: 6px;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(47, 107, 255, 0.15);
}

/* runs 名称修改结果小提示（成功/失败同一位置） */
.runs-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -8px);
  z-index: 1200;
  max-width: 480px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid transparent;
  box-shadow: 0 4px 12px rgba(15, 30, 60, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.runs-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.runs-toast-success {
  background: #eefaf2;
  border-color: #bfe8cd;
  color: #1a8a45;
}

.runs-toast-error {
  background: #fdefef;
  border-color: #f5c6c6;
  color: #c9353f;
}

.run-card-country {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #cfe0fb;
  background: #eef4ff;
  color: var(--tcloud-accent);
  font-weight: 600;
}

.run-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--tcloud-muted);
  font-size: 12.5px;
  font-family: var(--tcloud-font);
}

.run-card-time::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
  display: inline-block;
  margin-right: 4px;
}

.run-card-reviews::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tcloud-accent);
  display: inline-block;
  margin-right: 4px;
}

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

.run-badge-running {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.run-badge-waiting {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.run-badge-initializing {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.run-badge-closed {
  background: #f9fafb;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.run-badge-hidden {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #d1d5db;
}

.run-badge-demo {
  background: #faf5ff;
  color: #7c3aed;
  border: 1px solid #e9d5ff;
}

.run-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: run-pulse 1.4s infinite ease-in-out;
}

.run-badge-dot-initializing {
  width: 10px;
  height: 10px;
  background: transparent;
  border: 2px solid #bfdbfe;
  border-top-color: #3b82f6;
  animation: run-rotate 0.8s linear infinite;
}

/* 任务从「初始化中」变为「运行中」时的激活动画 */
.run-card-activated {
  animation: run-activated-card 2.4s ease-out;
}

.run-card-activated::before {
  opacity: 1;
  width: 4px;
  background: linear-gradient(180deg, #34d399 0%, #10b981 50%, #059669 100%);
  animation: run-accent-flow 1.2s ease-in-out 1;
}

.run-card-activated::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(16, 185, 129, 0.16) 50%, transparent 68%);
  background-size: 260% 100%;
  background-position: 120% 0;
  animation: run-activated-sweep 1.1s ease-out 0.1s 1;
}

.run-card-activated .run-badge-running {
  animation: run-activated-badge 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes run-activated-card {
  0% {
    border-color: #6ee7b7;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35);
  }
  35% {
    border-color: #34d399;
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.12), 0 4px 14px rgba(16, 185, 129, 0.18);
  }
  100% {
    border-color: #e8ebf0;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  }
}

@keyframes run-activated-sweep {
  from { background-position: 120% 0; }
  to { background-position: -140% 0; }
}

@keyframes run-activated-badge {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* 评论数增长特效：数字弹跳变绿 + 浮动的 +N 上浮渐隐 */
.run-card-reviews {
  position: relative;
}

.run-card-reviews strong {
  display: inline-block;
}

.run-count-bump {
  animation: run-count-bump 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes run-count-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.35); color: #059669; }
  100% { transform: scale(1); }
}

.run-count-float {
  position: absolute;
  left: calc(100% + 3px);
  top: -4px;
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  white-space: nowrap;
  pointer-events: none;
  animation: run-count-float 1.5s ease-out both;
}

@keyframes run-count-float {
  0% { opacity: 0; transform: translateY(5px) scale(0.7); }
  18% { opacity: 1; transform: translateY(0) scale(1.08); }
  36% { transform: translateY(-1px) scale(1); }
  100% { opacity: 0; transform: translateY(-13px) scale(1); }
}

/* 新建任务入场动画：滑入 + 蓝色高亮渐隐 */
.run-card-created {
  animation:
    run-created-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both,
    run-created-glow 2.8s ease-out 0.4s both;
}

.run-card-created::before {
  opacity: 1;
  width: 4px;
  animation: run-accent-flow 1.2s ease-in-out 1;
}

.run-card-created::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(0, 82, 217, 0.10) 50%, transparent 68%);
  background-size: 260% 100%;
  background-position: 120% 0;
  animation: run-activated-sweep 1.1s ease-out 0.5s 1;
}

@keyframes run-created-in {
  0% {
    opacity: 0;
    transform: translateY(-14px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes run-created-glow {
  0% {
    border-color: #93c5fd;
    box-shadow: 0 0 0 0 rgba(0, 82, 217, 0.3);
    background-color: #f2f7ff;
  }
  35% {
    border-color: #60a5fa;
    box-shadow: 0 0 0 5px rgba(0, 82, 217, 0.1), 0 4px 14px rgba(0, 82, 217, 0.16);
    background-color: #f7faff;
  }
  100% {
    border-color: #e8ebf0;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    background-color: var(--tcloud-surface);
  }
}

@media (prefers-reduced-motion: reduce) {
  .run-card-activated,
  .run-card-activated::before,
  .run-card-activated::after,
  .run-card-activated .run-badge-running,
  .run-card-created,
  .run-card-created::before,
  .run-card-created::after,
  .run-count-bump,
  .run-count-float {
    animation: none;
  }
}

@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: 0 14px;
  height: 32px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.run-start-btn,
.run-restart-btn,
.run-card-actions .btn-primary {
  border: 1px solid transparent;
  background: linear-gradient(135deg, #3b82f6, #0052d9);
  color: #fff;
  box-shadow: 0 3px 8px rgba(0, 82, 217, 0.25);
}

.run-start-btn:hover,
.run-restart-btn:hover,
.run-card-actions .btn-primary:hover {
  background: linear-gradient(135deg, #2f74ee, #0043b8);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.28), 0 3px 8px rgba(0, 82, 217, 0.25);
  transform: none;
}

.run-hide-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e2e6ee;
  background: var(--tcloud-surface);
  color: var(--tcloud-muted);
  border-radius: 8px;
}

.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: 1px solid #e2e6ee;
  background: var(--tcloud-surface);
  color: #495261;
  border-radius: 8px;
}

.run-card-actions .btn-ghost:hover {
  border-color: var(--tcloud-accent);
  background: #eef4ff;
  color: var(--tcloud-accent);
  transform: none;
}

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

.run-toggle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e6ee;
  background: var(--tcloud-surface);
  color: var(--tcloud-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.run-toggle:hover {
  border-color: var(--tcloud-accent);
  background: #eef4ff;
  color: var(--tcloud-accent);
}

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

.run-card.expanded .run-toggle {
  color: var(--tcloud-accent);
  border-color: var(--tcloud-accent);
  transform: rotate(180deg);
}

.run-detail {
  padding: 4px 18px 18px;
  border-top: 1px solid #eef0f4;
  background: linear-gradient(180deg, #fbfcfe 0%, #f5f8fd 100%);
}

.run-detail-grid {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  background: #fff;
  border: 1px solid #eaedf2;
  border-radius: 12px;
  padding: 16px 20px;
}

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

.run-detail-grid > div:empty {
  display: none;
}

.run-detail-grid dt {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--tcloud-muted);
  text-transform: none;
}

.run-detail-grid dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--tcloud-ink);
  word-break: break-word;
}

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

/* ============ Modal ============ */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  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: var(--tcloud-surface);
  border-radius: 6px;
  border: 1px solid var(--tcloud-line);
  padding: 20px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
  color: var(--tcloud-ink);
}

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

.modal-head h2 {
  font-size: 16px;
  color: var(--tcloud-ink);
  font-family: var(--tcloud-font);
  font-weight: 600;
}

.modal-close {
  border: none;
  background: transparent;
  color: var(--tcloud-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--tcloud-ink);
}

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

.runs-input {
  width: 100%;
}

.runs-input.field-input-dark {
  padding: 8px 12px;
  height: 32px;
  border-radius: 3px;
  border: 1px solid var(--tcloud-line);
  background: var(--tcloud-surface);
  color: var(--tcloud-ink);
  font-size: 14px;
  font-family: var(--tcloud-font);
  transition: border-color 0.2s ease;
}

.runs-input.field-input-dark:focus {
  border-color: var(--tcloud-accent);
  box-shadow: none;
  outline: none;
}

.runs-input.field-input-dark::placeholder {
  color: #bfbfbf;
}

select.runs-input.field-input-dark {
  height: 32px;
  padding: 0 12px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238c8c8c' d='M2.5 4.5L6 8l3.5-3.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}

.runs-switch {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tcloud-ink);
  font-size: 14px;
  cursor: pointer;
}

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

.form-tip {
  background: #fff1f0;
  border: 1px solid #ffccc7;
  color: #cf1322;
  padding: 8px 12px;
  border-radius: 3px;
  font-size: 13px;
}

.form-tip-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

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

.modal-foot .btn-ghost {
  height: 32px;
  padding: 0 16px;
  border-radius: 3px;
  border: 1px solid var(--tcloud-line);
  background: var(--tcloud-surface);
  color: var(--tcloud-ink);
  font-size: 14px;
  font-weight: 400;
}

.modal-foot .btn-ghost:hover {
  border-color: var(--tcloud-accent);
  color: var(--tcloud-accent);
  transform: none;
}

.modal-foot .btn-primary {
  height: 32px;
  padding: 0 16px;
  border-radius: 3px;
  border: 1px solid var(--tcloud-accent);
  background: var(--tcloud-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  box-shadow: none;
}

.modal-foot .btn-primary:hover {
  background: var(--tcloud-accent-hover);
  border-color: var(--tcloud-accent-hover);
  transform: none;
}

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

.start-modal-title {
  margin: 0;
  color: var(--tcloud-ink);
  font-size: 14px;
  font-weight: 500;
}

.start-modal-desc {
  margin: 0;
  color: var(--tcloud-muted);
  line-height: 1.7;
  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: 10px;
}

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

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

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

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

.review-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  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: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

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

.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: #d1d5db;
  font-size: 15px;
  line-height: 1;
}

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

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

.review-sub {
  color: #6b7280;
  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: #d97706;
}

.review-tag-vine {
  color: #059669;
}

.review-tag-early {
  color: #2563eb;
}

.review-tag-video {
  color: #7c3aed;
}

.review-comment {
  margin: 4px 0 0;
  color: #374151;
  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-expand {
  justify-self: start;
  margin-top: 2px;
  padding: 0;
  border: none;
  background: transparent;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.review-expand:hover {
  color: #1d4ed8;
  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 #e5e7eb;
}

.review-helpful {
  margin-top: 4px;
  color: #6b7280;
  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-new-row {
  padding-bottom: 12px;
  border-bottom: 1px dashed #e5e7eb;
  gap: 12px;
}

.rt-new-row.hidden {
  display: none;
}

.rt-new-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #fdba74;
  background: #fff7ed;
  color: #c2410c;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.rt-new-toggle:hover {
  border-color: #fb923c;
  background: #ffedd5;
}

.rt-new-toggle:focus,
.rt-new-toggle:focus-visible {
  outline: none;
}

.rt-new-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #fdba74;
  background: #fff;
  color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rt-new-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.rt-new-toggle.active {
  border-color: transparent;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.28);
}

.rt-new-toggle.active .rt-new-check {
  border-color: #fff;
  background: #fff;
  color: #f97316;
}

.rt-new-toggle.active .rt-new-badge {
  background: rgba(255, 255, 255, 0.24);
}

.rt-new-hint {
  font-size: 12px;
  color: #9a3412;
}

.rt-new-hint[hidden] {
  display: none;
}

/* 自动勾选时的入场动效：弹性缩放 + 光晕扩散两次 */
.rt-new-toggle.rt-new-attn {
  animation: rt-new-attn 2.2s ease-out 1;
}

@keyframes rt-new-attn {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45); }
  14% { transform: scale(1.08); }
  26% { transform: scale(1); box-shadow: 0 0 0 12px rgba(249, 115, 22, 0); }
  48% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.35); }
  72% { box-shadow: 0 0 0 14px rgba(249, 115, 22, 0); }
  100% { transform: scale(1); box-shadow: 0 2px 8px rgba(249, 115, 22, 0.28); }
}

@media (prefers-reduced-motion: reduce) {
  .run-new-dot::after,
  .run-view-new-badge,
  .rt-new-toggle.rt-new-attn {
    animation: none;
  }
}

.rt-foot {
  justify-content: space-between;
  border-top: 1px dashed #e5e7eb;
  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: #6b7280;
}

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

.rt-chip {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  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: #d1d5db;
  background: #f9fafb;
}

.rt-chip.active {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #b45309;
}

.rt-select,
.rt-date {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #1f2937;
  padding: 8px 10px;
  font-size: 13px;
}

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

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

.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: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.rt-date-shell:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* 真实输入框：透明背景/边框、文字透明，仅保留橙色跳动光标，并叠在模板层上方 */
.rt-date-input {
  position: relative;
  z-index: 2;
  width: 158px;
  padding-right: 30px;
  background: transparent;
  border-color: transparent;
  color: transparent;
  caret-color: #3b82f6;
  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: #1f2937;
}

.rt-date-line.is-hint {
  color: #9ca3af;
}

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

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

/* 连字符：占位字符透明，用居中的短横线绘制，确保卡在格子中线位置。
   默认暗色；当其后一位已有输入时（.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: #d1d5db;
}

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

/* 待输入位：占位字符透明，用居中的长方格子绘制（两倍高，体型与数字相当） */
.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 #d1d5db;
  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: #9ca3af;
  cursor: pointer;
  z-index: 3;
  transition: color 0.2s ease, background 0.2s ease;
}

.rt-date-cal:hover,
.rt-date-clear:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

.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: light;
}

.rt-sep {
  color: #9ca3af;
}

.rt-reset {
  border-color: #e5e7eb;
  background: #fff;
  color: #374151;
  padding: 8px 16px;
  font-size: 13px;
}

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

.rt-count strong {
  color: #2563eb;
  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: #10b981;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.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: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.rt-report-tip-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.rt-report-tip-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* 左侧浏览进度指示 */
.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: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: #374151;
  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: #6b7280;
}

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

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

.review-progress-unit {
  font-size: 11px;
  color: #6b7280;
}

@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: #6b7280;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.report-hero {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px 22px;
  display: grid;
  gap: 12px;
}

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

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

.report-hero-meta strong {
  color: #1f2937;
  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 #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}

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

.report-stat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

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

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

.report-stat-sub {
  font-size: 12px;
  color: #6b7280;
}

.report-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  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: #1f2937;
}

.ai-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px dashed #c4b5fd;
  background: #f5f3ff;
  color: #7c3aed;
}

.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: #b45309;
  font-weight: 600;
  font-size: 13px;
}

.report-bar-track {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
}

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

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

.report-prose {
  color: #374151;
  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: #374151;
  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 #e5e7eb;
  background: #f9fafb;
  color: #374151;
}

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

.report-tag-clickable:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

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

.report-quote {
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
  border-radius: 0 8px 8px 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: #f59e0b;
  letter-spacing: 1px;
  font-size: 13px;
}

.report-quote-name {
  color: #6b7280;
  font-size: 13px;
}

.report-quote-text {
  color: #374151;
  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: #6b7280;
  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 #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  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: #f9fafb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.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: #3b82f6;
}

.rt-date {
  cursor: text;
}

.rt-date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: none;
}

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(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.lightbox.hidden {
  display: none;
}

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 100%;
}

.lightbox-img {
  max-width: min(80vw, 960px);
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  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(0, 0, 0, 0.7);
  transform: scale(1.05);
}

.lightbox-nav {
  position: static;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.06);
}

.lightbox-nav.hidden {
  display: none;
}

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

.run-card-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  background: #f7f9fc;
  border: 1px solid #e8ebf0;
  padding: 3px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

/* 新评论提示：评论数旁的脉冲小圆点 */
.run-new-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 5px;
  vertical-align: 6px;
  border-radius: 50%;
  background: #f97316;
}

.run-new-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid #f97316;
  animation: run-new-ping 1.8s ease-out infinite;
}

@keyframes run-new-ping {
  0% { transform: scale(0.6); opacity: 0.9; }
  70% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* 新评论提示：「查看评论」按钮右上角小角标 */
.run-action.has-new-reviews {
  position: relative;
  overflow: visible;
}

.run-view-new-badge {
  position: absolute;
  top: -7px;
  right: -8px;
  padding: 1px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.35);
  pointer-events: none;
  animation: run-new-badge-pop 0.4s ease-out both;
}

@keyframes run-new-badge-pop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@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: var(--tcloud-muted);
  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: 3px;
  background: #fafbfc;
  flex-shrink: 0;
  border: 1px solid var(--tcloud-line);
}

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

.cconfirm-category {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--tcloud-accent);
  text-transform: none;
}

.cconfirm-title {
  font-size: 14px;
  color: var(--tcloud-ink);
  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: var(--tcloud-muted);
  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: var(--tcloud-surface);
  border: 1px solid var(--tcloud-line);
  border-radius: 3px;
  color: var(--tcloud-ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  text-align: center;
  min-height: 180px;
}

.variant-choice-btn:hover {
  border-color: var(--tcloud-accent);
  background: #f9fbfd;
  transform: none;
}

.vchoice-asin {
  font-size: 13px;
  font-weight: 500;
  color: var(--tcloud-accent);
  letter-spacing: 0;
  word-break: break-all;
}

.vchoice-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 3px;
  background: #fafbfc;
  border: 1px solid var(--tcloud-line);
}

.vchoice-label {
  font-size: 12px;
  color: var(--tcloud-muted);
  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: 3px;
  background: #fafbfc;
  border: 1px solid var(--tcloud-line);
}

.variant-thumb-placeholder {
  background: #f0f2f5;
  border-color: #e5e8ed;
}

.variant-noimg-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  box-sizing: border-box;
  background: #eef4ff;
  border: 1px solid #d4e3fc;
  overflow: hidden;
}

.variant-noimg-tile .variant-noimg-text {
  font-size: 9px;
  line-height: 1.15;
  font-weight: 600;
  color: var(--tcloud-accent);
  text-align: center;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.variant-more {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
}

/* --- 母ASIN样式卡片 (variant choice: all-variants button image) --- */
.vchoice-parent-card {
  width: 100%;
  border: 1px solid var(--tcloud-line);
  border-radius: 4px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #f7f9fc;
}

.vchoice-parent-card-asin {
  font-family: 'Space Grotesk', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--tcloud-accent);
  word-break: break-all;
  text-align: center;
}

.vchoice-parent-card-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--tcloud-line);
}

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

/* --- 子ASIN缩略条（子ASIN输入时"以父ASIN创建"按钮内展示） --- */
.vchoice-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  align-items: center;
  max-width: 180px;
}

.vchoice-sub-thumb {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 3px;
  background: #fafbfc;
  border: 1px solid var(--tcloud-line);
}

.vchoice-sub-thumb-placeholder {
  background: #f0f2f5;
  border-color: #e5e8ed;
}

.vchoice-sub-more {
  font-size: 11px;
  font-weight: 600;
  color: var(--tcloud-accent);
  padding: 0 2px;
}

.vchoice-subs-count {
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: var(--tcloud-muted);
  margin-top: 2px;
}

/* --- 问号卡片 (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: 14px;
  color: var(--tcloud-muted);
  margin: 0 0 10px;
  padding: 0 2px;
  line-height: 1.6;
}

.cstep-parent-prompt strong {
  color: var(--tcloud-ink);
  font-weight: 500;
}

/* --- 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: #d6dbe3 transparent;
}

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

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

.variant-select-list::-webkit-scrollbar-thumb {
  background: #d6dbe3;
  border-radius: 2px;
}

.variant-select-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--tcloud-muted);
  text-transform: uppercase;
  padding: 6px 2px 2px;
}

.variant-select-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: var(--tcloud-surface);
  border: 1px solid var(--tcloud-line);
  border-radius: 3px;
  cursor: pointer;
  text-align: left;
  color: var(--tcloud-ink);
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}

.variant-select-item:hover {
  border-color: var(--tcloud-accent);
  background: #f9fbfd;
}

.vsel-item-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 3px;
  background: #fafbfc;
  border: 1px solid var(--tcloud-line);
  flex-shrink: 0;
}

.vsel-item-img-placeholder {
  background: #f0f2f5;
  border-color: #e5e8ed;
}

.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: var(--tcloud-accent);
}

.vsel-item-name {
  font-size: 12px;
  color: var(--tcloud-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ Run Card: ASIN Info Section ============ */
.run-asin-section {
  padding: 16px;
  background: #fff;
  border: 1px solid #eaedf2;
  border-radius: 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.run-asin-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 10px;
  background: #f7f9fc;
  border: 1px solid #e8ebf0;
  padding: 4px;
  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: #d97706;
  font-weight: 700;
}

.run-asin-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--tcloud-accent);
  text-transform: uppercase;
  background: #eef4ff;
  padding: 2px 8px;
  border-radius: 4px;
}

.run-asin-category-link {
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.run-asin-category-link:hover {
  background: #dbe8ff;
  color: var(--tcloud-accent-hover, #0a54d1);
  box-shadow: 0 2px 6px rgba(61, 130, 255, 0.22);
}

.run-asin-title {
  font-size: 14px;
  color: var(--tcloud-ink);
  font-family: var(--tcloud-font);
  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: var(--tcloud-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

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

.run-variant-thumb {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: #f7f9fc;
  border: 1px solid #e8ebf0;
}

.run-variant-more {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  border: 1px solid #dce8fb;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--tcloud-accent);
}

.run-detail-asin-link {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid #d3e0f8;
  background: #eef4ff;
  color: var(--tcloud-accent);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.run-detail-asin-link:hover {
  border-color: var(--tcloud-accent);
  background: #e0ecff;
  color: var(--tcloud-accent-hover);
  transform: none;
}

/* ============ 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-category-clickable {
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.asin-detail-category-clickable:hover {
  background: rgba(61, 130, 255, 0.2);
  color: #3d82ff;
  box-shadow: 0 2px 6px rgba(61, 130, 255, 0.22);
}

#section-competitors {
  scroll-margin-top: 84px;
}

.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: 44px;
  text-align: right;
  color: #9fb1da;
}

.asin-rating-count-num {
  width: 84px;
  text-align: right;
  font-size: 12px;
  color: #8ba3c7;
  white-space: nowrap;
}

.asin-rating-total {
  font-size: 13px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 10px;
}

.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: 18px;
}

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

.asin-variant-group + .asin-variant-group {
  padding-top: 18px;
  border-top: 1px dashed rgba(159, 177, 218, 0.35);
}

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

.asin-variant-group-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}

.asin-variant-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(22, 30, 50, 0.8);
  border: 1px solid rgba(72, 92, 134, 0.4);
  border-radius: 10px;
  text-align: left;
  text-decoration: none;
  color: #9fb1da;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.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);
  box-shadow: none;
}

.asin-variant-img-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f5f7fa;
  border: 1px solid var(--tcloud-line, rgba(72, 92, 134, 0.3));
  overflow: hidden;
}

.asin-variant-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.asin-variant-img-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(72, 92, 134, 0.3);
}

.asin-variant-noimg {
  background: #eef4ff;
  border-color: #d4e3fc;
  padding: 3px;
  box-sizing: border-box;
}

.asin-variant-noimg .variant-noimg-text {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--tcloud-accent);
  text-align: center;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.asin-variant-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.asin-variant-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  color: #262626;
}

.asin-variant-price {
  font-size: 13px;
  font-weight: 700;
  color: #b12704;
}

.asin-variant-asin {
  font-size: 11px;
  color: #7aaeff;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.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: 72px;
  height: 72px;
  flex-shrink: 0;
  border: 1px solid #cfe0fb;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef4ff, #dce8fb);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
}

.run-asin-parent-card-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--tcloud-accent);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
}

.run-asin-parent-card-asin {
  font-size: 7.5px;
  color: #3a63b8;
  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;
}

.detail-update-time-val {
  color: #000;
  font-weight: 600;
}

/* “本商品 / 父ASIN / 本品变体”标记徽标 */
.self-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #0052d9, #3d82ff);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 82, 217, 0.35);
  pointer-events: none;
}

/* 本商品：蓝色（默认）；父ASIN：紫色；本品变体：青绿色 */
.self-badge-parent {
  background: linear-gradient(135deg, #722ed1, #9254de);
  box-shadow: 0 2px 6px rgba(114, 46, 209, 0.35);
}

.self-badge-variant {
  background: linear-gradient(135deg, #08979c, #13c2c2);
  box-shadow: 0 2px 6px rgba(8, 151, 156, 0.35);
}

/* ============ 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 line (Amazon-style, inline in info column) --- */
.asin-price-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 6px 0 2px;
}

.asin-price-line.hidden {
  display: none;
}

.asin-price-discount.hidden {
  display: none;
}

.asin-price-discount {
  display: inline-flex;
  align-items: center;
  background: #cc0c39;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.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.hidden {
  display: none;
}

.asin-price-listrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  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: calc(100vw - 40px);
  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;
}

.asin-rank-text {
  flex: 1;
  min-width: 0;
}

.asin-rank-num {
  font-size: 16px;
  font-weight: 800;
  color: #0052d9;
}

/* ============ 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);
}

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

.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-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 82, 217, 0.1);
  border: 1px solid rgba(0, 82, 217, 0.3);
  color: #0052d9;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.asin-rank-item-clickable:hover .asin-rank-toggle {
  background: rgba(0, 82, 217, 0.16);
  border-color: rgba(0, 82, 217, 0.5);
}

.asin-rank-item-clickable.expanded .asin-rank-toggle {
  background: #0052d9;
  border-color: #0052d9;
  color: #fff;
}

.asin-rank-toggle-label {
  white-space: nowrap;
}

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

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

.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;
  flex-wrap: nowrap;
  gap: 10px;
}

.bs-card {
  position: relative;
  flex: 1 1 0;
  min-width: 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-self,
.bs-card-self:hover,
.competitor-card-self,
.competitor-card-self:hover {
  border-color: #0052d9;
  box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.28);
}

.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: var(--tcloud-muted);
  font-size: 13px;
  font-family: var(--tcloud-font);
}

/* ====== 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;
}

/* ======================================================================
   MODERN NAVBAR - Glassmorphism + Mega Menu
   ====================================================================== */

/* Body padding for fixed navbar */
.runs-page-body,
.plans-page-body {
  padding-top: 70px;
}

/* Announcement Badge - orange pill in hero */
.announce-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.announce-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
}

.announce-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: announceShine 2.5s ease-in-out infinite;
}

@keyframes announceShine {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

.announce-bar-text {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.announce-bar-link {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

/* Main Navbar */
.mega-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  /* 不要设置默认的 transform: translateY(0)，否则会创建堆叠上下文导致某些浏览器点击区域异常 */
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hidden state - slide up */
.mega-navbar.nav-hidden {
  transform: translateY(-100%);
}

.mega-navbar-bg {
  max-width: 100%;
  margin: 0 auto;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* At top - fully embedded in background */
.mega-navbar.at-top .mega-navbar-bg {
  max-width: 100%;
  background: transparent;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* Scrolled state - floating capsule */
.mega-navbar.scrolled {
  padding: 12px 24px;
}

.mega-navbar.scrolled .mega-navbar-bg {
  max-width: 920px;
  margin: 0 auto;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.mega-navbar-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 24px;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mega-navbar.scrolled .mega-navbar-inner {
  height: 48px;
  padding: 0 16px;
}

/* Logo */
.mega-navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.mega-navbar-logo:hover {
  transform: scale(1.02);
}

.mega-navbar-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0a66ff 0%, #4a8fff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(10, 102, 255, 0.3);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-navbar-logo-icon svg {
  color: #fff;
}

.mega-navbar-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.02em;
}

/* Nav Items */
.mega-navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.mega-nav-item {
  position: relative;
}

.mega-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 16px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: transparent;
}

.mega-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.mega-nav-item.active .mega-nav-link {
  color: #fff;
  background: rgba(10, 102, 255, 0.2);
}

.mega-nav-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.mega-nav-item.active .mega-nav-link svg {
  transform: rotate(180deg);
}

/* Dropdown Panel */
.mega-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 280px;
  padding: 14px;
  background: rgba(18, 24, 38, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(100, 140, 200, 0.18);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
}

.mega-nav-item.active .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Dropdown pointer */
.mega-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(18, 24, 38, 0.96);
  border-top: 1px solid rgba(100, 140, 200, 0.18);
  border-left: 1px solid rgba(100, 140, 200, 0.18);
}

/* Dropdown Items */
.mega-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mega-dropdown-item:hover {
  background: rgba(10, 102, 255, 0.15);
  color: #fff;
  transform: translateX(2px);
}

.mega-dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(10, 102, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.mega-dropdown-item:hover .mega-dropdown-icon {
  background: rgba(10, 102, 255, 0.25);
}

.mega-dropdown-icon svg {
  width: 18px;
  height: 18px;
  color: #4a8fff;
  transition: all 0.3s ease;
}

.mega-dropdown-item:hover .mega-dropdown-icon svg {
  transform: scale(1.15) rotate(5deg);
  color: #6ba3ff;
}

.mega-dropdown-content {
  flex: 1;
  min-width: 0;
}

.mega-dropdown-title {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  margin-bottom: 2px;
}

.mega-dropdown-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dropdown Divider */
.mega-dropdown-divider {
  height: 1px;
  background: rgba(100, 140, 200, 0.15);
  margin: 10px 0;
}

/* Two Column Dropdown */
.mega-dropdown.mega-dropdown-wide {
  min-width: 480px;
}

.mega-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mega-dropdown-section-title {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Nav Actions (Right side) */
.mega-navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mega-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.mega-nav-btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mega-nav-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.mega-nav-btn-primary {
  background: linear-gradient(135deg, #0a66ff 0%, #4a8fff 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(10, 102, 255, 0.35);
  position: relative;
  overflow: hidden;
  animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(10, 102, 255, 0.35); }
  50% { box-shadow: 0 4px 24px rgba(10, 102, 255, 0.5), 0 0 0 2px rgba(10, 102, 255, 0.1); }
}

.mega-nav-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4a8fff 0%, #0a66ff 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mega-nav-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(10, 102, 255, 0.5);
  animation: none;
}

.mega-nav-btn-primary:hover::before {
  opacity: 1;
}

.mega-nav-btn-primary span {
  position: relative;
  z-index: 1;
}

/* User Avatar Button */
.mega-nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mega-nav-user:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.mega-nav-user-avatar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 50%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mega-nav-user-avatar-link:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(10, 102, 255, 0.3);
}

.mega-nav-user-avatar-link:hover .mega-nav-user-avatar {
  box-shadow: 0 2px 8px rgba(10, 102, 255, 0.4);
}

.mega-nav-user-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.mega-nav-user svg {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.25s ease;
}

.mega-nav-item.active .mega-nav-user svg {
  transform: rotate(180deg);
}

/* User Dropdown */
.mega-dropdown-user {
  min-width: 200px;
  left: auto;
  right: 0;
  transform: translateY(-8px);
}

.mega-dropdown-user::before {
  left: auto;
  right: 20px;
  transform: rotate(45deg);
}

.mega-nav-item.active .mega-dropdown-user {
  transform: translateY(0);
}

.mega-dropdown-user-header {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(100, 140, 200, 0.15);
  margin-bottom: 8px;
}

.mega-dropdown-user-email {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
}

.mega-dropdown-user-role {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.mega-dropdown-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #ff6b6b;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: left;
}

.mega-dropdown-logout:hover {
  background: rgba(255, 107, 107, 0.1);
}

.mega-dropdown-logout svg {
  width: 16px;
  height: 16px;
}

/* Mobile Menu Toggle (hidden on desktop) */
.mega-navbar-toggle {
  display: none;
  padding: 8px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
  .mega-navbar-nav {
    display: none;
  }
  
  .mega-navbar-toggle {
    display: flex;
  }
  
  .announce-bar-text {
    font-size: 12px;
  }
}

/* Active indicator for current page */
.mega-nav-link.current {
  color: #fff;
  position: relative;
}

.mega-nav-link.current::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: linear-gradient(90deg, #0a66ff, #4a8fff);
  border-radius: 1px;
}

/* ================================================================
   STICKY STACKING SECTIONS - 滚动覆盖动画效果
   ================================================================ */

.stack-body {
  overflow-x: hidden;
  padding-top: 64px;
}

.stack-container {
  position: relative;
}

.topbar-stack {
  z-index: 1000;
}

/* mega-navbar 适配 stack 页面 - 创意玻璃效果 */
.mega-navbar-stack {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.mega-navbar-stack .mega-navbar-bg {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.85) 0%, 
    rgba(240, 245, 255, 0.9) 50%,
    rgba(245, 240, 255, 0.85) 100%);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(10, 102, 255, 0.08);
  box-shadow: 0 1px 20px rgba(10, 102, 255, 0.06);
}

.mega-navbar-stack .mega-navbar-logo-icon {
  background: linear-gradient(135deg, #0a66ff 0%, #6366f1 50%, #8b5cf6 100%);
  box-shadow: 0 2px 8px rgba(10, 102, 255, 0.3);
}

.mega-navbar-stack .mega-navbar-logo-icon svg {
  stroke: #fff;
}

.mega-navbar-stack .mega-navbar-logo-text {
  background: linear-gradient(135deg, #1e3a5f 0%, #0a66ff 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.mega-navbar-stack .mega-nav-link {
  color: #1e3a5f;
  font-weight: 500;
  transition: all 0.25s ease;
}

.mega-navbar-stack .mega-nav-link:hover {
  color: #0a66ff;
  text-shadow: 0 0 20px rgba(10, 102, 255, 0.3);
}

.mega-navbar-stack .mega-nav-link svg {
  stroke: #1e3a5f;
  transition: stroke 0.25s ease;
}

.mega-navbar-stack .mega-nav-link:hover svg {
  stroke: #0a66ff;
}

.mega-navbar-stack .mega-nav-btn-ghost {
  border: 1px solid rgba(10, 102, 255, 0.15);
  background: rgba(10, 102, 255, 0.04);
}

.mega-navbar-stack .mega-nav-btn-ghost span {
  color: #1e3a5f;
  font-weight: 500;
}

.mega-navbar-stack .mega-nav-btn-ghost:hover {
  border-color: rgba(10, 102, 255, 0.3);
  background: rgba(10, 102, 255, 0.08);
}

.mega-navbar-stack .mega-nav-btn-ghost:hover span {
  color: #0a66ff;
}

.mega-navbar-stack .mega-nav-btn-primary {
  background: linear-gradient(135deg, #0a66ff 0%, #6366f1 100%);
  box-shadow: 0 2px 12px rgba(10, 102, 255, 0.35);
}

.mega-navbar-stack .mega-nav-btn-primary:hover {
  box-shadow: 0 4px 20px rgba(10, 102, 255, 0.5);
  transform: translateY(-1px);
}

.mega-navbar-stack .mega-dropdown {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,255,0.98));
  border: 1px solid rgba(10, 102, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(10, 102, 255, 0.12),
    0 0 0 1px rgba(255,255,255,0.8) inset;
}

.mega-navbar-stack .mega-dropdown-item:hover {
  background: linear-gradient(135deg, rgba(10, 102, 255, 0.06), rgba(139, 92, 246, 0.04));
}

.mega-navbar-stack .mega-dropdown-icon {
  background: linear-gradient(135deg, rgba(10, 102, 255, 0.1), rgba(139, 92, 246, 0.08));
}

.mega-navbar-stack .mega-dropdown-icon svg {
  stroke: #0a66ff;
}

.mega-navbar-stack .mega-dropdown-title {
  color: #1e3a5f;
}

.mega-navbar-stack .mega-dropdown-desc {
  color: #64748b;
}

/* Stack navbar scrolled/hidden - 完整胶囊样式，覆盖全宽背景 */
.mega-navbar-stack.scrolled,
.mega-navbar-stack.nav-hidden {
  background: transparent !important;
}

.mega-navbar-stack.scrolled .mega-navbar-bg,
.mega-navbar-stack.nav-hidden .mega-navbar-bg {
  max-width: 920px;
  margin: 0 auto;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(10, 102, 255, 0.1) !important;
  box-shadow: 0 4px 24px rgba(10, 102, 255, 0.12);
}

/* 滚动进度条 */
.scroll-progress-bar {
  position: fixed;
  top: 76px;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #0a66ff, #8b5cf6, #06b6d4);
  transition: width 0.1s linear;
  z-index: 1000;
}

/* Stack Section 基础样式 */
.stack-section {
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  height: calc(100vh - 76px);
  overflow: hidden;
  will-change: transform;
}

/* z-index 控制层叠顺序 */
.stack-section[data-stack-index="0"] { z-index: 1; }
.stack-section[data-stack-index="1"] { z-index: 2; }
.stack-section[data-stack-index="2"] { z-index: 3; }

/* 初始状态：在视口下方 */
.stack-section[data-stack-index="1"],
.stack-section[data-stack-index="2"] {
  transform: translateY(100%);
}

/* Section 背景层 */
.stack-section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* 内容区域 - 可以被 JS 滚动 */
.stack-section-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  padding: 80px 0 calc(60px + 50vh);
  will-change: transform;
}

/* 滚动占位容器 */
.stack-spacer {
  height: 100vh;
  pointer-events: none;
}

/* ============ Hero Section ============ */
.stack-hero {
  background: linear-gradient(180deg, #f5f7fb 0%, #eef3fb 100%);
}

.stack-hero .stack-section-bg {
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(10, 102, 255, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(139, 92, 246, 0.1), transparent),
    radial-gradient(circle at 20% 80%, rgba(10, 102, 255, 0.08), transparent 50%);
}

.stack-hero .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text {
  animation: fadeSlideUp 0.8s ease-out;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stack-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: linear-gradient(135deg, rgba(10, 102, 255, 0.1), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(10, 102, 255, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #0a66ff;
  margin-bottom: 16px;
}

.eyebrow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #0a66ff, #8b5cf6);
  border-radius: 50%;
  color: #fff;
}

.eyebrow-icon svg {
  width: 14px;
  height: 14px;
}

.hero-title {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.title-line {
  display: block;
}

.title-highlight {
  background: linear-gradient(135deg, #0a66ff 0%, #8b5cf6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stack-hero .subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: #5f687a;
  max-width: 520px;
}

.stack-hero .hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* 发光按钮 */
.btn-glow {
  position: relative;
  background: linear-gradient(135deg, #0a66ff, #4a8fff);
  box-shadow: 0 4px 16px rgba(10, 102, 255, 0.35);
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-glow:hover::before {
  opacity: 1;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 102, 255, 0.45);
}

/* 玻璃按钮 */
.btn-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(10, 102, 255, 0.15);
  color: #12161f;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(10, 102, 255, 0.3);
  transform: translateY(-2px);
}

.btn svg {
  margin-right: 8px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}

/* Hero 统计数字 */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(10, 102, 255, 0.1);
}

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

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #12161f;
  line-height: 1;
}

.stat-suffix {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0a66ff;
}

.stat-label {
  font-size: 12px;
  color: #5f687a;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, rgba(10, 102, 255, 0.2), transparent);
}

/* Hero 可视化卡片 */
.hero-visual {
  position: relative;
  height: 380px;
  animation: fadeSlideUp 0.8s ease-out 0.2s both;
}

.visual-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(10, 102, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(17, 33, 70, 0.12);
}

.visual-card-main {
  top: 20px;
  left: 0;
  right: 40px;
  padding: 0;
  overflow: hidden;
  animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.visual-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #1a1f2e, #252b3d);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.visual-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
}

.visual-dot:nth-child(2) { background: #ffbd2e; }
.visual-dot:nth-child(3) { background: #28c840; }

.visual-title {
  margin-left: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.visual-body {
  padding: 16px;
}

.visual-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(10, 102, 255, 0.02), rgba(10, 102, 255, 0.06));
  border-radius: 8px;
  margin-bottom: 14px;
}

.chart-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, #d1e0ff, #a5c4ff);
  border-radius: 4px 4px 0 0;
  transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: barGrow 1s ease-out backwards;
}

.chart-bar:nth-child(1) { animation-delay: 0.1s; }
.chart-bar:nth-child(2) { animation-delay: 0.15s; }
.chart-bar:nth-child(3) { animation-delay: 0.2s; }
.chart-bar:nth-child(4) { animation-delay: 0.25s; }
.chart-bar:nth-child(5) { animation-delay: 0.3s; }
.chart-bar:nth-child(6) { animation-delay: 0.35s; }
.chart-bar:nth-child(7) { animation-delay: 0.4s; }

@keyframes barGrow {
  from {
    height: 0;
    opacity: 0;
  }
}

.chart-bar-accent {
  background: linear-gradient(180deg, #0a66ff, #4a8fff);
}

.visual-metrics {
  display: flex;
  gap: 16px;
}

.metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
}

.metric-label {
  font-size: 11px;
  color: #5f687a;
  font-weight: 500;
}

.metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #12161f;
}

.metric-up {
  color: #10b981;
}

/* 浮动小卡片 */
.visual-card-float {
  bottom: 100px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  animation: floatSlow 5s ease-in-out infinite 1s;
}

.float-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  border-radius: 10px;
  color: #fff;
}

.float-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.float-title {
  font-size: 13px;
  font-weight: 600;
  color: #12161f;
}

.float-desc {
  font-size: 11px;
  color: #5f687a;
}

/* AI 脉冲圆 */
.visual-card-pulse {
  bottom: 20px;
  left: 60px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  border: none;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
  animation: floatSlow 4s ease-in-out infinite 0.5s;
}

.pulse-ring {
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(6, 182, 212, 0.3);
  border-radius: 50%;
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.pulse-core {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

/* 滚动提示 */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  animation: fadeIn 1s ease-out 1s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scroll-text {
  font-size: 12px;
  color: #5f687a;
  font-weight: 500;
}

.scroll-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(10, 102, 255, 0.08);
  border: 1px solid rgba(10, 102, 255, 0.15);
  border-radius: 50%;
  color: #0a66ff;
  animation: bounceDown 1.5s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Hero 额外内容 */
.hero-extra {
  padding: 60px 0;
}

/* Features 嵌入到 Hero section */
.features-embedded {
  padding: 60px 0 40px;
  margin-top: 40px;
}

.features-embedded .section-header {
  text-align: center;
  margin-bottom: 36px;
}

.features-embedded .features-grid {
  margin-bottom: 32px;
}

.features-embedded .features-stats {
  margin: 32px 0;
}

.features-embedded .features-comparison {
  margin: 32px 0;
}

.features-embedded .features-cta {
  text-align: center;
  margin-top: 24px;
}

.trusted-section {
  text-align: center;
  margin-bottom: 48px;
}

.trusted-label {
  font-size: 13px;
  color: #5f687a;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trusted-logos {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trusted-logo {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(10, 102, 255, 0.1);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.highlight-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(10, 102, 255, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(10, 102, 255, 0.1);
}

.highlight-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(10, 102, 255, 0.1), rgba(139, 92, 246, 0.08));
  border-radius: 12px;
  color: #0a66ff;
}

.highlight-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: #12161f;
  margin-bottom: 6px;
}

.highlight-content p {
  font-size: 13px;
  color: #5f687a;
  line-height: 1.5;
}

/* ============ Features Section (核心能力) ============ */
.stack-features {
  background: linear-gradient(180deg, #f0f4ff 0%, #e8f0ff 100%);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 40px rgba(10, 102, 255, 0.1);
}

.stack-features .stack-section-bg {
  background: 
    radial-gradient(ellipse 50% 50% at 0% 0%, rgba(10, 102, 255, 0.08), transparent),
    radial-gradient(ellipse 40% 40% at 100% 100%, rgba(139, 92, 246, 0.06), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-badge {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(10, 102, 255, 0.1), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(10, 102, 255, 0.15);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #0a66ff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: #12161f;
  margin-bottom: 10px;
}

.title-gradient {
  background: linear-gradient(135deg, #12161f 0%, #0a66ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 15px;
  color: #5f687a;
  max-width: 500px;
  margin: 0 auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.feature-card {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(10, 102, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-from, #0a66ff), var(--accent-to, #4a8fff));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(10, 102, 255, 0.15);
  border-color: rgba(10, 102, 255, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--glow-color, rgba(10, 102, 255, 0.15)), transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-card:hover .feature-glow {
  opacity: 1;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 16px;
  position: relative;
}

.feature-icon-blue {
  background: linear-gradient(135deg, rgba(10, 102, 255, 0.15), rgba(10, 102, 255, 0.05));
  color: #0a66ff;
  --accent-from: #0a66ff;
  --accent-to: #4a8fff;
  --glow-color: rgba(10, 102, 255, 0.12);
}

.feature-icon-purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
  color: #8b5cf6;
  --accent-from: #8b5cf6;
  --accent-to: #a78bfa;
  --glow-color: rgba(139, 92, 246, 0.12);
}

.feature-icon-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05));
  color: #06b6d4;
  --accent-from: #06b6d4;
  --accent-to: #22d3ee;
  --glow-color: rgba(6, 182, 212, 0.12);
}

.feature-icon-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  color: #10b981;
  --accent-from: #10b981;
  --accent-to: #34d399;
  --glow-color: rgba(16, 185, 129, 0.12);
}

.feature-icon-orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
  color: #f97316;
  --accent-from: #f97316;
  --accent-to: #fb923c;
  --glow-color: rgba(249, 115, 22, 0.12);
}

.feature-icon-pink {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05));
  color: #ec4899;
  --accent-from: #ec4899;
  --accent-to: #f472b6;
  --glow-color: rgba(236, 72, 153, 0.12);
}

.feature-card:nth-child(1) { --accent-from: #0a66ff; --accent-to: #4a8fff; --glow-color: rgba(10, 102, 255, 0.12); }
.feature-card:nth-child(2) { --accent-from: #8b5cf6; --accent-to: #a78bfa; --glow-color: rgba(139, 92, 246, 0.12); }
.feature-card:nth-child(3) { --accent-from: #06b6d4; --accent-to: #22d3ee; --glow-color: rgba(6, 182, 212, 0.12); }
.feature-card:nth-child(4) { --accent-from: #10b981; --accent-to: #34d399; --glow-color: rgba(16, 185, 129, 0.12); }
.feature-card:nth-child(5) { --accent-from: #f97316; --accent-to: #fb923c; --glow-color: rgba(249, 115, 22, 0.12); }
.feature-card:nth-child(6) { --accent-from: #ec4899; --accent-to: #f472b6; --glow-color: rgba(236, 72, 153, 0.12); }

.feature-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #12161f;
  margin-bottom: 8px;
}

.feature-content p {
  font-size: 14px;
  color: #5f687a;
  line-height: 1.6;
  margin-bottom: 14px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 10px;
  background: rgba(10, 102, 255, 0.06);
  border: 1px solid rgba(10, 102, 255, 0.1);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #0a66ff;
}

.features-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0;
  padding: 32px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(10, 102, 255, 0.08);
}

.features-stat {
  text-align: center;
}

.features-stat-num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #0a66ff, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.features-stat-label {
  font-size: 14px;
  color: #5f687a;
}

.features-comparison {
  margin: 48px 0;
}

.comparison-title {
  font-size: 20px;
  font-weight: 700;
  color: #12161f;
  text-align: center;
  margin-bottom: 24px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.comparison-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.comparison-item-new {
  background: linear-gradient(135deg, rgba(10, 102, 255, 0.08), rgba(139, 92, 246, 0.05));
  border-color: rgba(10, 102, 255, 0.15);
}

.comparison-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
}

.comparison-icon-old {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.comparison-icon-new {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.comparison-content strong {
  display: block;
  font-size: 16px;
  color: #12161f;
  margin-bottom: 6px;
}

.comparison-content p {
  font-size: 14px;
  color: #5f687a;
  margin: 0;
}

.features-cta {
  text-align: center;
  margin-top: 32px;
}

/* ============ Use Cases Section (使用场景) ============ */
.stack-usecases {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.2);
}

.stack-usecases .stack-section-bg {
  background: 
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(10, 102, 255, 0.2), transparent),
    radial-gradient(ellipse 50% 50% at 80% 100%, rgba(139, 92, 246, 0.15), transparent);
}

.section-header-light {
  color: #fff;
}

.section-badge-light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #a5b4fc;
}

.section-title-light {
  color: #fff;
}

.section-desc-light {
  color: rgba(255, 255, 255, 0.6);
}

.usecases-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

/* Tabs */
.usecase-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.usecase-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.usecase-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

.usecase-tab.active {
  background: linear-gradient(135deg, rgba(10, 102, 255, 0.3), rgba(139, 92, 246, 0.2));
  border-color: rgba(10, 102, 255, 0.4);
  color: #fff;
  box-shadow: 0 4px 20px rgba(10, 102, 255, 0.25);
}

.tab-icon {
  display: flex;
  opacity: 0.7;
}

.usecase-tab.active .tab-icon {
  opacity: 1;
}

/* Panels */
.usecase-panels {
  position: relative;
  min-height: 320px;
}

.usecase-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  animation: panelFadeIn 0.4s ease-out;
}

.usecase-panel.active {
  display: grid;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-visual {
  display: flex;
  justify-content: center;
}

.visual-mockup {
  width: 100%;
  max-width: 400px;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-dots {
  display: flex;
  gap: 5px;
}

.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
}

.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

.mockup-title {
  margin-left: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.mockup-body {
  padding: 16px;
}

.mockup-row {
  margin-bottom: 14px;
}

.mockup-label {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
  font-weight: 500;
}

.mockup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mockup-tags span {
  padding: 4px 10px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 999px;
  font-size: 11px;
  color: #fca5a5;
}

.mockup-tags-green span {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.mockup-chart-mini {
  margin-top: 14px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
}

.mockup-chart-mini svg {
  width: 100%;
  height: 30px;
  color: #0a66ff;
}

.mockup-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.mockup-stat {
  flex: 1;
  padding: 12px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
  text-align: center;
}

.stat-big {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.stat-red {
  color: #f87171;
}

.stat-sm {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.mockup-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.progress-item span {
  width: 40px;
  flex-shrink: 0;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  display: block;
  width: var(--w);
  height: 100%;
  background: linear-gradient(90deg, #0a66ff, #4a8fff);
  border-radius: 3px;
  animation: progressGrow 1s ease-out;
}

@keyframes progressGrow {
  from { width: 0; }
}

.progress-bar-red::after {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.mockup-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.faq-item {
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
}

.faq-q {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

.faq-a {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.mockup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #22d3ee;
}

/* Panel Info */
.panel-info h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.panel-info > p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 20px;
}

.panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.panel-list svg {
  color: #10b981;
  flex-shrink: 0;
}

/* Testimonials */
.usecases-testimonials {
  margin-top: 48px;
}

.testimonials-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 24px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
}

.testimonial-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a66ff, #8b5cf6);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.author-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.usecases-cta {
  text-align: center;
  margin-top: 48px;
}

.btn-light {
  background: #fff;
  color: #0f172a;
  border: none;
}

.btn-light:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ============ Contact Section ============ */
.stack-contact {
  background: linear-gradient(180deg, #f5f7fb 0%, #e8f0ff 100%);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 40px rgba(10, 102, 255, 0.08);
}

.stack-contact .stack-section-bg {
  background: 
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(10, 102, 255, 0.08), transparent),
    radial-gradient(ellipse 40% 40% at 0% 50%, rgba(139, 92, 246, 0.05), transparent);
}

/* 步骤卡片 */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.step-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(10, 102, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(10, 102, 255, 0.1);
}

.step-number {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #0a66ff, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #12161f;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: #5f687a;
  line-height: 1.5;
}

.contact-subtitle {
  font-size: 20px;
  font-weight: 700;
  color: #12161f;
  margin-bottom: 12px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact-info .section-badge {
  margin-bottom: 16px;
}

.contact-info .section-title {
  margin-bottom: 14px;
}

.contact-info .section-desc {
  text-align: left;
  margin: 0 0 24px;
  max-width: none;
}

.contact-actions {
  display: flex;
  gap: 12px;
}

.contact-demo {
  display: flex;
  justify-content: center;
}

.demo-card {
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(10, 102, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(17, 33, 70, 0.1);
}

.demo-card .panel-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.demo-card .panel-desc {
  font-size: 13px;
  margin-bottom: 14px;
}

.demo-card code {
  padding: 2px 6px;
  background: rgba(10, 102, 255, 0.08);
  border-radius: 4px;
  font-size: 12px;
  color: #0a66ff;
}

/* FAQ Section */
.faq-section {
  margin-top: 48px;
}

.faq-title {
  font-size: 20px;
  font-weight: 700;
  color: #12161f;
  text-align: center;
  margin-bottom: 24px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.faq-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(10, 102, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.faq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 102, 255, 0.08);
}

.faq-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #12161f;
  margin-bottom: 8px;
}

.faq-card p {
  font-size: 13px;
  color: #5f687a;
  line-height: 1.6;
  margin: 0;
}

/* ============ Footer ============ */
.stack-footer {
  position: relative;
  z-index: 10;
  background: #f5f7fb;
}

/* ============ 侧边导航点 ============ */
.stack-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack-nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(10, 102, 255, 0.2);
  border: 2px solid rgba(10, 102, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.stack-nav-dot:hover {
  background: rgba(10, 102, 255, 0.4);
  transform: scale(1.2);
}

.stack-nav-dot.active {
  background: #0a66ff;
  border-color: #0a66ff;
  box-shadow: 0 0 12px rgba(10, 102, 255, 0.5);
  transform: scale(1.3);
}

/* ============ Reveal 动画 ============ */
[data-reveal] {
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="left"] {
  transform: translateX(-40px);
}

[data-reveal="right"] {
  transform: translateX(40px);
}

[data-reveal="up"] {
  transform: translateY(40px);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .stack-hero .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .hero-visual {
    height: 300px;
    order: -1;
  }
  
  .visual-card-main {
    right: 20px;
  }
  
  .visual-card-float {
    right: 10px;
    bottom: 60px;
  }
  
  .visual-card-pulse {
    left: 20px;
    bottom: 10px;
    width: 50px;
    height: 50px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .usecase-tabs {
    flex-wrap: wrap;
  }
  
  .usecase-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .panel-visual {
    order: -1;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .contact-info .section-desc {
    text-align: center;
  }
  
  .contact-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .stack-nav {
    display: none;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .stack-section-content {
    padding: 28px 0;
  }
  
  .hero-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  
  .stack-hero .hero-actions {
    flex-direction: column;
  }
  
  .hero-stats {
    gap: 16px;
  }
  
  .stat-divider {
    display: none;
  }
  
  .usecase-tab {
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .tab-icon {
    display: none;
  }
}

/* ============================================================================
   浅色主题 (theme-light) - 完全参照 index.html 风格
   设计语言：纯白背景、蓝紫渐变强调、精致卡片阴影、清晰字体层级
   ============================================================================ */
body.theme-light.runs-page-body {
  background: #ffffff;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(59, 130, 246, 0.08), transparent);
  background-attachment: fixed;
  color: #475569;
  min-height: 100vh;
}

/* 导航栏浅色主题 - 参照 index.html 的白色导航栏 */
body.theme-light .mega-navbar-bg {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.theme-light .mega-navbar-logo-icon {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

body.theme-light .mega-navbar-logo-text {
  color: #1e293b;
  font-weight: 600;
}

body.theme-light .mega-nav-link {
  color: #64748b;
  font-weight: 500;
}

body.theme-light .mega-nav-link:hover {
  color: #1e293b;
}

body.theme-light .mega-dropdown {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}

body.theme-light .mega-dropdown-item:hover {
  background: #f8fafc;
}

body.theme-light .mega-dropdown-title {
  color: #1e293b;
  font-weight: 600;
}

body.theme-light .mega-dropdown-desc {
  color: #64748b;
}

body.theme-light .mega-nav-btn-ghost {
  color: #475569;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-weight: 500;
}

body.theme-light .mega-nav-btn-ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}

body.theme-light .mega-nav-user-avatar {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

/* Runs 页面头部 - 渐变横幅 */
body.theme-light .runs-head h1 {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #fff;
  background-clip: unset;
  color: #fff;
  font-weight: 700;
  font-family: var(--tcloud-font);
}

body.theme-light .runs-head p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

/* 工具栏浅色 - 腾讯云风格 */
body.theme-light .runs-toolbar {
  background: var(--tcloud-surface);
  border: 1px solid var(--tcloud-line);
  box-shadow: none;
  border-radius: 3px;
}

body.theme-light .runs-refresh-btn {
  border: 1px solid var(--tcloud-line);
  background: var(--tcloud-surface);
  color: var(--tcloud-ink);
  border-radius: 3px;
  font-weight: 400;
}

body.theme-light .runs-refresh-btn:hover {
  border-color: var(--tcloud-accent);
  background: var(--tcloud-surface);
  color: var(--tcloud-accent);
}

/* 搜索框浅色 - 腾讯云风格 */
body.theme-light .search-task-input {
  background: var(--tcloud-surface);
  border: 1.5px solid #b8c2d4;
  color: #1f2733;
  border-radius: 9px;
}

body.theme-light .search-task-input::placeholder {
  color: #8a94a6;
}

body.theme-light .search-task-input:focus {
  background: var(--tcloud-surface);
  border-color: var(--tcloud-accent);
  box-shadow: none;
}

/* 空状态 - 腾讯云风格 */
body.theme-light .runs-empty {
  color: var(--tcloud-muted);
  background: var(--tcloud-surface);
  border: 1px dashed var(--tcloud-line);
  border-radius: 3px;
}

/* 任务卡片浅色 - 腾讯云风格 */
body.theme-light .run-card {
  background: var(--tcloud-surface);
  border: 1px solid var(--tcloud-line);
  box-shadow: none;
  border-radius: 3px;
  transition: border-color 0.2s ease;
}

body.theme-light .run-card:hover {
  border-color: var(--tcloud-accent);
  box-shadow: none;
  transform: none;
}

body.theme-light .run-card.expanded {
  border-color: var(--tcloud-accent);
  box-shadow: none;
}

body.theme-light .run-card-asin-text {
  color: var(--tcloud-ink);
  font-weight: 500;
}

/* 国家标签 - 腾讯云风格 */
body.theme-light .run-card-country {
  border: 1px solid #d4e3fc;
  background: #f2f6fc;
  color: var(--tcloud-accent);
  font-weight: 400;
  border-radius: 2px;
}

body.theme-light .run-card-meta {
  color: var(--tcloud-muted);
}

body.theme-light .run-card-time::before {
  background: #d9d9d9;
}

body.theme-light .run-card-reviews,
body.theme-light .run-card-reports {
  color: var(--tcloud-ink);
  font-weight: 400;
}

body.theme-light .run-card-reviews strong,
body.theme-light .run-card-reports strong {
  color: var(--tcloud-ink);
  font-weight: 700;
}

body.theme-light .run-card-reviews::before {
  background: var(--tcloud-accent);
}

/* 状态徽章浅色 - 参照 index.html 的标签风格 */
body.theme-light .run-badge-running {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border: 1px solid #6ee7b7;
  font-weight: 700;
  border-radius: 999px;
}

body.theme-light .run-badge-waiting {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #fcd34d;
  font-weight: 700;
  border-radius: 999px;
}

body.theme-light .run-badge-initializing {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  border: 1px solid #93c5fd;
  font-weight: 700;
  border-radius: 999px;
}

body.theme-light .run-badge-closed {
  background: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-weight: 600;
  border-radius: 999px;
}

body.theme-light .run-badge-hidden {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #5b21b6;
  border: 1px solid #c4b5fd;
  font-weight: 700;
  border-radius: 999px;
}

body.theme-light .run-badge-demo {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  color: #6b21a8;
  border: 1px solid #d8b4fe;
  font-weight: 700;
  border-radius: 999px;
}

body.theme-light .run-badge-dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

body.theme-light .run-badge-dot-initializing {
  background: transparent;
  border: 2px solid #c7d2fe;
  border-top-color: #6366f1;
  box-shadow: none;
}

/* 操作按钮浅色 - 腾讯云风格 */
body.theme-light .run-hide-btn {
  border: 1px solid var(--tcloud-line);
  background: var(--tcloud-surface);
  color: var(--tcloud-muted);
  border-radius: 3px;
  font-weight: 400;
}

body.theme-light .run-hide-btn:hover {
  border-color: var(--tcloud-accent);
  background: var(--tcloud-surface);
  color: var(--tcloud-accent);
}

body.theme-light .run-card-actions .btn-ghost {
  border: 1px solid var(--tcloud-line);
  background: var(--tcloud-surface);
  color: var(--tcloud-ink);
  border-radius: 3px;
  font-weight: 400;
}

body.theme-light .run-card-actions .btn-ghost:hover {
  border-color: var(--tcloud-accent);
  background: var(--tcloud-surface);
  color: var(--tcloud-accent);
}

body.theme-light .run-toggle {
  border: 1px solid var(--tcloud-line);
  background: var(--tcloud-surface);
  color: var(--tcloud-muted);
  border-radius: 3px;
}

body.theme-light .run-toggle:hover {
  background: var(--tcloud-surface);
  color: var(--tcloud-accent);
  border-color: var(--tcloud-accent);
}

body.theme-light .run-card.expanded .run-toggle {
  color: var(--tcloud-accent);
  border-color: var(--tcloud-accent);
}

/* 详情区域浅色 - 腾讯云风格 */
body.theme-light .run-detail {
  border-top: 1px solid var(--tcloud-line);
  background: #fafbfc;
  border-radius: 0;
}

body.theme-light .run-detail-grid dt {
  color: var(--tcloud-muted);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

body.theme-light .run-detail-grid dd {
  color: var(--tcloud-ink);
  font-weight: 400;
}

/* 模态框浅色 - 腾讯云风格 */
body.theme-light .modal-mask {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

body.theme-light .modal-card {
  background: var(--tcloud-surface);
  border: 1px solid var(--tcloud-line);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
  color: var(--tcloud-ink);
  border-radius: 6px;
}

body.theme-light .modal-head h2 {
  color: var(--tcloud-ink);
  font-weight: 600;
}

body.theme-light .modal-close {
  color: var(--tcloud-muted);
  border-radius: 3px;
}

body.theme-light .modal-close:hover {
  color: var(--tcloud-ink);
  background: transparent;
}

body.theme-light .field-label-dark {
  color: var(--tcloud-ink);
  font-weight: 500;
}

body.theme-light .field-input-dark {
  background: var(--tcloud-surface);
  border: 1px solid var(--tcloud-line);
  color: var(--tcloud-ink);
  border-radius: 3px;
}

body.theme-light .field-input-dark:focus {
  background: var(--tcloud-surface);
  border-color: var(--tcloud-accent);
  box-shadow: none;
}

body.theme-light .field-input-dark::placeholder {
  color: #bfbfbf;
}

body.theme-light .modal-foot .btn-ghost {
  border: 1px solid var(--tcloud-line);
  background: var(--tcloud-surface);
  color: var(--tcloud-ink);
  border-radius: 3px;
  font-weight: 400;
}

body.theme-light .modal-foot .btn-ghost:hover {
  border-color: var(--tcloud-accent);
  background: var(--tcloud-surface);
  color: var(--tcloud-accent);
}

body.theme-light .form-tip {
  background: #fff1f0;
  border: 1px solid #ffccc7;
  color: #cf1322;
  border-radius: 3px;
}

body.theme-light .form-tip-warning {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  color: #d48806;
  border-radius: 3px;
}

body.theme-light .start-modal-title {
  color: var(--tcloud-ink);
  font-weight: 500;
}

body.theme-light .start-modal-desc {
  color: var(--tcloud-muted);
}

/* 商品确认预览浅色 - 腾讯云风格 */
body.theme-light .cstep-product-preview {
  background: #fafbfc;
  border: 1px solid var(--tcloud-line);
  border-radius: 3px;
}

body.theme-light .cconfirm-category {
  color: var(--tcloud-accent);
}

body.theme-light .cconfirm-title {
  color: var(--tcloud-ink);
  font-weight: 400;
}

body.theme-light .cconfirm-question {
  color: var(--tcloud-muted);
}

/* 变体选择浅色 - 腾讯云风格 */
body.theme-light .variant-choice-btn {
  background: var(--tcloud-surface);
  border: 1px solid var(--tcloud-line);
  color: var(--tcloud-ink);
  border-radius: 3px;
  box-shadow: none;
}

body.theme-light .variant-choice-btn:hover {
  border-color: var(--tcloud-accent);
  background: #f9fbfd;
  box-shadow: none;
}

body.theme-light .variant-choice-title {
  color: var(--tcloud-ink);
  font-weight: 500;
}

body.theme-light .variant-choice-desc {
  color: var(--tcloud-muted);
}

body.theme-light .cstep-parent-prompt {
  color: var(--tcloud-muted);
}

body.theme-light .cstep-parent-prompt strong {
  color: var(--tcloud-ink);
  font-weight: 500;
}

/* 变体选择列表浅色 - 腾讯云风格 */
body.theme-light .variant-select-item {
  background: var(--tcloud-surface);
  border: 1px solid var(--tcloud-line);
  border-radius: 3px;
}

body.theme-light .variant-select-item:hover {
  border-color: var(--tcloud-accent);
  background: #f9fbfd;
}

body.theme-light .variant-select-title {
  color: var(--tcloud-ink);
  font-weight: 500;
}

body.theme-light .variant-select-asin {
  color: var(--tcloud-muted);
}

/* 加载器浅色 - 腾讯云风格 */
body.theme-light .runs-loader {
  border-color: var(--tcloud-line);
  border-top-color: var(--tcloud-accent);
}

/* 页面背景 - 腾讯云风格 */
body.theme-light.runs-page-body {
  background: var(--tcloud-bg);
  color: var(--tcloud-ink);
}

body.theme-light .cstep-loading-text {
  color: var(--tcloud-muted);
}

/* 切换父ASIN模态框浅色 - 腾讯云风格 */
body.theme-light .switch-parent-card {
  background: #fafbfc;
  border: 1px solid var(--tcloud-line);
  border-radius: 3px;
}

body.theme-light .switch-parent-label {
  color: var(--tcloud-muted);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

body.theme-light .badge-deprecated {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #dc2626;
  border-radius: 999px;
}

body.theme-light .badge-new {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #059669;
  border-radius: 999px;
}

body.theme-light .switch-parent-arrow {
  color: #cbd5e1;
}

/* Profile 页面浅色 - 参照 index.html 风格 */
body.theme-light .profile-dark-head h1 {
  background: linear-gradient(135deg, #1e293b 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

body.theme-light .dark-panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border-radius: 12px;
}

body.theme-light .dark-panel-title {
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 600;
}

body.theme-light .kv-list dt {
  color: #64748b;
  font-size: 13px;
}

body.theme-light .kv-list dd {
  color: #1e293b;
  font-weight: 500;
}

body.theme-light .status-banner {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  color: #d97706;
  border-radius: 10px;
}

/* 返回顶部按钮浅色 */
body.theme-light.runs-page-body .back-to-top {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #475569;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

body.theme-light.runs-page-body .back-to-top:hover {
  border-color: #6366f1;
  background: #f8fafc;
  color: #6366f1;
}

/* ============================================================================
   主题切换按钮样式
   ============================================================================ */
.theme-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.theme-setting-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.theme-setting-label {
  font-size: 14px;
  font-weight: 600;
  color: #e8eefc;
}

.theme-setting-desc {
  font-size: 12px;
  color: #8294c0;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(78, 96, 133, 0.7);
  background: rgba(22, 28, 42, 0.9);
  color: #d8e3ff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: rgba(98, 138, 240, 0.7);
  background: rgba(46, 93, 217, 0.18);
  color: #eaf1ff;
}

.theme-icon-light,
.theme-icon-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.theme-icon-light svg,
.theme-icon-dark svg {
  color: currentColor;
}

/* 浅色主题下的切换按钮 */
body.theme-light .theme-setting-label {
  color: #1e293b;
  font-weight: 600;
}

body.theme-light .theme-setting-desc {
  color: #64748b;
}

body.theme-light .theme-toggle-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  border-radius: 8px;
  font-weight: 500;
}

body.theme-light .theme-toggle-btn:hover {
  border-color: #6366f1;
  background: #f8fafc;
  color: #6366f1;
}

/* 评论卡片浅色 - 参照 index.html 卡片风格 */
body.theme-light .review-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border-radius: 12px;
}

body.theme-light .review-author-name {
  color: #1e293b;
  font-weight: 600;
}

body.theme-light .review-avatar {
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  border: none;
  color: #6366f1;
}

body.theme-light .review-star {
  color: #e2e8f0;
}

body.theme-light .review-star.filled {
  color: #fbbf24;
}

body.theme-light .review-title {
  color: #1e293b;
  font-weight: 600;
}

body.theme-light .review-sub {
  color: #64748b;
}

body.theme-light .review-comment {
  color: #475569;
  line-height: 1.7;
}

body.theme-light .review-expand {
  color: #6366f1;
  font-weight: 500;
}

body.theme-light .review-expand:hover {
  color: #4f46e5;
}

body.theme-light .review-thumb {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

body.theme-light .review-helpful {
  color: #64748b;
}

/* 评论工具栏浅色 */
body.theme-light .review-toolbar {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border-radius: 12px;
}

body.theme-light .rt-foot {
  border-top: 1px solid #f1f5f9;
}

body.theme-light .rt-label {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.theme-light .rt-chip {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  font-weight: 500;
}

body.theme-light .rt-chip:hover {
  border-color: #6366f1;
  color: #6366f1;
}

body.theme-light .rt-chip.active {
  border-color: transparent;
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  color: #4f46e5;
  font-weight: 600;
}

body.theme-light .rt-select,
body.theme-light .rt-date {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  border-radius: 8px;
}

body.theme-light .rt-date {
  color-scheme: light;
}

/* 评论摘要浅色 */
body.theme-light .run-summary {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border-radius: 12px;
}

body.theme-light .run-summary-item span {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.theme-light .run-summary-item strong {
  color: #1e293b;
  font-weight: 700;
  font-size: 18px;
}

/* 评论进度条浅色 */
body.theme-light .review-progress-bar {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

body.theme-light .review-progress-label {
  color: #64748b;
}

body.theme-light .review-progress-num {
  color: #1e293b;
  font-weight: 700;
}

body.theme-light .review-progress-unit {
  color: #64748b;
}

/* Home 页面浅色 */
body.theme-light .dark-footer {
  background: #fff;
  border-top: 1px solid #f1f5f9;
}

body.theme-light .dark-footer-copy {
  color: #64748b;
}

body.theme-light .brand-light {
  color: #1e293b;
  font-weight: 600;
}

/* AI 报告页面浅色 - 参照 index.html 风格 */
body.theme-light .report-head h1 {
  background: linear-gradient(135deg, #1e293b 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

body.theme-light .report-head p {
  color: #64748b;
}

body.theme-light .report-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border-radius: 12px;
}

body.theme-light .report-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

body.theme-light .report-card-title {
  color: #1e293b;
  font-weight: 600;
}

body.theme-light .report-card-meta {
  color: #64748b;
}

body.theme-light .report-content {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}

body.theme-light .report-section-title {
  color: #1e293b;
  font-weight: 600;
}

/* ASIN Detail 页面浅色 - 参照 index.html 风格 */
body.theme-light.asin-detail-body {
  background: #ffffff;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(59, 130, 246, 0.08), transparent);
  background-attachment: fixed;
  color: #475569;
}

body.theme-light .asin-detail-head h1 {
  background: linear-gradient(135deg, #1e293b 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

body.theme-light .asin-detail-panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border-radius: 12px;
}

body.theme-light .asin-detail-panel-title {
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 600;
}

body.theme-light .asin-info-item dt {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.theme-light .asin-info-item dd {
  color: #1e293b;
  font-weight: 500;
}

/* 补充：展开卡片内的商品信息 */
body.theme-light .run-product-title {
  color: #64748b;
}

body.theme-light .run-product-title a {
  color: #6366f1;
  font-weight: 500;
}

body.theme-light .run-product-title a:hover {
  color: #4f46e5;
}

body.theme-light .run-product-rating {
  color: #fbbf24;
}

body.theme-light .run-product-category {
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  color: #4f46e5;
  border: none;
  border-radius: 999px;
  font-weight: 500;
}

/* 补充：表格相关 */
body.theme-light .data-table {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  overflow: hidden;
}

body.theme-light .data-table th {
  background: #f8fafc;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 600;
}

body.theme-light .data-table td {
  color: #1e293b;
  border-bottom: 1px solid #f8fafc;
}

body.theme-light .data-table tr:hover td {
  background: #f8fafc;
}

/* 补充：通用链接和文字 */
body.theme-light a {
  color: #6366f1;
}

body.theme-light a:hover {
  color: #4f46e5;
}

/* 补充：商品缩略图 */
body.theme-light .run-product-img {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 8px;
}

/* 补充：标签元素 - 参照 index.html 标签风格 */
body.theme-light .tag,
body.theme-light .run-tag {
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  color: #4f46e5;
  border: none;
  border-radius: 999px;
  font-weight: 500;
}

/* 补充：数据统计高亮 */
body.theme-light .stat-highlight {
  color: #6366f1;
  font-weight: 700;
}

/* 补充：分页器 */
body.theme-light .pagination-btn {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 8px;
  font-weight: 500;
}

body.theme-light .pagination-btn:hover {
  background: #f8fafc;
  border-color: #6366f1;
  color: #6366f1;
}

body.theme-light .pagination-btn.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

/* 补充：下拉选择框 */
body.theme-light select {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  border-radius: 8px;
}

body.theme-light select:focus {
  background: #fff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* 补充：btn-primary - 腾讯云风格 */
body.theme-light .btn-primary,
body.theme-light .btn.btn-primary,
body.theme-light .runs-create-btn,
body.theme-light .run-start-btn,
body.theme-light .run-restart-btn,
body.theme-light .run-action.btn-primary {
  background: #0052d9 !important;
  border: 1px solid #0052d9 !important;
  color: #fff !important;
  box-shadow: none !important;
  border-radius: 3px !important;
  font-weight: 400 !important;
}

body.theme-light .btn-primary:hover,
body.theme-light .btn.btn-primary:hover,
body.theme-light .runs-create-btn:hover,
body.theme-light .run-start-btn:hover,
body.theme-light .run-restart-btn:hover,
body.theme-light .run-action.btn-primary:hover {
  background: #0040b5 !important;
  border-color: #0040b5 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* 蓝色渐变横幅内的返回按钮：白底蓝字，避免与横幅同色看不清 */
body.theme-light .runs-head .runs-create-btn {
  background: #fff !important;
  border: 1px solid #fff !important;
  color: #0052d9 !important;
}

body.theme-light .runs-head .runs-create-btn:hover {
  background: #e8efff !important;
  border-color: #e8efff !important;
  color: #0040b5 !important;
}

/* btn-ghost - 腾讯云风格 */
body.theme-light .btn-ghost,
body.theme-light .btn.btn-ghost,
body.theme-light .run-action.btn-ghost {
  background: #fff !important;
  border: 1px solid #e5e8ed !important;
  color: #262626 !important;
  box-shadow: none !important;
  border-radius: 3px !important;
  font-weight: 400 !important;
}

body.theme-light .btn-ghost:hover,
body.theme-light .btn.btn-ghost:hover,
body.theme-light .run-action.btn-ghost:hover {
  border-color: #0052d9 !important;
  color: #0052d9 !important;
  background: #fff !important;
  transform: none !important;
}

/* 补充：运行中状态动画的颜色 */
body.theme-light .run-badge-running .run-badge-dot {
  animation: pulse-green-light 2s infinite;
}

@keyframes pulse-green-light {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

/* 补充：滚动条样式 */
body.theme-light ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

body.theme-light ::-webkit-scrollbar-track {
  background: #f1f5f9;
}

body.theme-light ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

body.theme-light ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ASIN Detail 页面特殊元素 - 参照 index.html 风格 */
body.theme-light .asin-hero-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border-radius: 12px;
}

body.theme-light .asin-title {
  color: #1e293b;
  font-weight: 600;
}

body.theme-light .asin-category-path {
  color: #64748b;
}

body.theme-light .asin-category-path a {
  color: #6366f1;
  font-weight: 500;
}

body.theme-light .asin-rating-stars {
  color: #fbbf24;
}

body.theme-light .asin-rating-count {
  color: #64748b;
}

body.theme-light .asin-badge-amazon-choice {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
}

body.theme-light .asin-badge-bestseller {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #d97706;
  border-radius: 6px;
  font-weight: 600;
}

body.theme-light .asin-price-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}

body.theme-light .asin-price-label {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.theme-light .asin-price-value {
  color: #1e293b;
  font-weight: 700;
}

body.theme-light .asin-images-grid img {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 8px;
}

body.theme-light .asin-images-grid img:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

body.theme-light .asin-bsr-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

body.theme-light .asin-bsr-rank {
  color: #6366f1;
  font-weight: 700;
}

body.theme-light .asin-bsr-category {
  color: #475569;
}

body.theme-light .rating-bar-track {
  background: #e2e8f0;
  border-radius: 4px;
}

body.theme-light .rating-bar-fill {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: 4px;
}

body.theme-light .rating-bar-label {
  color: #475569;
}

body.theme-light .rating-bar-percent {
  color: #64748b;
}

/* 竞品分析卡片 */
body.theme-light .competitor-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}

body.theme-light .competitor-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.12);
  transform: translateY(-2px);
}

body.theme-light .competitor-title {
  color: #1e293b;
  font-weight: 600;
}

body.theme-light .competitor-asin {
  color: #64748b;
}

/* Lightbox */
body.theme-light .lightbox {
  background: rgba(15, 23, 42, 0.95);
}

body.theme-light .lightbox-close {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

body.theme-light .lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 返回顶部按钮文字 */
body.theme-light .back-to-top-label {
  color: #475569;
  font-weight: 500;
}

/* 补充：runs页面内的展开详情区域的商品信息卡片 */
body.theme-light .cstep-product-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

body.theme-light .cstep-product-name {
  color: #1e293b;
  font-weight: 600;
}

body.theme-light .cstep-product-meta {
  color: #64748b;
}

/* 补充：报告数据分布条 */
body.theme-light .chart-bar {
  background: #e2e8f0;
  border-radius: 4px;
}

body.theme-light .chart-bar-fill {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 4px;
}

/* 补充：AI报告内容 */
body.theme-light .report-text {
  color: #475569;
  line-height: 1.7;
}

body.theme-light .report-highlight {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #d97706;
  border-radius: 4px;
  padding: 2px 6px;
}

body.theme-light .report-list li {
  color: #475569;
}

body.theme-light .report-list li::marker {
  color: #6366f1;
}

/* 补充：空状态图标 */
body.theme-light .empty-icon {
  color: #cbd5e1;
}

body.theme-light .empty-text {
  color: #64748b;
}

/* 补充：加载状态 */
body.theme-light .skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  border-radius: 8px;
}

/* 补充：选项卡 */
body.theme-light .tabs {
  border-bottom: 1px solid #e2e8f0;
}

body.theme-light .tab-btn {
  color: #64748b;
  font-weight: 500;
}

body.theme-light .tab-btn:hover {
  color: #475569;
}

body.theme-light .tab-btn.active {
  color: #6366f1;
  border-bottom-color: #6366f1;
  font-weight: 600;
}

/* 补充：tooltip */
body.theme-light .tooltip {
  background: #1e293b;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.theme-light .tooltip::after {
  border-top-color: #1e293b;
}

/* ==========================================================================
   控制台页面 · 腾讯云控制台风格（.tcloud-console）
   将营销版浮动导航改为固定白色控制台顶栏 + 顶部信息横幅，
   与已有 --tcloud-* 内容区风格统一。
   应用于：runs / runReviews / asinDetail / bestsellers / aiReport(List)。
   ========================================================================== */

/* 固定顶栏占位：内容整体下移，避免被固定导航栏遮挡（修复 asinDetail/bestsellers 遮挡） */
.tcloud-console {
  padding-top: 64px;
}

/* 顶栏：固定白色，覆盖浮动胶囊 / 隐藏行为 */
.tcloud-console .mega-navbar,
.tcloud-console .mega-navbar.at-top,
.tcloud-console .mega-navbar.scrolled {
  padding: 0 !important;
}
.tcloud-console .mega-navbar.nav-hidden {
  transform: none !important;
}
.tcloud-console .mega-navbar-bg,
.tcloud-console .mega-navbar.at-top .mega-navbar-bg,
.tcloud-console .mega-navbar.scrolled .mega-navbar-bg,
.tcloud-console .mega-navbar.nav-hidden .mega-navbar-bg {
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  border-bottom: 1px solid var(--tcloud-line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
/* 固定高度，滚动时不缩放（无动画） */
.tcloud-console .mega-navbar-inner,
.tcloud-console .mega-navbar.scrolled .mega-navbar-inner {
  height: 64px;
  padding: 0 24px;
}

/* Logo / 导航文字 / 按钮 转为腾讯云配色 */
.tcloud-console .mega-navbar-logo-icon {
  background: var(--tcloud-accent) !important;
  box-shadow: none !important;
  border-radius: 6px;
}
.tcloud-console .mega-navbar-logo-icon svg { stroke: #fff; color: #fff; }
.tcloud-console .mega-navbar-logo-text {
  background: none !important;
  color: var(--tcloud-ink) !important;
  -webkit-text-fill-color: var(--tcloud-ink) !important;
  font-weight: 600;
}
.tcloud-console .mega-nav-link {
  color: #1f2329 !important;
  font-weight: 500;
}
.tcloud-console .mega-nav-link:hover,
.tcloud-console .mega-nav-link.current {
  color: var(--tcloud-accent) !important;
  background: transparent !important;
  text-shadow: none !important;
}
.tcloud-console .mega-nav-link svg { stroke: currentColor !important; }
.tcloud-console .mega-nav-link.current::after { background: var(--tcloud-accent); }
.tcloud-console .mega-nav-btn-ghost {
  color: var(--tcloud-ink) !important;
  border: 1px solid var(--tcloud-line) !important;
  background: #fff !important;
  box-shadow: none !important;
}
.tcloud-console .mega-nav-btn-ghost span { color: var(--tcloud-ink) !important; }
.tcloud-console .mega-nav-btn-ghost:hover { border-color: var(--tcloud-accent) !important; }
.tcloud-console .mega-nav-btn-ghost:hover span { color: var(--tcloud-accent) !important; }
.tcloud-console .mega-nav-btn-primary {
  background: var(--tcloud-accent) !important;
  box-shadow: none !important;
  border-radius: 3px !important;
  animation: none !important;
}
.tcloud-console .mega-nav-btn-primary::before { display: none !important; }
.tcloud-console .mega-nav-btn-primary:hover {
  background: var(--tcloud-accent-hover) !important;
  transform: none !important;
  box-shadow: none !important;
}
.tcloud-console .mega-navbar-toggle { color: var(--tcloud-ink); }
.tcloud-console .mega-nav-user-avatar {
  background: var(--tcloud-accent) !important;
}
.tcloud-console .mega-dropdown {
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* 顶部信息横幅 - 腾讯云通知条 */
.tcloud-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 14px;
  background: #ecf2fe;
  border: 1px solid #d4e3fc;
  border-radius: 3px;
  color: var(--tcloud-ink);
  font-size: 13px;
  line-height: 1.5;
}
.tcloud-notice-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
  color: var(--tcloud-accent);
}
.tcloud-notice-text {
  flex: 1;
  min-width: 0;
}
.tcloud-notice-link {
  color: var(--tcloud-accent);
  text-decoration: none;
}
.tcloud-notice-link:hover { text-decoration: underline; }
.tcloud-notice-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--tcloud-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.tcloud-notice-close:hover { color: var(--tcloud-ink); }

/* ==========================================================================
   商品详情页 asinDetail · 仅颜色改为腾讯云浅色（背景/边框/文字/按钮）
   ========================================================================== */
.asin-detail-body {
  background: var(--tcloud-bg) !important;
  color: var(--tcloud-ink);
}
/* 表面：卡片 / 分区 / 价格框 / 变体卡 / 属性 / 竞品卡 / 榜单项 / 气泡 → 白底浅边 */
.asin-detail-body .asin-detail-main-img,
.asin-detail-body .asin-detail-section,
.asin-detail-body .asin-detail-parent-card,
.asin-detail-body .asin-variant-card,
.asin-detail-body .asin-attr-item,
.asin-detail-body .competitor-card,
.asin-detail-body .asin-rank-item,
.asin-detail-body .asin-price-popover {
  background: var(--tcloud-surface);
  border-color: var(--tcloud-line);
}
/* 图片容器浅灰底 */
.asin-detail-body .asin-gallery-thumb,
.asin-detail-body .asin-variant-img,
.asin-detail-body .competitor-card-img-wrap,
.asin-detail-body .competitor-card-img-placeholder {
  background: #f5f7fa;
  border-color: var(--tcloud-line);
}
/* 主文字 → ink */
.asin-detail-body,
.asin-detail-body .asin-detail-title,
.asin-detail-body .asin-ai-summary,
.asin-detail-body .asin-attr-val,
.asin-detail-body .asin-info-table td,
.asin-detail-body .competitor-card-title,
.asin-detail-body .competitor-card-star-val,
.asin-detail-body .asin-price-current,
.asin-detail-body .asin-price-popover,
.asin-detail-body .asin-rank-item {
  color: var(--tcloud-ink);
}
/* 次要文字 → muted */
.asin-detail-body .asin-detail-crumb,
.asin-detail-body .asin-detail-asin-tag,
.asin-detail-body .asin-rating-star-label,
.asin-detail-body .asin-rating-pct,
.asin-detail-body .asin-variant-group-label,
.asin-detail-body .asin-competitors-loading,
.asin-detail-body .asin-attr-key,
.asin-detail-body .detail-update-time,
.asin-detail-body .asin-detail-rating-count,
.asin-detail-body .asin-info-table th,
.asin-detail-body .asin-price-listrow,
.asin-detail-body .asin-price-strike,
.asin-detail-body .asin-rank-arrow,
.asin-detail-body .competitor-card-sales {
  color: var(--tcloud-muted);
}
/* 强调色 / 链接 / 分区标题 / ASIN 代码 → accent */
.asin-detail-body .asin-detail-back,
.asin-detail-body .asin-detail-section-title,
.asin-detail-body .asin-variant-asin,
.asin-detail-body .competitor-card-asin,
.asin-detail-body .asin-detail-parent-label,
.asin-detail-body .asin-detail-parent-asin-text,
.asin-detail-body .switch-parent-arrow {
  color: var(--tcloud-accent);
}
.asin-detail-body .asin-detail-back:hover,
.asin-detail-body .asin-detail-rating-count:hover,
.asin-detail-body .competitor-card-link:hover .competitor-card-title {
  color: var(--tcloud-accent-hover);
}
/* 徽标（分类 / 销量 / 免费评论横幅）→ 浅蓝底 + accent 字 */
.asin-detail-body .asin-detail-category,
.asin-detail-body .asin-detail-sales-badge,
.asin-detail-body .free-reviews-banner {
  color: var(--tcloud-accent);
  background: #eef4ff;
  border-color: #d4e3fc;
}
.asin-detail-body .competitor-card-badge {
  background: var(--tcloud-accent);
}
/* hover 边框 → accent */
.asin-detail-body .asin-gallery-thumb:hover,
.asin-detail-body .asin-variant-card:hover,
.asin-detail-body .competitor-card:hover {
  border-color: var(--tcloud-accent);
}
.asin-detail-body .asin-variant-card-current,
.asin-detail-body .asin-variant-card-current:hover {
  background: #eef4ff;
  border-color: var(--tcloud-accent);
}
.asin-detail-body a.asin-rank-item:hover {
  background: #eef4ff;
  border-color: var(--tcloud-accent);
  color: var(--tcloud-ink);
}
.asin-detail-body a.asin-rank-item:hover .asin-rank-arrow {
  color: var(--tcloud-accent);
}
/* 评分分布条 */
.asin-detail-body .asin-rating-bar-wrap { background: #eaeef4; }
.asin-detail-body .asin-rating-bar-fill { background: var(--tcloud-accent); }
/* “i” 信息按钮 */
.asin-detail-body .asin-price-info-btn {
  color: var(--tcloud-muted);
  border-color: var(--tcloud-muted);
}
.asin-detail-body .asin-price-info-btn:hover {
  color: var(--tcloud-accent);
  border-color: var(--tcloud-accent);
}
/* 畅销榜下拉面板 + 卡片 → 浅色 */
.asin-detail-body .asin-rank-dropdown-content,
.asin-detail-body .bs-card {
  background: var(--tcloud-surface);
  border-color: var(--tcloud-line);
}
.asin-detail-body .bs-card-img-wrap,
.asin-detail-body .bs-card-img-placeholder {
  background: #f5f7fa;
}
.asin-detail-body .bs-card-title,
.asin-detail-body .bs-card-star-val {
  color: var(--tcloud-ink);
}
.asin-detail-body .rank-dropdown-empty,
.asin-detail-body .rank-dropdown-loading {
  color: var(--tcloud-muted);
}
.asin-detail-body .bs-card:hover {
  border-color: var(--tcloud-accent);
}

/* ==========================================================================
   热销排行榜 bestsellers · 仅颜色改为腾讯云浅色
   ========================================================================== */
.bestsellers-body {
  background: var(--tcloud-bg) !important;
  color: var(--tcloud-ink);
}
.bestsellers-body .bestsellers-title { color: var(--tcloud-ink); }
.bestsellers-body .bestsellers-meta,
.bestsellers-body .bestsellers-empty,
.bestsellers-body .bestsellers-loading,
.bestsellers-body .bs-page-card-rating-count {
  color: var(--tcloud-muted);
}
.bestsellers-body .bestsellers-back { color: var(--tcloud-muted); }
.bestsellers-body .bestsellers-back:hover { color: var(--tcloud-accent); }
.bestsellers-body .bs-page-card {
  background: var(--tcloud-surface);
  border-color: var(--tcloud-line);
}
.bestsellers-body .bs-page-card:hover { border-color: var(--tcloud-accent); }
.bestsellers-body .bs-page-card-img-wrap { background: #f5f7fa; }
.bestsellers-body .bs-page-card-title { color: var(--tcloud-ink); }
.bestsellers-body .bs-page-card-link:hover .bs-page-card-title { color: var(--tcloud-accent); }
.bestsellers-body .bs-page-card-star-val { color: var(--tcloud-ink); }
.bestsellers-body .bs-page-card-asin { color: var(--tcloud-accent); }

/* ==========================================================================
   评论详情 runReviews · 蓝色强调统一为腾讯云蓝（页面本身已是浅色）
   ========================================================================== */
.runs-page-body .rt-select:focus,
.runs-page-body .rt-select:focus-visible {
  border-color: var(--tcloud-accent);
}
.runs-page-body .rt-date-shell:focus-within {
  border-color: var(--tcloud-accent);
  box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.15);
}

/* ==========================================================================
   登录 / 注册 · 全新重构 (lgn-*) · 2026-07-20
   左侧品牌数据展示 + 右侧简洁认证面板 · 桌面优先
   ========================================================================== */
.lgn-body {
  margin: 0;
  min-height: 100vh;
  color: #0f1729;
  font-family: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  background: #f3f6fc;
}

.lgn-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

/* ---------------- 品牌展示区 ---------------- */
.lgn-showcase {
  position: relative;
  overflow: hidden;
  display: flex;
  padding: 44px 52px;
  color: #eaf1ff;
  background:
    radial-gradient(120% 90% at 12% 8%, rgba(96, 165, 250, 0.32), transparent 46%),
    linear-gradient(155deg, #0a1f5c 0%, #0b3fb0 48%, #1d5bef 100%);
}

.lgn-showcase-bg { position: absolute; inset: 0; pointer-events: none; }

.lgn-orb { position: absolute; border-radius: 50%; opacity: 0.6; }
.lgn-orb-a {
  width: 320px; height: 320px; top: -90px; right: -70px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.5), transparent 70%);
}
.lgn-orb-b {
  width: 360px; height: 360px; bottom: -130px; left: -90px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.45), transparent 70%);
}
.lgn-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 100% at 30% 20%, #000 32%, transparent 78%);
  mask-image: radial-gradient(120% 100% at 30% 20%, #000 32%, transparent 78%);
}

.lgn-showcase-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
}

.lgn-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.lgn-brand-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(150deg, #4f8dff, #7c5cff);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.4);
}
.lgn-brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.lgn-showcase-copy { display: flex; flex-direction: column; gap: 20px; }

.lgn-badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: #dbe8ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.lgn-headline {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}
.lgn-headline-accent { color: #8fd0ff; }

.lgn-sub {
  margin: 0;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(220, 232, 255, 0.82);
}

/* 悬浮分析卡片 */
.lgn-mock {
  position: relative;
  margin: 2px 8px 22px 0;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 22px 44px -22px rgba(3, 10, 40, 0.75);
}
.lgn-mock-head { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.lgn-mock-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.lgn-mock-dot:nth-child(1) { background: #ff6b6b; }
.lgn-mock-dot:nth-child(2) { background: #ffd166; }
.lgn-mock-dot:nth-child(3) { background: #06d6a0; }
.lgn-mock-title { margin-left: 6px; font-size: 12px; font-weight: 600; color: rgba(226, 236, 255, 0.82); }

.lgn-mock-bars { display: flex; align-items: flex-end; gap: 8px; height: 82px; padding: 4px 2px 12px; }
.lgn-mock-bars span {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: rgba(255, 255, 255, 0.22);
  transition: height 0.3s ease;
}
.lgn-mock-bars span.is-active {
  background: linear-gradient(180deg, #8fd0ff, #4f8dff);
  box-shadow: 0 6px 14px rgba(79, 141, 255, 0.5);
}

.lgn-mock-stats {
  display: flex; gap: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.lgn-mock-stat { display: flex; flex-direction: column; gap: 2px; }
.lgn-mock-stat-label { font-size: 11px; color: rgba(220, 232, 255, 0.7); }
.lgn-mock-stat-val { font-size: 17px; font-weight: 700; color: #fff; }
.lgn-mock-stat-val.is-up { color: #4ade80; }

.lgn-mock-chip {
  position: absolute;
  right: -6px; bottom: -18px;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 50, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.6);
}
.lgn-mock-chip-icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(150deg, #7c5cff, #4f8dff);
}
.lgn-mock-chip-icon svg { width: 16px; height: 16px; }
.lgn-mock-chip-title { font-size: 12px; font-weight: 700; color: #fff; }
.lgn-mock-chip-desc { font-size: 11px; color: rgba(210, 222, 255, 0.72); }

.lgn-stats { display: flex; gap: 28px; }
.lgn-stat { display: flex; flex-direction: column; gap: 2px; }
.lgn-stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px; font-weight: 700; color: #fff;
}
.lgn-stat-label { font-size: 12px; color: rgba(215, 227, 255, 0.72); }

.lgn-trust {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: rgba(210, 222, 255, 0.72);
}
.lgn-trust::before { content: ''; width: 24px; height: 1px; background: rgba(255, 255, 255, 0.3); }

/* ---------------- 认证面板 ---------------- */
.lgn-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px;
  background: #ffffff;
}
.lgn-panel-inner { width: 100%; max-width: 384px; display: flex; flex-direction: column; }

.lgn-panel-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 40px;
}
.lgn-back { color: #5a6a86; text-decoration: none; font-size: 13px; font-weight: 500; }
.lgn-back:hover { color: #0052d9; }
.lgn-lang { color: #0052d9; text-decoration: none; font-size: 13px; font-weight: 600; }

.lgn-panel-brand {
  display: none;
  align-items: center; gap: 10px;
  margin-bottom: 24px;
  text-decoration: none;
  color: #0f1729;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
}
.lgn-panel-brand .lgn-brand-icon { width: 30px; height: 30px; border-radius: 9px; }

.lgn-panel-head { margin-bottom: 22px; }
.lgn-title {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f1729;
}
.lgn-title-sub { margin: 8px 0 0; font-size: 14px; color: #66748c; }

.lgn-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #eef2f9;
  margin-bottom: 20px;
}
.lgn-tab {
  border: none;
  background: transparent;
  border-radius: 9px;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 600;
  color: #66748c;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.lgn-tab:hover { color: #34405a; }
.lgn-tab.active {
  background: #ffffff;
  color: #0052d9;
  box-shadow: 0 2px 8px rgba(15, 23, 41, 0.1);
}

.lgn-banner { margin: 0 0 16px; }

.lgn-form { display: flex; flex-direction: column; gap: 16px; }
.lgn-group { display: flex; flex-direction: column; gap: 7px; }
.lgn-label { font-size: 13px; font-weight: 600; color: #3d4a61; }

.lgn-field { position: relative; display: flex; align-items: center; }
.lgn-field-icon {
  position: absolute; left: 13px;
  width: 18px; height: 18px;
  color: #9aa7bf;
  display: inline-flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.lgn-field-icon svg { width: 18px; height: 18px; display: block; }

.lgn-input {
  width: 100%;
  height: 46px;
  border: 1.5px solid #e2e8f2;
  border-radius: 11px;
  background: #fff;
  padding: 0 44px 0 42px;
  font-size: 14px;
  color: #0f1729;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.lgn-input::placeholder { color: #a2adc0; }
.lgn-input:hover { border-color: #cdd7e6; }
.lgn-input:focus {
  border-color: #0052d9;
  box-shadow: 0 0 0 4px rgba(0, 82, 217, 0.12);
}

.lgn-eye {
  position: absolute; right: 8px;
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  color: #9aa7bf;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}
.lgn-eye:hover { color: #0052d9; background: #f1f5fb; }
.lgn-eye .eye-icon { width: 18px; height: 18px; display: block; }

.lgn-form-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: -2px;
}
.lgn-check {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: #4d5a72; cursor: pointer;
}
.lgn-check input { width: 16px; height: 16px; accent-color: #0052d9; cursor: pointer; }
.lgn-forgot { font-size: 13px; color: #0052d9; text-decoration: none; font-weight: 500; }
.lgn-forgot:hover { text-decoration: underline; }

.lgn-submit {
  margin-top: 6px;
  height: 48px;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #0a5bff 0%, #0052d9 55%, #6d3bef 150%);
  box-shadow: 0 10px 22px -8px rgba(0, 82, 217, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.lgn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -8px rgba(0, 82, 217, 0.72);
  filter: brightness(1.04);
}
.lgn-submit:active { transform: translateY(0); }
.lgn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; filter: none; }
.lgn-submit svg { width: 18px; height: 18px; }

.lgn-session { margin-top: 18px; }

.lgn-debug { margin-top: 16px; }
.lgn-debug summary {
  cursor: pointer;
  font-size: 12px;
  color: #9aa7bf;
  list-style: none;
  user-select: none;
}
.lgn-debug summary::-webkit-details-marker { display: none; }
.lgn-debug summary:hover { color: #66748c; }
.lgn-debug .code-block { margin-top: 8px; max-height: 180px; overflow: auto; font-size: 12px; }

.lgn-footnote { margin: 26px 0 0; text-align: center; font-size: 12px; color: #9aa7bf; }

@media (max-width: 980px) {
  .lgn-wrap { grid-template-columns: 1fr; }
  .lgn-showcase { display: none; }
  .lgn-panel { padding: 32px 20px; min-height: 100vh; }
  .lgn-panel-brand { display: inline-flex; }
  .lgn-panel-top { margin-bottom: 20px; }
}

/* ====================================================
   Personal Center 个人中心 (profile.html)  —— pc-*
   ==================================================== */

.pc-main {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 24px 0 46px;
}

/* ---------- 左侧导航 ---------- */
.pc-sidebar {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: calc(100vh - 200px);
}

.pc-sidenav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.pc-sidenav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pc-sidenav-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa5b8;
  padding: 0 10px 6px;
}

.pc-sidenav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #55617a;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.pc-sidenav-item svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.pc-sidenav-item:hover {
  background: rgba(0, 82, 217, 0.06);
  color: #1f2937;
}

.pc-sidenav-item.active {
  background: linear-gradient(90deg, rgba(0, 82, 217, 0.12), rgba(0, 82, 217, 0.05));
  color: var(--tcloud-accent);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--tcloud-accent);
}

.pc-sidenav-item.active svg {
  opacity: 1;
}

.pc-sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--tcloud-line);
  padding-top: 10px;
}

.pc-foot-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #7a8599;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pc-foot-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1f2937;
}

.pc-foot-btn-danger:hover {
  background: rgba(220, 38, 38, 0.07);
  color: #dc2626;
}

/* ---------- 右侧内容 ---------- */
.pc-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.pc-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: pc-view-in 0.28s ease;
}

@keyframes pc-view-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pc-card {
  background: var(--tcloud-surface);
  border: 1px solid #e8ebf0;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.pc-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pc-card-head h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--tcloud-ink);
  margin: 0;
}

.pc-card-sub {
  font-size: 12px;
  color: var(--tcloud-muted);
}

/* ---------- 套餐等级徽章 ---------- */
.pc-tier {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  vertical-align: middle;
}

.pc-tier-free {
  background: #f1f3f6;
  color: #6b7280;
  border: 1px solid #e0e4ea;
}

.pc-tier-pro {
  background: linear-gradient(135deg, #e0edff, #d1e3ff);
  color: #1d4ed8;
  border: 1px solid #b4d0fb;
}

.pc-tier-teams {
  background: linear-gradient(135deg, #ede9fe, #e3dcfc);
  color: #6d28d9;
  border: 1px solid #d4c8f7;
}

.pc-tier-max {
  background: linear-gradient(135deg, #fef3c7, #fde8b0);
  color: #b45309;
  border: 1px solid #f7dd90;
}

.pc-tier-ent {
  background: linear-gradient(135deg, #1f2937, #374151);
  color: #fcd34d;
  border: 1px solid #4b5563;
}

/* ---------- 用户信息卡 ---------- */
.pc-hero-card {
  background:
    radial-gradient(ellipse 62% 130% at 96% -30%, rgba(0, 82, 217, 0.07), transparent),
    var(--tcloud-surface);
}

.pc-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #eef0f4;
}

.pc-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #6d28d9);
  box-shadow: 0 4px 10px rgba(59, 82, 217, 0.28);
}

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

.pc-hero-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 700;
  color: var(--tcloud-ink);
}

.pc-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.pc-hero-mail {
  font-size: 13px;
  color: var(--tcloud-muted);
}

/* ---------- KV 网格 ---------- */
.pc-kv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pc-kv {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 12px;
  background: #f8fafc;
  border: 1px solid #eef1f5;
  border-radius: 9px;
  min-width: 0;
}

.pc-kv-label {
  font-size: 11px;
  color: #94a0b4;
}

.pc-kv-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tcloud-ink);
  word-break: break-all;
}

/* ---------- 团队成员条 ---------- */
.pc-member-strip {
  display: flex;
  align-items: center;
  margin-top: 12px;
}

.pc-member-label {
  font-size: 12px;
  color: var(--tcloud-muted);
  margin-right: 12px;
}

.pc-member-chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border: 2px solid #fff;
  margin-left: -6px;
  background: hsl(calc(215 + var(--chip-i, 0) * 36), 62%, 55%);
}

.pc-member-chip:first-of-type {
  margin-left: 0;
}

.pc-member-more {
  margin-left: 10px;
  font-size: 12px;
  color: var(--tcloud-muted);
}

/* ---------- 里程碑 ---------- */
.pc-milestones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pc-milestone {
  position: relative;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafd, #f3f6fb);
  border: 1px solid #e8edf5;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pc-milestone:hover {
  transform: translateY(-2px);
  border-color: #cddaf5;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08);
}

.pc-milestone-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 82, 217, 0.09);
  color: var(--tcloud-accent);
  margin-bottom: 10px;
}

.pc-milestone-desc {
  font-size: 11px;
  color: #94a0b4;
  margin-bottom: 2px;
}

.pc-milestone-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--tcloud-ink);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.pc-milestone-num span {
  font-size: 12px;
  font-weight: 500;
  color: #94a0b4;
  margin-left: 2px;
}

.pc-milestone-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #55617a;
  margin-top: 1px;
}

/* ---------- 用量顶部 ---------- */
.pc-usage-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 14px;
}

.pc-quota-card .pc-card-head {
  margin-bottom: 10px;
}

.pc-help-wrap {
  position: relative;
  display: inline-flex;
}

.pc-help-btn {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #c3ccda;
  background: transparent;
  color: #8794a8;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pc-help-btn:hover {
  border-color: var(--tcloud-accent);
  color: var(--tcloud-accent);
}

.pc-help-pop {
  position: absolute;
  top: 24px;
  left: -10px;
  z-index: 30;
  width: 300px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #1f2937;
  color: #e5e9f0;
  font-size: 12px;
  line-height: 1.7;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.pc-help-pop strong {
  display: block;
  color: #fff;
  font-size: 12.5px;
  margin-bottom: 4px;
}

.pc-help-pop em {
  font-style: normal;
  color: #93c5fd;
  font-weight: 600;
}

.pc-quota-num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.pc-quota-main {
  font-size: 34px;
  font-weight: 700;
  color: var(--tcloud-ink);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.pc-quota-total {
  font-size: 15px;
  font-weight: 600;
  color: #94a0b4;
}

.pc-quota-plus {
  font-size: 13px;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 4px;
}

.pc-quota-bar {
  margin-top: 12px;
  height: 8px;
  border-radius: 999px;
  background: #eef1f5;
  overflow: hidden;
}

.pc-quota-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #0052d9);
  transition: width 0.7s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.pc-quota-foot {
  margin-top: 10px;
  font-size: 12px;
  color: var(--tcloud-muted);
}

.pc-quota-foot b {
  color: #047857;
  font-weight: 600;
}

.pc-consume-col {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

.pc-consume-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.pc-consume-label {
  font-size: 12.5px;
  color: var(--tcloud-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pc-consume-hint {
  font-style: normal;
  font-size: 10.5px;
  color: #8794a8;
  background: #f1f3f6;
  border-radius: 999px;
  padding: 1px 7px;
}

.pc-consume-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--tcloud-ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.pc-consume-num span {
  font-size: 12px;
  font-weight: 500;
  color: #94a0b4;
  margin-left: 3px;
}

/* ---------- 图表 / 明细切换 ---------- */
.pc-seg {
  margin-left: auto;
  display: inline-flex;
  gap: 2px;
  background: #f1f3f6;
  border-radius: 8px;
  padding: 2px;
}

.pc-seg-btn {
  height: 26px;
  padding: 0 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pc-seg-btn.active {
  background: #fff;
  color: var(--tcloud-accent);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}

/* ---------- 用量图表 ---------- */
.pc-usage-chart {
  padding: 6px 0 2px;
}

.pc-chart-grid {
  position: relative;
  height: 220px;
  margin-left: 38px;
}

.pc-chart-gridline {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed #e8ebf0;
}

.pc-chart-gridline span {
  position: absolute;
  left: -38px;
  top: -7px;
  width: 30px;
  text-align: right;
  font-size: 11px;
  color: #94a0b4;
  font-variant-numeric: tabular-nums;
}

.pc-chart-baseline {
  border-top: 1px solid #dfe4ec;
}

.pc-chart-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 0 2px;
}

.pc-bar-col {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: default;
}

.pc-bar-col:hover {
  background: rgba(0, 82, 217, 0.045);
  border-radius: 4px;
}

.pc-bar {
  display: block;
  width: 62%;
  max-width: 18px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #5b9df5, #2563eb);
  opacity: 0.85;
  transform-origin: bottom;
  animation: pc-bar-grow 0.45s cubic-bezier(0.22, 0.8, 0.3, 1) backwards;
  animation-delay: calc(var(--bar-i, 0) * 12ms);
  transition: opacity 0.15s ease;
}

.pc-bar-col:hover .pc-bar {
  opacity: 1;
}

@keyframes pc-bar-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.pc-bar-col::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  padding: 4px 9px;
  border-radius: 6px;
  background: #1f2937;
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 5;
}

.pc-bar-col:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pc-chart-xaxis {
  position: relative;
  height: 20px;
  margin: 6px 0 0 38px;
}

.pc-chart-xaxis span {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  font-size: 11px;
  color: #94a0b4;
  white-space: nowrap;
}

/* ---------- 用量明细表 ---------- */
.pc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pc-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #8794a8;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #e8ebf0;
  background: #f8fafc;
}

.pc-table th:first-child {
  border-radius: 8px 0 0 0;
}

.pc-table th:last-child {
  border-radius: 0 8px 0 0;
}

.pc-table td {
  padding: 9px 12px;
  color: var(--tcloud-ink);
  border-bottom: 1px solid #f0f2f6;
}

.pc-table tbody tr:hover td {
  background: #f8fafd;
}

.pc-td-time {
  font-variant-numeric: tabular-nums;
  color: #55617a !important;
}

.pc-td-num {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #dc2626 !important;
}

th.pc-td-num {
  color: #8794a8 !important;
  font-weight: 600;
}

.pc-task-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  background: #eef4ff;
  color: #1d4ed8;
  border: 1px solid #d8e6fd;
}

/* ---------- 翻页 ---------- */
.pc-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
}

.pc-pager-info {
  margin-right: auto;
  font-size: 12px;
  color: var(--tcloud-muted);
}

.pc-pager-btn {
  height: 28px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid #e2e6ee;
  background: var(--tcloud-surface);
  color: #55617a;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pc-pager-btn:hover:not([disabled]) {
  border-color: var(--tcloud-accent);
  color: var(--tcloud-accent);
}

.pc-pager-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.pc-pager-num {
  font-size: 12.5px;
  color: var(--tcloud-ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- 当前套餐详情（固定卡片） ---------- */
.pc-plan-card {
  background:
    radial-gradient(ellipse 55% 150% at 100% -40%, rgba(109, 40, 217, 0.06), transparent),
    var(--tcloud-surface);
}

.pc-plan-upgrade {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 13px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #0052d9);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0, 82, 217, 0.24);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.pc-plan-upgrade:hover {
  box-shadow: 0 5px 12px rgba(0, 82, 217, 0.32);
  transform: translateY(-1px);
}

.pc-plan-name-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.pc-plan-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--tcloud-ink);
}

.pc-plan-renew {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.pc-plan-renew-off {
  background: #f1f3f6;
  color: #6b7280;
  border-color: #e0e4ea;
}

.pc-plan-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.pc-plan-fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 12px;
  background: #f8fafc;
  border: 1px solid #eef1f5;
  border-radius: 9px;
  min-width: 0;
}

.pc-plan-fact span {
  font-size: 11px;
  color: #94a0b4;
}

.pc-plan-fact b {
  font-size: 13px;
  font-weight: 600;
  color: var(--tcloud-ink);
  word-break: break-all;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .pc-kv-grid,
  .pc-milestones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc-plan-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .pc-main {
    grid-template-columns: 1fr;
  }

  .pc-sidebar {
    position: static;
    min-height: 0;
  }

  .pc-sidenav {
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
  }

  .pc-sidenav-group {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .pc-sidenav-label {
    display: none;
  }

  .pc-sidenav-item {
    width: auto;
  }

  .pc-sidebar-foot {
    flex-direction: row;
    border-top: none;
    padding-top: 0;
  }

  .pc-foot-btn {
    width: auto;
  }

  .pc-usage-top {
    grid-template-columns: 1fr;
  }

  .pc-consume-col {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   runReviews · 评论变体属性行（Size: 4 | Color: Green）
   ========================================================================== */
.review-attrs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 12.5px;
  color: #6b7280;
}

.review-attr {
  position: relative;
  font-weight: 600;
  color: #4b5563;
}

.review-attr + .review-attr::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: #d1d5db;
}

body.theme-light .review-attrs { color: #64748b; }
body.theme-light .review-attr { color: #475569; }
body.theme-light .review-attr + .review-attr::before { background: #e2e8f0; }

/* ==========================================================================
   runReviews · 变体筛选下拉（图片 + ASIN + 评论条数）
   ========================================================================== */
.rt-variant {
  position: relative;
}

.rt-variant-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 168px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.rt-variant-btn:hover,
.rt-variant-btn[aria-expanded='true'] {
  border-color: var(--tcloud-accent, #3b82f6);
}

.rt-variant-btn > svg {
  margin-left: auto;
  flex: none;
  color: #9ca3af;
}

.rt-variant-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rt-variant-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 41, 0.14);
  padding: 5px;
}

.rt-variant-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease;
}

.rt-variant-item:hover { background: #f3f6fb; }

.rt-variant-item.active {
  background: #eef4ff;
  color: var(--tcloud-accent, #0052d9);
  font-weight: 600;
}

.rt-variant-thumb {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  display: inline-block;
}

.rt-variant-btn .rt-variant-thumb {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.rt-variant-asin {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rt-variant-parent-tag {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 5px;
  padding: 2.5px 5px;
}

.rt-variant-count {
  margin-left: auto;
  flex: none;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.rt-variant-item.active .rt-variant-count { color: inherit; }
