@font-face { font-family: "CardPi WenKai"; src: url("LXGWWenKai-CardPi.woff2") format("woff2"); font-display: swap; }
:root { --body-zh: "CardPi WenKai", "Minimal LXGW WenKai", "Kaiti SC", serif; }
button,input,select,textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .35; }
[hidden] { display: none !important; }
.site-header { padding-block: 1.1rem .8rem; }
.text-button { background: none; border: 0; padding: .4rem 0; font-size: .75rem; text-underline-offset: 4px; }
.text-button:hover { text-decoration: underline; }
.presentation { display: flex; justify-content: center; padding: 1.6rem 0 2rem; }
.iphone-shell { position: relative; width: 410px; height: clamp(680px, calc(100svh - 150px), 840px); border: 7px solid #282a26; border-radius: 48px; padding: 3px; background: #282a26; box-shadow: 0 22px 50px -34px #191a1755; }
.iphone-shell::before { content: ''; position: absolute; width: 3px; height: 48px; left: -10px; top: 105px; border-radius: 2px; background: #282a26; }
.iphone-shell::after { content: ''; position: absolute; width: 3px; height: 64px; right: -10px; top: 160px; border-radius: 2px; background: #282a26; }
.iphone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 36px; display: flex; flex-direction: column; background: #f8f8f3; }
.phone-status { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; height: 41px; padding: 4px 24px 0; position: relative; font: 600 11px Georgia,serif; }
.dynamic-island { position: absolute; width: 90px; height: 24px; border-radius: 20px; left: 50%; top: 7px; transform: translateX(-50%); background: #20221f; }
.phone-indicators svg { display: block; width: 35px; height: 12px; }
.home-indicator { position: absolute; bottom: 13px; left: 50%; transform: translateX(-50%); width: 105px; height: 4px; border-radius: 4px; background: #292b27; pointer-events: none; }
.chat-window { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; padding-bottom: 18px; }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .55rem 1rem .4rem; }
.chat-header h1 { font: 400 1.8rem/1.2 var(--display-en); margin: 0; }
.chat-header span { color: var(--muted); font-size: .62rem; }
.header-actions { display: flex; gap: .9rem; align-items: center; }
.header-actions button { font-size: .65rem; }
.chat-transcript { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1rem; scrollbar-width: thin; scroll-behavior: auto; }
.message { margin-bottom: 1.3rem; animation: message-in 180ms ease-out; }
.message-user { max-width: 90%; margin-left: auto; }
.message-author { display: block; font-size: .6rem; color: var(--muted); margin-bottom: .4rem; }
.message-user .message-author { text-align: right; }
.bubble { font-size: .86rem; line-height: 1.8; overflow-wrap: anywhere; }
.bubble p { margin: 0 0 .75rem; }
.bubble p:last-child { margin-bottom: 0; }
.bubble h3 { font-size: .94rem; font-weight: 500; margin: .2rem 0 .75rem; }
.message-user .bubble { background: #e8e9df; padding: .75rem .85rem; border-radius: 13px 13px 3px 13px; }
.attachment { display: flex; gap: .8rem; align-items: center; padding-bottom: .85rem; margin-bottom: .85rem; border-bottom: 1px solid var(--rule); }
.attachment strong { font-size: .78rem; font-weight: 400; }
.attachment small { display: block; font-size: .62rem; line-height: 1.6; color: var(--muted); }
.news-item a { text-decoration: underline; text-underline-offset: 3px; }
.card-crop { width: 96px; aspect-ratio: .712; position: relative; overflow: hidden; flex-shrink: 0; }
.card-crop img { width: 160%; height: auto; max-width: none; position: absolute; left: -29.6%; top: -17%; }
.image-fallback { font-size: .7rem; }
.compact-note,.source-meta { color: var(--muted); font-size: .69rem !important; line-height: 1.65 !important; }
.sales-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .72rem; line-height: 1.55; margin: .85rem 0; font-variant-numeric: tabular-nums; }
.sales-table th { color: var(--muted); font-weight: 400; text-align: left; }
.sales-table th,.sales-table td { border-bottom: 1px solid var(--rule); padding: .65rem .25rem; vertical-align: top; overflow-wrap: anywhere; }
.sales-table th:first-child { width: 24%; }
.sales-table th:last-child { width: 26%; }
.sales-table td:last-child,.sales-table th:last-child { text-align: right; }
.sales-table small { display: block; color: var(--muted); font-size: .65rem; margin-top: .25rem; }
.bubble .text-button { text-align: left; text-decoration: underline; font-size: .7rem; }
.news-item { margin: 1rem 0; }
.news-item time { display: block; font-size: .66rem; color: var(--muted); }
.composer { flex-shrink: 0; border-top: 1px solid var(--rule); padding: .65rem .85rem; background: var(--paper); }
.reply-composer { display: flex; align-items: flex-end; gap: .6rem; padding: .7rem; border: 1px solid var(--rule); border-radius: 16px; background: #f8f8f3; }
.reply-text { flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; resize: none; font-size: .8rem; line-height: 1.65; cursor: default; }
.reply-composer:focus-within { border-color: var(--ink); }
.reply-text:focus-visible { outline: none; }
.send-button { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 1rem; }
.send-button:hover { background: #41443a; }
.phone-panel { position: absolute; z-index: 2; inset: 41px 0 19px; display: flex; flex-direction: column; background: #f8f8f3; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .8rem 1rem; border-bottom: 1px solid var(--rule); }
.drawer-header h2 { font-weight: 400; font-size: 1rem; margin: 0; }
.drawer-header > div { display: flex; gap: .65rem; align-items: center; }
.drawer-header button { font-size: .65rem; }
#drawer-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .5rem 1rem 1rem; font-size: .8rem; line-height: 1.75; scrollbar-width: thin; }
#drawer-body h3 { font-size: .94rem; font-weight: 400; margin: 1.5rem 0 .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes message-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media(max-width:600px) {
 :root { --page-pad: 1rem; }
 .site-header { padding-block: .75rem .55rem; }
 .site-name { font-size: 1.5rem; }
 .presentation { padding: .9rem 0 1.1rem; }
 .iphone-shell { width: min(410px,100%); height: max(640px,calc(100svh - 115px)); border-width: 6px; border-radius: 40px; }
 .iphone-screen { border-radius: 30px; }
 .chat-transcript { padding: .85rem; }
 .bubble { font-size: .83rem; }
 .header-actions { gap: .55rem; }
 .sales-table { font-size: .68rem; }
 .card-crop { width: 82px; }
}
@media(prefers-reduced-motion:reduce) { .message { animation: none; } }

.chat-header { border-bottom: 1px solid var(--rule); padding-bottom: .8rem; }
.icon-button { background: none; border: 0; padding: .25rem; font-size: 1.1rem !important; line-height: 1; }
.answer-section + .answer-section { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.thinking { padding: .4rem 0 .8rem; }
.thinking-spinner { display: inline-block; width: 18px; height: 18px; border: 1.5px solid #d1d4c7; border-top-color: var(--ink); border-radius: 50%; animation: thinking-spin .8s linear infinite; }
.market-tabs { display: flex; gap: 1rem; margin: .5rem 0; }
.market-tabs [aria-pressed="true"] { border-bottom: 1px solid var(--ink); }
@keyframes thinking-spin { to { transform: rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .thinking-spinner { animation: none; } }
