:root {
  --bg: #f3f5f3; --card: #ffffff; --ink: #14201b; --muted: #68766f; --line: #e2e8e3;
  --brand: #0c3b2e; --accent: #1a9e6b; --up: #c0392b; --down: #1a9e6b; --warn: #b7791f;
  /* A股习惯：红涨绿跌，与 Rui 其他工具的用户群一致 */
  --gain: #c0392b; --loss: #1a9e6b;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--ink); display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
header { flex: none; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--brand); color: #fff; }
.brand { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.brand-en { font-weight: 800; font-size: 19px; letter-spacing: .2px; }
.brand-zh { font-weight: 700; font-size: 16px; color: #9fe8c6; }
.brand small { width: 100%; font-size: 11px; color: #bcd8cc; }
.ghost { background: transparent; border: 1px solid #ffffff55; color: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; }
main { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; width: 100%; }
#app { max-width: 720px; margin: 0 auto; padding: 14px 14px 8px; }
h2 { margin: 4px 0 2px; font-size: 21px; }
h3 { margin: 2px 0 6px; font-size: 16px; }
h4 { margin: 14px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--brand); }
p { margin: 4px 0; line-height: 1.55; font-size: 14.5px; }
.sub { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.muted, .wdate { color: var(--muted); font-size: 12px; }
.muted-p { color: #44524b; font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 12px; box-shadow: 0 1px 3px rgba(12, 59, 46, .05); }
.banner { background: #fdf6e0; border: 1px solid #ecd9a0; color: #6b5310; border-radius: 10px; padding: 9px 12px; font-size: 13px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 2px; }
.pick-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ticker { font-weight: 800; font-size: 17px; }
.ticker.big { font-size: 22px; }
.company { color: var(--muted); font-size: 14px; margin-left: 4px; }
.pick-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.tag { background: #e7f4ec; color: var(--brand); font-size: 12px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.verdict { color: var(--warn); font-weight: 700; font-size: 13px; }
.side { font-size: 11px; font-weight: 800; letter-spacing: .4px; padding: 2px 8px; border-radius: 999px; color: #fff; }
.side-buy { background: var(--brand); }
.side-hold { background: #8a6d1d; }
.side-sell { background: #a02c22; }
.take { font-size: 15px; font-weight: 600; line-height: 1.5; margin: 10px 0 2px; }
.outlook { margin-top: 10px; background: #f7f9f7; border: 1px solid #e3eae3; border-radius: 10px; padding: 10px 12px; }
.outlook-h { font-size: 12px; font-weight: 700; color: #55645a; margin-bottom: 8px; }
.outlook-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.oc { display: flex; flex-direction: column; gap: 1px; border-left: 3px solid #ccc; padding-left: 8px; min-width: 0; }
.oc span { font-size: 11px; color: #77857b; }
.oc strong { font-size: 14px; white-space: nowrap; }
.oc small { font-size: 11px; color: #66756b; line-height: 1.35; }
.oc.bull { border-color: #b3372f; } .oc.bull strong { color: #b3372f; }
.oc.base { border-color: #b9a44a; } .oc.base strong { color: #6d5f14; }
.oc.bear { border-color: #1e8449; } .oc.bear strong { color: #1e8449; }
.rough { font-size: 11px; color: #8b968e; margin: 8px 0 0; }
.detail-btn { margin-top: 10px; }
.detail.hidden { display: none; }
.detail { margin-top: 6px; border-top: 1px dashed #dde5dd; }
.mini { margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; color: var(--brand); }
.mini.on { background: #e7f4ec; border-color: #bfe3cf; }
.qchip { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.qchip.muted { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.qchip.accent { color: var(--warn); }
.up { color: var(--gain); } .down { color: var(--loss); }
ul.cats, ul.risks { margin: 4px 0; padding-left: 18px; }
ul.cats li, ul.risks li { font-size: 14px; line-height: 1.55; margin: 3px 0; }
.cat-when { display: inline-block; font-weight: 700; color: var(--brand); margin-right: 6px; }
.latest { margin-top: 12px; background: #f4f8f5; border-radius: 10px; padding: 8px 10px; }
.latest-tag { font-size: 11.5px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .5px; }
.latest p { font-size: 13.5px; }
.addform { display: flex; gap: 8px; margin: 10px 0 12px; }
.addform input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; text-transform: uppercase; }
.addform button { padding: 10px 16px; border: none; border-radius: 10px; background: var(--brand); color: #fff; font-size: 14.5px; font-weight: 600; }
.addform .ghost2 { background: #fff; color: var(--brand); border: 1px solid var(--line); }
.wrow { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.wleft { display: flex; flex-direction: column; min-width: 86px; }
.wright { margin-left: auto; text-align: right; font-size: 13px; }
.wprice { font-size: 16.5px; font-weight: 800; }
.wstate { font-weight: 700; color: var(--muted); font-size: 13.5px; }
.wrow .x { border: none; background: transparent; color: var(--muted); font-size: 15px; padding: 6px; }
.empty { color: var(--muted); text-align: center; padding: 26px 10px; }
.src { color: var(--muted); font-size: 12px; text-align: center; }
.tagline { font-size: 15px; font-weight: 600; margin-top: 2px; }
.chips { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 6px 0 2px; }
.fact { display: flex; flex-direction: column; border-top: 1px dashed var(--line); padding-top: 6px; }
.fact span { font-size: 12px; color: var(--muted); }
.fact strong { font-size: 14px; line-height: 1.45; }
.fact:last-child { grid-column: 1 / -1; }
.twocol { display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 560px) { .twocol { grid-template-columns: 1fr 1fr; gap: 14px; } }
.mdate { display: flex; justify-content: space-between; align-items: center; color: var(--brand); font-weight: 700; font-size: 13.5px; }
.langrow { display: flex; gap: 10px; margin: 6px 0 4px; }
.langopt { flex: 1; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 15px; font-weight: 600; }
.langopt.on { background: var(--brand); color: #fff; border-color: var(--brand); }
footer#disclaimer { max-width: 720px; margin: 0 auto; padding: 6px 18px 20px; color: var(--muted); font-size: 11.5px; line-height: 1.5; display: flex; flex-direction: column; gap: 2px; }
nav#tabbar { flex: none; z-index: 6; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
nav#tabbar button { flex: 1; border: none; background: transparent; padding: 12px 2px 10px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
nav#tabbar button.on { color: var(--brand); box-shadow: inset 0 2px 0 var(--brand); }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #14201b; color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 13.5px; z-index: 9; }
.hidden { display: none !important; }
