:root {
  --bg: #f5f3f0;
  --bg-alpha: rgba(245,243,240,.95);
  --surface: #eae7e2;
  --surface2: #e0ddd8;
  --border: #d5d0ca;
  --border2: #e0ddd8;
  --text: #1a1917;
  --text2: #4a4640;
  --muted: #9a958c;
  --accent: #c2a66e;
  --accent2: #a8923e;
  --accent-alpha: rgba(194,166,110,.4);
  --green: #2d8a56;
  --red: #c0392b;
  --blue: #4a7fb5;
  --card-bg: transparent;
  --card-accent: var(--border);
  ;
}
[data-theme="cool-light"] {
  --bg: #f3f4f6;
  --bg-alpha: rgba(243,244,246,.95);
  --surface: #e8e9ec;
  --surface2: #dfe0e4;
  --border: #d1d5db;
  --border2: #e2e5ea;
  --text: #1c1e21;
  --text2: #4b4f56;
  --muted: #8c919a;
  --accent: #8b7e6a;
  --accent2: #6b6050;
  --accent-alpha: rgba(139,126,106,.35);
  --green: #2d8a56;
  --red: #c0392b;
  --blue: #4a7fb5;
  --card-bg: transparent;
  --card-accent: var(--border);
  ;
}
[data-theme="dark"] {
  --bg: #111111;
  --bg-alpha: rgba(17,17,17,.95);
  --surface: #1a1a1a;
  --surface2: #222222;
  --border: #2a2520;
  --border2: #1e1c18;
  --text: #f0ede8;
  --text2: #b8b3aa;
  --muted: #8a8578;
  --accent: #c2a66e;
  --accent2: #e8d5a8;
  --accent-alpha: rgba(194,166,110,.4);
  --green: #4ade80;
  --red: #f87171;
  --blue: #60a5fa;
  --card-bg: transparent;
  --card-accent: var(--border);
  ;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; }
h1, h2, h3, .header h1, .card-title, .stat-num, .hero-title, .hero-card .hero-title, .highlight-mini-title { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; }
.section-title { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important; }

/* Theme switcher */
.theme-switcher { position: absolute; top: 40px; right: 0; display: flex; gap: 8px; }
.theme-btn { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; transition: all .2s; }
.theme-btn.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-alpha); }
.theme-btn[data-t="cool-light"] { background: linear-gradient(135deg, #f3f4f6 60%, #8b7e6a); }
.theme-btn[data-t="dark"] { background: linear-gradient(135deg, #111 60%, #c2a66e); }
.container { max-width: 768px; margin: 0 auto; padding: 24px; padding-bottom: 100px; }
.header { text-align: center; padding: 40px 0 16px; border-bottom: .5px solid var(--accent); margin-bottom: 20px; position: relative; }
.header h1 { font-size: 32px; font-weight: 600; letter-spacing: 8px; color: var(--text); }
.header .subtitle { color: var(--muted); font-size: 13px; margin-top: 6px; letter-spacing: 2px; }
.header .dates { color: var(--accent); font-size: 14px; margin-top: 12px; letter-spacing: 1px; }
.tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: .5px solid var(--border); }
.tab { flex: 1; padding: 12px 4px 10px; background: none; border: none; border-bottom: 1.5px solid transparent; color: var(--muted); font-size: 13px; cursor: pointer; transition: all 0.2s; user-select: none; text-align: center; white-space: nowrap; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; }
.tab.active { background: none; color: var(--text); border-bottom-color: var(--accent); font-weight: 500; }
.sub-tabs { display: flex; gap: 24px; margin-bottom: 20px; border-bottom: .5px solid var(--border); padding: 0; background: none; border-radius: 0; }
.sub-tab { flex: none; padding: 10px 0 12px; background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--muted); font-size: 15px; cursor: pointer; transition: all 0.2s; text-align: center; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; border-radius: 0; }
.strat-level-tab { padding: 8px 0 10px; font-size: 14px; color: var(--muted); cursor: pointer; border: none; border-bottom: 1.5px solid transparent; background: none; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; transition: all .2s; }
.strat-level-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.sub-tab.active { background: none; color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.my-section-header { cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; background: none; border: none; border-bottom: .5px solid var(--border); border-radius: 0; margin-bottom: 16px; }
.my-section-header .arrow { transition: transform 0.2s; }
.my-section-header.collapsed .arrow { transform: rotate(-90deg); }
.my-section-header .badge-count { font-size: 12px; background: var(--accent); color: var(--bg); padding: 2px 8px; border-radius: 10px; margin-left: 8px; }
.search-box { position: relative; margin-bottom: 16px; }
.search-box input { width: 100%; padding: 14px 16px 14px 44px; background: var(--surface); border: .5px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; outline: none; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; }
.search-box input:focus { border-color: var(--accent); }
.search-box::before { content: '⌕'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.filter-btn { padding: 6px 14px; background: none; border: .5px solid var(--border); border-radius: 20px; color: var(--text2); font-size: 12px; cursor: pointer; transition: all 0.2s; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; }
.filter-btn.active { background: none; color: var(--text); border-color: var(--accent); }
/* Dropdown filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.filter-dropdown { position: relative; display: inline-block; }
.filter-dropdown-btn { padding: 7px 14px; background: var(--bg2); border: .5px solid var(--border); border-radius: 10px; color: var(--text2); font-size: 12px; cursor: pointer; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; display: flex; align-items: center; gap: 4px; transition: all 0.2s; white-space: nowrap; }
.filter-dropdown-btn:hover, .filter-dropdown-btn.has-selection { border-color: var(--accent); color: var(--text); }
.filter-dropdown-btn .arrow { font-size: 8px; opacity: 0.5; transition: transform 0.2s; }
.filter-dropdown.open .arrow { transform: rotate(180deg); }
.filter-dropdown-menu { display: none; position: absolute; top: calc(100% + 4px); right: 0; left: auto; min-width: auto; background: var(--bg); border: .5px solid var(--border); border-radius: 10px; padding: 6px 0; z-index: 100; box-shadow: 0 4px 20px rgba(0,0,0,0.3); max-height: 260px; overflow-y: auto; opacity: 1; transition: opacity 0.3s; }
.filter-dropdown.open .filter-dropdown-menu { display: block; }
.filter-dropdown-item { padding: 8px 14px; font-size: 12px; color: var(--text2); cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background 0.15s; white-space: nowrap; }
.filter-dropdown-item:hover { background: var(--bg2); }
.filter-dropdown-item.selected { color: var(--text); }
.filter-dropdown-item .check { width: 14px; height: 14px; border: 1px solid var(--border); border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }
.filter-dropdown-item.selected .check { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.filter-active-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.filter-tag { padding: 4px 10px; background: rgba(200,169,110,0.15); border: 1px solid rgba(200,169,110,0.3); border-radius: 14px; font-size: 11px; color: var(--accent2); display: flex; align-items: center; gap: 4px; cursor: pointer; }
.filter-tag .remove { font-size: 13px; opacity: 0.6; }
.filter-tag:hover .remove { opacity: 1; }
.filter-clear-all { padding: 4px 10px; font-size: 11px; color: var(--text2); cursor: pointer; border: none; background: none; text-decoration: underline; }
/* Kabinett corner ribbon */
.kabinett-ribbon { position: absolute; top: 0; left: 0; width: 0; height: 0; border-style: solid; border-width: 22px 22px 0 0; border-color: var(--accent) transparent transparent transparent; z-index: 2; }
.kabinett-ribbon span { position: absolute; top: -20px; left: 2.5px; font-size: 8px; font-weight: 600; color: var(--bg); line-height: 1; font-family: 'Playfair Display', Georgia, serif; font-style: italic; }
.card { background: var(--card-bg); border: none; border-left: 1.5px solid var(--card-accent); border-radius: 0; padding: 16px 0 16px 16px; margin-bottom: 8px; transition: border-color 0.2s; cursor: pointer; }
.card:hover { border-color: var(--accent); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.card-title { font-size: 16px; font-weight: 400; letter-spacing: .3px; }
.card-title-zh { font-size: 13px; color: var(--text2); font-weight: 400; margin-left: 6px; }
.card-badges { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.badge { font-size: 10px; padding: 2px 8px; border-radius: 20px; font-weight: 600; letter-spacing: 0.5px; }
.badge-mega { background: rgba(200,169,110,0.2); color: var(--accent2); border: 1px solid var(--accent); }
.badge-established { background: rgba(220,160,80,0.2); color: #dc9f50; border: 1px solid rgba(220,160,80,0.4); }
.badge-mid-tier { background: rgba(96,165,250,0.15); color: var(--blue); border: 1px solid rgba(96,165,250,0.3); }
.badge-emerging { background: rgba(74,222,128,0.15); color: var(--green); border: 1px solid rgba(74,222,128,0.3); }
.badge-institutional { background: rgba(160,120,200,0.2); color: #a078c8; border: 1px solid rgba(160,120,200,0.4); }
.card-highlight { font-size: 11px; color: var(--text2); margin-bottom: 6px; font-style: normal; line-height: 1.4; }
.card-meta { font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.card-artists { margin-top: 8px; font-size: 13px; line-height: 1.8; }
.card-artists-plain { font-size: 13px; color: var(--text2); line-height: 1.8; margin-top: 6px; }
.card-artists-plain .artist-name-plain { }
.card-artists-plain .artist-sep { margin: 0 4px; color: var(--muted); opacity: 0.5; }
.card-artists-tap { margin-bottom: 10px; }
.artist-tap-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.artist-link-tap { display: inline-block; font-size: 13px; color: var(--accent2); text-decoration: none; padding: 4px 10px; border-radius: 3px; background: var(--surface); transition: background 0.15s; cursor: pointer; }
.artist-link-tap:hover { background: var(--surface2); }
.artist-link-tap:active { background: var(--accent-alpha); }
.card-artists .artist-sep { color: var(--muted); margin: 0 4px; font-size: 11px; }
.medium-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.medium-tag { font-size: 10px; padding: 1px 7px; background: var(--surface2); color: var(--text2); border-radius: 3px; }
.card-expand-section { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.card-expanded .card-expand-section { max-height: 2000px; }
.card-expand-inner { padding-top: 12px; margin-top: 12px; border-top: .5px solid var(--border); }
.card-expand-inner .expand-row { font-size: 12px; color: var(--text2); margin-bottom: 6px; line-height: 1.6; }
.card-expand-inner .expand-row b { color: var(--text); font-weight: 500; }
.card-expand-inner .expand-desc { font-size: 12px; color: var(--text2); line-height: 1.7; margin-top: 6px; }
.addr-row.open .addr-detail { display: block !important; }
.addr-row.open span .addr-arrow { transform: rotate(90deg); }
.card-chevron { font-size: 11px; color: var(--muted); transition: transform 0.3s; display: inline-block; margin-left: 2px; }
.card-expanded .card-chevron { transform: rotate(180deg); }
.exh-list { margin: 6px 0 10px; }
.exh-item { padding: 6px 0 6px 10px; border-left: 1px solid var(--border); margin-bottom: 4px; }
.exh-title { font-size: 13px; color: var(--text); font-style: italic; }
.exh-detail { font-size: 11px; color: var(--text2); line-height: 1.5; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--surface2); color: var(--text2); }
.card-ab { font-size: 11px; color: var(--text2); margin-top: 8px; opacity: 0.7; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-card { background: none; border: none; border-right: .5px solid var(--border); padding: 16px; text-align: center; }
.stat-card:last-child { border-right: none; }
.stat-card:hover { }
.stat-num { font-size: 28px; font-weight: 400; color: var(--text); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.signal { display: flex; align-items: center; gap: 10px; padding: 14px 0; background: none; border: none; border-bottom: .5px solid var(--border); border-radius: 0; margin-bottom: 0; }
.signal-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.signal-dot.hot { background: var(--red); }
.signal-dot.warm { background: var(--accent); }
.signal-dot.cool { background: var(--blue); }
.metrics-scroll { display: flex; gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; margin-bottom: 16px; scrollbar-width: none; }
.metrics-scroll::-webkit-scrollbar { display: none; }
.metric-card { flex-shrink: 0; background: none; border: none; border-right: .5px solid var(--border); padding: 12px 20px; min-width: 120px; text-align: center; }
.metric-card:last-child { border-right: none; }
.metric-value { font-size: 22px; font-weight: 600; }
.metric-value.up { color: var(--green, #4caf50); }
.metric-value.down { color: var(--red); }
.metric-value.neutral { color: var(--accent); }
.metric-label { font-size: 11px; color: var(--text2); margin-top: 4px; }
.report-badge { display: inline-block; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); border: .5px solid var(--accent); border-radius: 0; padding: 2px 6px; margin-bottom: 16px; }
.splitflap-board { display: flex; gap: 0; border: .5px solid var(--border); margin-bottom: 20px; }
.splitflap-col { flex: 1; border-right: .5px solid var(--border); overflow: hidden; position: relative; }
.splitflap-col:last-child { border-right: none; }
.splitflap-col-label { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text2); text-align: center; padding: 10px 8px 0; }
.splitflap-track { position: relative; height: 100px; overflow: hidden; cursor: pointer; -webkit-user-select: none; user-select: none; }
.splitflap-track .sf-item { position: absolute; top: 0; left: 0; width: 100%; height: 100px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 8px; backface-visibility: hidden; will-change: transform, opacity; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.splitflap-track .sf-item.active { opacity: 1; transform: translateY(0) rotateX(0); }
.splitflap-track .sf-item.prev { opacity: 0; transform: translateY(-30px) rotateX(30deg); }
.splitflap-track .sf-item.next { opacity: 0; transform: translateY(30px) rotateX(-30deg); }
.rpt-num { font-size: 28px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.rpt-num.up { color: var(--green, #4caf50); }
.rpt-num.down { color: var(--red); }
.rpt-num.neutral { color: var(--accent); }
.rpt-delta { font-size: 11px; font-weight: 500; margin-top: 2px; }
.rpt-delta.up { color: var(--green, #4caf50); }
.rpt-delta.down { color: var(--red); }
.rpt-delta.neutral { color: var(--accent); }
.rpt-label { font-size: 10px; color: var(--text2); margin-top: 4px; line-height: 1.3; }
.llm-suggest { font-size: 11px; padding: 6px 12px; border: .5px solid var(--border); cursor: pointer; color: var(--accent); background: none; white-space: nowrap; display: inline-block; border-radius: 16px; margin-right: 6px; transition: all .15s; }
.llm-suggest:active { background: var(--accent-alpha); }
.llm-scroll-row { scrollbar-width: none; -ms-overflow-style: none; mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent); }
.llm-scroll-row::-webkit-scrollbar { display: none; }
.llm-q-pill { font-size: 11px; padding: 6px 12px; border: .5px solid var(--border); border-radius: 16px; cursor: pointer; color: var(--text2); background: none; transition: all .15s; white-space: nowrap; }
.llm-q-pill:active { background: var(--accent-alpha); color: var(--accent); }
.llm-q-tag { font-size: 13px; padding: 8px 16px; border: .5px solid var(--border); border-radius: 20px; cursor: pointer; color: var(--text2); background: var(--surface); transition: all .15s; white-space: nowrap; flex-shrink: 0; }
.llm-q-tag:active { background: var(--accent-alpha); color: var(--accent); border-color: var(--accent); }
.llm-marquee-wrap { mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
@keyframes llm-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.llm-msg { margin-bottom: 12px; }
.llm-msg.user { text-align: right; }
.llm-msg .llm-bubble { display: inline-block; max-width: 85%; padding: 10px 14px; font-size: 13px; line-height: 1.7; text-align: left; }
.llm-msg.user .llm-bubble { background: var(--accent); color: var(--bg); }
.llm-msg.bot .llm-bubble { background: var(--surface2, rgba(255,255,255,0.05)); color: var(--text); border: .5px solid var(--border); position: relative; }
.llm-copy-btn { position: absolute; top: 4px; right: 4px; background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; opacity: 0; transition: opacity .2s; padding: 2px 6px; border-radius: 4px; }
.llm-msg.bot:hover .llm-copy-btn, .llm-msg.bot:active .llm-copy-btn { opacity: 1; }
.llm-copy-btn.copied { color: var(--green, #4ade80); opacity: 1; }
.llm-msg.bot .llm-bubble .llm-typing { display: inline-block; }
.llm-msg.bot .llm-bubble .llm-typing::after { content: '…'; animation: typing-dots 1s infinite; }
@keyframes typing-dots { 0%,20%{content:'.'} 40%{content:'..'} 60%,100%{content:'...'} }
.signal-row { border-bottom: .5px solid var(--border); padding: 10px 0; }
.signal-row-text { font-size: 13px; line-height: 1.5; color: var(--text); margin-bottom: 4px; }
.signal-row-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px; }
.signal-row-src { margin-left: auto; }
.trend-category { font-size: 10px; padding: 1px 6px; border-radius: 2px; background: var(--surface2, rgba(255,255,255,0.05)); color: var(--text2); }
.trend-level { font-size: 10px; }
.trend-level.hot { color: var(--red); }
.trend-level.warm { color: var(--accent); }
.trend-level.cool { color: var(--blue); }
.signal-summary { display: flex; gap: 12px; margin-bottom: 14px; font-size: 12px; color: var(--text2); }
.trend-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.trend-filters .filter-btn { padding: 6px 12px; cursor: pointer; }
.signal-text { font-size: 13px; }
.signal-label { font-size: 11px; color: var(--text2); }
.section-title { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--text); text-transform: none; margin: 20px 0 16px; padding-bottom: 10px; border-bottom: .5px solid var(--border); }
.result-count { font-size: 12px; color: var(--text2); margin-bottom: 12px; }
.graph-container { background: none; border: .5px solid var(--border); border-radius: 4px; padding: 20px; margin-bottom: 24px; min-height: 300px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.footer { text-align: center; padding: 40px 0; color: var(--muted); font-size: 12px; border-top: .5px solid var(--border); margin-top: 48px; }
.footer a { color: var(--accent); text-decoration: none; }
.loading { text-align: center; padding: 40px; color: var(--text2); }
[data-gallery] { color: var(--accent); text-decoration: underline; text-decoration-style: dotted; cursor: pointer; }
[data-gallery]:hover { color: var(--accent2); }

/* 导航返回按钮样式 */
.nav-back-btn {
  display: none;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12px;
  padding: 4px 0;
  cursor: pointer;
  margin-bottom: 8px;
  text-align: left;
}
.nav-back-btn:hover {
  opacity: 0.8;
}
/* Range sliders */
input[type="range"] { height: 24px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); cursor: pointer; pointer-events: auto; border: 2px solid var(--bg); box-shadow: 0 0 6px rgba(200,169,110,0.4); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); cursor: pointer; pointer-events: auto; border: 2px solid var(--bg); box-shadow: 0 0 6px rgba(200,169,110,0.4); }

/* Mobile UX Optimizations */
/* 1. 搜索框清除按钮 */
.search-box .clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text2);
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  display: none;
  z-index: 2;
  line-height: 1;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.search-box .clear-btn:hover {
  color: var(--text);
}
.search-box.has-content .clear-btn {
  display: block;
}
.search-box.has-content input {
  padding-right: 44px;
}
/* Fallback: also show via CSS when input has value */
.search-box input:not(:placeholder-shown) ~ .clear-btn {
  display: block;
}
.search-box input:not(:placeholder-shown) {
  padding-right: 44px;
}

/* 2. 筛选栏sticky吸顶 */
.sticky-filter-container {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-alpha);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--border);
  padding: 12px 0 8px;
  margin: 0 -24px 16px;
  padding-left: 24px;
  padding-right: 24px;
  transition: all 0.3s ease;
}
.sticky-filter-container.not-stuck {
  position: static;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  margin: 0 0 16px;
  padding: 0;
}

/* 3. 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 140px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 16px;
  cursor: pointer;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}
.back-to-top:hover {
  background: var(--accent);
  color: var(--bg);
  transform: scale(1.1);
}
.back-to-top.show {
  display: flex;
}

/* 4. 左右滑动切换tab视觉反馈 */
.tabs {
  position: relative;
  overflow: hidden;
}
.swipe-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(200,166,110,0.1) 0%, 
    transparent 20%, 
    transparent 80%, 
    rgba(200,166,110,0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.swipe-indicator.active {
  opacity: 1;
}

/* 板块和展区按钮样式 */
.sdot { display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:4px;vertical-align:middle; }
.sector-pill-btn, .hall-pill-btn {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: none;
  color: var(--text2);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.sector-pill-btn:hover, .hall-pill-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sector-pill-btn.active, .hall-pill-btn.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.sector-pill-btn .count, .hall-pill-btn .count {
  font-size: 10px;
  opacity: 0.8;
}

.sector-pill-btn.active .count, .hall-pill-btn.active .count {
  opacity: 1;
}
@media (max-width: 480px) {
  .header h1 { font-size: 22px; }
  .card { padding: 16px; }
}
.shortlist-btn { background: none; border: none; cursor: pointer; padding: 4px 8px; transition: transform 0.2s; color: var(--red); }
.shortlist-btn:hover { transform: scale(1.1); }
.shortlist-btn svg { width: 18px; height: 18px; }
.priority-select { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 12px; padding: 4px 8px; }
.shortlist-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 20px; }
.shortlist-stat { background: none; border: none; border-right: .5px solid var(--border); padding: 12px; text-align: center; }
.shortlist-stat:last-child { border-right: none; }
.shortlist-stat .num { font-size: 24px; font-weight: 400; color: var(--text); font-family: 'Playfair Display', Georgia, serif; }
.shortlist-stat .label { font-size: 11px; color: var(--text2); margin-top: 2px; }
.shortlist-actions { display: flex; gap: 8px; margin-bottom: 20px; }
.shortlist-actions button { flex: 1; padding: 12px; background: none; border: .5px solid var(--border); border-radius: 4px; color: var(--text); font-size: 13px; cursor: pointer; transition: all 0.2s; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; }
.shortlist-actions button:hover { border-color: var(--accent); }
.budget-bar { height: 32px; border-radius: 8px; overflow: hidden; display: flex; margin-bottom: 16px; }
.budget-segment { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; transition: width 0.3s; }
.status-badge { font-size: 10px; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.status-purchased { background: rgba(74,222,128,0.15); color: var(--green); border: 1px solid rgba(74,222,128,0.3); }
.status-negotiating { background: rgba(200,169,110,0.2); color: var(--accent2); border: 1px solid var(--accent); }
.status-wishlist { background: rgba(96,165,250,0.15); color: var(--blue); border: 1px solid rgba(96,165,250,0.3); }
.status-passed { background: rgba(153,153,153,0.15); color: var(--text2); border: 1px solid rgba(153,153,153,0.3); }
.add-item-form { background: none; border: .5px solid var(--border); border-radius: 4px; padding: 20px; margin-bottom: 16px; }
.add-item-form input, .add-item-form select { width: 100%; padding: 10px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; outline: none; margin-bottom: 10px; }
.add-item-form input:focus, .add-item-form select:focus { border-color: var(--accent); }
.gallery-suggestions { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; max-height: 150px; overflow-y: auto; margin-top: -8px; margin-bottom: 10px; }
.gallery-suggestions div { padding: 8px 12px; font-size: 13px; cursor: pointer; }
.gallery-suggestions div:hover { background: var(--accent); color: var(--bg); }
.budget-chart-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.budget-chart-label { font-size: 12px; color: var(--text2); width: 60px; flex-shrink: 0; text-align: right; }
.budget-chart-bar-bg { flex: 1; height: 20px; background: var(--surface2); border-radius: 4px; overflow: hidden; position: relative; }
.budget-chart-bar { height: 100%; border-radius: 4px; transition: width 0.3s; }
.budget-chart-pct { font-size: 11px; color: var(--text2); width: 40px; flex-shrink: 0; }
.note-card { background: none; border: none; border-bottom: .5px solid var(--border); border-radius: 0; overflow: hidden; margin-bottom: 0; cursor: pointer; transition: border-color 0.2s; }
.note-card:hover { border-color: var(--accent); }
.note-card-body { padding: 14px; }
.note-thumb { width: 100%; max-height: 200px; object-fit: cover; }
.note-tag { font-size: 10px; padding: 2px 8px; border-radius: 20px; cursor: pointer; display: inline-block; margin: 2px; }
.note-tag.active { background: var(--accent); color: var(--bg); }
.note-tag-感兴趣 { background: rgba(96,165,250,0.15); color: var(--blue); border: 1px solid rgba(96,165,250,0.3); }
.note-tag-要跟进 { background: rgba(200,169,110,0.2); color: var(--accent2); border: 1px solid var(--accent); }
.note-tag-已报价 { background: rgba(74,222,128,0.15); color: var(--green); border: 1px solid rgba(74,222,128,0.3); }
.note-tag-有折扣 { background: rgba(248,113,113,0.15); color: var(--red); border: 1px solid rgba(248,113,113,0.3); }
.note-tag-限量 { background: rgba(168,85,247,0.15); color: #a855f7; border: 1px solid rgba(168,85,247,0.3); }
.note-tag-已售 { background: rgba(153,153,153,0.15); color: var(--text2); border: 1px solid rgba(153,153,153,0.3); }
.fab { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--bg); font-size: 28px; border: none; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15); z-index: 100; display: none; }
.note-form-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.note-form { background: var(--bg); border-top: .5px solid var(--accent); border-radius: 16px 16px 0 0; padding: 20px; width: 100%; max-width: 768px; max-height: 90vh; overflow-y: auto; }
.note-form input, .note-form textarea { width: 100%; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; outline: none; margin-bottom: 10px; font-family: inherit; }
.note-form input:focus, .note-form textarea:focus { border-color: var(--accent); }
.note-detail-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg); z-index: 200; overflow-y: auto; padding: 24px; }
.note-gallery-suggestions { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; max-height: 120px; overflow-y: auto; margin-top: -8px; margin-bottom: 10px; }
.note-gallery-suggestions div { padding: 8px 12px; font-size: 13px; cursor: pointer; }
.note-gallery-suggestions div:hover { background: var(--accent); color: var(--bg); }
.timeline-day { display: flex; gap: 12px; padding: 12px 0; background: none; border: none; border-bottom: .5px solid var(--border); border-radius: 0; margin-bottom: 0; align-items: center; }
.timeline-date { flex-shrink: 0; width: 60px; text-align: center; }
.timeline-date .day { font-size: 24px; font-weight: 400; color: var(--text); font-family: 'Playfair Display', Georgia, serif; }
.timeline-date .weekday { font-size: 11px; color: var(--text2); }
.timeline-body { flex: 1; }
.timeline-day.today { border-bottom-color: var(--accent); }
.timeline-day.past { opacity: 0.5; }
.event-type-badge { font-size: 10px; padding: 2px 8px; border-radius: 20px; display: inline-block; }
#artweek-list .card-title { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; font-size: 14px; font-weight: 600; }
#artweek-list .card { border-radius: 8px; border: .5px solid var(--border); }
#artweek-list .expand-row { font-size: 13px; color: var(--text); line-height: 1.6; }
#artweek-list .expand-row strong { color: var(--text2); font-weight: 500; font-size: 12px; }
#artweek-list .expand-desc { font-size: 13px; color: var(--text); line-height: 1.6; }
.event-type-fair { background: rgba(200,169,110,0.2); color: var(--accent2); border: 1px solid var(--accent); }
.event-type-exhibition { background: rgba(96,165,250,0.15); color: var(--blue); border: 1px solid rgba(96,165,250,0.3); }
.event-type-opening { background: rgba(74,222,128,0.15); color: var(--green); border: 1px solid rgba(74,222,128,0.3); }
.event-type-auction { background: rgba(248,113,113,0.15); color: var(--red); border: 1px solid rgba(248,113,113,0.3); }
.event-type-talk { background: rgba(168,85,247,0.15); color: #a855f7; border: 1px solid rgba(168,85,247,0.3); }
.event-type-party { background: rgba(251,191,36,0.15); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.event-type-shenzhen { background: rgba(6,182,212,0.15); color: #06b6d4; border: 1px solid rgba(6,182,212,0.3); }
.section-toggle { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.section-toggle .arrow { transition: transform 0.2s; }
.section-toggle.collapsed .arrow { transform: rotate(-90deg); }
.contact-badge { font-size: 10px; padding: 1px 6px; border-radius: 10px; background: var(--surface2); color: var(--text2); border: 1px solid var(--border); display: inline-block; }
.auction-highlights-toggle { display:flex; justify-content:space-between; align-items:center; margin-top:10px; padding:8px 12px; background:var(--card2,rgba(248,113,113,0.06)); border:1px solid rgba(248,113,113,0.15); border-radius:8px; cursor:pointer; font-size:13px; color:var(--red); font-weight:600; }
.auction-highlights-toggle:active { opacity:0.7; }
.auction-highlights-toggle .arrow { font-size:11px; transition:transform .2s; }
.auction-highlights { margin-top:8px; display:flex; flex-direction:column; gap:6px; }
.auction-lot { padding:8px 12px; background:var(--card2,rgba(255,255,255,0.03)); border-radius:8px; border-left:3px solid var(--red); }
.lot-header { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.lot-artist { font-size:13px; font-weight:700; color:var(--text1); }
.lot-estimate { font-size:11px; color:var(--red); font-weight:600; white-space:nowrap; }
.lot-title { font-size:12px; color:var(--text2); margin-top:2px; }
.lot-note { font-size:11px; color:var(--text2); opacity:0.7; margin-top:2px; font-style:italic; }
.ics-btn { background: none; border: 1px solid var(--accent); color: var(--accent); border-radius: 6px; padding: 4px 10px; font-size: 11px; cursor: pointer; }
.ics-btn:hover { background: var(--accent); color: var(--bg); }
.sched-form-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.sched-form { background: var(--bg); border-top: .5px solid var(--accent); border-radius: 16px 16px 0 0; padding: 20px; width: 100%; max-width: 768px; max-height: 90vh; overflow-y: auto; }
.sched-form input, .sched-form textarea, .sched-form select { width: 100%; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; outline: none; margin-bottom: 10px; font-family: inherit; }
.sched-form input:focus, .sched-form textarea:focus, .sched-form select:focus { border-color: var(--accent); }
.sched-gallery-suggestions { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; max-height: 120px; overflow-y: auto; margin-top: -8px; margin-bottom: 10px; }
.sched-gallery-suggestions div { padding: 8px 12px; font-size: 13px; cursor: pointer; }
.sched-gallery-suggestions div:hover { background: var(--accent); color: var(--bg); }
.district-card { background: none; border: .5px solid var(--border); border-radius: 4px; padding: 16px; cursor: pointer; transition: border-color 0.2s; }
.district-card:hover { border-color: var(--accent); }
.district-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.district-row { padding: 14px 0; border-bottom: .5px solid var(--border); cursor: pointer; transition: background 0.15s; }
.district-row:hover { background: var(--surface); }
.district-row .district-arrow { transition: transform 0.2s; display: inline-block; }
.district-row.active .district-arrow { transform: rotate(90deg); }
.space-card { background: none; border: none; border-bottom: .5px solid var(--border); border-radius: 0; padding: 14px 0; margin-bottom: 0; }
.space-type-badge { font-size: 10px; padding: 2px 8px; border-radius: 20px; display: inline-block; }
.space-type-gallery { background: rgba(200,169,110,0.2); color: var(--accent2); border: 1px solid var(--accent); }
.space-type-museum { background: rgba(96,165,250,0.15); color: var(--blue); border: 1px solid rgba(96,165,250,0.3); }
.space-type-artspace { background: rgba(74,222,128,0.15); color: var(--green); border: 1px solid rgba(74,222,128,0.3); }
.space-type-institution { background: rgba(168,85,247,0.15); color: #a855f7; border: 1px solid rgba(168,85,247,0.3); }
.space-type-auction { background: rgba(248,113,113,0.15); color: var(--red); border: 1px solid rgba(248,113,113,0.3); }
.space-type-fair { background: rgba(251,191,36,0.15); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.abhk-badge { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: rgba(200,169,110,0.15); color: var(--accent); border: 1px solid var(--accent); }
.maps-btn { background: none; border: 1px solid var(--blue); color: var(--blue); border-radius: 6px; padding: 3px 8px; font-size: 11px; cursor: pointer; text-decoration: none; display: inline-block; }
.maps-btn:hover { background: var(--blue); color: var(--bg); }
.route-card { background: none; border: none; border-bottom: .5px solid var(--border); border-radius: 0; padding: 20px 0; margin-bottom: 0; }
.route-stop { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; }
.route-num { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--bg); font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.route-connector { width: 2px; background: var(--border); margin: 2px 0 2px 11px; height: 16px; }
.artmap-filters { position: sticky; top: 0; z-index: 50; background: var(--bg); padding: 12px 0; margin-bottom: 16px; }
.artmap-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; font-size: 13px; color: var(--text2); }
.artmap-stats span { color: var(--accent2); font-weight: 600; }
.tier-badge-small { font-size: 9px; padding: 1px 6px; border-radius: 10px; display: inline-block; }
.tier-mega { background: rgba(200,169,110,0.2); color: var(--accent2); border: 1px solid var(--accent); }
.tier-established { background: rgba(220,160,80,0.2); color: #dc9f50; border: 1px solid rgba(220,160,80,0.4); }
.tier-mid-tier { background: rgba(96,165,250,0.15); color: var(--blue); border: 1px solid rgba(96,165,250,0.3); }
.tier-emerging { background: rgba(74,222,128,0.15); color: var(--green); border: 1px solid rgba(74,222,128,0.3); }
.tier-institutional { background: rgba(160,120,200,0.2); color: #a078c8; border: 1px solid rgba(160,120,200,0.4); }
@media (max-width: 480px) { .district-grid { grid-template-columns: 1fr; } }
.route-builder-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-alpha); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: .5px solid var(--accent); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; z-index: 99; max-width: 768px; margin: 0 auto; }
.route-builder-bar .count { font-size: 14px; color: var(--accent2); }
.route-builder-bar .gen-btn { background: var(--accent); color: var(--bg); border: none; border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer; }
.space-select-btn { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); background: none; color: var(--text2); font-size: 13px; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.space-select-btn.selected { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.route-panel { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.route-panel-content { background: var(--bg); border-radius: 16px 16px 0 0; max-width: 768px; width: 100%; max-height: 80vh; overflow-y: auto; padding: 24px 16px; }
.route-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; background: none; border: none; border-bottom: .5px solid var(--border); border-radius: 0; margin-bottom: 0; }
.route-item-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--bg); font-size: 13px; display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.route-item-info { flex: 1; min-width: 0; }
.route-item-info .name { font-weight: 600; font-size: 14px; }
.route-item-info .detail { font-size: 12px; color: var(--text2); }
.route-item-move { display: flex; flex-direction: column; gap: 2px; }
.route-item-move button { background: none; border: none; color: var(--text2); cursor: pointer; font-size: 14px; padding: 2px; }
.route-item-move button:hover { color: var(--accent); }
.route-item-remove { background: none; border: none; color: var(--red); cursor: pointer; font-size: 18px; padding: 4px; flex-shrink: 0; }
.space-card.route-selected { border-color: var(--accent) !important; }
.trending-scroll { display: flex; gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; scrollbar-width: none; }
.trending-scroll::-webkit-scrollbar { display: none; }
.trending-card { flex-shrink: 0; width: 130px; background: none; border: .5px solid var(--border); border-radius: 4px; padding: 10px; cursor: pointer; transition: border-color 0.2s; }
.trending-card:hover { border-color: var(--accent); }
.trending-rank { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.trending-rank.gold { color: #fbbf24; }
.trending-rank.silver { color: #9ca3af; }
.trending-rank.bronze { color: #b45309; }
.trending-hearts { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--red); margin-top: 6px; }
.trending-hearts span { animation: heartPulse 2s infinite; }
@keyframes heartPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 4px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-scroll { display: flex; gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 10px; margin-bottom: 20px; scrollbar-width: none; }
.hero-scroll::-webkit-scrollbar { display: none; }
.hero-card { flex-shrink: 0; width: 280px; background: none; border: none; border-left: 1px solid var(--accent); border-radius: 0; padding: 0 0 0 18px; }
.hero-card .hero-title { font-size: 15px; font-weight: 400; margin-bottom: 8px; }
.hero-card .hero-desc { font-size: 12px; color: var(--text2); line-height: 1.6; }
.hero-card .hero-source { margin-top: 10px; font-size: 11px; }
.hero-card .hero-source a { color: var(--accent); text-decoration: none; }
.artist-grid { display: grid; gap: 8px; margin-bottom: 16px; }
.artist-rec { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; background: none; border: none; border-bottom: .5px solid var(--border); border-radius: 0; }
.artist-rec .signal-dot { margin-top: 4px; }
.artist-rec-name { font-size: 14px; font-weight: 600; cursor: pointer; color: var(--accent2); }
.artist-rec-name:hover { color: var(--accent); }
.artist-rec-gallery { font-size: 12px; color: var(--accent); }
.artist-rec-reason { font-size: 12px; color: var(--text2); margin-top: 2px; line-height: 1.5; }
.highlights-subsection { margin-bottom: 20px; }
.highlights-subtitle { font-family: 'Playfair Display', Georgia, serif; font-size: 15px; font-weight: 400; color: var(--text); margin-bottom: 12px; letter-spacing: .5px; }
.highlights-grid { display: grid; gap: 10px; }
@media (min-width: 500px) { .highlights-grid { grid-template-columns: 1fr 1fr; } }
.highlight-mini { background: none; border: none; border-bottom: .5px solid var(--border); border-radius: 0; padding: 14px 0; }
.highlight-mini-title { font-size: 14px; font-weight: 400; margin-bottom: 4px; }
.highlight-mini-text { font-size: 12px; color: var(--text2); line-height: 1.5; }

/* Leaflet Interactive Art Map */
.art-map-leaflet-container { 
  width: 100%; 
  margin-bottom: 32px; 
  border: .5px solid var(--border); 
  border-radius: 8px; 
  background: var(--surface); 
  padding: 16px; 
  box-sizing: border-box; 
}

#art-map-leaflet { 
  position: relative; 
  width: 100%; 
  height: 50vh;
  min-height: 300px; 
  max-height: 500px; 
  border-radius: 8px;
  border: 1px solid var(--border2);
  z-index: 1;
}

@media (max-width: 480px) { 
  #art-map-leaflet { height: 40vh; min-height: 250px; }
  .art-map-leaflet-container { padding: 12px; margin-bottom: 24px; }
}

.map-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: .5px;
}

/* Custom Leaflet popup styling */
.leaflet-popup-content-wrapper {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  border: 1px solid var(--border2) !important;
}

.leaflet-popup-content {
  margin: 12px 14px !important;
  color: var(--text) !important;
  line-height: 1.6 !important;
}

.leaflet-popup-tip {
  background: var(--surface) !important;
  border: 1px solid var(--border2) !important;
  border-top: none !important;
  border-right: none !important;
}

.leaflet-popup .popup-gallery-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.leaflet-popup .popup-gallery-name-zh {
  font-size: 12px;
  color: var(--text2);
  font-weight: normal;
}

.leaflet-popup .popup-address {
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 6px;
}

.leaflet-popup .popup-type {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 12px;
  margin-right: 4px;
  margin-bottom: 6px;
}

.popup-type-gallery {
  background: rgba(200,169,110,0.2);
  color: var(--accent2);
  border: 1px solid var(--accent);
}

.popup-type-museum {
  background: rgba(96,165,250,0.15);
  color: var(--blue);
  border: 1px solid rgba(96,165,250,0.3);
}

.popup-type-artspace {
  background: rgba(74,222,128,0.15);
  color: var(--green);
  border: 1px solid rgba(74,222,128,0.3);
}

.popup-type-institution {
  background: rgba(168,85,247,0.15);
  color: #a855f7;
  border: 1px solid rgba(168,85,247,0.3);
}

.popup-abhk-badge {
  background: rgba(200,169,110,0.2);
  color: var(--accent2);
  border: 1px solid var(--accent);
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 8px;
  display: inline-block;
  margin-left: 4px;
}

/* District markers styling */
.district-marker {
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 50%;
  color: var(--bg);
  font-weight: 600;
  text-align: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.district-marker:hover {
  background: var(--accent2);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.district-marker.selected {
  background: var(--accent2);
  border-width: 3px;
  transform: scale(1.2);
}

/* Gallery markers by district colors */
.marker-central { background: #e74c3c; }
.marker-sheungwan { background: #3498db; }
.marker-wongchukhang { background: #2ecc71; }
.marker-westkowloon { background: #f39c12; }
.marker-wanchai { background: #9b59b6; }
.marker-tst { background: #e91e63; }
.marker-southisland { background: #00bcd4; }

/* Leaflet control styling */
.leaflet-control-zoom a {
  background-color: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

.leaflet-control-zoom a:hover {
  background-color: var(--accent) !important;
  color: var(--bg) !important;
}

/* Auth UI */
.auth-bar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 8px 0; margin-bottom: -8px; }
.auth-bar .user-info { font-size: 12px; color: var(--text2); display: flex; align-items: center; gap: 6px; }
.auth-bar .user-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.auth-bar button { background: none; border: .5px solid var(--border); border-radius: 4px; padding: 4px 12px; font-size: 11px; color: var(--text2); cursor: pointer; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; transition: all .2s; }
.auth-bar button:hover { border-color: var(--accent); color: var(--accent); }
.auth-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-modal { background: var(--bg); border: .5px solid var(--border); border-radius: 8px; padding: 32px 24px; width: 100%; max-width: 380px; }
.auth-modal h2 { font-family: 'Playfair Display', serif; font-size: 20px; text-align: center; margin-bottom: 20px; font-weight: 400; }
.auth-modal input { width: 100%; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; outline: none; margin-bottom: 12px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; box-sizing: border-box; }
.auth-modal input:focus { border-color: var(--accent); }
.auth-modal .auth-submit { width: 100%; padding: 12px; background: var(--accent); color: var(--bg); border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 4px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; }
.auth-modal .auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-modal .auth-switch { text-align: center; margin-top: 16px; font-size: 12px; color: var(--text2); }
.auth-modal .auth-switch a { color: var(--accent); cursor: pointer; text-decoration: none; }
.auth-modal .auth-error { color: var(--red); font-size: 12px; text-align: center; margin-bottom: 8px; min-height: 18px; }
.auth-modal .auth-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: var(--text2); font-size: 20px; cursor: pointer; }
.sync-indicator { font-size: 10px; color: var(--green); display: inline-flex; align-items: center; gap: 4px; }
.sync-indicator.syncing { color: var(--accent); }
.sync-indicator.error { color: var(--red); }

/* ========== 日程篮样式 ========== */
.calendar-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--bg-alpha);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}

.cart-export-quick-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.calendar-cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.calendar-cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.calendar-cart-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  max-height: 70vh;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.calendar-cart-overlay.active .calendar-cart-panel {
  transform: translateY(0);
}

.cart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.cart-panel-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.cart-panel-content {
  overflow-y: auto;
  max-height: calc(70vh - 120px);
}

.cart-date-group {
  margin-bottom: 20px;
}

.cart-date-header {
  padding: 12px 20px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
}

.cart-event-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border2);
}

.cart-event-info {
  flex: 1;
  min-width: 0;
}

.cart-event-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.cart-event-details {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.4;
}

.cart-remove-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  border: none;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 12px;
}

.cart-panel-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.cart-export-btn {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* 添加按钮样式 */
.event-add-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border2);
  background: transparent;
  color: var(--text2);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.event-add-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.event-add-btn.in-cart {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.timeline-add-btn {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* 横滑区域卡片样式 */
.district-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 12px;
  scrollbar-width: none;
}
.district-scroll::-webkit-scrollbar { 
  display: none; 
}
.district-scroll-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.district-scroll-card:hover,
.district-scroll-card.active {
  border-color: var(--accent);
}