/* 查手机·股票（0752/0753）/ 钱包（0754/0755）。页面由 ta-phone-finance.js 挂载，全部限定在 .fin-app 下。
   不画假状态栏：顶部只有 PhoneKit 的安全区占位。 */

.fin-app { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif; }
.fin-app svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:where(.fin-app) button { cursor: pointer; border: 0; background: none; padding: 0; }
.fin-app .fin-empty { margin: 60px 0; text-align: center; color: #8e8e93; font-size: 15px; }

/* ---------- 股票：深色 ---------- */
.fin-stocks { --up-red: #ff453a; --dn-green: #30d158; --fin-line: rgb(84 84 88 / 55%); --fin-gray: #8e8e93; background: #000; color: #fff; }
.fin-stocks .red { color: var(--up-red); }
.fin-stocks .green { color: var(--dn-green); }
.fin-stocks .flat { color: var(--fin-gray); }

.fin-head { flex: 0 0 auto; display: flex; align-items: flex-start; gap: 6px; padding: 6px 16px 10px 10px; }
.fin-back { width: 30px; height: 40px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.fin-back svg { width: 22px; height: 22px; stroke-width: 2.4; }
.fin-head h1 { flex: 1; margin: 0; display: flex; flex-direction: column; line-height: 1.08; }
.fin-head h1 b { font-size: 34px; font-weight: 700; letter-spacing: .2px; }
.fin-head h1 span { font-size: 34px; font-weight: 700; color: var(--fin-gray); letter-spacing: .2px; }
.fin-pill { height: 46px; padding: 0 6px; display: inline-flex; align-items: center; border-radius: 23px; background: #1c1c1e; box-shadow: inset 0 0 0 .5px rgb(255 255 255 / 10%); }
.fin-pill button { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; }
.fin-pill svg { width: 22px; height: 22px; stroke-width: 2.2; }
.fin-pill svg circle { fill: currentColor; stroke: none; }

.fin-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px calc(130px + var(--safe-bottom)); -webkit-overflow-scrolling: touch; }
.fin-list { border-top: .5px solid var(--fin-line); }
.fin-row { width: 100%; min-height: 72px; display: grid; grid-template-columns: minmax(0, 1fr) 70px auto; align-items: center; gap: 12px; border-bottom: .5px solid var(--fin-line); text-align: left; color: #fff; }
.fin-row-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fin-row-main b { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-row-main small { font-size: 15px; color: var(--fin-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-spark { width: 70px; height: 30px; }
.fin-spark .base { stroke: var(--fin-gray); stroke-width: .8; stroke-dasharray: 2 2; opacity: .7; }
.fin-row-price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.fin-row-price b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fin-chip { min-width: 70px; height: 26px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: flex-end; border-radius: 6px; font-style: normal; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: #fff !important; }
.fin-chip.red { background: var(--up-red); }
.fin-chip.green { background: var(--dn-green); }
.fin-chip.flat { background: #3a3a3c; }

.fin-news-sheet { position: absolute; left: 16px; right: 16px; bottom: calc(var(--safe-bottom) + 10px); z-index: 3; padding: 14px 18px 16px; border-radius: 22px; background: rgb(28 28 30 / 94%); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 -8px 30px rgb(0 0 0 / 50%); display: flex; flex-direction: column; gap: 2px; }
.fin-news-sheet strong { font-size: 22px; font-weight: 700; }
.fin-news-sheet small { font-size: 13px; color: var(--fin-gray); }
.fin-news-sheet p { margin: 8px 0 0; padding-top: 8px; border-top: .5px solid var(--fin-line); font-size: 15px; line-height: 1.35; color: #e5e5ea; }
.fin-grabber { display: block; width: 36px; height: 5px; margin: 0 auto 6px; border-radius: 3px; background: #48484a; }

/* 详情：顶部指数条 + 圆角深色 sheet */
.fin-strip { flex: 0 0 auto; display: flex; gap: 22px; padding: 4px 16px 12px; overflow-x: auto; scrollbar-width: none; }
.fin-strip::-webkit-scrollbar { display: none; }
.fin-strip-item { flex: 0 0 auto; display: flex; flex-direction: column; line-height: 1.25; font-variant-numeric: tabular-nums; }
.fin-strip-item b { font-size: 15px; font-weight: 600; }
.fin-strip-item span { font-size: 15px; }
.fin-strip-item i { font-style: normal; font-size: 15px; }
.fin-sheet { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 14px 14px 0 0; background: #1c1c1e; padding-top: 8px; }
.fin-sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 16px 10px; }
.fin-round { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #2c2c2e; color: #fff; }
.fin-round svg { width: 22px; height: 22px; stroke-width: 2.4; }
.fin-sheet .fin-pill { background: #2c2c2e; }
.fin-sheet-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px calc(30px + var(--safe-bottom)); }
.fin-ticker { margin: 0; padding-bottom: 8px; display: flex; align-items: baseline; gap: 14px; border-bottom: .5px solid var(--fin-line); }
.fin-ticker b { font-size: 40px; font-weight: 800; letter-spacing: .3px; white-space: nowrap; }
.fin-ticker span { min-width: 0; font-size: 15px; font-weight: 500; color: var(--fin-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-quote { margin: 10px 0 0; display: flex; align-items: baseline; gap: 14px; font-variant-numeric: tabular-nums; }
.fin-quote b { font-size: 18px; font-weight: 700; }
.fin-quote span { font-size: 17px; font-weight: 500; }
.fin-exch { margin: 4px 0 0; padding-bottom: 10px; font-size: 15px; color: var(--fin-gray); border-bottom: .5px solid var(--fin-line); }
.fin-holding { margin: 8px 0 0; font-size: 13px; color: #aeaeb2; }
.fin-periods { display: flex; justify-content: space-between; gap: 2px; margin: 10px 0 8px; padding-bottom: 8px; border-bottom: .5px solid var(--fin-line); }
.fin-periods button { flex: 1; height: 34px; border-radius: 17px; color: #fff; font-size: 14px; font-weight: 500; }
.fin-periods button.on { background: #3a3a3c; font-weight: 700; }
.fin-chart { position: relative; display: grid; grid-template-columns: 1fr 58px; height: 190px; }
.fin-chart-svg { width: 100%; height: 100%; overflow: visible; }
.fin-chart-svg .grid { stroke: #2c2c2e; stroke-width: 1; vector-effect: non-scaling-stroke; }
.fin-chart-svg .prev { stroke: var(--fin-gray); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.fin-chart-svg polyline { vector-effect: non-scaling-stroke; }
.fin-axis { position: relative; }
.fin-axis span { position: absolute; right: 0; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; transform: translateY(-50%); }
.fin-axis span:nth-child(1) { top: 15%; }
.fin-axis span:nth-child(2) { top: 40%; }
.fin-axis span:nth-child(3) { top: 65%; }
.fin-axis span:nth-child(4) { top: 90%; }
.fin-xlabels { display: grid; grid-template-columns: repeat(5, 1fr) 58px; padding: 4px 0 2px; border-top: .5px solid var(--fin-line); font-size: 13px; color: #d1d1d6; }
.fin-vol { display: block; width: calc(100% - 58px); height: 18px; fill: #8e8e93; }
.fin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 12px 0 6px; }
.fin-stats dl { margin: 0; padding: 0 10px; display: grid; grid-template-columns: auto 1fr; row-gap: 8px; column-gap: 4px; border-left: .5px solid var(--fin-line); }
.fin-stats dl:first-child { padding-left: 0; border-left: 0; }
.fin-stats dt { font-size: 13px; color: var(--fin-gray); white-space: nowrap; }
.fin-stats dd { margin: 0; text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-from { margin: 18px 0 8px; font-size: 15px; color: var(--fin-gray); }
.fin-news-card { margin-bottom: 10px; padding: 14px 16px; border-radius: 14px; background: #2c2c2e; display: flex; flex-direction: column; gap: 6px; }
.fin-news-card .src { font-size: 13px; font-weight: 700; color: #ff375f; }
.fin-news-card strong { font-size: 19px; font-weight: 700; line-height: 1.25; }
.fin-news-card small { font-size: 13px; color: var(--fin-gray); }

/* ---------- 钱包：浅色 ---------- */
.fin-wallet { background: #f7f7f7; color: #000; }
.fin-whead { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 4px 16px 0; }
.fin-wround { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #e9e9ee; color: #000; }
.fin-wround svg { width: 20px; height: 20px; stroke-width: 2.4; }
.fin-wtitle { flex: 0 0 auto; margin: 6px 0 12px; padding: 0 22px; font-size: 34px; font-weight: 800; letter-spacing: .2px; }
.fin-wscroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 0 calc(40px + var(--safe-bottom)); }
.fin-stack { display: flex; flex-direction: column; padding: 0 16px; }
.fin-stack .fin-card + .fin-card { margin-top: -150px; }
.fin-stack.expanded .fin-card { min-height: 360px; }
.fin-stack.mini { margin-top: 18px; }
.fin-stack.mini .fin-card + .fin-card { margin-top: -186px; }

.fin-card { position: relative; width: 100%; min-height: 230px; padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 18px; border-radius: 12px; background: var(--card, #2f6f8f); color: #fff; text-align: left; box-shadow: 0 -1px 0 rgb(255 255 255 / 12%) inset, 0 -4px 14px rgb(0 0 0 / 14%); overflow: hidden; transition: transform .2s; }
.fin-card:active { transform: translateY(-4px); }
.fin-card.pass { border-radius: 6px; }
.fin-card .notch { position: absolute; top: -26px; left: 50%; width: 76px; height: 46px; margin-left: -38px; border-radius: 50%; background: #f7f7f7; }
.fin-card .cut { position: absolute; top: 132px; width: 12px; height: 12px; border-radius: 50%; background: #f7f7f7; }
.fin-card .cut.l { left: -6px; }
.fin-card .cut.r { right: -6px; }
.fin-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fin-card-top .issuer { font-size: 22px; font-weight: 800; letter-spacing: 1.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-field { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fin-field.right { align-items: flex-end; text-align: right; }
.fin-field small { font-size: 12px; font-weight: 600; letter-spacing: .6px; color: rgb(255 255 255 / 82%); text-transform: uppercase; white-space: nowrap; }
.fin-card.flight .fin-field small, .fin-card.train .fin-field small { color: #ffe680; }
.fin-field em { font-style: normal; font-size: 18px; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-field em.big { font-size: 26px; font-weight: 300; }
.fin-field em.code { font-size: 46px; font-weight: 200; line-height: 1.05; letter-spacing: .5px; }
.fin-field em.title { font-size: 22px; white-space: normal; line-height: 1.25; }
.fin-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; }
.fin-route .glyph { padding-bottom: 8px; color: #ffe680; }
.fin-route .glyph svg { width: 34px; height: 34px; fill: currentColor; stroke: none; }
.fin-card.train .fin-route .glyph svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.fin-fields { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 14px; }
.fin-card-num em { font-size: 20px; letter-spacing: 1.5px; }

.fin-tx { margin: 18px 16px 0; padding: 4px 16px; border-radius: 12px; background: #fff; }
.fin-tx h3 { margin: 10px 0 4px; font-size: 20px; font-weight: 700; }
.fin-tx-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: .5px solid rgb(60 60 67 / 18%); }
.fin-tx-row:first-of-type { border-top: 0; }
.fin-tx-row span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fin-tx-row b { font-size: 16px; font-weight: 600; }
.fin-tx-row small { font-size: 13px; color: #8e8e93; }
.fin-tx-row em { font-style: normal; font-size: 16px; font-variant-numeric: tabular-nums; }
.fin-tx-row em.in { color: #34c759; }

/* 添加卡片（0755） */
.fin-wallet.adding { background: #fff; }
.fin-addhead { flex: 0 0 auto; padding: 4px 8px 8px; }
.fin-link { display: inline-flex; align-items: center; gap: 2px; color: #007aff !important; font-size: 17px; }
.fin-link svg { width: 24px; height: 24px; stroke-width: 2.6; }
.fin-wood { flex: 0 0 auto; padding: 22px 12px 44px; background: repeating-linear-gradient(90deg, rgb(120 84 52 / 10%) 0 2px, transparent 2px 9px, rgb(90 60 30 / 7%) 9px 10px, transparent 10px 23px), linear-gradient(180deg, #c09a76, #b38c68 60%, #a98262); }
.fin-frame { padding: 7%; border: 1.5px solid rgb(255 255 255 / 85%); border-radius: 22px; background: rgb(255 255 255 / 12%); }
.fin-metal { position: relative; aspect-ratio: 1.586; border-radius: 10px; padding: 0 9%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 7%; color: #f2f2f2; font-family: "OCR A Std", "Courier New", ui-monospace, monospace; background: linear-gradient(125deg, #8f8f92 0 30%, #b9b9bb 30% 48%, #9d9da0 48% 70%, #cfcfd1 70%), #a5a5a8; box-shadow: 0 4px 14px rgb(0 0 0 / 25%); text-shadow: 0 1px 1px rgb(0 0 0 / 25%); }
.fin-metal .num { font-size: clamp(15px, 5vw, 21px); letter-spacing: 2px; white-space: nowrap; }
.fin-metal .thru { margin-top: 8px; display: flex; flex-direction: column; font-size: 16px; }
.fin-metal .thru small { font-family: -apple-system, sans-serif; font-size: 8px; }
.fin-metal .holder { margin-top: 4px; font-size: 15px; letter-spacing: 2px; }
.fin-metal .dots { position: absolute; right: 9%; bottom: 9%; width: 52px; height: 32px; background: radial-gradient(circle, rgb(255 255 255 / 85%) 3px, transparent 3.5px) 0 0 / 13px 11px; }
.fin-addtitle { margin: 20px 0 6px; text-align: center; font-size: 30px; font-weight: 800; }
.fin-addsub { margin: 0; text-align: center; font-size: 17px; }
.fin-link.manual { margin: auto auto calc(var(--safe-bottom) + 36px); font-size: 17px; }
