  :root {
    --bg: #1A1814;
    --bg-deep: #13110E;
    --surface: #2A2520;
    --surface2: #352F28;
    --surface3: #4A4238;
    --border: #3D362E;
    --border-light: #4A4238;
    --text: #F0EBE3;
    --text2: #B8AFA3;
    --text3: #7A7168;
    --gold: #E8C47C;
    --gold-dim: rgba(232, 196, 124, 0.12);
    --gold-glow: rgba(232, 196, 124, 0.25);
    --green: #22C55E;
    --green-dim: rgba(34, 197, 94, 0.12);
    --red: #EF4444;
    --red-dim: rgba(239, 68, 68, 0.08);
    --blue: #7CB5E8;
    /* A股红涨绿跌 */
    --stock-up: #CF222E;
    --stock-up-bg: rgba(207, 34, 46, 0.12);
    --stock-down: #16A34A;
    --stock-down-bg: rgba(22, 163, 74, 0.12);
    --amber: #F59E0B;
    --amber-bg: rgba(245, 158, 11, 0.12);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-brand: 'LXGW WenKai', 'IBM Plex Sans', serif;
    --glass-bg: rgba(42, 37, 32, 0.65);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }

  /* ── Cat Paw Cursors ── */
  * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cellipse cx='16' cy='21' rx='5.5' ry='4.8' fill='%23E8C47C' opacity='0.92'/%3E%3Cellipse cx='9.5' cy='13' rx='2.8' ry='3.2' fill='%23E8C47C' opacity='0.88' transform='rotate(-8 9.5 13)'/%3E%3Cellipse cx='15.8' cy='10.5' rx='2.6' ry='3' fill='%23E8C47C' opacity='0.88'/%3E%3Cellipse cx='22' cy='12.5' rx='2.8' ry='3.2' fill='%23E8C47C' opacity='0.88' transform='rotate(8 22 12.5)'/%3E%3Cellipse cx='16' cy='21' rx='3' ry='2.2' fill='%23D4A843' opacity='0.5'/%3E%3Cellipse cx='9.8' cy='13.2' rx='1.4' ry='1.5' fill='%23D4A843' opacity='0.4'/%3E%3Cellipse cx='15.8' cy='10.8' rx='1.3' ry='1.4' fill='%23D4A843' opacity='0.4'/%3E%3Cellipse cx='21.8' cy='12.7' rx='1.4' ry='1.5' fill='%23D4A843' opacity='0.4'/%3E%3C/svg%3E") 16 16, auto;
  }
  a, button, [onclick], .market-tab, .autocomplete-item, label, select, .logo-wrap {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg transform='rotate(-15 16 16)'%3E%3Cellipse cx='16' cy='21' rx='5.5' ry='4.8' fill='%23E8C47C' opacity='0.95'/%3E%3Cellipse cx='9.5' cy='13' rx='2.8' ry='3.2' fill='%23E8C47C' opacity='0.9' transform='rotate(-8 9.5 13)'/%3E%3Cellipse cx='15.8' cy='10.5' rx='2.6' ry='3' fill='%23E8C47C' opacity='0.9'/%3E%3Cellipse cx='22' cy='12.5' rx='2.8' ry='3.2' fill='%23E8C47C' opacity='0.9' transform='rotate(8 22 12.5)'/%3E%3Cellipse cx='16' cy='21' rx='3' ry='2.2' fill='%23D4A843' opacity='0.55'/%3E%3Cellipse cx='9.8' cy='13.2' rx='1.4' ry='1.5' fill='%23D4A843' opacity='0.45'/%3E%3Cellipse cx='15.8' cy='10.8' rx='1.3' ry='1.4' fill='%23D4A843' opacity='0.45'/%3E%3Cellipse cx='21.8' cy='12.7' rx='1.4' ry='1.5' fill='%23D4A843' opacity='0.45'/%3E%3C/g%3E%3C/svg%3E") 10 8, pointer !important;
  }
  [disabled] { cursor: not-allowed !important; }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  /* ── Header ── */
  .header {
    width: 100%;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 920px;
    z-index: 10;
  }
  .logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
  }
  .logo-wrap img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .logo-text {
    font-family: var(--font-brand);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
  }
  .logo-text span {
    color: var(--gold);
  }
  .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .header-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text3);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.2s;
  }
  .header-badge svg { flex-shrink: 0; }
  .header-badge:hover {
    color: var(--gold);
    border-color: var(--gold);
    font-weight: 500;
    letter-spacing: 0.3px;
  }

  /* ── Main ── */
  .main {
    flex: 1;
    width: 100%;
    max-width: 920px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    position: relative;
  }

  /* ── Hero ── */
  .hero {
    text-align: center;
    padding: 32px 0 20px;
    position: relative;
    transition: padding 0.4s ease;
  }
  .hero.compact {
    padding: 12px 0 12px;
  }

  .hero-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 400px;
    background: radial-gradient(ellipse at 50% 40%, rgba(232, 196, 124, 0.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
  }
  .hero.compact .hero-glow { opacity: 0; }

  /* ── Search Cat (鼓鼓蹲在搜索卡片上沿) ──
     Perches right-of-center on the card's top edge: ~30% of the cat sits
     below the border (z-index under the card so it never blocks the input),
     and .search-box margin-top clears the protruding 70% from the tabs. */
  .search-cat {
    position: absolute;
    right: 110px;
    top: -62px;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .search-cat img {
    height: 96px;
    width: auto;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.35));
    animation: breathe 4s ease-in-out infinite;
  }

  @keyframes breathe {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.02) translateY(-3px); }
  }

  .hero h1 {
    font-family: var(--font-brand);
    font-size: 34px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    transition: font-size 0.3s;
  }
  .hero h1 .brand-gold { color: var(--gold); }
  .hero.compact h1 {
    font-size: 18px;
    margin-bottom: 0;
  }

  .hero-subtitle {
    font-family: var(--font-brand);
    color: var(--text2);
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s;
  }
  .hero.compact .hero-subtitle { display: none; }

  .hero-tagline {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text3);
    position: relative;
    z-index: 1;
    font-style: italic;
  }
  .hero.compact .hero-tagline { display: none; }

  /* ── Search ── */
  .search-box {
    position: relative;
    margin-top: 52px;
    margin-bottom: 24px;
    z-index: 20;
  }
  .search-card {
    position: relative;
    z-index: 2;
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--glass-shadow);
  }
  .search-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
  }
  .input-wrap {
    flex: 1;
    position: relative;
  }
  .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text3);
    pointer-events: none;
    width: 18px;
    height: 18px;
  }
  .search-input {
    width: 100%;
    padding: 13px 16px 13px 42px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-dim);
  }
  .search-input::placeholder { color: var(--text3); font-size: 14px; }

  .btn-analyze {
    padding: 0 28px;
    background: var(--gold);
    color: var(--bg);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    min-height: 46px;
  }
  .btn-analyze:hover {
    background: #D4A843;
    box-shadow: 0 0 20px var(--gold-glow);
  }
  .btn-analyze:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
  }

  /* ── Autocomplete ── */
  .autocomplete {
    position: absolute;
    top: calc(100% + 4px);
    left: 16px;
    right: 16px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  }
  .autocomplete.show { display: block; }
  .ac-item {
    padding: 11px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
  }
  .ac-item:last-child { border-bottom: none; }
  .ac-item:hover { background: var(--surface2); }
  .ac-item .code {
    font-weight: 600;
    color: var(--gold);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
  }
  .ac-item .name { color: var(--text2); font-size: 14px; }

  /* ── Trending Chips (大家在看) ── */
  .hot-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -10px 0 6px;
    padding: 0 4px;
  }
  .hot-label {
    font-size: 12px;
    color: var(--text3);
    white-space: nowrap;
    flex-shrink: 0;
  }
  .hot-chips {
    display: flex;
    gap: 6px;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .hot-chip {
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text2);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .hot-chip:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-dim);
  }
  .hot-count {
    font-size: 12px;
    color: var(--text3);
    padding: 0 4px;
    margin-bottom: 12px;
  }

  /* ── Progress ── */
  .progress-section {
    margin-bottom: 24px;
    display: none;
  }
  .progress-section.show { display: block; }

  .progress-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px 20px 16px;
    box-shadow: var(--glass-shadow);
  }

  /* Loading cat area */
  .loading-cat {
    text-align: center;
    margin-bottom: 16px;
    display: none;
  }
  .loading-cat.show { display: block; }
  .loading-cat-msg {
    margin-top: 8px;
    font-family: var(--font-brand);
    font-size: 14px;
    color: var(--gold);
    min-height: 20px;
    transition: opacity 0.3s;
  }

  /* ── Interactive Pet Zone ── */
  .pet-zone {
    position: relative;
    display: inline-block;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
  }
  .pet-zone img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
    animation: breathe 3s ease-in-out infinite;
    transition: transform 0.2s ease, filter 0.3s;
    transform-origin: bottom center;
  }
  /* Petting: wobble + glow */
  .pet-zone.petting img {
    animation: pet-wobble 0.3s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(232,196,124,0.5));
  }
  /* Purring: faster wobble + stronger glow */
  .pet-zone.purring img {
    animation: pet-purr 0.15s ease-in-out infinite;
    filter: drop-shadow(0 6px 28px rgba(232,196,124,0.7));
  }
  /* Sleepy: slow drift */
  .pet-zone.sleepy img {
    animation: pet-sleepy 5s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
  }

  @keyframes pet-wobble {
    0%, 100% { transform: rotate(-3deg) scale(1.05); }
    50% { transform: rotate(3deg) scale(1.05); }
  }
  @keyframes pet-purr {
    0%, 100% { transform: rotate(-1.5deg) scale(1.08); }
    50% { transform: rotate(1.5deg) scale(1.08); }
  }
  @keyframes pet-sleepy {
    0%, 100% { transform: translateY(0) rotate(0); }
    30% { transform: translateY(2px) rotate(-2deg); }
    70% { transform: translateY(2px) rotate(2deg); }
  }

  /* Heart particles */
  .pet-hearts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
  }
  .pet-heart {
    position: absolute;
    animation: heart-rise 1.4s ease-out forwards;
    pointer-events: none;
    font-size: 18px;
    opacity: 0;
  }
  @keyframes heart-rise {
    0% { opacity: 0; transform: translateY(0) scale(0.3) rotate(-10deg); }
    15% { opacity: 1; transform: translateY(-10px) scale(1) rotate(5deg); }
    100% { opacity: 0; transform: translateY(-70px) scale(0.6) rotate(15deg); }
  }

  /* Hint & counter */
  .pet-hint {
    font-size: 12px;
    color: var(--text3);
    margin-top: 6px;
    transition: opacity 0.6s;
  }
  .pet-count {
    font-size: 11px;
    color: var(--text3);
    min-height: 15px;
    margin-top: 2px;
  }

  @media (max-width: 640px) {
    .pet-hint { font-size: 13px; }
  }

  .steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
  }
  .step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .step-bar {
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: var(--surface2);
    transition: background 0.4s;
    position: relative;
    overflow: hidden;
  }
  .step-bar.active {
    background: var(--gold-dim);
  }
  .step-bar.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    animation: progress-slide 1.2s ease-in-out infinite;
  }
  .step-bar.done { background: var(--gold); }
  .step-bar.done::after { display: none; }

  @keyframes progress-slide {
    0% { left: -40%; }
    100% { left: 100%; }
  }

  .step-label {
    font-size: 11px;
    color: var(--text3);
    text-align: center;
    line-height: 1.3;
    transition: color 0.3s;
    font-weight: 500;
  }
  .step-item.active .step-label { color: var(--gold); }
  .step-item.done .step-label { color: var(--text2); }

  .step-msg {
    font-size: 13px;
    color: var(--text2);
    min-height: 20px;
    text-align: center;
    margin-top: 10px;
  }

  /* Paw print SVG for steps */
  .paw-icon {
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .step-item.active .paw-icon,
  .step-item.done .paw-icon { opacity: 1; }
  .step-item.active .paw-icon { color: var(--gold); }
  .step-item.done .paw-icon { color: var(--text3); }

  /* ── Result ── */
  .result-section {
    flex: 1;
    display: none;
    margin-bottom: 40px;
  }
  .result-section.show { display: block; }

  .result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
  }
  .result-title {
    font-family: var(--font-brand);
    font-size: 15px;
    font-weight: 700;
    color: var(--text2);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .result-title img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  }

  .result-content {
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    line-height: 1.75;
    font-size: 15px;
    overflow-x: auto;
    position: relative;
    box-shadow: var(--glass-shadow);
  }
  /* Constrain the prose measure — the card stays wide, text stays readable */
  .result-content > * {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
  .result-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dim), transparent);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .result-content h1 {
    font-family: var(--font-brand);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 28px 0 12px;
  }
  .result-content h2 {
    font-family: var(--font-brand);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 24px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }
  .result-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text2);
    margin: 20px 0 8px;
  }
  .result-content h1:first-child,
  .result-content h2:first-child { margin-top: 0; }
  .result-content p { margin-bottom: 12px; }
  .result-content ul, .result-content ol {
    padding-left: 24px;
    margin-bottom: 12px;
  }
  .result-content li { margin-bottom: 4px; }
  .result-content code {
    background: var(--surface2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
  }
  .result-content pre {
    background: var(--surface);
    padding: 16px 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 14px;
    border: 1px solid var(--border);
  }
  .result-content pre code { background: none; padding: 0; }
  .result-content blockquote {
    border-left: 3px solid var(--gold);
    padding: 10px 16px;
    color: var(--text2);
    margin-bottom: 12px;
    background: var(--gold-dim);
    border-radius: 0 8px 8px 0;
  }
  .result-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 14px;
    font-size: 14px;
  }
  .result-content th, .result-content td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
  }
  .result-content th {
    background: var(--surface2);
    font-weight: 600;
    color: var(--text2);
    font-size: 13px;
  }
  .result-content strong { color: var(--gold); font-weight: 600; }
  .result-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
  }

  .result-meta {
    margin-top: 14px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text3);
    display: none;
    gap: 20px;
    align-items: center;
    background: var(--glass-bg);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
  }
  .result-meta.show { display: flex; }
  .result-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .result-meta svg {
    width: 14px;
    height: 14px;
    color: var(--gold);
  }

  /* ── Tip Banner (post-report) ── */
  .tip-banner {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(232,196,124,0.1), rgba(232,196,124,0.04));
    border: 1px solid rgba(232,196,124,0.2);
    border-radius: var(--radius-lg);
    animation: fadeInUp 0.5s ease;
  }
  .tip-banner.show { display: flex; }
  .tip-banner img { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2)); }
  .tip-banner-text { flex: 1; font-size: 13px; color: var(--text2); line-height: 1.5; }
  .tip-banner-btn {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(232,196,124,0.4);
    background: rgba(232,196,124,0.15);
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
  }
  .tip-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
  .tip-banner-btn:hover {
    background: rgba(232,196,124,0.25);
    border-color: rgba(232,196,124,0.6);
    transform: translateY(-1px);
  }
  .tip-banner-xhs {
    background: rgba(255,72,72,0.1);
    border-color: rgba(255,72,72,0.3);
    color: #ff4848;
    text-decoration: none;
    display: flex;
    align-items: center;
  }
  .tip-banner-xhs:hover {
    background: rgba(255,72,72,0.2);
    border-color: rgba(255,72,72,0.5);
  }
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── Mobile bottom bar (XHS) ── */
  .mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    justify-content: center;
    align-items: center;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    background: rgba(30,30,30,0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .mobile-bottom-bar a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(232,196,124,0.4);
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
  }
  .mobile-bottom-bar a:hover {
    background: var(--gold-dim);
    border-color: rgba(232,196,124,0.6);
  }
  .xhs-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FF2442;
    flex-shrink: 0;
  }
  .mobile-bar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 8px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text3);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
  }
  .mobile-bar-close:hover { color: var(--text2); background: var(--surface2); }

  /* ── Error ── */
  .error-msg {
    background: var(--red-dim);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--red);
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    display: none;
    font-size: 14px;
    line-height: 1.5;
  }
  .error-msg.show { display: block; }

  /* ── Footer ── */
  .footer {
    width: 100%;
    max-width: 920px;
    padding: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text3);
    line-height: 1.5;
  }
  .footer-brand {
    color: var(--gold);
    font-family: var(--font-brand);
    font-weight: 700;
  }

  /* ── Tip Button ── */
  .btn-tip {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(232, 196, 124, 0.3);
    background: rgba(232, 196, 124, 0.08);
    color: var(--gold);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    white-space: nowrap;
  }
  .btn-tip:hover {
    background: rgba(232, 196, 124, 0.18);
    border-color: rgba(232, 196, 124, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232, 196, 124, 0.12);
  }
  .btn-tip svg { flex-shrink: 0; }

  /* ── Tip Modal ── */
  .tip-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }
  .tip-overlay.open {
    opacity: 1;
    visibility: visible;
  }
  .tip-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 40px 32px 32px;
    width: 100%;
    max-width: 340px;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  .tip-overlay.open .tip-card {
    transform: scale(1) translateY(0);
  }
  .tip-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--surface2);
    color: var(--text3);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }
  .tip-close:hover { background: var(--surface3); color: var(--text); }
  .tip-cat {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: -48px auto 8px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    animation: breathe 3s ease-in-out infinite;
  }
  .tip-title {
    font-family: var(--font-brand);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
  }
  .tip-subtitle {
    font-size: 13px;
    color: var(--text3);
    margin-bottom: 20px;
  }
  .tip-qr {
    width: 220px;
    height: 220px;
    border-radius: 16px;
    margin: 0 auto 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
  }
  .tip-amounts {
    font-size: 13px;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: 500;
  }
  .tip-footer {
    font-size: 12px;
    color: var(--text3);
    line-height: 1.5;
  }

  /* ── Disclaimer Modal ── */
  .disclaimer-overlay {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
    justify-content: center; align-items: center; padding: 20px;
  }
  .disclaimer-overlay.open { display: flex; }
  .disclaimer-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 32px 28px 24px;
    max-width: 520px; width: 100%; max-height: 80vh; overflow-y: auto;
    position: relative; text-align: left; color: var(--text2);
    font-size: 14px; line-height: 1.8;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  }
  .disclaimer-card h3 {
    color: var(--gold); font-family: var(--font-brand);
    font-size: 18px; margin: 0 0 16px; text-align: center;
  }
  .disclaimer-card h3:not(:first-of-type) {
    margin-top: 24px; padding-top: 20px;
    border-top: 1px solid var(--border);
  }
  .disclaimer-card p { margin-bottom: 10px; }
  .disclaimer-card strong { color: var(--text); }
  .disclaimer-card .disc-sign {
    text-align: center; color: var(--text3); font-style: italic;
    margin-top: 16px; font-size: 13px;
  }
  @media (max-width: 640px) {
    .disclaimer-card { max-width: 95vw; padding: 24px 16px 16px; }
  }

  /* ── Feedback Modal ── */
  .feedback-overlay {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
    justify-content: center; align-items: center; padding: 20px;
  }
  .feedback-overlay.open { display: flex; }
  .feedback-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 32px 28px 24px;
    max-width: 460px; width: 100%; position: relative;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  }
  .feedback-card h3 {
    color: var(--gold); font-family: var(--font-brand);
    font-size: 18px; margin: 0 0 16px; text-align: center;
  }
  .feedback-cats {
    display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
  }
  .feedback-cat-pill {
    padding: 6px 14px; border-radius: 20px; font-size: 13px;
    background: var(--surface2); border: 1.5px solid var(--border);
    color: var(--text2); cursor: pointer; transition: all 0.2s;
  }
  .feedback-cat-pill:hover { border-color: var(--text3); }
  .feedback-cat-pill.active {
    border-color: var(--gold); color: var(--gold);
    background: rgba(232,196,124,0.08);
  }
  .feedback-textarea {
    width: 100%; min-height: 100px; padding: 12px; resize: vertical;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text); font-size: 14px;
    font-family: var(--font-body); outline: none; margin-bottom: 12px;
  }
  .feedback-textarea:focus { border-color: var(--gold); }
  .feedback-textarea::placeholder { color: var(--text3); }
  .feedback-input {
    width: 100%; padding: 10px 12px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text); font-size: 13px;
    font-family: var(--font-body); outline: none; margin-bottom: 16px;
  }
  .feedback-input:focus { border-color: var(--gold); }
  .feedback-input::placeholder { color: var(--text3); }
  .feedback-submit {
    width: 100%; padding: 10px; border: none; border-radius: var(--radius);
    background: var(--gold); color: var(--bg); font-size: 14px;
    font-weight: 600; cursor: pointer; transition: background 0.2s;
  }
  .feedback-submit:hover { background: #F0D99C; }
  .feedback-submit:disabled {
    opacity: 0.5; cursor: not-allowed;
  }
  .feedback-msg {
    text-align: center; font-size: 13px; margin-top: 10px;
    min-height: 18px;
  }
  .feedback-msg.ok { color: var(--green); }
  .feedback-msg.err { color: var(--red); }
  @media (max-width: 640px) {
    .feedback-card { max-width: 95vw; padding: 24px 16px 16px; }
  }

  /* ── 鼓鼓说 Speech Bubble ── */
  .gugu-says {
    display: none;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--gold-dim);
    border: 1px solid rgba(232, 196, 124, 0.2);
    border-radius: var(--radius-lg);
  }
  .gugu-says.show { display: flex; }
  .gugu-says-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
  }
  .gugu-says-body { flex: 1; min-width: 0; }
  .gugu-says-label {
    font-family: var(--font-brand);
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
  }
  .gugu-says-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
  }
  .gugu-says-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .gugu-says-toggle {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--gold);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
  }
  .gugu-says-toggle:hover { opacity: 1; }
  .gugu-says-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 800;
    margin-left: 10px;
    vertical-align: middle;
    flex-shrink: 0;
  }
  .gugu-says-rating.rate-A { background: var(--stock-up-bg); color: var(--stock-up); border: 1.5px solid var(--stock-up); }
  .gugu-says-rating.rate-B { background: rgba(124, 181, 232, 0.15); color: var(--blue); border: 1.5px solid var(--blue); }
  .gugu-says-rating.rate-C { background: var(--amber-bg); color: var(--amber); border: 1.5px solid var(--amber); }
  .gugu-says-rating.rate-D { background: var(--stock-down-bg); color: var(--stock-down); border: 1.5px solid var(--stock-down); }
  .gugu-says-rating.rate-NA { background: rgba(128,128,128,0.12); color: #888; border: 1.5px solid #666; font-size: 13px; width: auto; padding: 0 8px; }

  /* ── Rating Badge (inline in report) ── */
  .rating-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 800;
    vertical-align: middle;
    margin: 0 6px;
  }
  .rating-badge.rate-A { background: var(--stock-up-bg); color: var(--stock-up); border: 1.5px solid var(--stock-up); }
  .rating-badge.rate-B { background: rgba(124, 181, 232, 0.15); color: var(--blue); border: 1.5px solid var(--blue); }
  .rating-badge.rate-C { background: var(--amber-bg); color: var(--amber); border: 1.5px solid var(--amber); }
  .rating-badge.rate-D { background: var(--stock-down-bg); color: var(--stock-down); border: 1.5px solid var(--stock-down); }
  .rating-badge.rate-NA { background: rgba(128,128,128,0.12); color: #888; border: 1.5px solid #666; font-size: 13px; width: auto; padding: 0 10px; }

  /* ── Score Bar ── */
  .score-bar-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
  }
  .score-bar-track {
    display: inline-block;
    width: 100px;
    height: 10px;
    background: var(--surface2);
    border-radius: 5px;
    overflow: hidden;
    vertical-align: middle;
  }
  .score-bar-fill {
    display: block;
    height: 100%;
    border-radius: 5px;
    transition: width 0.4s ease;
  }
  .score-bar-num {
    font-weight: 700;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
  }

  /* ── Metric Highlight Badge ── */
  .metric-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    vertical-align: baseline;
  }
  .metric-badge.positive { background: var(--stock-up-bg); color: var(--stock-up); border: 1px solid rgba(207,34,46,0.3); }
  .metric-badge.negative { background: var(--stock-down-bg); color: var(--stock-down); border: 1px solid rgba(22,163,74,0.3); }
  .metric-badge.neutral { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(232,196,124,0.3); }

  /* ── Risk Indicator ── */
  .risk-high {
    border-left: 4px solid var(--stock-up) !important;
    padding-left: 12px !important;
    background: var(--stock-up-bg);
    border-radius: 0 8px 8px 0;
    padding: 8px 12px 8px 12px !important;
    margin-bottom: 8px !important;
  }
  .risk-medium {
    border-left: 4px solid var(--amber) !important;
    padding-left: 12px !important;
    background: var(--amber-bg);
    border-radius: 0 8px 8px 0;
    padding: 8px 12px 8px 12px !important;
    margin-bottom: 8px !important;
  }
  .risk-low {
    border-left: 4px solid var(--stock-down) !important;
    padding-left: 12px !important;
    background: var(--stock-down-bg);
    border-radius: 0 8px 8px 0;
    padding: 8px 12px 8px 12px !important;
    margin-bottom: 8px !important;
  }

  /* ── Gate Tag (RED/YELLOW/GREEN) ── */
  .gate-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 6px;
    font-size: 0.82em;
    font-weight: 600;
    vertical-align: baseline;
    letter-spacing: 0.02em;
  }
  .gate-tag.gate-red { background: var(--stock-up-bg); color: var(--stock-up); border: 1px solid rgba(207,34,46,0.3); }
  .gate-tag.gate-orange { background: rgba(217,142,74,0.12); color: #D98E4A; border: 1px solid rgba(217,142,74,0.35); }
  .gate-tag.gate-yellow { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(245,158,11,0.3); }
  .gate-tag.gate-green { background: var(--stock-down-bg); color: var(--stock-down); border: 1px solid rgba(22,163,74,0.3); }

  /* ── Term Tooltip ── */
  .term-tip {
    border-bottom: 1px dashed var(--text3);
    cursor: help;
    position: relative;
  }
  .term-tip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text2);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
  }
  .term-tip:hover::after { opacity: 1; }

  /* ── Table Enhancement ── */
  .table-scroll { overflow-x: auto; margin-bottom: 14px; border-radius: 8px; }
  .result-content .table-scroll table { margin-bottom: 0; }
  .result-content tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
  .result-content td {
    font-variant-numeric: tabular-nums;
  }
  .result-content td:first-child { color: var(--text); font-weight: 500; }

  /* ── Numeric Color Coding (红涨绿跌, warm palette) ── */
  .num-pos { color: #E05A4E; font-weight: 600; }
  .num-neg { color: #5FA97B; font-weight: 600; }

  /* ── Dual Rating Card (report footer) ── */
  .dual-rating-card {
    display: flex;
    gap: 16px;
    margin: 20px 0 8px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .dual-rating-badge {
    flex: 1;
    min-width: 140px;
    max-width: 220px;
    text-align: center;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    border: 1.5px solid transparent;
    background: rgba(255,255,255,0.02);
  }
  .dual-rating-label {
    font-size: 12px;
    color: var(--text3);
    margin-bottom: 4px;
  }
  .dual-rating-value {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
  }
  .dual-rating-sub {
    font-size: 12px;
    color: var(--text2);
    margin-top: 2px;
  }
  .grade-a { color: #5FA97B; border-color: rgba(95,169,123,0.5); background: rgba(95,169,123,0.08); }
  .grade-b { color: #E8C47C; border-color: rgba(232,196,124,0.5); background: rgba(232,196,124,0.08); }
  .grade-c { color: #D98E4A; border-color: rgba(217,142,74,0.5); background: rgba(217,142,74,0.08); }
  .grade-d { color: #C75450; border-color: rgba(199,84,80,0.5); background: rgba(199,84,80,0.08); }

  /* ── Signal Card (报告顶部技术参考位 — 与 .dual-rating-card 同语言) ── */
  .signal-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin-bottom: 16px;
  }
  .signal-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }
  .signal-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
  }
  .signal-card-version {
    font-size: 11px;
    color: var(--text3);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 1px 8px;
  }
  .signal-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 10px;
  }
  .signal-cell {
    text-align: center;
    padding: 10px 8px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
  }
  .signal-cell-label {
    font-size: 12px;
    color: var(--text3);
    margin-bottom: 4px;
  }
  .signal-cell-value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
  }
  /* 颜色语义（红涨绿跌）: 入场区金 / 止损绿(下方价位) / 止盈红(上方目标) */
  .signal-cell-value.signal-entry { color: var(--gold); }
  .signal-cell-value.signal-stop { color: #5FA97B; }
  .signal-cell-value.signal-tp { color: #E05A4E; }
  .signal-cell-value.signal-ref { color: var(--text2); }
  .signal-card-disclaimer {
    font-size: 12px;
    color: var(--text3);
    text-align: center;
  }
  .signal-veto-note {
    font-size: 12.5px;
    color: var(--text3);
    font-style: italic;
    margin-bottom: 14px;
  }
  @media (max-width: 640px) {
    .signal-card-grid { grid-template-columns: repeat(2, 1fr); }
  }

  /* ── Report TOC (sticky pill bar) ── */
  .report-toc {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 4px;
    margin-bottom: 8px;
    background: rgba(26,24,20,0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    scrollbar-width: none;
    transition: top 0.25s ease;
  }
  .report-toc::-webkit-scrollbar { display: none; }
  .report-toc.under-mini { top: 42px; }
  .toc-pill {
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text3);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
  }
  .toc-pill:hover { color: var(--text2); border-color: var(--gold); }
  .toc-pill.active {
    color: var(--gold);
    border-color: var(--gold);
    background: var(--gold-dim);
  }
  .result-content h2 { scroll-margin-top: 100px; }

  /* ── Sticky Mini Header ── */
  .mini-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(26,24,20,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    transition: transform 0.25s ease;
  }
  .mini-header.show { transform: translateY(0); }
  .mini-header-title {
    font-family: var(--font-brand);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .mini-badge {
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ── Back to Top ── */
  .back-top {
    position: fixed;
    right: 20px;
    bottom: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(232,196,124,0.4);
    background: rgba(26,24,20,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s;
    z-index: 80;
    cursor: pointer;
  }
  .back-top.show { opacity: 1; visibility: visible; transform: none; }
  .back-top:hover {
    background: var(--gold-dim);
    border-color: var(--gold);
    box-shadow: 0 0 16px var(--gold-glow);
  }

  /* ── Copy Report Button ── */
  .btn-copy-report {
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(232,196,124,0.35);
    background: transparent;
    color: var(--gold);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
  }
  .btn-copy-report:hover {
    background: var(--gold-dim);
    border-color: rgba(232,196,124,0.6);
  }

  /* ── Section Card ── */
  .report-section {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px;
    margin-bottom: 16px;
  }
  .report-section > h2:first-child {
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
  }

  /* ── Responsive ── */
  @media (max-width: 640px) {
    .header { padding: 12px 16px; }
    .main { padding: 0 16px; }
    .hero { padding: 20px 0 14px; }
    .hero h1 { font-size: 26px; }
    .hero-subtitle { font-size: 14px; }
    .search-box { margin-top: 58px; }
    .search-cat { top: -49px; right: 20px; }
    .search-cat img { height: 70px; }
    .search-card { padding: 12px; }
    .search-row { flex-direction: column; }
    .btn-analyze { min-height: 48px; }
    .steps { gap: 2px; }
    .step-label { font-size: 10px; }
    .result-content { padding: 20px 16px; }
    .result-meta { flex-wrap: wrap; gap: 10px; }
    .header-badge { display: none; }
    .mobile-bottom-bar { display: flex; }
    .btn-tip span { font-size: 0; }
    .btn-tip::after { font-size: 12px; }
    .btn-tip { padding: 6px 10px; min-height: 32px; }
    .loading-cat img { height: 80px; }
    .tip-card { padding: 32px 20px 24px; max-width: 300px; }
    .tip-qr { width: 180px; height: 180px; }
    .tip-banner { flex-wrap: wrap; justify-content: center; text-align: center; padding: 12px 14px; }
    .tip-banner-actions { width: 100%; margin-top: 4px; }
    .tip-banner-btn { flex: 1; padding: 10px; justify-content: center; }
    .result-content th, .result-content td { padding: 6px 8px; font-size: 12px; }
    .hot-chips { flex-wrap: wrap; max-height: 58px; }
    .back-top { bottom: calc(64px + env(safe-area-inset-bottom)); right: 14px; }
    .mini-header .mini-badge { font-size: 11px; padding: 2px 8px; }
  }

  @media (max-width: 380px) {
    .step-label { display: none; }
  }

  /* ── Reduced motion ── */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  /* ── Market Tabs ── */
  .market-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    justify-content: center;
  }
  .market-tab {
    padding: 7px 20px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text3);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
  }
  .market-tab:hover {
    border-color: var(--gold);
    color: var(--text2);
    background: var(--gold-dim);
  }
  .market-tab.active {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-dim);
    box-shadow: 0 0 12px rgba(232, 196, 124, 0.15);
  }
  .market-tab:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: var(--border);
    color: var(--text3);
    background: transparent;
    box-shadow: none;
  }

  /* ── Lang Toggle ── */
  .btn-lang {
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text3);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 28px;
    letter-spacing: 0.3px;
    font-family: var(--font);
  }
  .btn-lang:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(124, 181, 232, 0.08);
  }

  /* ── Market Badge (autocomplete) ── */
  .ac-market {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    margin-left: 8px;
  }
  .ac-market.market-CN { background: var(--stock-up-bg); color: var(--stock-up); }
  .ac-market.market-HK { background: rgba(124, 181, 232, 0.15); color: var(--blue); }
  .ac-market.market-US { background: var(--green-dim); color: var(--green); }
  .ac-market.market-CRYPTO { background: var(--amber-bg); color: var(--amber); }

  @media (max-width: 640px) {
    .market-tabs { gap: 4px; }
    .market-tab { padding: 6px 14px; font-size: 12px; }
    .btn-lang { padding: 3px 8px; font-size: 11px; }
  }

  /* ── Scrollbar ── */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--text3); }

  /* ── Signals track-record page (/signals.html) ── */
  .sig-disclaimer {
    background: var(--gold-dim);
    border: 1px solid rgba(232, 196, 124, 0.3);
    border-radius: var(--radius);
    padding: 10px 16px;
    font-size: 13px;
    color: var(--gold);
    text-align: center;
    margin: 0 0 18px;
    line-height: 1.6;
  }
  .sig-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
  }
  .sig-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    text-align: center;
  }
  .sig-card-label {
    font-size: 12px;
    color: var(--text3);
    margin-bottom: 6px;
  }
  .sig-card-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
  }
  .sig-table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
  }
  .sig-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }
  .sig-table th, .sig-table td {
    padding: 9px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
  }
  .sig-table th {
    background: var(--surface2);
    color: var(--text2);
    font-size: 12px;
    font-weight: 600;
  }
  .sig-table td { font-variant-numeric: tabular-nums; color: var(--text2); }
  .sig-table td:first-child { color: var(--text3); }
  .sig-table tr:last-child td { border-bottom: none; }
  .sig-table tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }
  /* 状态徽章 — 沿用 .gate-tag 的颜色语言（green=止盈 red=止损 gold=进行中） */
  .sig-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  .sig-badge.sig-win { background: var(--stock-down-bg); color: #5FA97B; border: 1px solid rgba(22, 163, 74, 0.3); }
  .sig-badge.sig-loss { background: var(--stock-up-bg); color: #E05A4E; border: 1px solid rgba(207, 34, 46, 0.3); }
  .sig-badge.sig-active { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(232, 196, 124, 0.35); }
  .sig-badge.sig-pending { background: rgba(255, 255, 255, 0.04); color: var(--text2); border: 1px solid var(--border); }
  .sig-badge.sig-expired { background: rgba(122, 113, 104, 0.12); color: var(--text3); border: 1px solid var(--border); }
  .sig-badge.sig-notfilled { background: rgba(255, 255, 255, 0.04); color: var(--text3); border: 1px solid var(--border); }
  .sig-empty {
    text-align: center;
    padding: 36px 0 28px;
  }
  .sig-empty img {
    width: 120px;
    opacity: 0.9;
    margin-bottom: 10px;
  }
  .sig-empty-text {
    font-size: 14px;
    color: var(--text2);
  }
  .sig-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
  }
  .sig-pager-btn {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text2);
    font-family: var(--font);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .sig-pager-btn:hover:not(:disabled) {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-dim);
  }
  .sig-pager-btn:disabled { opacity: 0.35; cursor: not-allowed; }
  .sig-pager-info { font-size: 13px; color: var(--text3); font-variant-numeric: tabular-nums; }
  @media (max-width: 640px) {
    .sig-cards { grid-template-columns: repeat(2, 1fr); }
    .sig-card-value { font-size: 18px; }
  }
