| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278 |
- <!DOCTYPE html>
- <html lang="zh-CN" data-theme="light" data-lang="zh">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width,initial-scale=1">
- <title>多语言 · 中繁英三语切换</title>
- <style>
- /* ============================================================
- 共赢票据投资者 APP — 深空蓝设计系统 (Deep-Space Blue)
- 双主题:data-theme="light" | "dark",可作用于 :root 或任意容器
- ============================================================ */
- /* ---------- 浅色(默认) ---------- */
- :root,
- [data-theme="light"]{
- --canvas:#E7ECF4; /* 图纸底 */
- --canvas-2:#F4F7FB; /* 图纸卡片 */
- --canvas-line:#D3DCE8;
- --canvas-ink:#0F1B33;
- --canvas-mute:#647591;
- --app-bg:#F6F8FB; /* App 页面底 */
- --surface:#FFFFFF; /* 卡片/导航 */
- --surface-2:#F1F4F9; /* 次级面/表头 */
- --surface-3:#E8EDF5; /* 三级面 */
- --line:#E3E9F1;
- --line-2:#CFD9E7;
- --ink-1:#0F1B33;
- --ink-2:#4C5C78;
- --ink-3:#8A99B2;
- --ink-4:#AEBACD;
- --brand:#1B4FD8;
- --brand-2:#123CAE;
- --brand-weak:#E7EEFF;
- --brand-line:#B9CDFF;
- --on-brand:#FFFFFF;
- --accent:#B4700E; /* 琥珀 强调 */
- --accent-weak:#FDF2DE;
- --accent-line:#EBCD97;
- --rise:#E5484D; /* 涨 / 盈利 */
- --fall:#12A594; /* 跌 / 亏损 */
- --rise-weak:#FDECEC;
- --fall-weak:#E3F7F3;
- --warn:#C2410C;
- --warn-weak:#FEF0E6;
- --danger:#DC2626;
- --danger-weak:#FDEBEB;
- --ok:#0F7B4F;
- --ok-weak:#E4F5EC;
- --shadow-card:0 1px 2px rgba(15,27,51,.05),0 8px 24px rgba(15,27,51,.06);
- --shadow-phone:0 18px 44px rgba(15,27,51,.16),0 2px 6px rgba(15,27,51,.08);
- --shadow-pop:0 12px 40px rgba(15,27,51,.20);
- --scrim:rgba(11,18,34,.42);
- --bezel:#C7D2E2;
- --glow:none;
- }
- /* ---------- 深色 ---------- */
- [data-theme="dark"]{
- --canvas:#060A14;
- --canvas-2:#0E1526;
- --canvas-line:#1E2A44;
- --canvas-ink:#E9EFFA;
- --canvas-mute:#8797B4;
- --app-bg:#0B1020;
- --surface:#131B2E;
- --surface-2:#18223A;
- --surface-3:#1E2A45;
- --line:#232F4B;
- --line-2:#32436A;
- --ink-1:#EAF0FA;
- --ink-2:#A5B4D0;
- --ink-3:#7486A5;
- --ink-4:#54658A;
- --brand:#5B8CFF;
- --brand-2:#7FA6FF;
- --brand-weak:rgba(91,140,255,.16);
- --brand-line:rgba(91,140,255,.42);
- --on-brand:#05122E;
- --accent:#F0A93B;
- --accent-weak:rgba(240,169,59,.15);
- --accent-line:rgba(240,169,59,.42);
- --rise:#FF6B6E;
- --fall:#2FD4B9;
- --rise-weak:rgba(255,107,110,.14);
- --fall-weak:rgba(47,212,185,.14);
- --warn:#F59E42;
- --warn-weak:rgba(245,158,66,.14);
- --danger:#FF6B6E;
- --danger-weak:rgba(255,107,110,.14);
- --ok:#2FD4B9;
- --ok-weak:rgba(47,212,185,.14);
- --shadow-card:0 1px 2px rgba(0,0,0,.4),0 8px 24px rgba(0,0,0,.34);
- --shadow-phone:0 20px 50px rgba(0,0,0,.6),0 0 0 1px rgba(91,140,255,.10);
- --shadow-pop:0 14px 44px rgba(0,0,0,.62);
- --scrim:rgba(2,6,16,.62);
- --bezel:#26324C;
- --glow:0 0 0 1px rgba(91,140,255,.14);
- }
- /* ---------- 基础 ---------- */
- *{box-sizing:border-box;margin:0;padding:0}
- html{-webkit-text-size-adjust:100%}
- body{
- background:var(--canvas);color:var(--canvas-ink);
- font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",sans-serif;
- -webkit-font-smoothing:antialiased;
- padding:44px 46px 110px;
- transition:background .28s ease,color .28s ease;
- }
- .mono{font-family:"SF Mono",ui-monospace,"JetBrains Mono",Menlo,Consolas,monospace}
- .num{font-variant-numeric:tabular-nums;letter-spacing:.01em}
- /* ---------- 图纸头 ---------- */
- .sheet-head{
- display:flex;flex-wrap:wrap;gap:32px;align-items:flex-end;justify-content:space-between;
- padding-bottom:24px;margin-bottom:44px;border-bottom:1px solid var(--canvas-line);
- }
- .brandmark{display:flex;align-items:center;gap:14px}
- .brandmark .glyph{
- width:44px;height:44px;border-radius:12px;flex:none;position:relative;
- background:linear-gradient(145deg,var(--brand),var(--brand-2));
- box-shadow:0 6px 18px rgba(27,79,216,.28);
- }
- .brandmark .glyph::before{
- content:"";position:absolute;inset:12px 11px;border:1.6px solid rgba(255,255,255,.9);
- border-radius:2px;border-bottom-width:4px;
- }
- .brandmark .glyph::after{
- content:"";position:absolute;right:8px;top:8px;width:7px;height:7px;border-radius:50%;background:var(--accent);
- }
- .sheet-title{font-size:26px;font-weight:650;letter-spacing:.02em;line-height:1.2}
- .sheet-sub{margin-top:6px;font-size:12.5px;color:var(--canvas-mute);letter-spacing:.02em}
- .head-right{display:flex;align-items:center;gap:26px;flex-wrap:wrap}
- .meta{display:flex;gap:26px}
- .meta div{font-size:10.5px;color:var(--canvas-mute);letter-spacing:.1em;text-transform:uppercase}
- .meta b{display:block;margin-top:5px;font-size:12.5px;color:var(--canvas-ink);font-weight:550;letter-spacing:0;text-transform:none}
- /* 换肤开关 */
- .skin{
- display:flex;align-items:center;gap:0;padding:3px;border-radius:9px;
- background:var(--canvas-2);border:1px solid var(--canvas-line);
- }
- .skin button{
- border:0;background:transparent;cursor:pointer;font:inherit;
- padding:7px 13px;border-radius:6px;font-size:12px;color:var(--canvas-mute);
- display:flex;align-items:center;gap:6px;letter-spacing:.04em;transition:.2s;
- }
- .skin button.on{background:var(--brand);color:#fff;box-shadow:0 2px 8px rgba(27,79,216,.3)}
- [data-theme="dark"] .skin button.on{color:#04122F}
- .skin svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
- /* ---------- 章节 ---------- */
- .sec{margin-bottom:60px}
- .sec-head{display:flex;align-items:baseline;gap:14px;margin-bottom:24px}
- .sec-num{
- font-family:"SF Mono",ui-monospace,Menlo,monospace;font-size:11px;color:var(--brand);
- letter-spacing:.12em;padding:3px 8px;border:1px solid var(--brand-line);border-radius:5px;background:var(--brand-weak);
- }
- .sec-name{font-size:17px;font-weight:600;letter-spacing:.04em}
- .sec-rule{flex:1;height:1px;background:var(--canvas-line)}
- .sec-note{font-size:12px;color:var(--canvas-mute)}
- /* ---------- 说明卡 ---------- */
- .cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
- .card-x{background:var(--canvas-2);border:1px solid var(--canvas-line);border-radius:12px;padding:18px 20px}
- .card-x h4{font-size:11px;font-weight:600;letter-spacing:.14em;color:var(--canvas-mute);margin-bottom:14px;text-transform:uppercase}
- .kv{display:flex;flex-direction:column;gap:10px}
- .kv .r{display:flex;justify-content:space-between;gap:14px;font-size:12.5px;line-height:1.5}
- .kv .r span{color:var(--canvas-mute)}
- .kv .r b{font-weight:520;text-align:right;font-variant-numeric:tabular-nums}
- .bullets{display:flex;flex-direction:column;gap:9px}
- .bullets li{list-style:none;font-size:12.5px;line-height:1.65;color:var(--canvas-mute);padding-left:14px;position:relative}
- .bullets li::before{content:"";position:absolute;left:0;top:8px;width:6px;height:1.5px;background:var(--brand);border-radius:1px}
- .bullets b{color:var(--canvas-ink);font-weight:560}
- code{font-family:"SF Mono",ui-monospace,Menlo,monospace;font-size:11.5px;background:var(--surface-3);color:var(--canvas-ink);padding:1px 5px;border-radius:4px}
- /* ---------- 色板 ---------- */
- .pal{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:10px}
- .sw{border:1px solid var(--canvas-line);border-radius:10px;overflow:hidden;background:var(--canvas-2)}
- .sw .chip{height:56px;display:flex;align-items:flex-end;justify-content:flex-end;padding:7px 9px}
- .sw .chip i{font-style:normal;font-size:9.5px;color:rgba(255,255,255,.85);font-family:"SF Mono",monospace}
- .sw .lb{padding:9px 11px}
- .sw .lb b{display:block;font-size:12px;font-weight:560}
- .sw .lb em{font-style:normal;display:block;font-size:10.5px;color:var(--canvas-mute);margin-top:3px;font-family:"SF Mono",monospace}
- /* ---------- 表 ---------- */
- table.spec{width:100%;border-collapse:collapse;font-size:12.5px;background:var(--canvas-2);border:1px solid var(--canvas-line);border-radius:12px;overflow:hidden}
- table.spec th{
- background:var(--surface-2);text-align:left;padding:11px 14px;font-size:10.5px;font-weight:600;
- letter-spacing:.1em;color:var(--canvas-mute);text-transform:uppercase;border-bottom:1px solid var(--canvas-line);
- }
- table.spec td{padding:11px 14px;border-bottom:1px solid var(--canvas-line);color:var(--canvas-mute);line-height:1.6;vertical-align:top}
- table.spec tr:last-child td{border-bottom:0}
- table.spec td b{color:var(--canvas-ink);font-weight:550}
- table.spec td.m{font-family:"SF Mono",ui-monospace,Menlo,monospace;color:var(--canvas-ink);font-size:11.5px}
- /* ---------- 画板 ---------- */
- .frames{display:grid;grid-template-columns:repeat(auto-fit,minmax(390px,390px));gap:52px 36px;justify-content:start}
- .frame{width:390px}
- .frame.w2{grid-column:span 2}
- .phone{
- width:390px;height:844px;border-radius:42px;overflow:hidden;position:relative;
- background:var(--app-bg);border:1px solid var(--bezel);box-shadow:var(--shadow-phone);
- font-size:15px;color:var(--ink-1);transition:background .28s ease,border-color .28s ease;
- isolation:isolate;
- }
- .cap{margin-top:18px;padding-left:13px;border-left:2px solid var(--brand)}
- .cap-num{font-family:"SF Mono",ui-monospace,Menlo,monospace;font-size:10.5px;color:var(--brand);letter-spacing:.12em}
- .cap-title{font-size:14.5px;font-weight:600;margin:5px 0 8px;letter-spacing:.02em}
- .cap ul{list-style:none;display:flex;flex-direction:column;gap:6px}
- .cap li{font-size:12px;line-height:1.62;color:var(--canvas-mute);padding-left:12px;position:relative}
- .cap li::before{content:"";position:absolute;left:0;top:8px;width:5px;height:1px;background:var(--canvas-line)}
- .cap li b{color:var(--canvas-ink);font-weight:550}
- .cap code{font-size:11px;background:var(--surface-3)}
- /* ============================================================
- App 内部组件
- ============================================================ */
- .screen{position:absolute;inset:0;display:flex;flex-direction:column;overflow:hidden;background:var(--app-bg)}
- .statusbar{height:52px;flex:none;display:flex;align-items:flex-end;justify-content:space-between;padding:0 24px 6px;font-size:14.5px;font-weight:600;color:var(--ink-1)}
- .statusbar .ic{display:flex;gap:6px;align-items:center;opacity:.9}
- .statusbar svg{height:12px;fill:currentColor}
- .homebar{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);width:132px;height:5px;border-radius:3px;background:var(--ink-1);opacity:.26;z-index:60}
- /* 顶栏 */
- .navbar{height:46px;flex:none;display:flex;align-items:center;padding:0 16px;position:relative;background:var(--app-bg)}
- .navbar h2{position:absolute;left:0;right:0;text-align:center;font-size:16.5px;font-weight:600;letter-spacing:.03em}
- .navbar .bk,.navbar .rt{position:relative;z-index:2;color:var(--ink-2);display:flex;align-items:center;gap:5px;font-size:13px}
- .navbar .rt{margin-left:auto;color:var(--brand)}
- .icn{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
- .icn.sm{width:14px;height:14px}
- .icn.lg{width:22px;height:22px}
- .appbar{padding:4px 20px 0;flex:none}
- .appbar h1{font-size:22px;font-weight:650;letter-spacing:.02em;display:flex;align-items:center;gap:9px}
- .appbar h1 .tiny{font-size:11px;font-weight:500;color:var(--ink-3);letter-spacing:.1em;padding:3px 7px;border:1px solid var(--line-2);border-radius:5px}
- /* 顶栏铃铛 · 未读红点 */
- .bellwrap{position:relative;display:inline-flex;flex:none}
- .bellwrap .rd{position:absolute;top:-1px;right:0;width:8px;height:8px;border-radius:50%;background:var(--danger);box-shadow:0 0 0 2px var(--app-bg);font-style:normal}
- /* 两行顶栏(标题 + 分段控件)的标题行:标题左、铃铛右 */
- .apphd{display:flex;align-items:center;justify-content:space-between}
- /* 分段控件 */
- .seg{display:flex;padding:3px;background:var(--surface-2);border-radius:9px;gap:2px}
- .seg span{flex:1;text-align:center;padding:7px 0;font-size:13.5px;color:var(--ink-3);border-radius:7px;transition:.2s}
- .seg span.on{background:var(--surface);color:var(--ink-1);font-weight:600;box-shadow:var(--shadow-card)}
- [data-theme="dark"] .seg span.on{background:var(--surface-3);color:var(--brand)}
- /* 下划线 tab */
- .tabs{display:flex;gap:24px;padding:0 20px;border-bottom:1px solid var(--line);flex:none;background:var(--app-bg)}
- .tabs span{padding:12px 1px 11px;font-size:14.5px;color:var(--ink-3);position:relative;white-space:nowrap}
- .tabs span.on{color:var(--ink-1);font-weight:600}
- .tabs span.on::after{content:"";position:absolute;left:50%;transform:translateX(-50%);bottom:-1px;width:22px;height:2.5px;border-radius:2px;background:var(--brand)}
- .tabs span .dot{position:absolute;top:9px;right:-7px;width:6px;height:6px;padding:0;font-size:0;border-radius:50%;background:var(--danger)}
- .tabs span em{font-style:normal;color:var(--danger)}
- /* 底部 tabbar */
- .tabbar{height:72px;flex:none;display:flex;background:var(--surface);border-top:1px solid var(--line);padding-bottom:10px}
- .tb{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:10.5px;color:var(--ink-3)}
- .tb.on{color:var(--brand)}
- .tb .icn{width:21px;height:21px;stroke-width:1.6}
- /* 滚动体 */
- .body{flex:1;overflow:hidden;position:relative}
- .pad{padding:0 16px}
- /* 卡片 */
- .card{background:var(--surface);border-radius:14px;box-shadow:var(--shadow-card);overflow:hidden}
- [data-theme="dark"] .card{border:1px solid var(--line)}
- .card + .card:not(.pos):not(.qc){margin-top:11px}
- .card-hd{display:flex;align-items:center;justify-content:space-between;padding:13px 15px 0}
- .card-hd h3{font-size:14.5px;font-weight:600}
- .card-hd .more{font-size:12px;color:var(--ink-3);display:flex;align-items:center;gap:2px}
- /* 资金看板 */
- .hero{
- margin:10px 16px 0;border-radius:16px;padding:18px 18px 16px;position:relative;overflow:hidden;
- background:linear-gradient(150deg,#1B4FD8 0%,#123CAE 58%,#0C2C86 100%);color:#fff;
- box-shadow:0 12px 30px rgba(18,60,174,.30);
- }
- [data-theme="dark"] .hero{background:linear-gradient(150deg,#1A2C5C 0%,#132347 55%,#101B39 100%);box-shadow:0 12px 30px rgba(0,0,0,.5);border:1px solid rgba(91,140,255,.24)}
- .hero::after{content:"";position:absolute;right:-40px;top:-52px;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.07)}
- [data-theme="dark"] .hero::after{background:rgba(91,140,255,.10)}
- .hero .lb{display:flex;align-items:center;gap:6px;font-size:12.5px;color:rgba(255,255,255,.76)}
- .hero .lb .cur{display:flex;align-items:center;gap:3px;padding:2px 6px;border-radius:5px;background:rgba(255,255,255,.14);font-size:11.5px}
- .hero .amt{margin-top:7px;font-size:33px;font-weight:600;letter-spacing:.01em;font-variant-numeric:tabular-nums;display:flex;align-items:baseline;gap:8px}
- .hero .amt .eye{opacity:.6}
- .hero .arrow{position:absolute;right:18px;top:20px;opacity:.75}
- .hero .grid3{display:flex;margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.16)}
- .hero .grid3 div{flex:1}
- .hero .grid3 span{display:block;font-size:11px;color:rgba(255,255,255,.7)}
- .hero .grid3 b{display:block;margin-top:5px;font-size:14.5px;font-weight:600;font-variant-numeric:tabular-nums}
- /* 币种表 */
- .fxtab{width:100%;border-collapse:collapse;font-size:12.5px}
- .fxtab th{padding:9px 15px;font-size:10.5px;font-weight:500;color:var(--ink-3);letter-spacing:.06em;text-align:right;background:var(--surface-2)}
- .fxtab th:first-child{text-align:left}
- .fxtab td{padding:10px 15px;text-align:right;font-variant-numeric:tabular-nums;color:var(--ink-1);border-top:1px solid var(--line)}
- .fxtab td:first-child{text-align:left;font-family:"SF Mono",monospace;font-size:12px;color:var(--ink-2)}
- /* 快捷入口 */
- .quick{display:flex;gap:11px;margin:11px 16px 0}
- .qk{flex:1;background:var(--surface);border-radius:13px;padding:13px 12px;display:flex;align-items:center;gap:10px;box-shadow:var(--shadow-card);position:relative}
- [data-theme="dark"] .qk{border:1px solid var(--line)}
- .qk .ib{width:32px;height:32px;border-radius:9px;background:var(--brand-weak);color:var(--brand);display:flex;align-items:center;justify-content:center;flex:none}
- .qk b{font-size:13.5px;font-weight:550}
- .qk .rd{position:absolute;top:9px;right:9px;width:7px;height:7px;border-radius:50%;background:var(--danger);box-shadow:0 0 0 2px var(--surface)}
- /* 列表行 */
- .row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px;border-bottom:1px solid var(--line);font-size:14.5px}
- .row:last-child{border-bottom:0}
- .row .k{color:var(--ink-2);display:flex;align-items:center;gap:7px;flex:none}
- .row .k .icn{color:var(--ink-3)}
- .row .v{color:var(--ink-1);font-variant-numeric:tabular-nums;display:flex;align-items:center;gap:6px;text-align:right}
- .row .v.ph{color:var(--ink-4)}
- .row .v.m{font-family:"SF Mono",monospace;font-size:13.5px}
- .hint{width:13px;height:13px;border-radius:50%;border:1px solid var(--ink-4);color:var(--ink-3);font-size:8.5px;display:inline-flex;align-items:center;justify-content:center;font-style:normal;flex:none}
- /* 标签 / 徽标 */
- .tag{font-size:10.5px;padding:2px 6px;border-radius:4px;letter-spacing:.02em;font-weight:520;display:inline-flex;align-items:center;gap:3px;flex:none}
- .t-brand{background:var(--brand-weak);color:var(--brand)}
- .t-accent{background:var(--accent-weak);color:var(--accent)}
- .t-rise{background:var(--rise-weak);color:var(--rise)}
- .t-fall{background:var(--fall-weak);color:var(--fall)}
- .t-ok{background:var(--ok-weak);color:var(--ok)}
- .t-warn{background:var(--warn-weak);color:var(--warn)}
- .t-mute{background:var(--surface-3);color:var(--ink-3)}
- .t-solid{background:var(--brand);color:var(--on-brand)}
- .t-danger{background:var(--danger);color:#fff}
- .cmark{width:14px;height:14px;border-radius:50%;background:var(--brand);color:var(--on-brand);font-size:9px;display:inline-flex;align-items:center;justify-content:center;font-weight:600;flex:none;font-style:normal}
- .corner{position:absolute;left:0;top:0;padding:2px 9px 2px 7px;font-size:9.5px;color:#fff;background:var(--danger);border-radius:12px 0 12px 0;letter-spacing:.04em;z-index:3}
- .corner.due{background:var(--accent)}
- .corner.pend{background:var(--ink-3)}
- /* 状态点 */
- .st{display:inline-flex;align-items:center;gap:5px;font-size:12.5px}
- .st i{width:6px;height:6px;border-radius:50%;flex:none;background:currentColor}
- .st.wait{color:var(--ink-3)}
- .st.live{color:var(--accent)}
- .st.live i{background:transparent;border:1.6px solid currentColor}
- .st.done{color:var(--ok)}
- .st.rej{color:var(--danger)}
- .st.exp{color:var(--ink-4)}
- /* 按钮 */
- .btn{
- height:46px;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:6px;
- background:var(--brand);color:var(--on-brand);font-size:15.5px;font-weight:600;letter-spacing:.06em;
- box-shadow:0 6px 16px rgba(27,79,216,.24);
- }
- [data-theme="dark"] .btn{box-shadow:0 6px 18px rgba(91,140,255,.20)}
- .btn.sm{height:38px;font-size:14px;border-radius:10px;box-shadow:none}
- .btn.off{background:var(--surface-3);color:var(--ink-4);box-shadow:none}
- .btn.ghost{background:transparent;border:1px solid var(--line-2);color:var(--ink-2);box-shadow:none;font-weight:500}
- .btn.danger{background:var(--danger);box-shadow:none;color:#fff}
- .btn.wide{width:100%}
- .iconbtn{width:46px;height:46px;border-radius:12px;border:1px solid var(--line-2);display:flex;align-items:center;justify-content:center;color:var(--ink-2);flex:none;background:var(--surface)}
- /* 输入 */
- .field{background:var(--surface);border:1px solid var(--line-2);border-radius:11px;height:44px;display:flex;align-items:center;gap:9px;padding:0 13px;font-size:14.5px;color:var(--ink-1)}
- .field.focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-weak)}
- .field.err{border-color:var(--danger);box-shadow:0 0 0 3px var(--danger-weak)}
- .field .ph{color:var(--ink-4)}
- .field .icn{color:var(--ink-3)}
- .field .unit{margin-left:auto;color:var(--ink-2);font-size:13.5px}
- .lbl{font-size:11.5px;color:var(--ink-3);letter-spacing:.06em;margin-bottom:7px;display:block}
- .errtip{font-size:11.5px;color:var(--danger);margin-top:6px;display:flex;align-items:center;gap:4px}
- /* chips */
- .chips{display:flex;gap:7px;flex-wrap:wrap}
- .chip{height:32px;padding:0 12px;border-radius:9px;border:1px solid var(--line-2);background:var(--surface);color:var(--ink-2);font-size:13px;display:flex;align-items:center;font-variant-numeric:tabular-nums}
- .chip.on{background:var(--brand-weak);border-color:var(--brand-line);color:var(--brand);font-weight:560}
- .chip.dash{border-style:dashed}
- /* 单选 / 复选 */
- .rad{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:var(--ink-2)}
- .rad i{width:15px;height:15px;border-radius:50%;border:1.4px solid var(--line-2);position:relative;flex:none}
- .rad.on{color:var(--ink-1)}
- .rad.on i{border-color:var(--brand)}
- .rad.on i::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--brand)}
- .cb{width:16px;height:16px;border-radius:4.5px;border:1.4px solid var(--line-2);flex:none;display:flex;align-items:center;justify-content:center;color:transparent}
- .cb.on{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
- .cb .icn{width:11px;height:11px;stroke-width:2.6}
- /* 步进器 */
- .stepper{height:38px;border:1px solid var(--line-2);border-radius:10px;display:flex;align-items:center;overflow:hidden;background:var(--surface)}
- .stepper b{width:34px;text-align:center;font-weight:400;font-size:17px;color:var(--ink-3)}
- .stepper i{flex:1;text-align:center;font-style:normal;font-variant-numeric:tabular-nums;font-size:15px;border-left:1px solid var(--line);border-right:1px solid var(--line);line-height:36px}
- .stepper.err{border-color:var(--danger)}
- .stepper.err i{color:var(--danger)}
- /* 搜索 */
- .search{height:38px;border-radius:10px;background:var(--surface-2);display:flex;align-items:center;gap:8px;padding:0 12px;font-size:14px;color:var(--ink-4)}
- .search .icn{color:var(--ink-3)}
- .search b{color:var(--ink-1);font-weight:500}
- .sug{background:var(--surface);border-radius:12px;box-shadow:var(--shadow-pop);overflow:hidden;margin-top:6px}
- .sug div{padding:11px 13px;font-size:14px;border-bottom:1px solid var(--line);display:flex;gap:8px}
- .sug div:last-child{border-bottom:0}
- .sug em{font-style:normal;color:var(--brand)}
- .sug span{font-family:"SF Mono",monospace;font-size:12.5px;color:var(--ink-3)}
- /* 弹窗 */
- .scrim{position:absolute;inset:0;background:var(--scrim);z-index:40;display:flex;align-items:center;justify-content:center;padding:0 30px}
- .scrim.bottom{align-items:flex-end;padding:0}
- .dlg{width:100%;background:var(--surface);border-radius:16px;overflow:hidden;box-shadow:var(--shadow-pop)}
- .dlg.sheet{border-radius:18px 18px 0 0;padding-bottom:22px}
- .dlg-hd{padding:18px 18px 0;text-align:center}
- .dlg-hd h3{font-size:16.5px;font-weight:600}
- .dlg-bd{padding:14px 18px 4px;font-size:14px;color:var(--ink-2);line-height:1.65}
- .dlg-ft{display:flex;border-top:1px solid var(--line);margin-top:16px}
- .dlg-ft span{flex:1;text-align:center;padding:14px 0;font-size:15.5px;color:var(--brand);font-weight:550}
- .dlg-ft span:first-child{color:var(--ink-2);border-right:1px solid var(--line)}
- .dlg-ft.single span{color:var(--brand)}
- .dlg-btns{display:flex;gap:11px;padding:16px 18px 0}
- .dlg-btns .btn{flex:1}
- /* toast */
- .toast{
- position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);z-index:50;
- background:rgba(15,25,45,.90);color:#fff;padding:12px 20px;border-radius:11px;font-size:14px;max-width:290px;text-align:center;line-height:1.55;
- }
- [data-theme="dark"] .toast{background:rgba(230,238,250,.94);color:#0B1020}
- /* 提示条 */
- .notice{display:flex;gap:8px;padding:10px 12px;border-radius:10px;font-size:12.5px;line-height:1.6}
- .notice.warn{background:var(--warn-weak);color:var(--warn)}
- .notice.info{background:var(--brand-weak);color:var(--brand)}
- .notice.danger{background:var(--danger-weak);color:var(--danger)}
- .notice .icn{flex:none;margin-top:1px}
- /* 空态 */
- .empty{padding:44px 0;text-align:center;color:var(--ink-4);font-size:13.5px}
- .empty .icn{width:34px;height:34px;stroke-width:1.2;margin-bottom:10px;color:var(--ink-4)}
- /* 分组标题 */
- .gtitle{padding:16px 16px 8px;font-size:12px;color:var(--ink-3);letter-spacing:.06em}
- /* 骨架/遮罩说明用 */
- .dim{opacity:.45}
- /* ============================================================
- 业务组件
- ============================================================ */
- /* 筛选栏 */
- .filterbar{display:flex;gap:8px;padding:10px 16px;background:var(--app-bg);flex:none;align-items:center}
- .fb{height:34px;padding:0 11px;border-radius:9px;background:var(--surface-2);color:var(--ink-2);font-size:13px;display:flex;align-items:center;gap:5px;white-space:nowrap}
- .fb.on{background:var(--brand-weak);color:var(--brand);font-weight:550}
- .fb .icn{width:13px;height:13px}
- .fb.flex{flex:1;min-width:0}
- /* 筛选栏 v2 —— 搜索行 + 条件行(时间在左,筛选入口在右) */
- .fsearch{margin:10px 16px 0;height:40px;border-radius:12px;background:var(--surface-2);display:flex;align-items:center;gap:9px;padding:0 13px;font-size:14px;color:var(--ink-4);flex:none}
- .fsearch .icn{width:16px;height:16px;color:var(--ink-3);flex:none}
- .fsearch b{color:var(--ink-1);font-weight:500}
- .fsearch .clr{margin-left:auto;color:var(--ink-4)}
- .fcond{display:flex;align-items:center;justify-content:space-between;padding:11px 16px;flex:none;background:var(--app-bg)}
- .fpill{height:34px;padding:0 14px;border-radius:17px;border:1px solid var(--line-2);background:var(--surface);color:var(--ink-2);font-size:13.5px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
- .fpill .icn{width:13px;height:13px;color:var(--ink-3)}
- .fpill.on{background:var(--brand-weak);border-color:var(--brand-line);color:var(--brand);font-weight:560}
- .fpill.on .icn{color:var(--brand)}
- .fmore{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:var(--ink-2);position:relative;padding-right:2px}
- .fmore .icn{width:15px;height:15px;color:var(--ink-3)}
- .fmore.on{color:var(--brand);font-weight:560}
- .fmore.on .icn{color:var(--brand)}
- .fmore.on::after{content:"";position:absolute;right:-5px;top:-3px;width:6px;height:6px;border-radius:50%;background:var(--danger)}
- /* 筛选面板 —— 底部弹层 */
- .fsheet{padding-bottom:20px}
- .fsheet-hd{display:flex;align-items:center;justify-content:space-between;padding:20px 20px 2px}
- .fsheet-hd b{font-size:17px;font-weight:600;letter-spacing:.02em}
- .fsheet-hd .icn{width:19px;height:19px;color:var(--ink-3)}
- .fsec{padding:16px 20px 0}
- .fsec .lbl{margin-bottom:10px}
- .optgrid{display:grid;grid-template-columns:1fr 1fr;gap:11px}
- .opt{height:42px;border-radius:21px;border:1px solid var(--line-2);background:var(--surface);color:var(--ink-2);font-size:14px;display:flex;align-items:center;justify-content:center;white-space:nowrap;padding:0 10px}
- .opt.on{background:var(--brand-weak);border-color:var(--brand);color:var(--brand);font-weight:600}
- .opt.dis{background:var(--surface-2);border-color:var(--line);color:var(--ink-4)}
- .fline{height:1px;background:var(--line);margin:18px 20px 0}
- /* 自定义区间 · 日期段 + 滚轮 */
- .dtrow{display:flex;gap:11px}
- .dt{flex:1;min-width:0;background:var(--surface);border:1px solid var(--line-2);border-radius:12px;padding:8px 12px 10px}
- .dt em{display:block;font-style:normal;font-size:11px;color:var(--ink-3);letter-spacing:.04em}
- .dt b{display:block;margin-top:3px;font-size:16px;font-weight:600;color:var(--ink-1);font-variant-numeric:tabular-nums;font-family:"SF Mono",ui-monospace,Menlo,monospace}
- .dt.act{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-weak)}
- .dt.act em{color:var(--brand)}
- .dt.err{border-color:var(--danger);box-shadow:0 0 0 3px var(--danger-weak)}
- .wheel{position:relative;margin:14px 20px 0;padding:4px 8px;display:grid;grid-template-columns:repeat(3,1fr);text-align:center}
- .wheel .band{position:absolute;left:6px;right:6px;top:50%;height:40px;transform:translateY(-50%);background:var(--surface-2);border-radius:10px}
- .wcol{position:relative;z-index:1;display:flex;flex-direction:column}
- .wcol span{height:40px;line-height:40px;font-size:14px;color:var(--ink-2);font-variant-numeric:tabular-nums}
- .wcol span.far{color:var(--ink-4);opacity:.5}
- .wcol span.now{color:var(--ink-1);font-size:16px;font-weight:600}
- .fsheet-ft{display:flex;gap:12px;padding:20px 20px 0}
- .fsheet-ft .btn{flex:1.18}
- .fsheet-ft .btn.ghost{flex:.82;background:var(--surface-2);border:0;color:var(--ink-2);font-weight:600}
- /* 持仓卡片 */
- .pos{position:relative;margin:0 16px 11px;padding:13px 0 0}
- .pos-hd{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:0 14px}
- .pos-name{font-size:15.5px;font-weight:600;display:flex;align-items:center;gap:6px}
- .pos-code{font-size:11px;color:var(--ink-3);margin-top:4px;letter-spacing:.02em;font-family:"SF Mono",monospace}
- .pos-val{text-align:right;flex:none}
- .pos-val b{display:block;font-size:18px;font-weight:600;font-variant-numeric:tabular-nums}
- .pos-val span{display:block;font-size:10.5px;color:var(--ink-3);margin-top:3px}
- .pos-pl{display:flex;justify-content:flex-end;gap:9px;padding:6px 14px 0;font-size:12.5px;font-variant-numeric:tabular-nums}
- .up{color:var(--rise)} .down{color:var(--fall)} .flat{color:var(--ink-3)}
- .pos-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px 6px;padding:12px 14px 13px;margin-top:10px;border-top:1px solid var(--line)}
- .pos-grid div span{display:block;font-size:10px;color:var(--ink-3);letter-spacing:.02em}
- .pos-grid div b{display:block;margin-top:4px;font-size:12.5px;font-weight:550;font-variant-numeric:tabular-nums;white-space:nowrap}
- .pos-grid div b em{font-style:normal;color:var(--ink-3);font-weight:400;font-size:11px}
- .pos-ops{display:flex;border-top:1px solid var(--line);background:var(--surface-2)}
- .pos-ops span{flex:1;text-align:center;padding:11px 0;font-size:13.5px;color:var(--ink-2);border-right:1px solid var(--line)}
- .pos-ops span:last-child{border-right:0}
- .pos-ops span.pri{color:var(--brand);font-weight:550}
- .pos-ops span.hot{color:var(--danger);font-weight:550}
- .pos-ops span.off{color:var(--ink-4)}
- /* 冻结列表格(数据模式) */
- .gridtab{display:flex;font-size:12px;overflow:hidden}
- .gt-fix{flex:none;width:118px;border-right:1px solid var(--line-2);background:var(--surface);position:relative;z-index:2;box-shadow:4px 0 10px rgba(15,27,51,.06)}
- [data-theme="dark"] .gt-fix{box-shadow:4px 0 10px rgba(0,0,0,.35)}
- .gt-scroll{flex:1;overflow:hidden;background:var(--surface)}
- .gt-h{height:36px;display:flex;align-items:center;background:var(--surface-2);color:var(--ink-3);font-size:10.5px;letter-spacing:.02em;padding:0 10px;border-bottom:1px solid var(--line);white-space:nowrap;gap:14px}
- .gt-r{height:52px;display:flex;align-items:center;padding:0 10px;border-bottom:1px solid var(--line);white-space:nowrap;gap:14px;font-variant-numeric:tabular-nums}
- .gt-fix .gt-r{flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;position:relative;padding-left:14px}
- .gt-fix .gt-h{padding-left:14px}
- /* 表格形式的「新报价」角标:斜切丝带,带 NEW 文案;冻结列左内边距统一 14px 给丝带让位,行内文字不被压 */
- .gt-new{position:absolute;left:0;top:0;width:34px;height:34px;overflow:hidden;z-index:3;pointer-events:none}
- .gt-new::before{content:"NEW";position:absolute;left:-17px;top:1px;width:48px;padding:1px 0;transform:rotate(-45deg);background:var(--danger);color:#fff;font-size:7.5px;font-weight:600;font-style:normal;letter-spacing:.04em;text-align:center;line-height:1.35}
- .gt-r i{font-style:normal;display:inline-block;text-align:right}
- .gt-h i{display:inline-block;text-align:right}
- /* 询价 / 订单卡片 */
- .qc{margin:0 16px 10px;padding:13px 14px;position:relative}
- .qc-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
- .qc-name{font-size:15px;font-weight:600;display:flex;align-items:center;gap:6px}
- .qc-sub{font-size:11px;color:var(--ink-3);margin-top:4px;font-family:"SF Mono",monospace}
- .qc-r{text-align:right;flex:none}
- .qc-time{font-size:10.5px;color:var(--ink-3);margin-top:5px;font-family:"SF Mono",monospace}
- .qc-meta{display:flex;gap:16px;margin-top:10px;font-size:12.5px;color:var(--ink-2);font-variant-numeric:tabular-nums}
- .qc-meta em{font-style:normal;color:var(--ink-3);font-size:11px;margin-right:4px}
- .qc-open{margin-top:12px;border-top:1px dashed var(--line-2);padding-top:10px}
- .qt{display:grid;grid-template-columns:1.1fr .8fr .8fr .9fr;font-size:12px;font-variant-numeric:tabular-nums;align-items:center}
- .qt.h{color:var(--ink-3);font-size:10.5px;padding-bottom:7px}
- .qt.r{padding:9px 8px;margin:0 -8px;border-radius:8px}
- .qt.r:hover,.qt.r.hl{background:var(--brand-weak)}
- .qt .p{color:var(--brand);font-weight:600}
- .qt .t{color:var(--ink-3);font-size:10.5px;text-align:right}
- /* 「新」标记分工:卡片/行角标表明本单有新报价,行内红点指出具体是哪一条 */
- .qt span:first-child{position:relative;padding-left:12px}
- .qt .newdot{position:absolute;left:0;top:50%;margin:0;transform:translateY(-50%);vertical-align:0}
- .newdot{width:6px;height:6px;border-radius:50%;background:var(--danger);display:inline-block;margin-right:5px;vertical-align:1px}
- /* 时间线(流水) */
- .tl{padding:0 16px}
- .tl-i{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
- .tl-i .dot{width:9px;height:9px;border-radius:50%;background:var(--brand);flex:none;margin-top:5px;box-shadow:0 0 0 3px var(--brand-weak)}
- .tl-i .dot.out{background:var(--accent);box-shadow:0 0 0 3px var(--accent-weak)}
- .tl-i .c{flex:1}
- .tl-i .c b{font-size:14.5px;font-weight:550}
- .tl-i .c span{display:block;font-size:11px;color:var(--ink-3);margin-top:4px;font-family:"SF Mono",monospace}
- .tl-i .amt{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
- /* 设置项列表 */
- .menu{background:var(--surface);border-radius:14px;overflow:hidden;margin:0 16px 12px;box-shadow:var(--shadow-card)}
- [data-theme="dark"] .menu{border:1px solid var(--line)}
- .mi{display:flex;align-items:center;gap:12px;padding:15px 15px;border-bottom:1px solid var(--line);font-size:15px}
- .mi:last-child{border-bottom:0}
- .mi .ib{width:30px;height:30px;border-radius:9px;background:var(--brand-weak);color:var(--brand);display:flex;align-items:center;justify-content:center;flex:none}
- .mi .ib.am{background:var(--accent-weak);color:var(--accent)}
- .mi .tx{flex:1}
- .mi .tx em{font-style:normal;display:block;font-size:11.5px;color:var(--ink-3);margin-top:3px}
- .mi .rv{color:var(--ink-3);font-size:13.5px;display:flex;align-items:center;gap:4px}
- /* 开关 */
- .sw2{width:44px;height:26px;border-radius:14px;background:var(--line-2);position:relative;flex:none;transition:.2s}
- .sw2::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.2s}
- .sw2.on{background:var(--brand)}
- .sw2.on::after{left:21px}
- /* ============================================================
- 消息中心
- ============================================================ */
- /* 未读徽标 */
- .nbadge{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--danger);color:#fff;font-size:11px;font-weight:600;
- display:inline-flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums;flex:none;letter-spacing:0}
- .nbadge.dot{min-width:8px;width:8px;height:8px;padding:0;border-radius:50%}
- /* 分类聚合行 */
- .mcat{display:flex;align-items:center;gap:12px;padding:13px 15px;border-bottom:1px solid var(--line)}
- .mcat:last-child{border-bottom:0}
- .mcat .ic{width:42px;height:42px;border-radius:13px;display:flex;align-items:center;justify-content:center;flex:none}
- .mcat .ic .icn{width:20px;height:20px;stroke-width:1.8}
- .mcat .ic.c-brand{background:var(--brand-weak);color:var(--brand)}
- .mcat .ic.c-ok{background:var(--ok-weak);color:var(--ok)}
- .mcat .ic.c-accent{background:var(--accent-weak);color:var(--accent)}
- .mcat .ic.c-mute{background:var(--surface-3);color:var(--ink-3)}
- .mcat .ic.c-danger{background:var(--danger-weak);color:var(--danger)}
- .mcat .c{flex:1;min-width:0}
- .mcat .c b{display:block;font-size:15px;font-weight:600;letter-spacing:.02em}
- .mcat .c span{display:block;margin-top:4px;font-size:12.5px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
- .mcat .r{display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-start;gap:8px;flex:none;align-self:stretch;padding-top:2px}
- .mcat .r em{font-style:normal;font-size:11px;color:var(--ink-4);white-space:nowrap;font-variant-numeric:tabular-nums}
- /* 分类内消息卡 */
- .msg{background:var(--surface);border-radius:12px;box-shadow:var(--shadow-card);padding:13px 15px 14px;margin:0 16px 10px}
- [data-theme="dark"] .msg{border:1px solid var(--line)}
- .msg .h{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
- .msg .h b{font-size:14.5px;font-weight:600;letter-spacing:.02em}
- .msg .h em{font-style:normal;font-size:11px;color:var(--ink-4);white-space:nowrap;flex:none;font-variant-numeric:tabular-nums}
- .msg p{margin-top:7px;font-size:13px;line-height:1.62;color:var(--ink-2);
- display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
- .msg.unread .h b{padding-left:13px;position:relative}
- .msg.unread .h b::before{content:"";position:absolute;left:0;top:6px;width:6px;height:6px;border-radius:50%;background:var(--danger)}
- .msg.read .h b,.msg.read p{color:var(--ink-3)}
- /* 消息详情 */
- .msgd{background:var(--surface);border-radius:14px;box-shadow:var(--shadow-card);margin:12px 16px 0;overflow:hidden}
- [data-theme="dark"] .msgd{border:1px solid var(--line)}
- .msgd .hd{padding:18px 18px 0}
- .msgd .hd h3{font-size:17px;font-weight:600;line-height:1.45;letter-spacing:.02em}
- .msgd .hd .t{margin-top:9px;font-size:11.5px;color:var(--ink-4);font-variant-numeric:tabular-nums;letter-spacing:.04em}
- .msgd .bd{padding:14px 18px 18px;font-size:14px;line-height:1.78;color:var(--ink-2)}
- .msgd .bd b{color:var(--ink-1);font-weight:600}
- .msgd .ft{border-top:1px solid var(--line);padding:14px 18px;display:flex;align-items:center;justify-content:space-between;font-size:14px;color:var(--brand);font-weight:600}
- /* 空态占位(与 05 / 02 同一套组件) */
- .emptyslot{flex:1;display:flex;align-items:center;justify-content:center;padding:0 0 204px}
- .emptybox{--il-a:#E7EDF6;--il-b:#D8E0EC;--il-c:#F8FAFE;
- display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 32px}
- [data-theme="dark"] .emptybox{--il-a:#1F2A45;--il-b:#161F38;--il-c:#28355A}
- .emptybox .illu{width:120px;height:104px;display:block}
- .emptybox .etxt{margin-top:16px;font-size:14px;color:var(--ink-3);letter-spacing:.1em}
- .emptybox .esub{margin-top:8px;font-size:12px;line-height:1.65;color:var(--ink-4);max-width:236px}
- /* 数据表(App 内) */
- .dt{width:100%;border-collapse:collapse;font-size:12.5px}
- .dt th{background:var(--surface-2);color:var(--ink-3);font-size:10.5px;font-weight:500;padding:9px 10px;text-align:right;letter-spacing:.02em}
- .dt th:first-child{text-align:left}
- .dt td{padding:10px;text-align:right;border-top:1px solid var(--line);font-variant-numeric:tabular-nums}
- .dt td:first-child{text-align:left;color:var(--ink-2)}
- /* 键盘 */
- .kbd{background:var(--surface-2);padding:8px 6px 26px;display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
- .kbd span{height:44px;border-radius:8px;background:var(--surface);display:flex;align-items:center;justify-content:center;font-size:21px;font-weight:500;box-shadow:0 1px 2px rgba(15,27,51,.10)}
- [data-theme="dark"] .kbd span{box-shadow:none;border:1px solid var(--line)}
- .kbd span.fn{background:transparent;box-shadow:none;font-size:15px;color:var(--ink-2)}
- .kbd span.ok{background:var(--brand);color:var(--on-brand);font-size:16px}
- /* 对照页专用 */
- .pair{display:grid;grid-template-columns:390px 390px;gap:36px;justify-content:start}
- .pair-lb{display:flex;align-items:center;gap:7px;font-size:11.5px;color:var(--canvas-mute);margin-bottom:12px;letter-spacing:.08em}
- .pair-lb i{width:12px;height:12px;border-radius:3px;border:1px solid var(--canvas-line);flex:none}
- /* 角标占位:有角标的卡片顶部让出空间,避免压住标的名 */
- .pos:has(.corner) .pos-hd{padding-top:15px}
- .qc:has(.corner){padding-top:26px}
- /* ============================================================
- 本图纸新增:三语切换(简 zh / 繁 tw / 英 en)
- 机制:<u data-l="zh|tw|en"> 三份文案同时写在 DOM,
- 由根节点 [data-lang] 决定显示哪一份;
- 三语一致的内容(数字、代码、币种)不加 data-l。
- 选 <u> 是因为设计系统里没有任何选择器命中它,
- 不会被 .seg span / .pos-ops span 之类的后代选择器误伤。
- ============================================================ */
- u[data-l]{display:none;text-decoration:none;font-style:normal}
- [data-lang="zh"] u[data-l~="zh"],
- [data-lang="tw"] u[data-l~="tw"],
- [data-lang="en"] u[data-l~="en"]{display:inline}
- /* 语言字体:繁体走 TC,英文走系统西文字体;已锁定的对照机不受全局语言影响 */
- [data-lang="tw"] .phone .screen{font-family:"PingFang TC","Hiragino Sans CNS","Microsoft JhengHei","PingFang SC",system-ui,sans-serif}
- [data-lang="en"] .phone .screen{font-family:-apple-system,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
- /* 图纸头的语言开关:与换肤开关同构,用琥珀色区分 */
- .lang{display:flex;align-items:center;gap:0;padding:3px;border-radius:9px;background:var(--canvas-2);border:1px solid var(--canvas-line)}
- .lang button{border:0;background:transparent;cursor:pointer;font:inherit;padding:7px 12px;border-radius:6px;font-size:12px;color:var(--canvas-mute);display:flex;align-items:center;gap:6px;letter-spacing:.04em;transition:.2s}
- .lang button.on{background:var(--accent);color:#fff;box-shadow:0 2px 8px rgba(180,112,14,.28)}
- [data-theme="dark"] .lang button.on{color:#231402}
- .lang svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
- /* 切换中的转圈 */
- .spin{width:30px;height:30px;border-radius:50%;border:2.6px solid var(--line-2);border-top-color:var(--brand);animation:sp .9s linear infinite}
- @keyframes sp{to{transform:rotate(360deg)}}
- /* 语言卡片(语言设置页的整块选择) */
- .langrow{display:flex;align-items:center;gap:12px;padding:14px 15px;border-bottom:1px solid var(--line);font-size:15px}
- .langrow:last-child{border-bottom:0}
- .langrow .nm{flex:1}
- .langrow .nm b{display:block;font-weight:550;letter-spacing:.01em}
- .langrow .nm span{display:block;margin-top:3px;font-size:11px;color:var(--ink-3);font-family:"SF Mono",ui-monospace,Menlo,monospace}
- .langrow .ck{color:var(--brand);flex:none}
- /* 选中态跟着语言走:切到 EN 时高亮落在 English 行 */
- [data-lang="zh"] .langrow[data-sel="zh"] .nm b,
- [data-lang="tw"] .langrow[data-sel="tw"] .nm b,
- [data-lang="en"] .langrow[data-sel="en"] .nm b{color:var(--brand);font-weight:600}
- .langrow .nm span.tx{font-family:inherit;font-size:11.5px}
- /* ==== v1.3 · 07 专用 BEGIN ==== */
- /* 个人中心(与 06 M1 同版式) */
- .pfhero{margin:8px 16px 0;border-radius:16px;padding:16px 18px;position:relative;overflow:hidden;background:linear-gradient(150deg,#1B4FD8 0%,#123CAE 58%,#0C2C86 100%);color:#fff;display:flex;align-items:center;gap:14px;box-shadow:0 12px 30px rgba(18,60,174,.30)}
- [data-theme="dark"] .pfhero{background:linear-gradient(150deg,#1A2C5C 0%,#132347 55%,#101B39 100%);box-shadow:0 12px 30px rgba(0,0,0,.5);border:1px solid rgba(91,140,255,.24)}
- .pfhero::after{content:"";position:absolute;right:-40px;top:-52px;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.07)}
- .pfhero .av{width:50px;height:50px;border-radius:16px;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:600;flex:none}
- .pfhero .nm{font-size:18px;font-weight:600}
- .pfhero .ac{font-family:var(--font-mono);font-size:12px;color:rgba(255,255,255,.76);margin-top:5px}
- .pfhero .cat{margin-left:auto;padding:4px 9px;border-radius:6px;background:rgba(255,255,255,.16);font-size:11px;position:relative;z-index:1}
- .mi{padding:15px}
- .mi .rv .icn{width:14px;height:14px;color:var(--ink-4)}
- .mi.hl{box-shadow:inset 0 0 0 1.5px var(--brand);border-radius:14px}
- .pflag{font-size:9.5px;padding:1px 5px;border-radius:4px;margin-left:6px;vertical-align:2px;background:var(--ok-weak);color:var(--ok);font-weight:500}
- .signout{margin:20px 16px 16px;height:46px;border-radius:12px;border:1px solid var(--line-2);display:flex;align-items:center;justify-content:center;font-size:15.5px;font-weight:600;color:var(--danger)}
- /* 语言单选行(代码 LanguagePicker):主名 15 / 500,选中 600 品牌色 + 对勾;副行 BCP 47 等宽 11 或「系统当前」11.5 */
- .lrow{display:flex;align-items:center;gap:12px;padding:14px 15px;border-bottom:1px solid var(--line)}
- .lrow:last-child{border-bottom:0}
- .lrow .nm{flex:1}
- .lrow .nm b{display:block;font-size:15px;font-weight:500;color:var(--ink-1)}
- .lrow .nm em{display:block;font-style:normal;font-size:11.5px;color:var(--ink-3);margin-top:3px}
- .lrow .nm em.mono{font-family:var(--font-mono);font-size:11px}
- .lrow .ck{color:var(--brand);display:none}
- .lrow.on .nm b{font-weight:600;color:var(--brand)}
- .lrow.on .ck{display:block}
- .sheetrows .lrow{padding:14px 20px}
- /* 弹层里的选中项跟随右上角语言开关 */
- [data-lang="zh"] .lrow[data-sel="zh"] .nm b,[data-lang="tw"] .lrow[data-sel="tw"] .nm b,[data-lang="en"] .lrow[data-sel="en"] .nm b{font-weight:600;color:var(--brand)}
- [data-lang="zh"] .lrow[data-sel="zh"] .ck,[data-lang="tw"] .lrow[data-sel="tw"] .ck,[data-lang="en"] .lrow[data-sel="en"] .ck{display:block}
- /* 切换遮罩(代码 PendingOverlay,compact 卡:最窄 196、圆角 18) */
- .swcard{min-width:196px;border-radius:18px;background:var(--surface);box-shadow:var(--shadow-pop);padding:26px 30px 22px;display:flex;flex-direction:column;align-items:center;gap:15px}
- .swcard .ring{width:30px;height:30px}
- .swcard .ring .trk,.swcard .ring .bar{stroke-width:2.6}
- .swcard span{font-size:14px;color:var(--ink-2)}
- .scrim.center{justify-content:center}
- /* 登录页(与 01 L2 同版式) */
- .lgtop{height:46px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;flex:none}
- .lgtop .lgl{display:flex;align-items:center;gap:5px;font-size:13px;color:var(--ink-2)}
- .lgtop .lgl .icn{width:18px;height:18px}
- .lgtop .hp .icn{width:22px;height:22px;color:var(--ink-3)}
- .lgbody{padding:14px 26px 0}
- .lgbody .mark{width:56px;height:56px;border-radius:16px;display:block}
- .lgbody h1{font-size:25px;font-weight:600;margin-top:22px}
- .lgbody .sub{font-size:13.5px;color:var(--ink-3);margin-top:8px}
- .lgbody .fld{margin-top:30px}
- .lgbody .fld+.fld{margin-top:16px}
- .lgbody .field .ph{color:var(--ink-4)}
- .lgbody .field .tr{margin-left:auto;color:var(--ink-3);display:flex}
- .lgbody .field .tr .icn{width:16px;height:16px}
- .lgbody .btn{margin-top:26px}
- .lgfoot{position:absolute;left:24px;right:24px;bottom:30px;text-align:center;font-size:11px;color:var(--ink-4);line-height:1.7}
- .lgfoot b{font-weight:400;color:var(--ink-2)}
- .lgtop .lgl.hl{box-shadow:0 0 0 1.5px var(--brand);border-radius:8px;padding:4px 7px;margin-left:-7px}
- /* ==== v1.3 · 07 专用 END ==== */
- /* ==== v1.3 公共覆盖 BEGIN · 2026-10-14 按代码现状对齐(同一段注入全部图纸,改动从清单目录的 common-v13.css 同步) ==== */
- /* 字体:数值走 Inter(代码 NumText),代码 / 编号走 iOS 的 Menlo(代码 MonoText),正文仍是系统字 */
- @font-face{font-family:"Inter";src:url("assets/fonts/Inter-Regular.subset.otf") format("opentype");font-weight:400}
- @font-face{font-family:"Inter";src:url("assets/fonts/Inter-Medium.subset.otf") format("opentype");font-weight:500}
- @font-face{font-family:"Inter";src:url("assets/fonts/Inter-SemiBold.subset.otf") format("opentype");font-weight:600}
- @font-face{font-family:"Inter";src:url("assets/fonts/Inter-Bold.subset.otf") format("opentype");font-weight:700}
- :root{--font-num:"Inter","PingFang SC","Hiragino Sans GB",system-ui,sans-serif;--font-mono:Menlo,"SF Mono",ui-monospace,monospace}
- .phone .num,.hero .amt,.hero .grid3 b,.fxtab td,.pos-val b,.pos-pl,.pos-grid div b,.qt,.gt-r,.stepper i,.kbd span,.tl-i .amt{font-family:var(--font-num)}
- .statusbar .num{font-family:inherit}
- .phone .mono,.pos-code,.qc-sub,.qc-time,.fxtab td:first-child,.sug span,.tl-i .c span,.row .v.m{font-family:var(--font-mono)}
- /* 底栏:四个 Tab(票据 / 账户 / 消息 / 我的);消息 Tab 只有红点,后端不给条数 */
- .tb .tbi{position:relative;display:inline-flex;flex:none}
- .tb .tbi .rdot{position:absolute;top:-2px;left:14px;width:8px;height:8px;border-radius:50%;background:var(--danger);box-shadow:0 0 0 2px var(--surface)}
- /* 二级页导航栏:iOS 系统导航栏,表面色底、居中 17 / 600 标题、品牌色返回箭头、无分隔线(H5 标题靠左,见 00 规范) */
- .navbar{height:44px;background:var(--surface)}
- .statusbar:has(+ .navbar){background:var(--surface)}
- .navbar h2{font-size:17px;font-weight:600;letter-spacing:0}
- .navbar .bk{color:var(--brand)}
- .navbar .bk .icn{width:22px;height:22px;stroke-width:2.1}
- /* 图注里的身份标记:本期未上线 / v1.3 新增 / 平台限定 */
- .cap-flags{display:inline-flex;gap:6px;margin-left:8px;vertical-align:1px}
- .cap-flag{font-family:"PingFang SC",system-ui,sans-serif;font-size:10px;letter-spacing:.04em;padding:1px 6px;border-radius:4px;border:1px solid var(--canvas-line);color:var(--canvas-mute);background:var(--canvas-2)}
- .cap-flag.off{color:var(--accent);border-color:var(--accent-line);background:var(--accent-weak)}
- .cap-flag.new{color:var(--brand);border-color:var(--brand-line);background:var(--brand-weak)}
- .cap-flag.plat{color:var(--ok);border-color:rgba(15,123,79,.35);background:var(--ok-weak)}
- /* 实心底上的文字(角标 / 实心标签 / 危险按钮):浅色白字,深色下底色被提亮、改配近黑字(代码 $onFill / $onDanger) */
- [data-theme="dark"] .corner,[data-theme="dark"] .t-danger,[data-theme="dark"] .btn.danger,[data-theme="dark"] .mb,[data-theme="dark"] .gt-new::before{color:#05122E}
- /* 表格首列的迷你角标(代码 CornerBadge variant="mini"):9 / 600、左右 4 */
- .mb{display:inline-flex;align-items:center;font-size:9px;font-weight:600;line-height:12px;padding:1px 4px;border-radius:4px;color:#fff;background:var(--ink-3);white-space:nowrap}
- .mb.d{background:var(--danger)} .mb.a{background:var(--accent)} .mb.m{background:var(--ink-3)} .mb.b{background:var(--brand)}
- /* Toast:按内容定宽、最宽 290(代码 maxW 290),单行放得下就不折行;位置 top 76% */
- .toast{width:max-content;max-width:290px}
- /* ---- 通用组件(代码 components/ 的对应件) ---- */
- /* 资金看板右上「>」用 lg 档 */
- .hero .arrow{width:22px;height:22px}
- /* 只读行:InfoRow(无分隔线)/ FieldRow(带分隔线,.frow),左 ink2 右 Inter */
- .irow{display:flex;justify-content:space-between;align-items:center;padding:14px 15px;font-size:14.5px}
- .irow span{color:var(--ink-2)}
- .irow b{font-weight:400;font-family:var(--font-num);font-variant-numeric:tabular-nums}
- .irow b.dg{color:var(--danger)}
- .frow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 15px;border-bottom:1px solid var(--line);font-size:14.5px}
- .frow>span{color:var(--ink-2);display:flex;align-items:center;gap:6px}
- .frow>b{font-weight:400;font-family:var(--font-num);font-variant-numeric:tabular-nums;text-align:right}
- .frow.hl{background:var(--brand-weak)}
- .frow.hl>span,.frow.hl>b{color:var(--brand)}
- .frow.hl>b{font-weight:600}
- .frow.last,.frow:last-child{border-bottom:0}
- /* 字段说明 ⓘ(代码 IconButton name="info",ink4 14) */
- .xi{width:14px;height:14px;color:var(--ink-4);flex:none}
- /* 弹窗里的证券行(代码在前)与行情行 */
- .secl{display:flex;align-items:center;gap:7px}
- .secl .mono{font-size:12px;color:var(--ink-3)}
- .secl b{font-size:14.5px;font-weight:600}
- .phint{display:flex;gap:14px;margin-top:9px;font-size:12px;color:var(--ink-3)}
- .phint b{font-weight:400;font-family:var(--font-num);font-variant-numeric:tabular-nums}
- .field .num{font-family:var(--font-num)}
- .errtip .icn{width:13px;height:13px}
- .errtip.r{justify-content:flex-end}
- /* 时间片块(代码 TradingWindowDialog) */
- .twin{border-radius:10px;background:var(--surface-2);padding:13px 0;display:flex;flex-direction:column;align-items:center;gap:5px}
- .twin span{font-size:13px;color:var(--ink-3)}
- .twin b{font-size:17px;font-weight:600;font-family:var(--font-num)}
- /* 弹窗标题区(代码 DialogHeading):图标圆 44 + 标题 16.5 / 600 + 说明 14 / ink2 / 行高 23 */
- .dicon{width:44px;height:44px;border-radius:22px;display:flex;align-items:center;justify-content:center;margin:0 auto 6px}
- .dicon.warn{background:var(--warn-weak);color:var(--warn)}
- .dicon.danger{background:var(--danger-weak);color:var(--danger)}
- .dicon.ok{background:var(--ok-weak);color:var(--ok)}
- .dicon.brand{background:var(--brand-weak);color:var(--brand)}
- .dlg-hd .dsc{margin-top:6px;font-size:14px;color:var(--ink-2);line-height:23px}
- .dlg-ft span{font-weight:500}
- .dlg-ft span.off{color:var(--brand);opacity:.4}
- .dlg-ft span.dg{color:var(--danger)}
- /* 底部面板标题行(代码 SheetFrame 的四套头):select 左标题 + 右 × / centered 居中无关闭 / centered-close 居中 + 右 × / filter 左大标题 + 右 × */
- .shd{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 6px}
- .shd b{font-size:15.5px;font-weight:600}
- .shd .icn{color:var(--ink-3)}
- .shd-c{padding:16px 18px 4px;text-align:center;position:relative}
- .shd-c b{font-size:16.5px;font-weight:600}
- .shd-c .icn{position:absolute;right:18px;top:17px;color:var(--ink-3)}
- /* 单选面板的选项行(代码 SelectSheet) */
- .opt-row{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--line);font-size:14.5px;color:var(--ink-2)}
- .opt-row .icn{width:14px;height:14px;color:var(--brand)}
- .opt-row b{font-weight:400;color:var(--ink-1)}
- .opt-row.sel b{font-weight:600}
- .opt-row:last-child{border-bottom:0}
- /* 叠在另一层弹窗之上的第二层遮罩 */
- .scrim.top2{z-index:45}
- /* 列表尾的文字入口(历史票据 > 等) */
- .listfoot{display:flex;justify-content:center;align-items:center;gap:3px;padding:12px 0;font-size:13px;color:var(--brand)}
- .listfoot .icn{width:13px;height:13px}
- /* 分组标题(代码 Section 的标题:12 / ink3,上 16 下 8) */
- .gtitle{padding:16px 16px 8px}
- /* 转圈(代码 ProgressRing,下拉刷新 / 上拉加载 / 检索在搜共用) */
- @keyframes hh-spin{from{transform:rotate(-90deg)}to{transform:rotate(270deg)}}
- .ring{width:16px;height:16px;position:relative;flex:none;display:inline-block}
- .ring>svg{width:100%;height:100%;transform:rotate(-90deg);display:block}
- .ring .trk{fill:none;stroke:var(--line-2);stroke-width:2.8}
- .ring .bar{fill:none;stroke:var(--brand);stroke-width:2.8;stroke-linecap:round}
- .spin{animation:hh-spin .9s linear infinite}
- .ring.lg{width:24px;height:24px}
- .ring.lg .trk,.ring.lg .bar{stroke-width:2.2}
- /* 空态(代码 EmptyState):整页 120×104 / sm 72×62 / row 30×26 三档,插画取色走 --il-* */
- .emptyslot{flex:1;display:flex;align-items:center;justify-content:center;padding:0 0 204px}
- .emptybox{--il-a:#E7EDF6;--il-b:#D8E0EC;--il-c:#F8FAFE;display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 32px}
- [data-theme="dark"] .emptybox{--il-a:#1F2A45;--il-b:#161F38;--il-c:#28355A}
- .emptybox .illu{width:120px;height:104px;display:block}
- .emptybox .etxt{margin-top:16px;font-size:14px;color:var(--ink-3);letter-spacing:.1em}
- .emptybox .esub{margin-top:8px;font-size:12px;line-height:1.65;color:var(--ink-4);max-width:236px}
- .emptybox .eact{margin-top:20px}
- .emptybox.sm{padding:26px 20px}
- .emptybox.sm .illu{width:72px;height:62px}
- .emptybox.sm .etxt{margin-top:11px;font-size:12.5px;letter-spacing:.08em}
- .emptybox.row{flex-direction:row;align-items:center;justify-content:center;gap:10px;padding:9px 0}
- .emptybox.row .illu{width:30px;height:26px}
- .emptybox.row .etxt{margin-top:0;font-size:12.5px;letter-spacing:.06em}
- /* 状态点「已提交」档(代码 StatusSemantic submitted:未报 / 待报 / 待审批):品牌色空心 */
- .st.sub{color:var(--brand)}
- .st.sub i{background:transparent;border:1.6px solid currentColor}
- /* ---- 持仓卡片(代码 PositionCard)与通用表格(代码 DataTable) ---- */
- /* 持仓卡片:多枚角标并排;有角标时顶部只让到 15;估值后的币种小一号 */
- .pos .corners{position:absolute;left:0;top:0;display:flex;z-index:3}
- .pos .corners .corner{position:static}
- .pos:has(.corners) .pos-hd{padding-top:2px}
- .pos-val b small{font-size:13.5px;font-weight:400;color:var(--ink-2)}
- .pos-code b{font-weight:400;color:var(--accent)}
- /* 信息格五项一行:整行按宽度降档 12.5 / 11.5 / 10.5,最小档仍放不下时成对的值拆成两行(i) */
- .pos-grid.f5{display:flex;flex-wrap:wrap;column-gap:6px;row-gap:10px}
- .pos-grid.f5>div{flex:1 0 auto}
- .pos-grid.f5 div span{font-size:10px;letter-spacing:.02em}
- .pos-grid.f5 div b{font-size:12.5px;font-weight:500}
- .pos-grid.f5 div b em{font-size:11px;font-weight:400}
- .pos-grid.f5 div i{display:block;font-style:normal;font-size:11px;color:var(--ink-3);font-family:var(--font-num);font-variant-numeric:tabular-nums;white-space:nowrap}
- .pos-grid.f5.s115 div b{font-size:11.5px}.pos-grid.f5.s115 div b em{font-size:10px}
- .pos-grid.f5.s105 div b{font-size:10.5px}.pos-grid.f5.s105 div b em{font-size:9px}
- .pos-ops span.pri,.pos-ops span.hot{font-weight:500}
- /* 表格模式(DataTable):表头 36 / 行 52、单元格 12、列距 14,前两列冻结带右投影 */
- .ptab{background:var(--surface);overflow:hidden}
- .ptab .r{display:flex;align-items:stretch;height:52px;border-bottom:1px solid var(--line);font-size:12px;white-space:nowrap}
- .ptab .r.h{height:36px;background:var(--surface-2);font-size:10.5px;letter-spacing:.02em;color:var(--ink-3)}
- .ptab .fz,.ptab .sc{display:flex;align-items:center;gap:14px;flex:none}
- .ptab .fz{padding:0 14px 0 10px;background:var(--surface);position:relative;z-index:2;box-shadow:4px 0 10px rgba(15,27,51,.06)}
- [data-theme="dark"] .ptab .fz{box-shadow:4px 0 10px rgba(0,0,0,.35)}
- .ptab .r.h .fz{background:var(--surface-2)}
- .ptab .c{flex:none}
- .ptab .c.n{text-align:right;font-family:var(--font-num);font-variant-numeric:tabular-nums}
- .ptab .r.h .c.n{font-family:inherit}
- .ptab .c.n .sub{display:block;font-size:11px;color:var(--ink-3);margin-top:2px}
- .ptab .cat b{display:block;font-size:12px;font-weight:600}
- .ptab .cat b.db{color:var(--accent)}
- .ptab .cat .mbs{display:flex;gap:3px;margin-top:3px}
- .ptab .scd b{display:block;font-size:12px;font-weight:400}
- .ptab .scd span{display:flex;align-items:center;gap:4px;font-family:var(--font-mono);font-size:11px;color:var(--ink-3);margin-top:3px}
- .ptab .scd .cmark{width:13px;height:13px;font-size:8.5px}
- .ptab .opsrow{border-bottom:1px solid var(--line)}
- .ptab .opsrow .pos-ops{border-top:0}
- .ptab .r.sel,.ptab .r.sel .fz{background:var(--brand-weak)}
- .ptab .xrow{background:var(--surface-2);border-bottom:1px solid var(--line)}
- /* ---- 卡片 / 表格切换(代码 ViewModeToggle) ---- */
- .viewtog{display:inline-flex;padding:2px;background:var(--surface-2);border-radius:8px;gap:2px;flex:none;position:relative}
- .viewtog.sep{margin-left:4px}
- .viewtog.sep::before{content:"";position:absolute;left:-7px;top:2px;bottom:2px;width:1px;background:var(--line-2)}
- .viewtog span{width:28px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:6px;color:var(--ink-3)}
- .viewtog span.on{background:var(--surface);color:var(--brand);box-shadow:var(--shadow-card)}
- [data-theme="dark"] .viewtog span.on{background:var(--surface-3)}
- .viewtog .icn{width:15px;height:15px;stroke-width:1.8}
- /* ==== v1.3 公共覆盖 END ==== */
- </style>
- </head>
- <body>
- <svg width="0" height="0" style="position:absolute" aria-hidden="true"><defs>
- <g id="i-back"><polyline points="15 4 7 12 15 20"/></g>
- <g id="i-right"><polyline points="9 4 17 12 9 20"/></g>
- <g id="i-down"><polyline points="5 9 12 16 19 9"/></g>
- <g id="i-up"><polyline points="5 15 12 8 19 15"/></g>
- <g id="i-search"><circle cx="11" cy="11" r="6.5"/><line x1="16" y1="16" x2="21" y2="21"/></g>
- <g id="i-x"><line x1="6" y1="6" x2="18" y2="18"/><line x1="18" y1="6" x2="6" y2="18"/></g>
- <g id="i-check"><polyline points="4 12.5 9.5 18 20 6"/></g>
- <g id="i-plus"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></g>
- <g id="i-minus"><line x1="5" y1="12" x2="19" y2="12"/></g>
- <g id="i-eye"><path d="M2 12s3.6-6.5 10-6.5S22 12 22 12s-3.6 6.5-10 6.5S2 12 2 12z"/><circle cx="12" cy="12" r="2.6"/></g>
- <g id="i-eyeoff"><path d="M4 5l16 14"/><path d="M9.5 6.2A9.7 9.7 0 0 1 12 5.5c6.4 0 10 6.5 10 6.5a17 17 0 0 1-3.3 4"/><path d="M6.2 8.3A16.6 16.6 0 0 0 2 12s3.6 6.5 10 6.5a10 10 0 0 0 3.3-.55"/></g>
- <g id="i-clock"><circle cx="12" cy="12" r="8.5"/><polyline points="12 7 12 12 15.5 14"/></g>
- <g id="i-history"><path d="M3.5 12a8.5 8.5 0 1 0 2.6-6.1"/><polyline points="3 4 3 9 8 9"/><polyline points="12 7.5 12 12 15.5 14"/></g>
- <g id="i-filter"><path d="M4 6h16l-6.2 7.4V19l-3.6-2v-3.6z"/></g>
- <g id="i-calendar"><rect x="3.5" y="5" width="17" height="15.5" rx="2.5"/><line x1="3.5" y1="9.5" x2="20.5" y2="9.5"/><line x1="8" y1="3" x2="8" y2="6.5"/><line x1="16" y1="3" x2="16" y2="6.5"/></g>
- <g id="i-note"><path d="M6 3h8l4.5 4.5V21H6z"/><polyline points="14 3 14 8 18.5 8"/><line x1="9" y1="13" x2="15" y2="13"/><line x1="9" y1="17" x2="13" y2="17"/></g>
- <g id="i-wallet"><rect x="3" y="6" width="18" height="14" rx="3"/><path d="M3 10h18"/><circle cx="16.5" cy="15" r="1.3" fill="currentColor" stroke="none"/></g>
- <g id="i-user"><circle cx="12" cy="8.5" r="3.8"/><path d="M4.5 20.5a7.5 7.5 0 0 1 15 0"/></g>
- <g id="i-transfer"><polyline points="7 7 4 10 7 13"/><path d="M4 10h12a4 4 0 0 1 0 8h-3"/><polyline points="17 17 20 14 17 11" opacity="0"/></g>
- <g id="i-swap"><polyline points="8 5 4.5 8.5 8 12"/><line x1="4.5" y1="8.5" x2="19" y2="8.5"/><polyline points="16 19 19.5 15.5 16 12"/><line x1="19.5" y1="15.5" x2="5" y2="15.5"/></g>
- <g id="i-refresh"><path d="M20 12a8 8 0 1 1-2.4-5.7"/><polyline points="20 4 20 9 15 9"/></g>
- <g id="i-help"><circle cx="12" cy="12" r="8.6"/><path d="M9.6 9.6a2.5 2.5 0 1 1 3.2 2.4c-.6.2-.9.7-.9 1.4v.5"/><circle cx="11.9" cy="16.6" r=".9" fill="currentColor" stroke="none"/></g>
- <g id="i-info"><circle cx="12" cy="12" r="8.6"/><line x1="12" y1="11" x2="12" y2="16.5"/><circle cx="12" cy="7.8" r=".9" fill="currentColor" stroke="none"/></g>
- <g id="i-alert"><path d="M12 4.5 21 19.5H3z"/><line x1="12" y1="10" x2="12" y2="14.5"/><circle cx="12" cy="17" r=".9" fill="currentColor" stroke="none"/></g>
- <g id="i-lock"><rect x="5" y="10.5" width="14" height="10" rx="2.5"/><path d="M8.2 10.5V8a3.8 3.8 0 0 1 7.6 0v2.5"/></g>
- <g id="i-key"><circle cx="8" cy="14" r="4"/><path d="M11 11.5 20 3"/><line x1="17" y1="6" x2="19" y2="8"/></g>
- <g id="i-shield"><path d="M12 3.5 19 6v6c0 4.2-2.9 7.2-7 8.5-4.1-1.3-7-4.3-7-8.5V6z"/><polyline points="9 12 11.3 14.3 15.3 10.3"/></g>
- <g id="i-font"><path d="M4 19 10 5l6 14"/><line x1="6.2" y1="14.5" x2="13.8" y2="14.5"/><path d="M17 19l3-8 3 8" transform="scale(.72) translate(6.5 5)"/></g>
- <g id="i-doc"><rect x="4.5" y="3.5" width="15" height="17" rx="2.5"/><line x1="8" y1="9" x2="16" y2="9"/><line x1="8" y1="13" x2="16" y2="13"/><line x1="8" y1="17" x2="12.5" y2="17"/></g>
- <g id="i-logout"><path d="M14 5H6.5A2.5 2.5 0 0 0 4 7.5v9A2.5 2.5 0 0 0 6.5 19H14"/><polyline points="16.5 8 20.5 12 16.5 16"/><line x1="20.5" y1="12" x2="10" y2="12"/></g>
- <g id="i-fee"><circle cx="12" cy="12" r="8.5"/><path d="M9.5 9h5M9.5 12h5M12 9v8"/></g>
- <g id="i-theme"><circle cx="12" cy="12" r="7.5"/><path d="M12 4.5v15a7.5 7.5 0 0 0 0-15z" fill="currentColor" stroke="none"/></g>
- <g id="i-lang"><path d="M2.8 6.1h8.4"/><path d="M7 4.2v1.9"/><path d="M9.4 6.1c-.4 4.1-2.6 6.9-6.2 8.4"/><path d="M5.4 9.4c1 2.2 2.7 3.8 5.1 4.7"/><path d="M12.4 20.2 16.4 9.6l4 10.6"/><line x1="13.7" y1="16.9" x2="19.1" y2="16.9"/></g>
- <g id="i-sun"><circle cx="12" cy="12" r="4.2"/><line x1="12" y1="2.5" x2="12" y2="5"/><line x1="12" y1="19" x2="12" y2="21.5"/><line x1="2.5" y1="12" x2="5" y2="12"/><line x1="19" y1="12" x2="21.5" y2="12"/><line x1="5.4" y1="5.4" x2="7.1" y2="7.1"/><line x1="16.9" y1="16.9" x2="18.6" y2="18.6"/><line x1="5.4" y1="18.6" x2="7.1" y2="16.9"/><line x1="16.9" y1="7.1" x2="18.6" y2="5.4"/></g>
- <g id="i-moon"><path d="M20 14.2A8.4 8.4 0 0 1 9.8 4 8.6 8.6 0 1 0 20 14.2z"/></g>
- <g id="i-bell"><path d="M18 16V11a6 6 0 1 0-12 0v5l-1.6 2.5h15.2z"/><path d="M9.8 21a2.4 2.4 0 0 0 4.4 0"/></g>
- <g id="i-list"><line x1="4" y1="7" x2="20" y2="7"/><line x1="4" y1="12" x2="20" y2="12"/><line x1="4" y1="17" x2="20" y2="17"/></g>
- <g id="i-sort"><polyline points="7 9 10 6 13 9"/><polyline points="7 15 10 18 13 15"/></g>
- <g id="i-trend"><polyline points="3 16 9 10 13 14 21 6"/><polyline points="15.5 6 21 6 21 11.5"/></g>
- <g id="i-img"><rect x="3.5" y="5" width="17" height="14" rx="2.5"/><circle cx="9" cy="10" r="1.6"/><polyline points="5 17 10 12 13.5 15.5 16.5 13 19.5 16"/></g>
- <g id="i-upload"><path d="M12 16V5"/><polyline points="7.5 9.5 12 5 16.5 9.5"/><path d="M4 15v3.5A2.5 2.5 0 0 0 6.5 21h11a2.5 2.5 0 0 0 2.5-2.5V15"/></g>
- <g id="i-megaphone"><path d="M4 10.2v3.6a1.8 1.8 0 0 0 1.8 1.8H8l6.6 3.9a1 1 0 0 0 1.5-.86V5.36a1 1 0 0 0-1.5-.86L8 8.4H5.8A1.8 1.8 0 0 0 4 10.2Z"/><path d="M19 9.6a3.6 3.6 0 0 1 0 4.8"/><path d="M8 15.6v2.6a2 2 0 0 0 2 2h.4"/></g>
- <g id="i-faceid"><path d="M4 9.2V6.6A2.6 2.6 0 0 1 6.6 4H9.2"/><path d="M14.8 4h2.6A2.6 2.6 0 0 1 20 6.6v2.6"/><path d="M20 14.8v2.6a2.6 2.6 0 0 1-2.6 2.6h-2.6"/><path d="M9.2 20H6.6A2.6 2.6 0 0 1 4 17.4v-2.6"/><line x1="9.1" y1="9.6" x2="9.1" y2="11.2"/><line x1="14.9" y1="9.6" x2="14.9" y2="11.2"/><path d="M12 9.4v3.9a.9.9 0 0 1-.9.9h-.5"/><path d="M9.3 15.9c1.7 1.4 3.7 1.4 5.4 0"/></g>
- <g id="i-touchid"><path d="M2.9 9.9A9.7 9.7 0 0 1 12 3.2a9.7 9.7 0 0 1 9.1 6.7"/><path d="M5.9 13.1a6.1 6.1 0 0 1 12.2 0v1.3"/><path d="M9 13.1a3 3 0 0 1 6 0v2.6a7.4 7.4 0 0 1-.5 2.7"/><path d="M12 13v3.9a10 10 0 0 1-.9 4.1"/><path d="M6 17.9A9.6 9.6 0 0 1 5.9 16.4"/><path d="M18 16.5a11.6 11.6 0 0 1-.6 3.2"/></g>
- <g id="i-face"><rect x="4" y="4" width="16" height="16" rx="4"/><circle cx="9.3" cy="10.5" r=".9" fill="currentColor" stroke="none"/><circle cx="14.7" cy="10.5" r=".9" fill="currentColor" stroke="none"/><path d="M9 15c1.8 1.5 4.2 1.5 6 0"/></g>
- <g id="i-globe"><circle cx="12" cy="12" r="8.6"/><ellipse cx="12" cy="12" rx="4.1" ry="8.6"/><line x1="3.6" y1="9" x2="20.4" y2="9"/><line x1="3.6" y1="15" x2="20.4" y2="15"/></g>
- </defs></svg>
- <div class="sheet-head">
- <div class="brandmark">
- <div class="glyph"></div>
- <div>
- <div class="sheet-title">多语言 · 语言切换入口与 UI</div>
- <div class="sheet-sub">票据投资者 APP / 简体中文 · 繁體中文 · English | 入口位置 · 语言设置页 · 切换流程 · 组件规格</div>
- </div>
- </div>
- <div class="head-right">
- <div class="meta">
- <div>模块<b>多语言 I18N</b></div>
- <div>规格<b>iOS 390 × 844 @3x</b></div>
- <div>语言<b>zh-CN / zh-Hant-HK / en-US</b></div>
- <div>版本<b>v1.3 · 2026-10-14</b></div>
- </div>
- <div class="lang" role="group" aria-label="语言切换">
- <button data-lang="zh" class="on"><svg viewBox="0 0 24 24"><use href="#i-lang"/></svg>简</button>
- <button data-lang="tw"><svg viewBox="0 0 24 24"><use href="#i-lang"/></svg>繁</button>
- <button data-lang="en"><svg viewBox="0 0 24 24"><use href="#i-globe"/></svg>EN</button>
- </div>
- <div class="skin" role="group" aria-label="主题切换">
- <button data-set="light" class="on"><svg viewBox="0 0 24 24"><use href="#i-sun"/></svg>浅色</button>
- <button data-set="dark"><svg viewBox="0 0 24 24"><use href="#i-moon"/></svg>深色</button>
- </div>
- </div>
- </div>
- <div class="sec">
- <div class="sec-head"><span class="sec-num">01</span><span class="sec-name">语种 · 入口 · 切换机制 · 约束</span><span class="sec-rule"></span><span class="sec-note">v1.3 按代码现状重画;繁 / 英译文为 AI 起草、待产品与合规审校</span></div>
- <div class="cards">
- <div class="card-x">
- <h4>语种 LOCALES</h4>
- <div class="kv">
- <div class="r"><span>简体中文</span><b class="mono">zh-CN</b></div>
- <div class="r"><span>繁體中文</span><b class="mono">zh-Hant-HK</b></div>
- <div class="r"><span>English</span><b class="mono">en-US</b></div>
- <div class="r"><span>缺省</span><b>跟随系统</b></div>
- <div class="r"><span>系统匹配</span><b>zh-Hant / HK / TW / MO / yue → 繁;其余中文 → 简;英文 → EN;都不中 → 简</b></div>
- </div>
- </div>
- <div class="card-x">
- <h4>入口 ENTRY</h4>
- <div class="bullets">
- <li><b>我的 → 语言</b>:「外观与偏好」组,紧随「外观」</li>
- <li><b>登录页左上角</b>:地球 + 语种自名 → 底部弹层,未登录也能切</li>
- <li>只有这两处;正文页一律不放语言开关</li>
- </div>
- </div>
- <div class="card-x">
- <h4>切换机制 MECHANISM</h4>
- <div class="bullets">
- <li>偏好 <code>language</code>(跟随系统 / 三语之一)只存本机,与皮肤一样不经后端</li>
- <li>切换即重渲染,不重挂、不清导航栈;遮罩用目标语言书写,300 ~ 600ms</li>
- <li>每个请求带 <code>X-Lang</code> = 生效语言;切换后服务端内容全量失效重取</li>
- </div>
- </div>
- <div class="card-x">
- <h4>约束 CONSTRAINTS</h4>
- <div class="bullets">
- <li>金额 / 比例 / 汇率 / 日期 / 时间 / 手机号三语完全一致(EN 日期仍是 <code>2026-08-28</code>)</li>
- <li>名义本金缩写:简「200万」· 繁「200萬」· EN「2M / 500K」</li>
- <li>EN 不缩字号、不改尺寸;人名、机构名、证券代码不翻译</li>
- <li>后端尚未按 <code>X-Lang</code> 下发:繁 / 英界面下错误提示、字典标签、帮助内容等仍为简体</li>
- </div>
- </div>
- </div>
- </div>
- <div class="sec">
- <div class="sec-head"><span class="sec-num">02</span><span class="sec-name">界面与状态</span><span class="sec-rule"></span><span class="sec-note">5 帧 · 点右上角「简 / 繁 / EN」查看三语呈现,可与深浅主题叠加</span></div>
- <div class="frames">
- <!-- ===== L1 个人中心 · 语言入口位置 ===== -->
- <div class="frame">
- <div class="phone">
- <div class="screen">
- <div class="statusbar"><span class="num">9:41</span><span class="ic"><svg class="icn sm" viewBox="0 0 24 24" style="fill:currentColor;stroke:none"><rect x="1" y="14" width="3.4" height="6" rx="1"/><rect x="6.4" y="10" width="3.4" height="10" rx="1"/><rect x="11.8" y="6" width="3.4" height="14" rx="1"/><rect x="17.2" y="3" width="3.4" height="17" rx="1" opacity=".35"/></svg><svg class="icn sm" viewBox="0 0 24 24" style="fill:currentColor;stroke:none"><path d="M12 19.5 2 9a14 14 0 0 1 20 0z" opacity=".95"/></svg><svg class="icn" viewBox="0 0 30 24" style="fill:none;stroke:currentColor;stroke-width:1.5;width:24px"><rect x="1.5" y="7" width="21" height="11" rx="3"/><rect x="3.6" y="9.1" width="14" height="6.8" rx="1.6" fill="currentColor" stroke="none"/><path d="M24.5 11v6a3.2 3.2 0 0 0 0-6z" fill="currentColor" stroke="none"/></svg></span></div>
- <div class="appbar"><h1><u data-l="zh tw">我的</u><u data-l="en">Profile</u></h1></div>
- <div class="body">
- <div class="pfhero"><span class="av">张</span><div><div class="nm">张三</div><div class="ac">ceshi01</div></div><span class="cat"><u data-l="zh">A类</u><u data-l="tw">A類</u><u data-l="en">Class A</u></span></div>
- <div class="gtitle"><u data-l="zh">账户</u><u data-l="tw">帳戶</u><u data-l="en">Account</u></div>
- <div class="menu"><div class="mi"><span class="ib"><svg class="icn sm" viewBox="0 0 24 24"><use href="#i-doc"/></svg></span><span class="tx"><u data-l="zh">账户信息</u><u data-l="tw">帳戶資料</u><u data-l="en">Account Profile</u></span><span class="rv"><svg class="icn" viewBox="0 0 24 24"><use href="#i-right"/></svg></span></div><div class="mi"><span class="ib"><svg class="icn sm" viewBox="0 0 24 24"><use href="#i-fee"/></svg></span><span class="tx"><u data-l="zh">费用信息</u><u data-l="tw">費用資訊</u><u data-l="en">Fee Schedule</u></span><span class="rv"><svg class="icn" viewBox="0 0 24 24"><use href="#i-right"/></svg></span></div></div>
- <div class="gtitle"><u data-l="zh">外观与偏好</u><u data-l="tw">外觀與偏好</u><u data-l="en">Appearance & Preferences</u></div>
- <div class="menu"><div class="mi"><span class="ib"><svg class="icn sm" viewBox="0 0 24 24"><use href="#i-theme"/></svg></span><span class="tx"><u data-l="zh">外观</u><u data-l="tw">外觀</u><u data-l="en">Appearance</u></span><span class="rv"><u data-l="zh">跟随系统 · 红涨绿跌</u><u data-l="tw">跟隨系統 · 紅漲綠跌</u><u data-l="en">System · Red Up</u><svg class="icn" viewBox="0 0 24 24"><use href="#i-right"/></svg></span></div><div class="mi hl"><span class="ib"><svg class="icn sm" viewBox="0 0 24 24"><use href="#i-lang"/></svg></span><span class="tx"><u data-l="zh">语言</u><u data-l="tw">語言</u><u data-l="en">Language</u></span><span class="rv"><u data-l="zh">简体中文</u><u data-l="tw">繁體中文</u><u data-l="en">English</u><svg class="icn" viewBox="0 0 24 24"><use href="#i-right"/></svg></span></div><div class="mi"><span class="ib"><svg class="icn sm" viewBox="0 0 24 24"><use href="#i-font"/></svg></span><span class="tx"><u data-l="zh">字体大小</u><u data-l="tw">字體大小</u><u data-l="en">Text Size</u><span class="pflag">APP</span></span><span class="rv"><u data-l="zh">标准</u><u data-l="tw">標準</u><u data-l="en">Default</u><svg class="icn" viewBox="0 0 24 24"><use href="#i-right"/></svg></span></div></div>
- <div class="gtitle"><u data-l="zh tw">安全</u><u data-l="en">Security</u></div>
- <div class="menu"><div class="mi"><span class="ib"><svg class="icn sm" viewBox="0 0 24 24"><use href="#i-lock"/></svg></span><span class="tx"><u data-l="zh">登录解锁设置</u><u data-l="tw">登入解鎖設定</u><u data-l="en">App Lock</u><span class="pflag">APP</span></span><span class="rv"><u data-l="zh">30分钟 · 面容 ID</u><u data-l="tw">30分鐘 · Face ID</u><u data-l="en">30 min · Face ID</u><svg class="icn" viewBox="0 0 24 24"><use href="#i-right"/></svg></span></div><div class="mi"><span class="ib"><svg class="icn sm" viewBox="0 0 24 24"><use href="#i-key"/></svg></span><span class="tx"><u data-l="zh">修改密码</u><u data-l="tw">修改密碼</u><u data-l="en">Change Password</u></span><span class="rv"><svg class="icn" viewBox="0 0 24 24"><use href="#i-right"/></svg></span></div></div>
- </div>
- <div class="tabbar"><div class="tb"><span class="tbi"><svg class="icn" viewBox="0 0 24 24"><use href="#i-note"/></svg></span><u data-l="zh">票据</u><u data-l="tw">票據</u><u data-l="en">Notes</u></div><div class="tb"><span class="tbi"><svg class="icn" viewBox="0 0 24 24"><use href="#i-wallet"/></svg></span><u data-l="zh">账户</u><u data-l="tw">帳戶</u><u data-l="en">Account</u></div><div class="tb"><span class="tbi"><svg class="icn" viewBox="0 0 24 24"><use href="#i-bell"/></svg><i class="rdot"></i></span><u data-l="zh">消息</u><u data-l="tw">訊息</u><u data-l="en">Messages</u></div><div class="tb on"><span class="tbi"><svg class="icn" viewBox="0 0 24 24"><use href="#i-user"/></svg></span><u data-l="zh tw">我的</u><u data-l="en">Profile</u></div></div>
- <div class="homebar"></div>
- </div>
- </div>
- <div class="cap">
- <div class="cap-num">L1</div>
- <div class="cap-title">个人中心 · 语言入口位置</div>
- <ul>
- <li>与 <code>06</code> M1 同一页:「语言」在「外观与偏好」组、紧随「外观」,行尾回显语种自名(简体中文 / 繁體中文 / English)</li>
- <li>菜单一律单行、没有副标题与「新增」标签;图标与同组一样蓝底(框线只为标出这一行)</li>
- <li>人名与账号三语不变;品类胶囊 A类 / A類 / Class A</li>
- </ul>
- </div>
- </div>
- <!-- ===== L2 语言设置 · 单选列表 ===== -->
- <div class="frame">
- <div class="phone">
- <div class="screen">
- <div class="statusbar"><span class="num">9:41</span><span class="ic"><svg class="icn sm" viewBox="0 0 24 24" style="fill:currentColor;stroke:none"><rect x="1" y="14" width="3.4" height="6" rx="1"/><rect x="6.4" y="10" width="3.4" height="10" rx="1"/><rect x="11.8" y="6" width="3.4" height="14" rx="1"/><rect x="17.2" y="3" width="3.4" height="17" rx="1" opacity=".35"/></svg><svg class="icn sm" viewBox="0 0 24 24" style="fill:currentColor;stroke:none"><path d="M12 19.5 2 9a14 14 0 0 1 20 0z" opacity=".95"/></svg><svg class="icn" viewBox="0 0 30 24" style="fill:none;stroke:currentColor;stroke-width:1.5;width:24px"><rect x="1.5" y="7" width="21" height="11" rx="3"/><rect x="3.6" y="9.1" width="14" height="6.8" rx="1.6" fill="currentColor" stroke="none"/><path d="M24.5 11v6a3.2 3.2 0 0 0 0-6z" fill="currentColor" stroke="none"/></svg></span></div>
- <div class="navbar"><span class="bk"><svg class="icn" viewBox="0 0 24 24"><use href="#i-back"/></svg></span><h2><u data-l="zh">语言</u><u data-l="tw">語言</u><u data-l="en">Language</u></h2></div>
- <div class="body">
- <div class="gtitle"><u data-l="zh">显示语言</u><u data-l="tw">顯示語言</u><u data-l="en">Display Language</u></div>
- <div class="card" style="margin:0 16px"><div class="lrow on"><div class="nm"><b><u data-l="zh">跟随系统语言</u><u data-l="tw">跟隨系統語言</u><u data-l="en">Use Device Language</u></b><em><u data-l="zh">系统当前 简体中文</u><u data-l="tw">系統目前 繁體中文</u><u data-l="en">Currently English</u></em></div><span class="ck"><svg class="icn" viewBox="0 0 24 24"><use href="#i-check"/></svg></span></div><div class="lrow"><div class="nm"><b>简体中文</b><em class="mono">zh-CN</em></div><span class="ck"><svg class="icn" viewBox="0 0 24 24"><use href="#i-check"/></svg></span></div><div class="lrow"><div class="nm"><b>繁體中文</b><em class="mono">zh-Hant-HK</em></div><span class="ck"><svg class="icn" viewBox="0 0 24 24"><use href="#i-check"/></svg></span></div><div class="lrow"><div class="nm"><b>English</b><em class="mono">en-US</em></div><span class="ck"><svg class="icn" viewBox="0 0 24 24"><use href="#i-check"/></svg></span></div></div>
- </div>
- <div class="homebar"></div>
- </div>
- </div>
- <div class="cap">
- <div class="cap-num">L2</div>
- <div class="cap-title">语言设置 · 单选列表</div>
- <ul>
- <li>「显示语言」一组四行单选:跟随系统语言(缺省,副行「系统当前 X」)+ 三个语种,副行是 BCP 47 标签</li>
- <li>语种名永远用自身语言书写,切到 EN 仍是「简体中文 / 繁體中文 / English」;点选即切换,没有保存键</li>
- <li><b>不做格式预览卡与提示条</b>:数字与日期三语完全一致,没有可预览的差异</li>
- </ul>
- </div>
- </div>
- <!-- ===== L3 切换中 · 全局重渲染 ===== -->
- <div class="frame">
- <div class="phone">
- <div class="screen">
- <div class="statusbar"><span class="num">9:41</span><span class="ic"><svg class="icn sm" viewBox="0 0 24 24" style="fill:currentColor;stroke:none"><rect x="1" y="14" width="3.4" height="6" rx="1"/><rect x="6.4" y="10" width="3.4" height="10" rx="1"/><rect x="11.8" y="6" width="3.4" height="14" rx="1"/><rect x="17.2" y="3" width="3.4" height="17" rx="1" opacity=".35"/></svg><svg class="icn sm" viewBox="0 0 24 24" style="fill:currentColor;stroke:none"><path d="M12 19.5 2 9a14 14 0 0 1 20 0z" opacity=".95"/></svg><svg class="icn" viewBox="0 0 30 24" style="fill:none;stroke:currentColor;stroke-width:1.5;width:24px"><rect x="1.5" y="7" width="21" height="11" rx="3"/><rect x="3.6" y="9.1" width="14" height="6.8" rx="1.6" fill="currentColor" stroke="none"/><path d="M24.5 11v6a3.2 3.2 0 0 0 0-6z" fill="currentColor" stroke="none"/></svg></span></div>
- <div class="navbar"><span class="bk"><svg class="icn" viewBox="0 0 24 24"><use href="#i-back"/></svg></span><h2><u data-l="zh">语言</u><u data-l="tw">語言</u><u data-l="en">Language</u></h2></div>
- <div class="body">
- <div class="gtitle"><u data-l="zh">显示语言</u><u data-l="tw">顯示語言</u><u data-l="en">Display Language</u></div>
- <div class="card" style="margin:0 16px"><div class="lrow on"><div class="nm"><b><u data-l="zh">跟随系统语言</u><u data-l="tw">跟隨系統語言</u><u data-l="en">Use Device Language</u></b><em><u data-l="zh">系统当前 简体中文</u><u data-l="tw">系統目前 繁體中文</u><u data-l="en">Currently English</u></em></div><span class="ck"><svg class="icn" viewBox="0 0 24 24"><use href="#i-check"/></svg></span></div><div class="lrow"><div class="nm"><b>简体中文</b><em class="mono">zh-CN</em></div><span class="ck"><svg class="icn" viewBox="0 0 24 24"><use href="#i-check"/></svg></span></div><div class="lrow"><div class="nm"><b>繁體中文</b><em class="mono">zh-Hant-HK</em></div><span class="ck"><svg class="icn" viewBox="0 0 24 24"><use href="#i-check"/></svg></span></div><div class="lrow"><div class="nm"><b>English</b><em class="mono">en-US</em></div><span class="ck"><svg class="icn" viewBox="0 0 24 24"><use href="#i-check"/></svg></span></div></div>
- </div>
- <div class="scrim center">
- <div class="swcard"><span class="ring"><svg class="spin" viewBox="0 0 24 24"><circle class="trk" cx="12" cy="12" r="10"/><circle class="bar" cx="12" cy="12" r="10" stroke-dasharray="17 62.83"/></svg></span><span><u data-l="zh">正在切换语言…</u><u data-l="tw">正在切換語言…</u><u data-l="en">Switching language…</u></span></div>
- </div>
- <div class="homebar"></div>
- </div>
- </div>
- <div class="cap">
- <div class="cap-num">L3</div>
- <div class="cap-title">切换中 · 全局重渲染</div>
- <ul>
- <li>点选后弹小卡遮罩:转圈 +「正在切换语言…」,<b>用目标语言书写</b>(切 EN 显示 Switching language…)</li>
- <li>遮罩至少 300ms、最多 600ms,超时不阻塞:内置文案即时切换,服务端内容全量失效、随下一次请求刷新</li>
- <li>不重启、不清导航栈,切完仍停在语言页</li>
- </ul>
- </div>
- </div>
- <!-- ===== L4 登录页 · 左上角语言入口 ===== -->
- <div class="frame">
- <div class="phone">
- <div class="screen">
- <div class="statusbar"><span class="num">9:41</span><span class="ic"><svg class="icn sm" viewBox="0 0 24 24" style="fill:currentColor;stroke:none"><rect x="1" y="14" width="3.4" height="6" rx="1"/><rect x="6.4" y="10" width="3.4" height="10" rx="1"/><rect x="11.8" y="6" width="3.4" height="14" rx="1"/><rect x="17.2" y="3" width="3.4" height="17" rx="1" opacity=".35"/></svg><svg class="icn sm" viewBox="0 0 24 24" style="fill:currentColor;stroke:none"><path d="M12 19.5 2 9a14 14 0 0 1 20 0z" opacity=".95"/></svg><svg class="icn" viewBox="0 0 30 24" style="fill:none;stroke:currentColor;stroke-width:1.5;width:24px"><rect x="1.5" y="7" width="21" height="11" rx="3"/><rect x="3.6" y="9.1" width="14" height="6.8" rx="1.6" fill="currentColor" stroke="none"/><path d="M24.5 11v6a3.2 3.2 0 0 0 0-6z" fill="currentColor" stroke="none"/></svg></span></div>
- <div class="lgtop"><span class="lgl hl"><svg class="icn" viewBox="0 0 24 24"><use href="#i-globe"/></svg><u data-l="zh">简体中文</u><u data-l="tw">繁體中文</u><u data-l="en">English</u></span><span class="hp"><svg class="icn" viewBox="0 0 24 24"><use href="#i-help"/></svg></span></div>
- <div class="body lgbody">
- <img class="mark" src="assets/brand/honmatrix-icon.png" alt="">
- <h1><u data-l="zh">欢迎回来</u><u data-l="tw">歡迎回來</u><u data-l="en">Welcome Back</u></h1>
- <div class="sub"><u data-l="zh">登录后查看您的票据持仓与询价</u><u data-l="tw">登入後查看您的票據持倉與詢價</u><u data-l="en">Sign in to view your note positions and inquiries</u></div>
- <div class="fld"><span class="lbl"><u data-l="zh">账号</u><u data-l="tw">帳號</u><u data-l="en">Account No.</u></span><div class="field"><svg class="icn sm" viewBox="0 0 24 24"><use href="#i-user"/></svg><span class="ph"><u data-l="zh">输入账号</u><u data-l="tw">輸入帳號</u><u data-l="en">Enter your account number</u></span></div></div>
- <div class="fld"><span class="lbl"><u data-l="zh">密码</u><u data-l="tw">密碼</u><u data-l="en">Password</u></span><div class="field"><svg class="icn sm" viewBox="0 0 24 24"><use href="#i-lock"/></svg><span class="ph"><u data-l="zh">登录密码</u><u data-l="tw">登入密碼</u><u data-l="en">Enter your password</u></span><span class="tr"><svg class="icn" viewBox="0 0 24 24"><use href="#i-eyeoff"/></svg></span></div></div>
- <div class="btn wide off"><u data-l="zh">登录</u><u data-l="tw">登入</u><u data-l="en">Sign In</u></div>
- </div>
- <div class="lgfoot"><u data-l="zh">登录即代表您已阅读并同意<b>《用户协议》</b>与<b>《隐私政策》</b></u><u data-l="tw">登入即代表您已閱讀並同意<b>《用戶協議》</b>與<b>《私隱政策》</b></u><u data-l="en">By signing in you agree to the <b>Terms of Service</b> and <b>Privacy Policy</b></u></div>
- <div class="homebar"></div>
- </div>
- </div>
- <div class="cap">
- <div class="cap-num">L4</div>
- <div class="cap-title">登录页 · 左上角语言入口</div>
- <ul>
- <li>登录页顶栏左侧「地球 + 当前语种自名」(未登录也能切),右侧帮助问号;两者分居两侧,帮助隐藏时语言不位移</li>
- <li>版式与 <code>01</code> L2 一致;框线只为标出入口</li>
- </ul>
- </div>
- </div>
- <!-- ===== L5 登录页 · 语言弹层 ===== -->
- <div class="frame">
- <div class="phone">
- <div class="screen">
- <div class="statusbar"><span class="num">9:41</span><span class="ic"><svg class="icn sm" viewBox="0 0 24 24" style="fill:currentColor;stroke:none"><rect x="1" y="14" width="3.4" height="6" rx="1"/><rect x="6.4" y="10" width="3.4" height="10" rx="1"/><rect x="11.8" y="6" width="3.4" height="14" rx="1"/><rect x="17.2" y="3" width="3.4" height="17" rx="1" opacity=".35"/></svg><svg class="icn sm" viewBox="0 0 24 24" style="fill:currentColor;stroke:none"><path d="M12 19.5 2 9a14 14 0 0 1 20 0z" opacity=".95"/></svg><svg class="icn" viewBox="0 0 30 24" style="fill:none;stroke:currentColor;stroke-width:1.5;width:24px"><rect x="1.5" y="7" width="21" height="11" rx="3"/><rect x="3.6" y="9.1" width="14" height="6.8" rx="1.6" fill="currentColor" stroke="none"/><path d="M24.5 11v6a3.2 3.2 0 0 0 0-6z" fill="currentColor" stroke="none"/></svg></span></div>
- <div class="lgtop"><span class="lgl"><svg class="icn" viewBox="0 0 24 24"><use href="#i-globe"/></svg><u data-l="zh">简体中文</u><u data-l="tw">繁體中文</u><u data-l="en">English</u></span><span class="hp"><svg class="icn" viewBox="0 0 24 24"><use href="#i-help"/></svg></span></div>
- <div class="body lgbody">
- <img class="mark" src="assets/brand/honmatrix-icon.png" alt="">
- <h1><u data-l="zh">欢迎回来</u><u data-l="tw">歡迎回來</u><u data-l="en">Welcome Back</u></h1>
- <div class="sub"><u data-l="zh">登录后查看您的票据持仓与询价</u><u data-l="tw">登入後查看您的票據持倉與詢價</u><u data-l="en">Sign in to view your note positions and inquiries</u></div>
- <div class="fld"><span class="lbl"><u data-l="zh">账号</u><u data-l="tw">帳號</u><u data-l="en">Account No.</u></span><div class="field"><svg class="icn sm" viewBox="0 0 24 24"><use href="#i-user"/></svg><span class="ph"><u data-l="zh">输入账号</u><u data-l="tw">輸入帳號</u><u data-l="en">Enter your account number</u></span></div></div>
- <div class="fld"><span class="lbl"><u data-l="zh">密码</u><u data-l="tw">密碼</u><u data-l="en">Password</u></span><div class="field"><svg class="icn sm" viewBox="0 0 24 24"><use href="#i-lock"/></svg><span class="ph"><u data-l="zh">登录密码</u><u data-l="tw">登入密碼</u><u data-l="en">Enter your password</u></span><span class="tr"><svg class="icn" viewBox="0 0 24 24"><use href="#i-eyeoff"/></svg></span></div></div>
- <div class="btn wide off"><u data-l="zh">登录</u><u data-l="tw">登入</u><u data-l="en">Sign In</u></div>
- </div>
- <div class="lgfoot"><u data-l="zh">登录即代表您已阅读并同意<b>《用户协议》</b>与<b>《隐私政策》</b></u><u data-l="tw">登入即代表您已閱讀並同意<b>《用戶協議》</b>與<b>《私隱政策》</b></u><u data-l="en">By signing in you agree to the <b>Terms of Service</b> and <b>Privacy Policy</b></u></div>
- <div class="scrim bottom">
- <div class="dlg sheet fsheet">
- <div class="fsheet-hd"><b><u data-l="zh">选择语言</u><u data-l="tw">選擇語言</u><u data-l="en">Select Language</u></b><svg class="icn" viewBox="0 0 24 24"><use href="#i-x"/></svg></div>
- <div class="sheetrows" style="padding:6px 4px 0">
- <div class="lrow" data-sel="zh"><div class="nm"><b>简体中文</b><em class="mono">zh-CN</em></div><span class="ck"><svg class="icn" viewBox="0 0 24 24"><use href="#i-check"/></svg></span></div>
- <div class="lrow" data-sel="tw"><div class="nm"><b>繁體中文</b><em class="mono">zh-Hant-HK</em></div><span class="ck"><svg class="icn" viewBox="0 0 24 24"><use href="#i-check"/></svg></span></div>
- <div class="lrow" data-sel="en"><div class="nm"><b>English</b><em class="mono">en-US</em></div><span class="ck"><svg class="icn" viewBox="0 0 24 24"><use href="#i-check"/></svg></span></div>
- </div>
- <div class="fsheet-ft"><span class="btn ghost"><u data-l="zh tw">取消</u><u data-l="en">Cancel</u></span><span class="btn"><u data-l="zh">确认</u><u data-l="tw">確認</u><u data-l="en">Confirm</u></span></div>
- </div>
- </div>
- <div class="homebar"></div>
- </div>
- </div>
- <div class="cap">
- <div class="cap-num">L5</div>
- <div class="cap-title">登录页 · 语言弹层</div>
- <ul>
- <li>底部弹层:大标题「选择语言」+ ×,三行单选(当前语言打勾),底栏「取消 · 确认」(0.82 / 1.18)</li>
- <li>点「确认」才切换;未登录态只写本机偏好,与皮肤一样不经后端保存</li>
- <li>选中项随右上角「简 / 繁 / EN」开关变化</li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- <div class="sec">
- <div class="sec-head"><span class="sec-num">03</span><span class="sec-name">组件规格</span><span class="sec-rule"></span><span class="sec-note">五个组件构成全部语言切换界面 · 数值取自代码</span></div>
- <table class="spec">
- <tr><th style="width:150px">组件</th><th style="width:360px">规格</th><th>说明</th></tr>
- <tr><td><b>A · 我的菜单行</b></td><td class="m">图标底 30×30 r9 · 标题 15 · 回显 13.5 ink-3 · 行内边距 15</td><td>单行、无副标题;回显语种自名</td></tr>
- <tr><td><b>B · 语言单选行</b></td><td class="m">主名 15/500(选中 600 brand)· 副行 11 mono(BCP 47)或 11.5 · 对勾 brand · 上下 14</td><td>语言页左右 15、弹层左右 20;按压 surface-2</td></tr>
- <tr><td><b>C · 登录页语言按钮</b></td><td class="m">地球 18 + 语种名 13 ink-2 · 间距 5 · 顶栏高 46、左右 16 · 热区 ≥ 44</td><td>必须带语种名,只放地球用户不知道点了做什么</td></tr>
- <tr><td><b>D · 底部语言弹层</b></td><td class="m">圆角 18 18 0 0 · 标题 17/600 + × · 行区 6 / 4 · 底栏 0.82 / 1.18 · 底部 22</td><td>「取消 · 确认」;确认才切换</td></tr>
- <tr><td><b>E · 切换遮罩</b></td><td class="m">小卡最窄 196 r18 · 转圈 · 文案 14 ink-2 · 内边距 26 / 30 / 22 · 间距 15</td><td>用目标语言书写;300 ~ 600ms</td></tr>
- </table>
- </div>
- <div class="sec" style="margin-bottom:20px">
- <div class="sec-head"><span class="sec-num">04</span><span class="sec-name">语言切换规格</span><span class="sec-rule"></span><span class="sec-note">开发与测试的验收口径</span></div>
- <table class="spec">
- <tr><th style="width:130px">项目</th><th style="width:320px">规格</th><th>说明 / 边界</th></tr>
- <tr><td><b>语种清单</b></td><td>简体中文 <code>zh-CN</code> 繁體中文 <code>zh-Hant-HK</code> English <code>en-US</code></td><td>语种名一律用其自身语言书写;BCP 47 标签同时是落盘值与 <code>X-Lang</code> 取值</td></tr>
- <tr><td><b>入口</b></td><td>登录页左上角 → 弹层;我的 → 外观与偏好 → 语言</td><td>全站只有这两处</td></tr>
- <tr><td><b>缺省与首启</b></td><td>跟随系统;对不上回落简体</td><td>不做首启语言选择页</td></tr>
- <tr><td><b>触发与生效</b></td><td>语言页点选即切;弹层点「确认」才切</td><td>重渲染,不重启、不清导航栈</td></tr>
- <tr><td><b>过渡</b></td><td>小卡遮罩,300 ~ 600ms</td><td>超时不阻塞;服务端内容全量失效随下次请求刷新</td></tr>
- <tr><td><b>持久化</b></td><td>本机偏好 <code>language</code></td><td>与皮肤各自独立;不经后端、未登录也能切</td></tr>
- <tr><td><b>H5</b></td><td>同一套页面与入口</td><td>首屏静态 HTML 固定简体,水合后切到偏好语言</td></tr>
- <tr><td><b>系统弹窗</b></td><td>iOS 权限说明随系统语言</td><td>Info.plist 文案不随 App 内语言变化</td></tr>
- </table>
- </div>
- <script>
- (function(){
- var root=document.documentElement;
- var skinBtns=document.querySelectorAll('.skin button');
- var langBtns=document.querySelectorAll('.lang button');
- document.querySelectorAll('[data-clone]').forEach(function(el){
- var src=document.querySelector(el.getAttribute('data-clone'));
- if(src) el.innerHTML=src.innerHTML;
- });
- function setSkin(t){
- root.setAttribute('data-theme',t);
- skinBtns.forEach(function(b){b.classList.toggle('on',b.dataset.set===t)});
- document.querySelectorAll('.phone:not([data-lock])').forEach(function(p){p.setAttribute('data-theme',t)});
- try{localStorage.setItem('hh-skin',t)}catch(e){}
- }
- var LANGATTR={zh:'zh-CN',tw:'zh-Hant-HK',en:'en-US'};
- function setLang(l){
- root.setAttribute('data-lang',l);
- root.setAttribute('lang',LANGATTR[l]||'zh-CN');
- langBtns.forEach(function(b){b.classList.toggle('on',b.dataset.lang===l)});
- try{localStorage.setItem('hh-lang',l)}catch(e){}
- }
- skinBtns.forEach(function(b){b.addEventListener('click',function(){setSkin(b.dataset.set)})});
- langBtns.forEach(function(b){b.addEventListener('click',function(){setLang(b.dataset.lang)})});
- document.body.setAttribute('data-h',String(document.body.scrollHeight));
- var hash=(location.hash||'').replace('#','');
- var savedSkin=null,savedLang=null;
- try{savedSkin=localStorage.getItem('hh-skin');savedLang=localStorage.getItem('hh-lang')}catch(e){}
- setSkin(hash==='dark'||hash==='light'?hash:(savedSkin||'light'));
- setLang(/^(zh|tw|en)$/.test(hash)?hash:(savedLang||'zh'));
- })();
- </script>
- </body>
- </html>
|