*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body { font-family: "Inter Variable", "Noto Sans SC Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; margin: 0; background: #f8fafc; color: #111827; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.01em; }
.top-nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #e8e8e8; background: #fff; position: sticky; top: 0; z-index: 5; max-width: 100%; }
.nav-left, .nav-right { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; }
nav a { text-decoration: none; color: #0f172a; padding: 8px 6px; display: inline-flex; align-items: center; min-height: 36px; }
main { max-width: 1534px; width: 100%; margin: 16px auto; padding: 0 12px 24px; min-width: 0; }
.panel { border: 1px solid #e6ebf2; background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 12px; max-width: 100%; min-width: 0; overflow: hidden; }
form { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; max-width: 100%; }
input, select, textarea, button { font-family: inherit; font-variant-numeric: inherit; padding: 7px 9px; border: 1px solid #d7d7d7; border-radius: 8px; background: #fff; max-width: 100%; }
textarea { min-height: 100px; width: 100%; }
button, .btn { background: #111827; color: #fff; cursor: pointer; text-decoration: none; border: none; padding: 8px 12px; border-radius: 8px; display: inline-block; }
.btn-ghost { background: #fff; color: #0f172a; border: 1px solid #d7d7d7; }
.disabled { opacity: .45; pointer-events: none; }

.table-scroll,
.chart-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 0 0 8px;
}
.table-scroll table { width: 100%; min-width: 720px; border-collapse: collapse; }
.table-scroll-trades table { min-width: 860px; }
.table-scroll-clears table { min-width: 1400px; }
.table-scroll-etf table { min-width: 560px; }
.table-scroll-etf-cons table { min-width: 960px; }
.table-scroll th, .table-scroll td { white-space: nowrap; }
.table-scroll td.stock-rule-action { white-space: normal; min-width: 240px; line-height: 1.45; }
.hold-rules-details summary { cursor: pointer; font-weight: 600; font-size: 1rem; color: #0f172a; }
.hold-rules-details[open] summary { margin-bottom: 4px; }
.hold-rules-note { font-size: 0.92rem; color: #334155; margin: 0 0 12px; }
.hold-rules-note p { margin: 8px 0 4px; }
.hold-rules-note ul { margin: 0 0 8px; padding-left: 1.3em; }
.hold-rules-note li { margin: 2px 0; }
.hold-rules-empty { margin: 8px 0 0; color: #64748b; font-size: 0.92rem; }
.chart-scroll .chart-box { min-width: 560px; width: 100%; }
.chart-scroll .chart-box.chart-lg { min-width: 640px; }

table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #ededed; text-align: left; padding: 8px 6px; }
th.th-sortable a { color: inherit; text-decoration: none; cursor: pointer; }
th.th-sortable a:hover { text-decoration: underline; }
th.th-sortable.sorted-desc a::after { content: " ▼"; font-size: 0.75em; color: #64748b; }
th.th-sortable.sorted-asc a::after { content: " ▲"; font-size: 0.75em; color: #64748b; }
.stock-list-pager,
.stock-trades-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 8px 0 4px;
  font-size: 13px;
  color: #475569;
  max-width: 100%;
}
.stock-list-pager .btn,
.stock-trades-pager .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
}
.tag-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.tag { display: inline-flex; align-items: center; gap: 2px; margin: 0; padding: 2px 8px; background: #f3f4f6; border-radius: 999px; }
.tag-del { border: none; background: transparent; color: #9ca3af; cursor: pointer; font-size: 12px; line-height: 1; padding: 0 2px; }
.tag-del:hover { color: #b91c1c; }
.err { color: #b91c1c; }
.ok { color: #047857; }
.pos-up { color: #ef4444; font-weight: 600; }
.pos-down { color: #10b981; font-weight: 600; }
dialog {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 14px;
  width: min(420px, calc(100vw - 24px));
  max-height: min(90vh, 640px);
  overflow: auto;
}
dialog::backdrop { background: rgba(0,0,0,.25); }
#newTradeDialog { width: min(420px, calc(100vw - 24px)); max-width: none; min-width: 0; }
.trade-dialog-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.trade-dialog-form h3 { margin: 0; font-size: 1.05rem; }
.trade-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.trade-form-row.is-hidden { display: none; }
.trade-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.trade-field label { font-size: 13px; color: #64748b; font-weight: 500; }
.trade-field input,
.trade-field select { width: 100%; }
.trade-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; max-width: 100%; min-width: 0; }
.page-head > div { min-width: 0; max-width: 100%; }
.stock-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stock-title-row h2 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.page-head-welcome-row { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; max-width: 100%; min-width: 0; }
.page-head-welcome-row h2 { margin: 0; flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.page-head-welcome-row .scheme-switch-form { display: inline-flex; flex-wrap: wrap; flex: 1 1 auto; margin: 0; align-items: center; min-width: 0; max-width: 100%; }
.page-head-action-form { margin: 0; }
.scheme-panel { display: flex; flex-direction: column; gap: 10px; max-width: 100%; min-width: 0; }
.scheme-switch-form { margin: 0; padding: 8px 10px; border: 1px solid #e6ebf2; border-radius: 10px; background: #f8fafc; max-width: 100%; }
.scheme-multi-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; max-width: 100%; min-width: 0; }
.scheme-multi-label { font-size: 13px; color: #475569; margin-right: 4px; }
.scheme-check { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; margin: 0; cursor: pointer; }
.scheme-check input { margin: 0; }
.scheme-apply-btn { padding: 4px 10px; font-size: 12px; min-height: 36px; }
.scheme-merge-hint {
  margin: 0 0 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.page-head .scheme-merge-hint { margin-top: 6px; margin-bottom: 0; }
.muted { color: #94a3b8; font-size: 13px; }
.scheme-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 100%; }
.scheme-actions form { margin: 0; }
.scheme-actions .btn, .scheme-actions button, .scheme-actions form button { width: auto; min-width: 92px; min-height: 40px; text-align: center; padding: 8px 12px; font-size: 13px; }
.btn-primary { background: #0f172a; font-weight: 600; }
.btn-danger { background: #b91c1c; }
.toast {
  position: fixed;
  top: 74px;
  right: 16px;
  z-index: 30;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  max-width: min(360px, calc(100vw - 24px));
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.ok { background: #047857; }
.toast.err { background: #b91c1c; }
.stock-list-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 10px; max-width: 100%; align-items: center; }
.stock-list-actions form { margin: 0; }
.stock-list-actions h3 { margin: 0; }
.stock-list-actions .muted { font-size: 0.9rem; }
.csv-download-wrap { margin-left: auto; position: relative; }
.btn-csv-download {
  background: #fff;
  color: #0f172a;
  border: 1px solid #d7d7d7;
  padding: 6px;
  border-radius: 8px;
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.btn-csv-download:hover { background: #f8fafc; }
.btn-csv-download svg { width: 16px; height: 16px; display: block; }
.csv-download-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  min-width: 88px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.csv-download-menu[hidden] { display: none; }
.csv-download-menu .csv-opt {
  background: transparent;
  color: #0f172a;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  text-align: left;
  font-size: 13px;
  width: 100%;
}
.csv-download-menu .csv-opt:hover { background: #f1f5f9; }
.stock-action-btn { min-height: 38px; padding: 8px 12px; display: inline-flex; align-items: center; justify-content: center; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; max-width: 100%; min-width: 0; }
.stats-grid > .panel { min-width: 0; }
.stats-grid h4 {
  margin: 0 0 6px;
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}
.stats-grid strong {
  font-size: 16px;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
  display: block;
}
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; max-width: 100%; min-width: 0; }
.chart-grid > div { min-width: 0; max-width: 100%; }
.chart-box { width: 100%; height: 300px; }
.chart-lg { height: 440px; }
.chart-toolbar { display: flex; align-items: center; justify-content: flex-end; margin: 8px 0 4px; min-height: 24px; }
.nine-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: #334155; user-select: none; }
.nine-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.nine-switch-track { position: relative; width: 34px; height: 18px; background: #cbd5e1; border-radius: 999px; transition: background .2s; flex: 0 0 auto; }
.nine-switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.nine-switch input:checked + .nine-switch-track { background: #2563eb; }
.nine-switch input:checked + .nine-switch-track::after { transform: translateX(16px); }
.nine-switch input:focus-visible + .nine-switch-track { outline: 2px solid #2563eb; outline-offset: 2px; }
.nine-switch-label { color: #475569; }
.chart-empty-hint { margin: 0; padding: 48px 12px; text-align: center; color: #94a3b8; font-size: 14px; }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; padding: 24px; border-radius: 14px; background: linear-gradient(135deg, #0f172a, #1e293b); color: #f8fafc; max-width: 100%; min-width: 0; }
.hero p { color: #cbd5e1; }
.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 12px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid, .hero { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .top-nav {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
    gap: 8px;
  }
  .nav-left, .nav-right {
    width: 100%;
    gap: 4px 8px;
  }
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head-welcome-row .scheme-switch-form { width: 100%; flex: 1 1 100%; }
  .page-head-action-form { width: 100%; }
  .page-head-action-form .stock-action-btn { width: 100%; justify-content: center; }
  .scheme-actions .btn, .scheme-actions button, .scheme-actions form button { min-height: 40px; }
}

@media (max-width: 600px) {
  main { margin: 10px auto; padding: 0 10px 20px; }
  .chart-box { height: 260px; }
  .chart-lg { height: 300px; }
  .toast {
    left: 12px;
    right: 12px;
    top: 64px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .trade-form-row { grid-template-columns: 1fr; }
  dialog form:not(.trade-dialog-form) {
    flex-direction: column;
    align-items: stretch;
  }
  dialog form:not(.trade-dialog-form) input,
  dialog form:not(.trade-dialog-form) select,
  dialog form:not(.trade-dialog-form) textarea,
  dialog form:not(.trade-dialog-form) button {
    width: 100%;
  }
  dialog form:not(.trade-dialog-form) > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
}

/* ===== 股票详情页改版：页内 Tab / 图表 / 信号 ===== */
.page-tabs { margin-top: 8px; }
.page-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 2px solid #d0d7e6;
  margin-bottom: 12px;
}
.page-tab {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #5a6577;
  cursor: pointer;
}
.page-tab:hover { color: #1f2a44; }
.page-tab.active { color: #1f2a44; border-bottom-color: #2b6cb0; }
.tab-panel[hidden] { display: none !important; }

.kline-range-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #475569;
}
.kline-range-bar input[type="date"] { padding: 4px 6px; }

.indicator-toggles {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f7fafc;
  margin-bottom: 14px;
}
.toggles-label { color: #718096; font-size: 13px; }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; user-select: none; color: #1a202c; }

.chart-container { width: 100%; height: 460px; }
.chart-container.chart-sm { height: 240px; }
.chart-container.chart-md { height: 300px; }

.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 8px; }

.price-win-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.price-win-grid .panel { margin-bottom: 0; }
.price-win-grid h4 { margin: 0 0 4px; font-size: 0.85rem; color: #64748b; font-weight: 500; }
.price-win-grid strong { font-size: 1.15rem; }

.main-force-detail { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: #4a5568; }

.signals-output { font-size: 13px; }
.signal-count { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; color: #64748b; font-size: 12px; }
.signal-item { padding: 10px 0; border-bottom: 1px dashed #e2e8f0; }
.signal-item:last-child { border-bottom: none; }
.signal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; color: #1f2a44; }
.signal-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; line-height: 18px; color: #fff; }
.signal-badge-bull { background-color: #00aa3b; }
.signal-badge-bear { background-color: #ec0000; }
.signal-badge-warn { background-color: #b8860b; }
.signal-meta { margin-top: 3px; font-size: 12px; color: #64748b; }
.signal-desc { margin-top: 4px; color: #334155; }
.signal-empty { color: #94a3b8; }
.placeholder-loading { display: inline-flex; align-items: center; gap: 8px; color: #94a3b8; }

.tech-overview-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}
.tech-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  flex: 1 1 auto;
  min-width: 0;
}
.tech-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 0 0 auto; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.filter-label { font-size: 13px; font-weight: 600; color: #475569; white-space: nowrap; }
.tech-overview-controls .scheme-multi-pick { gap: 6px; }
.tech-overview-controls .scheme-check {
  padding: 4px 10px;
  border: 1px solid #d7dee8;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  gap: 6px;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.tech-overview-controls .scheme-check:hover { border-color: #94a3b8; }
.tech-overview-controls .scheme-check input { accent-color: #1f2a44; }
.tech-overview-controls .scheme-check.is-active {
  border-color: #1f2a44;
  background: #eef2f7;
  color: #0f172a;
  font-weight: 600;
}
.tech-overview-controls #tag-filter { min-width: 160px; }
.tech-overview-count {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.tech-overview-count:empty { display: none; }
@media (max-width: 700px) {
  .tech-overview-controls { flex-direction: column; align-items: stretch; }
  .tech-filters { width: 100%; }
  .tech-actions { width: 100%; }
  .tech-actions .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
  .tech-overview-controls #tag-filter { flex: 1 1 auto; min-width: 0; }
}
#stocks-table th.sortable { cursor: pointer; user-select: none; }
#stocks-table th.sortable:hover { text-decoration: underline; }
#stocks-table td.observe-summary { white-space: normal; min-width: 220px; line-height: 1.5; }
.data-loading-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
}
.data-loading-bar[hidden] { display: none; }
.mini-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #cbd5e1;
  border-top-color: #111827;
  border-radius: 50%;
  animation: mini-spin 0.8s linear infinite;
  flex: 0 0 auto;
}
@keyframes mini-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .price-win-grid { grid-template-columns: 1fr; }
  .chart-container { height: 360px; }
}

.oplog-table th { background: #f8fafc; }
.oplog-day-sep td {
  background: #eef2f7;
  font-weight: 600;
  color: #0f172a;
  border-bottom: 1px solid #dbe2ea;
}
.oplog-entry-fund td { color: #475569; }
.oplog-note { white-space: normal; min-width: 180px; }
.oplog-day-summary td {
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  white-space: normal;
  border-bottom: 1px solid #dbe2ea;
}

/* ===== 页内锚点导航 ===== */
[data-nav] { scroll-margin-top: 76px; }

.anchor-nav:empty { display: none; }

.anchor-nav {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  max-height: 72vh;
  overflow: hidden;
}
.anchor-nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 26px;
  padding: 10px 0;
  background: #f8fafc;
  color: #475569;
  border: none;
  border-right: 1px solid #eef2f7;
  border-radius: 0;
  cursor: pointer;
}
.anchor-nav-toggle:hover { background: #eef2f7; color: #0f172a; }
.anchor-nav-toggle-icon {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(135deg);
  transition: transform .2s ease;
}
.anchor-nav.collapsed .anchor-nav-toggle-icon { transform: rotate(-45deg); }
.anchor-nav-toggle-label { display: none; }
.anchor-nav.collapsed .anchor-nav-toggle-label {
  display: block;
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 2px;
}
.anchor-nav-body {
  display: flex;
  flex-direction: column;
  width: 160px;
  flex: 0 0 auto;
  overflow: hidden;
  transition: width .2s ease, opacity .2s ease;
}
.anchor-nav-title {
  padding: 8px 14px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}
.anchor-nav-list {
  list-style: none;
  margin: 0;
  padding: 0 6px 8px;
  overflow-y: auto;
}
.anchor-nav-list a {
  display: block;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.anchor-nav-list a:hover { background: #f1f5f9; color: #0f172a; }
.anchor-nav-list a.active {
  border-left-color: #2b6cb0;
  background: #eef2f7;
  color: #0f172a;
  font-weight: 600;
}
.anchor-nav-group {
  margin: 4px 0 2px;
  padding: 7px 10px 3px;
  border-top: 1px solid #eef2f7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #94a3b8;
}
.anchor-nav-list > .anchor-nav-group:first-child {
  margin-top: 0;
  border-top: none;
}
.anchor-nav.collapsed .anchor-nav-body { width: 0; opacity: 0; }
.anchor-nav.collapsed .anchor-nav-title,
.anchor-nav.collapsed .anchor-nav-list { display: none; }

@media (max-width: 900px) {
  .anchor-nav { display: none; }
}

/* ===== 技术分析全览：快速定位 ===== */
.tech-locator[hidden] { display: none; }
.tech-locator .anchor-nav-body { width: 212px; min-height: 0; }
.tech-locator-list { flex: 1 1 auto; min-height: 0; }
.anchor-nav.collapsed .tech-locator-search,
.anchor-nav.collapsed .tech-locator-hint,
.anchor-nav.collapsed .tech-locator-matches,
.anchor-nav.collapsed .tech-locator-list { display: none; }

.tech-locator-search { padding: 2px 10px 6px; }
.tech-locator-input {
  width: 100%;
  padding: 6px 8px;
  font-size: 12px;
  border: 1px solid #d7dde8;
  border-radius: 6px;
  background: #fff;
}
.tech-locator-input:focus { outline: 2px solid #2b6cb0; outline-offset: 0; }

.tech-locator-matches {
  max-height: 240px;
  overflow-y: auto;
  padding: 2px 0;
}
.tech-locator-matches[hidden] { display: none; }
.tl-match {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: #0f172a;
  border: none;
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
}
.tl-match:hover,
.tl-match.is-active { background: #f1f5f9; }
.tl-match-code { font-size: 12px; color: #2563eb; margin-right: 6px; }
.tl-match-name { font-size: 13px; }
.tl-match-extra { display: block; font-size: 11px; color: #94a3b8; }

.tech-locator-hint {
  padding: 0 12px 8px;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}
.tech-locator-hint[hidden] { display: none; }

.tech-locator-list[hidden] { display: none; }
.anchor-nav-list .tech-locator-index-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tl-index-key { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tl-index-meta { flex: 0 0 auto; font-size: 11px; color: #94a3b8; }
.tech-locator-index-item.active .tl-index-meta { color: #2b6cb0; }

tr[data-stock-code] { scroll-margin-top: 76px; }
@keyframes tech-row-flash {
  0% { background: #fef3c7; }
  100% { background: transparent; }
}
#stocks-table tbody tr.tech-row-flash > td {
  animation: tech-row-flash 1.4s ease-out;
}
