07_多语言_中繁英切换.html 94 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278
  1. <!DOCTYPE html>
  2. <html lang="zh-CN" data-theme="light" data-lang="zh">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1">
  6. <title>多语言 · 中繁英三语切换</title>
  7. <style>
  8. /* ============================================================
  9. 共赢票据投资者 APP — 深空蓝设计系统 (Deep-Space Blue)
  10. 双主题:data-theme="light" | "dark",可作用于 :root 或任意容器
  11. ============================================================ */
  12. /* ---------- 浅色(默认) ---------- */
  13. :root,
  14. [data-theme="light"]{
  15. --canvas:#E7ECF4; /* 图纸底 */
  16. --canvas-2:#F4F7FB; /* 图纸卡片 */
  17. --canvas-line:#D3DCE8;
  18. --canvas-ink:#0F1B33;
  19. --canvas-mute:#647591;
  20. --app-bg:#F6F8FB; /* App 页面底 */
  21. --surface:#FFFFFF; /* 卡片/导航 */
  22. --surface-2:#F1F4F9; /* 次级面/表头 */
  23. --surface-3:#E8EDF5; /* 三级面 */
  24. --line:#E3E9F1;
  25. --line-2:#CFD9E7;
  26. --ink-1:#0F1B33;
  27. --ink-2:#4C5C78;
  28. --ink-3:#8A99B2;
  29. --ink-4:#AEBACD;
  30. --brand:#1B4FD8;
  31. --brand-2:#123CAE;
  32. --brand-weak:#E7EEFF;
  33. --brand-line:#B9CDFF;
  34. --on-brand:#FFFFFF;
  35. --accent:#B4700E; /* 琥珀 强调 */
  36. --accent-weak:#FDF2DE;
  37. --accent-line:#EBCD97;
  38. --rise:#E5484D; /* 涨 / 盈利 */
  39. --fall:#12A594; /* 跌 / 亏损 */
  40. --rise-weak:#FDECEC;
  41. --fall-weak:#E3F7F3;
  42. --warn:#C2410C;
  43. --warn-weak:#FEF0E6;
  44. --danger:#DC2626;
  45. --danger-weak:#FDEBEB;
  46. --ok:#0F7B4F;
  47. --ok-weak:#E4F5EC;
  48. --shadow-card:0 1px 2px rgba(15,27,51,.05),0 8px 24px rgba(15,27,51,.06);
  49. --shadow-phone:0 18px 44px rgba(15,27,51,.16),0 2px 6px rgba(15,27,51,.08);
  50. --shadow-pop:0 12px 40px rgba(15,27,51,.20);
  51. --scrim:rgba(11,18,34,.42);
  52. --bezel:#C7D2E2;
  53. --glow:none;
  54. }
  55. /* ---------- 深色 ---------- */
  56. [data-theme="dark"]{
  57. --canvas:#060A14;
  58. --canvas-2:#0E1526;
  59. --canvas-line:#1E2A44;
  60. --canvas-ink:#E9EFFA;
  61. --canvas-mute:#8797B4;
  62. --app-bg:#0B1020;
  63. --surface:#131B2E;
  64. --surface-2:#18223A;
  65. --surface-3:#1E2A45;
  66. --line:#232F4B;
  67. --line-2:#32436A;
  68. --ink-1:#EAF0FA;
  69. --ink-2:#A5B4D0;
  70. --ink-3:#7486A5;
  71. --ink-4:#54658A;
  72. --brand:#5B8CFF;
  73. --brand-2:#7FA6FF;
  74. --brand-weak:rgba(91,140,255,.16);
  75. --brand-line:rgba(91,140,255,.42);
  76. --on-brand:#05122E;
  77. --accent:#F0A93B;
  78. --accent-weak:rgba(240,169,59,.15);
  79. --accent-line:rgba(240,169,59,.42);
  80. --rise:#FF6B6E;
  81. --fall:#2FD4B9;
  82. --rise-weak:rgba(255,107,110,.14);
  83. --fall-weak:rgba(47,212,185,.14);
  84. --warn:#F59E42;
  85. --warn-weak:rgba(245,158,66,.14);
  86. --danger:#FF6B6E;
  87. --danger-weak:rgba(255,107,110,.14);
  88. --ok:#2FD4B9;
  89. --ok-weak:rgba(47,212,185,.14);
  90. --shadow-card:0 1px 2px rgba(0,0,0,.4),0 8px 24px rgba(0,0,0,.34);
  91. --shadow-phone:0 20px 50px rgba(0,0,0,.6),0 0 0 1px rgba(91,140,255,.10);
  92. --shadow-pop:0 14px 44px rgba(0,0,0,.62);
  93. --scrim:rgba(2,6,16,.62);
  94. --bezel:#26324C;
  95. --glow:0 0 0 1px rgba(91,140,255,.14);
  96. }
  97. /* ---------- 基础 ---------- */
  98. *{box-sizing:border-box;margin:0;padding:0}
  99. html{-webkit-text-size-adjust:100%}
  100. body{
  101. background:var(--canvas);color:var(--canvas-ink);
  102. font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",sans-serif;
  103. -webkit-font-smoothing:antialiased;
  104. padding:44px 46px 110px;
  105. transition:background .28s ease,color .28s ease;
  106. }
  107. .mono{font-family:"SF Mono",ui-monospace,"JetBrains Mono",Menlo,Consolas,monospace}
  108. .num{font-variant-numeric:tabular-nums;letter-spacing:.01em}
  109. /* ---------- 图纸头 ---------- */
  110. .sheet-head{
  111. display:flex;flex-wrap:wrap;gap:32px;align-items:flex-end;justify-content:space-between;
  112. padding-bottom:24px;margin-bottom:44px;border-bottom:1px solid var(--canvas-line);
  113. }
  114. .brandmark{display:flex;align-items:center;gap:14px}
  115. .brandmark .glyph{
  116. width:44px;height:44px;border-radius:12px;flex:none;position:relative;
  117. background:linear-gradient(145deg,var(--brand),var(--brand-2));
  118. box-shadow:0 6px 18px rgba(27,79,216,.28);
  119. }
  120. .brandmark .glyph::before{
  121. content:"";position:absolute;inset:12px 11px;border:1.6px solid rgba(255,255,255,.9);
  122. border-radius:2px;border-bottom-width:4px;
  123. }
  124. .brandmark .glyph::after{
  125. content:"";position:absolute;right:8px;top:8px;width:7px;height:7px;border-radius:50%;background:var(--accent);
  126. }
  127. .sheet-title{font-size:26px;font-weight:650;letter-spacing:.02em;line-height:1.2}
  128. .sheet-sub{margin-top:6px;font-size:12.5px;color:var(--canvas-mute);letter-spacing:.02em}
  129. .head-right{display:flex;align-items:center;gap:26px;flex-wrap:wrap}
  130. .meta{display:flex;gap:26px}
  131. .meta div{font-size:10.5px;color:var(--canvas-mute);letter-spacing:.1em;text-transform:uppercase}
  132. .meta b{display:block;margin-top:5px;font-size:12.5px;color:var(--canvas-ink);font-weight:550;letter-spacing:0;text-transform:none}
  133. /* 换肤开关 */
  134. .skin{
  135. display:flex;align-items:center;gap:0;padding:3px;border-radius:9px;
  136. background:var(--canvas-2);border:1px solid var(--canvas-line);
  137. }
  138. .skin button{
  139. border:0;background:transparent;cursor:pointer;font:inherit;
  140. padding:7px 13px;border-radius:6px;font-size:12px;color:var(--canvas-mute);
  141. display:flex;align-items:center;gap:6px;letter-spacing:.04em;transition:.2s;
  142. }
  143. .skin button.on{background:var(--brand);color:#fff;box-shadow:0 2px 8px rgba(27,79,216,.3)}
  144. [data-theme="dark"] .skin button.on{color:#04122F}
  145. .skin svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  146. /* ---------- 章节 ---------- */
  147. .sec{margin-bottom:60px}
  148. .sec-head{display:flex;align-items:baseline;gap:14px;margin-bottom:24px}
  149. .sec-num{
  150. font-family:"SF Mono",ui-monospace,Menlo,monospace;font-size:11px;color:var(--brand);
  151. letter-spacing:.12em;padding:3px 8px;border:1px solid var(--brand-line);border-radius:5px;background:var(--brand-weak);
  152. }
  153. .sec-name{font-size:17px;font-weight:600;letter-spacing:.04em}
  154. .sec-rule{flex:1;height:1px;background:var(--canvas-line)}
  155. .sec-note{font-size:12px;color:var(--canvas-mute)}
  156. /* ---------- 说明卡 ---------- */
  157. .cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
  158. .card-x{background:var(--canvas-2);border:1px solid var(--canvas-line);border-radius:12px;padding:18px 20px}
  159. .card-x h4{font-size:11px;font-weight:600;letter-spacing:.14em;color:var(--canvas-mute);margin-bottom:14px;text-transform:uppercase}
  160. .kv{display:flex;flex-direction:column;gap:10px}
  161. .kv .r{display:flex;justify-content:space-between;gap:14px;font-size:12.5px;line-height:1.5}
  162. .kv .r span{color:var(--canvas-mute)}
  163. .kv .r b{font-weight:520;text-align:right;font-variant-numeric:tabular-nums}
  164. .bullets{display:flex;flex-direction:column;gap:9px}
  165. .bullets li{list-style:none;font-size:12.5px;line-height:1.65;color:var(--canvas-mute);padding-left:14px;position:relative}
  166. .bullets li::before{content:"";position:absolute;left:0;top:8px;width:6px;height:1.5px;background:var(--brand);border-radius:1px}
  167. .bullets b{color:var(--canvas-ink);font-weight:560}
  168. 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}
  169. /* ---------- 色板 ---------- */
  170. .pal{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:10px}
  171. .sw{border:1px solid var(--canvas-line);border-radius:10px;overflow:hidden;background:var(--canvas-2)}
  172. .sw .chip{height:56px;display:flex;align-items:flex-end;justify-content:flex-end;padding:7px 9px}
  173. .sw .chip i{font-style:normal;font-size:9.5px;color:rgba(255,255,255,.85);font-family:"SF Mono",monospace}
  174. .sw .lb{padding:9px 11px}
  175. .sw .lb b{display:block;font-size:12px;font-weight:560}
  176. .sw .lb em{font-style:normal;display:block;font-size:10.5px;color:var(--canvas-mute);margin-top:3px;font-family:"SF Mono",monospace}
  177. /* ---------- 表 ---------- */
  178. 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}
  179. table.spec th{
  180. background:var(--surface-2);text-align:left;padding:11px 14px;font-size:10.5px;font-weight:600;
  181. letter-spacing:.1em;color:var(--canvas-mute);text-transform:uppercase;border-bottom:1px solid var(--canvas-line);
  182. }
  183. table.spec td{padding:11px 14px;border-bottom:1px solid var(--canvas-line);color:var(--canvas-mute);line-height:1.6;vertical-align:top}
  184. table.spec tr:last-child td{border-bottom:0}
  185. table.spec td b{color:var(--canvas-ink);font-weight:550}
  186. table.spec td.m{font-family:"SF Mono",ui-monospace,Menlo,monospace;color:var(--canvas-ink);font-size:11.5px}
  187. /* ---------- 画板 ---------- */
  188. .frames{display:grid;grid-template-columns:repeat(auto-fit,minmax(390px,390px));gap:52px 36px;justify-content:start}
  189. .frame{width:390px}
  190. .frame.w2{grid-column:span 2}
  191. .phone{
  192. width:390px;height:844px;border-radius:42px;overflow:hidden;position:relative;
  193. background:var(--app-bg);border:1px solid var(--bezel);box-shadow:var(--shadow-phone);
  194. font-size:15px;color:var(--ink-1);transition:background .28s ease,border-color .28s ease;
  195. isolation:isolate;
  196. }
  197. .cap{margin-top:18px;padding-left:13px;border-left:2px solid var(--brand)}
  198. .cap-num{font-family:"SF Mono",ui-monospace,Menlo,monospace;font-size:10.5px;color:var(--brand);letter-spacing:.12em}
  199. .cap-title{font-size:14.5px;font-weight:600;margin:5px 0 8px;letter-spacing:.02em}
  200. .cap ul{list-style:none;display:flex;flex-direction:column;gap:6px}
  201. .cap li{font-size:12px;line-height:1.62;color:var(--canvas-mute);padding-left:12px;position:relative}
  202. .cap li::before{content:"";position:absolute;left:0;top:8px;width:5px;height:1px;background:var(--canvas-line)}
  203. .cap li b{color:var(--canvas-ink);font-weight:550}
  204. .cap code{font-size:11px;background:var(--surface-3)}
  205. /* ============================================================
  206. App 内部组件
  207. ============================================================ */
  208. .screen{position:absolute;inset:0;display:flex;flex-direction:column;overflow:hidden;background:var(--app-bg)}
  209. .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)}
  210. .statusbar .ic{display:flex;gap:6px;align-items:center;opacity:.9}
  211. .statusbar svg{height:12px;fill:currentColor}
  212. .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}
  213. /* 顶栏 */
  214. .navbar{height:46px;flex:none;display:flex;align-items:center;padding:0 16px;position:relative;background:var(--app-bg)}
  215. .navbar h2{position:absolute;left:0;right:0;text-align:center;font-size:16.5px;font-weight:600;letter-spacing:.03em}
  216. .navbar .bk,.navbar .rt{position:relative;z-index:2;color:var(--ink-2);display:flex;align-items:center;gap:5px;font-size:13px}
  217. .navbar .rt{margin-left:auto;color:var(--brand)}
  218. .icn{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
  219. .icn.sm{width:14px;height:14px}
  220. .icn.lg{width:22px;height:22px}
  221. .appbar{padding:4px 20px 0;flex:none}
  222. .appbar h1{font-size:22px;font-weight:650;letter-spacing:.02em;display:flex;align-items:center;gap:9px}
  223. .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}
  224. /* 顶栏铃铛 · 未读红点 */
  225. .bellwrap{position:relative;display:inline-flex;flex:none}
  226. .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}
  227. /* 两行顶栏(标题 + 分段控件)的标题行:标题左、铃铛右 */
  228. .apphd{display:flex;align-items:center;justify-content:space-between}
  229. /* 分段控件 */
  230. .seg{display:flex;padding:3px;background:var(--surface-2);border-radius:9px;gap:2px}
  231. .seg span{flex:1;text-align:center;padding:7px 0;font-size:13.5px;color:var(--ink-3);border-radius:7px;transition:.2s}
  232. .seg span.on{background:var(--surface);color:var(--ink-1);font-weight:600;box-shadow:var(--shadow-card)}
  233. [data-theme="dark"] .seg span.on{background:var(--surface-3);color:var(--brand)}
  234. /* 下划线 tab */
  235. .tabs{display:flex;gap:24px;padding:0 20px;border-bottom:1px solid var(--line);flex:none;background:var(--app-bg)}
  236. .tabs span{padding:12px 1px 11px;font-size:14.5px;color:var(--ink-3);position:relative;white-space:nowrap}
  237. .tabs span.on{color:var(--ink-1);font-weight:600}
  238. .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)}
  239. .tabs span .dot{position:absolute;top:9px;right:-7px;width:6px;height:6px;padding:0;font-size:0;border-radius:50%;background:var(--danger)}
  240. .tabs span em{font-style:normal;color:var(--danger)}
  241. /* 底部 tabbar */
  242. .tabbar{height:72px;flex:none;display:flex;background:var(--surface);border-top:1px solid var(--line);padding-bottom:10px}
  243. .tb{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:10.5px;color:var(--ink-3)}
  244. .tb.on{color:var(--brand)}
  245. .tb .icn{width:21px;height:21px;stroke-width:1.6}
  246. /* 滚动体 */
  247. .body{flex:1;overflow:hidden;position:relative}
  248. .pad{padding:0 16px}
  249. /* 卡片 */
  250. .card{background:var(--surface);border-radius:14px;box-shadow:var(--shadow-card);overflow:hidden}
  251. [data-theme="dark"] .card{border:1px solid var(--line)}
  252. .card + .card:not(.pos):not(.qc){margin-top:11px}
  253. .card-hd{display:flex;align-items:center;justify-content:space-between;padding:13px 15px 0}
  254. .card-hd h3{font-size:14.5px;font-weight:600}
  255. .card-hd .more{font-size:12px;color:var(--ink-3);display:flex;align-items:center;gap:2px}
  256. /* 资金看板 */
  257. .hero{
  258. margin:10px 16px 0;border-radius:16px;padding:18px 18px 16px;position:relative;overflow:hidden;
  259. background:linear-gradient(150deg,#1B4FD8 0%,#123CAE 58%,#0C2C86 100%);color:#fff;
  260. box-shadow:0 12px 30px rgba(18,60,174,.30);
  261. }
  262. [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)}
  263. .hero::after{content:"";position:absolute;right:-40px;top:-52px;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.07)}
  264. [data-theme="dark"] .hero::after{background:rgba(91,140,255,.10)}
  265. .hero .lb{display:flex;align-items:center;gap:6px;font-size:12.5px;color:rgba(255,255,255,.76)}
  266. .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}
  267. .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}
  268. .hero .amt .eye{opacity:.6}
  269. .hero .arrow{position:absolute;right:18px;top:20px;opacity:.75}
  270. .hero .grid3{display:flex;margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.16)}
  271. .hero .grid3 div{flex:1}
  272. .hero .grid3 span{display:block;font-size:11px;color:rgba(255,255,255,.7)}
  273. .hero .grid3 b{display:block;margin-top:5px;font-size:14.5px;font-weight:600;font-variant-numeric:tabular-nums}
  274. /* 币种表 */
  275. .fxtab{width:100%;border-collapse:collapse;font-size:12.5px}
  276. .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)}
  277. .fxtab th:first-child{text-align:left}
  278. .fxtab td{padding:10px 15px;text-align:right;font-variant-numeric:tabular-nums;color:var(--ink-1);border-top:1px solid var(--line)}
  279. .fxtab td:first-child{text-align:left;font-family:"SF Mono",monospace;font-size:12px;color:var(--ink-2)}
  280. /* 快捷入口 */
  281. .quick{display:flex;gap:11px;margin:11px 16px 0}
  282. .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}
  283. [data-theme="dark"] .qk{border:1px solid var(--line)}
  284. .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}
  285. .qk b{font-size:13.5px;font-weight:550}
  286. .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)}
  287. /* 列表行 */
  288. .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}
  289. .row:last-child{border-bottom:0}
  290. .row .k{color:var(--ink-2);display:flex;align-items:center;gap:7px;flex:none}
  291. .row .k .icn{color:var(--ink-3)}
  292. .row .v{color:var(--ink-1);font-variant-numeric:tabular-nums;display:flex;align-items:center;gap:6px;text-align:right}
  293. .row .v.ph{color:var(--ink-4)}
  294. .row .v.m{font-family:"SF Mono",monospace;font-size:13.5px}
  295. .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}
  296. /* 标签 / 徽标 */
  297. .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}
  298. .t-brand{background:var(--brand-weak);color:var(--brand)}
  299. .t-accent{background:var(--accent-weak);color:var(--accent)}
  300. .t-rise{background:var(--rise-weak);color:var(--rise)}
  301. .t-fall{background:var(--fall-weak);color:var(--fall)}
  302. .t-ok{background:var(--ok-weak);color:var(--ok)}
  303. .t-warn{background:var(--warn-weak);color:var(--warn)}
  304. .t-mute{background:var(--surface-3);color:var(--ink-3)}
  305. .t-solid{background:var(--brand);color:var(--on-brand)}
  306. .t-danger{background:var(--danger);color:#fff}
  307. .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}
  308. .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}
  309. .corner.due{background:var(--accent)}
  310. .corner.pend{background:var(--ink-3)}
  311. /* 状态点 */
  312. .st{display:inline-flex;align-items:center;gap:5px;font-size:12.5px}
  313. .st i{width:6px;height:6px;border-radius:50%;flex:none;background:currentColor}
  314. .st.wait{color:var(--ink-3)}
  315. .st.live{color:var(--accent)}
  316. .st.live i{background:transparent;border:1.6px solid currentColor}
  317. .st.done{color:var(--ok)}
  318. .st.rej{color:var(--danger)}
  319. .st.exp{color:var(--ink-4)}
  320. /* 按钮 */
  321. .btn{
  322. height:46px;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:6px;
  323. background:var(--brand);color:var(--on-brand);font-size:15.5px;font-weight:600;letter-spacing:.06em;
  324. box-shadow:0 6px 16px rgba(27,79,216,.24);
  325. }
  326. [data-theme="dark"] .btn{box-shadow:0 6px 18px rgba(91,140,255,.20)}
  327. .btn.sm{height:38px;font-size:14px;border-radius:10px;box-shadow:none}
  328. .btn.off{background:var(--surface-3);color:var(--ink-4);box-shadow:none}
  329. .btn.ghost{background:transparent;border:1px solid var(--line-2);color:var(--ink-2);box-shadow:none;font-weight:500}
  330. .btn.danger{background:var(--danger);box-shadow:none;color:#fff}
  331. .btn.wide{width:100%}
  332. .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)}
  333. /* 输入 */
  334. .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)}
  335. .field.focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-weak)}
  336. .field.err{border-color:var(--danger);box-shadow:0 0 0 3px var(--danger-weak)}
  337. .field .ph{color:var(--ink-4)}
  338. .field .icn{color:var(--ink-3)}
  339. .field .unit{margin-left:auto;color:var(--ink-2);font-size:13.5px}
  340. .lbl{font-size:11.5px;color:var(--ink-3);letter-spacing:.06em;margin-bottom:7px;display:block}
  341. .errtip{font-size:11.5px;color:var(--danger);margin-top:6px;display:flex;align-items:center;gap:4px}
  342. /* chips */
  343. .chips{display:flex;gap:7px;flex-wrap:wrap}
  344. .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}
  345. .chip.on{background:var(--brand-weak);border-color:var(--brand-line);color:var(--brand);font-weight:560}
  346. .chip.dash{border-style:dashed}
  347. /* 单选 / 复选 */
  348. .rad{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:var(--ink-2)}
  349. .rad i{width:15px;height:15px;border-radius:50%;border:1.4px solid var(--line-2);position:relative;flex:none}
  350. .rad.on{color:var(--ink-1)}
  351. .rad.on i{border-color:var(--brand)}
  352. .rad.on i::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--brand)}
  353. .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}
  354. .cb.on{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
  355. .cb .icn{width:11px;height:11px;stroke-width:2.6}
  356. /* 步进器 */
  357. .stepper{height:38px;border:1px solid var(--line-2);border-radius:10px;display:flex;align-items:center;overflow:hidden;background:var(--surface)}
  358. .stepper b{width:34px;text-align:center;font-weight:400;font-size:17px;color:var(--ink-3)}
  359. .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}
  360. .stepper.err{border-color:var(--danger)}
  361. .stepper.err i{color:var(--danger)}
  362. /* 搜索 */
  363. .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)}
  364. .search .icn{color:var(--ink-3)}
  365. .search b{color:var(--ink-1);font-weight:500}
  366. .sug{background:var(--surface);border-radius:12px;box-shadow:var(--shadow-pop);overflow:hidden;margin-top:6px}
  367. .sug div{padding:11px 13px;font-size:14px;border-bottom:1px solid var(--line);display:flex;gap:8px}
  368. .sug div:last-child{border-bottom:0}
  369. .sug em{font-style:normal;color:var(--brand)}
  370. .sug span{font-family:"SF Mono",monospace;font-size:12.5px;color:var(--ink-3)}
  371. /* 弹窗 */
  372. .scrim{position:absolute;inset:0;background:var(--scrim);z-index:40;display:flex;align-items:center;justify-content:center;padding:0 30px}
  373. .scrim.bottom{align-items:flex-end;padding:0}
  374. .dlg{width:100%;background:var(--surface);border-radius:16px;overflow:hidden;box-shadow:var(--shadow-pop)}
  375. .dlg.sheet{border-radius:18px 18px 0 0;padding-bottom:22px}
  376. .dlg-hd{padding:18px 18px 0;text-align:center}
  377. .dlg-hd h3{font-size:16.5px;font-weight:600}
  378. .dlg-bd{padding:14px 18px 4px;font-size:14px;color:var(--ink-2);line-height:1.65}
  379. .dlg-ft{display:flex;border-top:1px solid var(--line);margin-top:16px}
  380. .dlg-ft span{flex:1;text-align:center;padding:14px 0;font-size:15.5px;color:var(--brand);font-weight:550}
  381. .dlg-ft span:first-child{color:var(--ink-2);border-right:1px solid var(--line)}
  382. .dlg-ft.single span{color:var(--brand)}
  383. .dlg-btns{display:flex;gap:11px;padding:16px 18px 0}
  384. .dlg-btns .btn{flex:1}
  385. /* toast */
  386. .toast{
  387. position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);z-index:50;
  388. 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;
  389. }
  390. [data-theme="dark"] .toast{background:rgba(230,238,250,.94);color:#0B1020}
  391. /* 提示条 */
  392. .notice{display:flex;gap:8px;padding:10px 12px;border-radius:10px;font-size:12.5px;line-height:1.6}
  393. .notice.warn{background:var(--warn-weak);color:var(--warn)}
  394. .notice.info{background:var(--brand-weak);color:var(--brand)}
  395. .notice.danger{background:var(--danger-weak);color:var(--danger)}
  396. .notice .icn{flex:none;margin-top:1px}
  397. /* 空态 */
  398. .empty{padding:44px 0;text-align:center;color:var(--ink-4);font-size:13.5px}
  399. .empty .icn{width:34px;height:34px;stroke-width:1.2;margin-bottom:10px;color:var(--ink-4)}
  400. /* 分组标题 */
  401. .gtitle{padding:16px 16px 8px;font-size:12px;color:var(--ink-3);letter-spacing:.06em}
  402. /* 骨架/遮罩说明用 */
  403. .dim{opacity:.45}
  404. /* ============================================================
  405. 业务组件
  406. ============================================================ */
  407. /* 筛选栏 */
  408. .filterbar{display:flex;gap:8px;padding:10px 16px;background:var(--app-bg);flex:none;align-items:center}
  409. .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}
  410. .fb.on{background:var(--brand-weak);color:var(--brand);font-weight:550}
  411. .fb .icn{width:13px;height:13px}
  412. .fb.flex{flex:1;min-width:0}
  413. /* 筛选栏 v2 —— 搜索行 + 条件行(时间在左,筛选入口在右) */
  414. .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}
  415. .fsearch .icn{width:16px;height:16px;color:var(--ink-3);flex:none}
  416. .fsearch b{color:var(--ink-1);font-weight:500}
  417. .fsearch .clr{margin-left:auto;color:var(--ink-4)}
  418. .fcond{display:flex;align-items:center;justify-content:space-between;padding:11px 16px;flex:none;background:var(--app-bg)}
  419. .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}
  420. .fpill .icn{width:13px;height:13px;color:var(--ink-3)}
  421. .fpill.on{background:var(--brand-weak);border-color:var(--brand-line);color:var(--brand);font-weight:560}
  422. .fpill.on .icn{color:var(--brand)}
  423. .fmore{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:var(--ink-2);position:relative;padding-right:2px}
  424. .fmore .icn{width:15px;height:15px;color:var(--ink-3)}
  425. .fmore.on{color:var(--brand);font-weight:560}
  426. .fmore.on .icn{color:var(--brand)}
  427. .fmore.on::after{content:"";position:absolute;right:-5px;top:-3px;width:6px;height:6px;border-radius:50%;background:var(--danger)}
  428. /* 筛选面板 —— 底部弹层 */
  429. .fsheet{padding-bottom:20px}
  430. .fsheet-hd{display:flex;align-items:center;justify-content:space-between;padding:20px 20px 2px}
  431. .fsheet-hd b{font-size:17px;font-weight:600;letter-spacing:.02em}
  432. .fsheet-hd .icn{width:19px;height:19px;color:var(--ink-3)}
  433. .fsec{padding:16px 20px 0}
  434. .fsec .lbl{margin-bottom:10px}
  435. .optgrid{display:grid;grid-template-columns:1fr 1fr;gap:11px}
  436. .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}
  437. .opt.on{background:var(--brand-weak);border-color:var(--brand);color:var(--brand);font-weight:600}
  438. .opt.dis{background:var(--surface-2);border-color:var(--line);color:var(--ink-4)}
  439. .fline{height:1px;background:var(--line);margin:18px 20px 0}
  440. /* 自定义区间 · 日期段 + 滚轮 */
  441. .dtrow{display:flex;gap:11px}
  442. .dt{flex:1;min-width:0;background:var(--surface);border:1px solid var(--line-2);border-radius:12px;padding:8px 12px 10px}
  443. .dt em{display:block;font-style:normal;font-size:11px;color:var(--ink-3);letter-spacing:.04em}
  444. .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}
  445. .dt.act{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-weak)}
  446. .dt.act em{color:var(--brand)}
  447. .dt.err{border-color:var(--danger);box-shadow:0 0 0 3px var(--danger-weak)}
  448. .wheel{position:relative;margin:14px 20px 0;padding:4px 8px;display:grid;grid-template-columns:repeat(3,1fr);text-align:center}
  449. .wheel .band{position:absolute;left:6px;right:6px;top:50%;height:40px;transform:translateY(-50%);background:var(--surface-2);border-radius:10px}
  450. .wcol{position:relative;z-index:1;display:flex;flex-direction:column}
  451. .wcol span{height:40px;line-height:40px;font-size:14px;color:var(--ink-2);font-variant-numeric:tabular-nums}
  452. .wcol span.far{color:var(--ink-4);opacity:.5}
  453. .wcol span.now{color:var(--ink-1);font-size:16px;font-weight:600}
  454. .fsheet-ft{display:flex;gap:12px;padding:20px 20px 0}
  455. .fsheet-ft .btn{flex:1.18}
  456. .fsheet-ft .btn.ghost{flex:.82;background:var(--surface-2);border:0;color:var(--ink-2);font-weight:600}
  457. /* 持仓卡片 */
  458. .pos{position:relative;margin:0 16px 11px;padding:13px 0 0}
  459. .pos-hd{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:0 14px}
  460. .pos-name{font-size:15.5px;font-weight:600;display:flex;align-items:center;gap:6px}
  461. .pos-code{font-size:11px;color:var(--ink-3);margin-top:4px;letter-spacing:.02em;font-family:"SF Mono",monospace}
  462. .pos-val{text-align:right;flex:none}
  463. .pos-val b{display:block;font-size:18px;font-weight:600;font-variant-numeric:tabular-nums}
  464. .pos-val span{display:block;font-size:10.5px;color:var(--ink-3);margin-top:3px}
  465. .pos-pl{display:flex;justify-content:flex-end;gap:9px;padding:6px 14px 0;font-size:12.5px;font-variant-numeric:tabular-nums}
  466. .up{color:var(--rise)} .down{color:var(--fall)} .flat{color:var(--ink-3)}
  467. .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)}
  468. .pos-grid div span{display:block;font-size:10px;color:var(--ink-3);letter-spacing:.02em}
  469. .pos-grid div b{display:block;margin-top:4px;font-size:12.5px;font-weight:550;font-variant-numeric:tabular-nums;white-space:nowrap}
  470. .pos-grid div b em{font-style:normal;color:var(--ink-3);font-weight:400;font-size:11px}
  471. .pos-ops{display:flex;border-top:1px solid var(--line);background:var(--surface-2)}
  472. .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)}
  473. .pos-ops span:last-child{border-right:0}
  474. .pos-ops span.pri{color:var(--brand);font-weight:550}
  475. .pos-ops span.hot{color:var(--danger);font-weight:550}
  476. .pos-ops span.off{color:var(--ink-4)}
  477. /* 冻结列表格(数据模式) */
  478. .gridtab{display:flex;font-size:12px;overflow:hidden}
  479. .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)}
  480. [data-theme="dark"] .gt-fix{box-shadow:4px 0 10px rgba(0,0,0,.35)}
  481. .gt-scroll{flex:1;overflow:hidden;background:var(--surface)}
  482. .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}
  483. .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}
  484. .gt-fix .gt-r{flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;position:relative;padding-left:14px}
  485. .gt-fix .gt-h{padding-left:14px}
  486. /* 表格形式的「新报价」角标:斜切丝带,带 NEW 文案;冻结列左内边距统一 14px 给丝带让位,行内文字不被压 */
  487. .gt-new{position:absolute;left:0;top:0;width:34px;height:34px;overflow:hidden;z-index:3;pointer-events:none}
  488. .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}
  489. .gt-r i{font-style:normal;display:inline-block;text-align:right}
  490. .gt-h i{display:inline-block;text-align:right}
  491. /* 询价 / 订单卡片 */
  492. .qc{margin:0 16px 10px;padding:13px 14px;position:relative}
  493. .qc-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
  494. .qc-name{font-size:15px;font-weight:600;display:flex;align-items:center;gap:6px}
  495. .qc-sub{font-size:11px;color:var(--ink-3);margin-top:4px;font-family:"SF Mono",monospace}
  496. .qc-r{text-align:right;flex:none}
  497. .qc-time{font-size:10.5px;color:var(--ink-3);margin-top:5px;font-family:"SF Mono",monospace}
  498. .qc-meta{display:flex;gap:16px;margin-top:10px;font-size:12.5px;color:var(--ink-2);font-variant-numeric:tabular-nums}
  499. .qc-meta em{font-style:normal;color:var(--ink-3);font-size:11px;margin-right:4px}
  500. .qc-open{margin-top:12px;border-top:1px dashed var(--line-2);padding-top:10px}
  501. .qt{display:grid;grid-template-columns:1.1fr .8fr .8fr .9fr;font-size:12px;font-variant-numeric:tabular-nums;align-items:center}
  502. .qt.h{color:var(--ink-3);font-size:10.5px;padding-bottom:7px}
  503. .qt.r{padding:9px 8px;margin:0 -8px;border-radius:8px}
  504. .qt.r:hover,.qt.r.hl{background:var(--brand-weak)}
  505. .qt .p{color:var(--brand);font-weight:600}
  506. .qt .t{color:var(--ink-3);font-size:10.5px;text-align:right}
  507. /* 「新」标记分工:卡片/行角标表明本单有新报价,行内红点指出具体是哪一条 */
  508. .qt span:first-child{position:relative;padding-left:12px}
  509. .qt .newdot{position:absolute;left:0;top:50%;margin:0;transform:translateY(-50%);vertical-align:0}
  510. .newdot{width:6px;height:6px;border-radius:50%;background:var(--danger);display:inline-block;margin-right:5px;vertical-align:1px}
  511. /* 时间线(流水) */
  512. .tl{padding:0 16px}
  513. .tl-i{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
  514. .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)}
  515. .tl-i .dot.out{background:var(--accent);box-shadow:0 0 0 3px var(--accent-weak)}
  516. .tl-i .c{flex:1}
  517. .tl-i .c b{font-size:14.5px;font-weight:550}
  518. .tl-i .c span{display:block;font-size:11px;color:var(--ink-3);margin-top:4px;font-family:"SF Mono",monospace}
  519. .tl-i .amt{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
  520. /* 设置项列表 */
  521. .menu{background:var(--surface);border-radius:14px;overflow:hidden;margin:0 16px 12px;box-shadow:var(--shadow-card)}
  522. [data-theme="dark"] .menu{border:1px solid var(--line)}
  523. .mi{display:flex;align-items:center;gap:12px;padding:15px 15px;border-bottom:1px solid var(--line);font-size:15px}
  524. .mi:last-child{border-bottom:0}
  525. .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}
  526. .mi .ib.am{background:var(--accent-weak);color:var(--accent)}
  527. .mi .tx{flex:1}
  528. .mi .tx em{font-style:normal;display:block;font-size:11.5px;color:var(--ink-3);margin-top:3px}
  529. .mi .rv{color:var(--ink-3);font-size:13.5px;display:flex;align-items:center;gap:4px}
  530. /* 开关 */
  531. .sw2{width:44px;height:26px;border-radius:14px;background:var(--line-2);position:relative;flex:none;transition:.2s}
  532. .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}
  533. .sw2.on{background:var(--brand)}
  534. .sw2.on::after{left:21px}
  535. /* ============================================================
  536. 消息中心
  537. ============================================================ */
  538. /* 未读徽标 */
  539. .nbadge{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--danger);color:#fff;font-size:11px;font-weight:600;
  540. display:inline-flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums;flex:none;letter-spacing:0}
  541. .nbadge.dot{min-width:8px;width:8px;height:8px;padding:0;border-radius:50%}
  542. /* 分类聚合行 */
  543. .mcat{display:flex;align-items:center;gap:12px;padding:13px 15px;border-bottom:1px solid var(--line)}
  544. .mcat:last-child{border-bottom:0}
  545. .mcat .ic{width:42px;height:42px;border-radius:13px;display:flex;align-items:center;justify-content:center;flex:none}
  546. .mcat .ic .icn{width:20px;height:20px;stroke-width:1.8}
  547. .mcat .ic.c-brand{background:var(--brand-weak);color:var(--brand)}
  548. .mcat .ic.c-ok{background:var(--ok-weak);color:var(--ok)}
  549. .mcat .ic.c-accent{background:var(--accent-weak);color:var(--accent)}
  550. .mcat .ic.c-mute{background:var(--surface-3);color:var(--ink-3)}
  551. .mcat .ic.c-danger{background:var(--danger-weak);color:var(--danger)}
  552. .mcat .c{flex:1;min-width:0}
  553. .mcat .c b{display:block;font-size:15px;font-weight:600;letter-spacing:.02em}
  554. .mcat .c span{display:block;margin-top:4px;font-size:12.5px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  555. .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}
  556. .mcat .r em{font-style:normal;font-size:11px;color:var(--ink-4);white-space:nowrap;font-variant-numeric:tabular-nums}
  557. /* 分类内消息卡 */
  558. .msg{background:var(--surface);border-radius:12px;box-shadow:var(--shadow-card);padding:13px 15px 14px;margin:0 16px 10px}
  559. [data-theme="dark"] .msg{border:1px solid var(--line)}
  560. .msg .h{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
  561. .msg .h b{font-size:14.5px;font-weight:600;letter-spacing:.02em}
  562. .msg .h em{font-style:normal;font-size:11px;color:var(--ink-4);white-space:nowrap;flex:none;font-variant-numeric:tabular-nums}
  563. .msg p{margin-top:7px;font-size:13px;line-height:1.62;color:var(--ink-2);
  564. display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  565. .msg.unread .h b{padding-left:13px;position:relative}
  566. .msg.unread .h b::before{content:"";position:absolute;left:0;top:6px;width:6px;height:6px;border-radius:50%;background:var(--danger)}
  567. .msg.read .h b,.msg.read p{color:var(--ink-3)}
  568. /* 消息详情 */
  569. .msgd{background:var(--surface);border-radius:14px;box-shadow:var(--shadow-card);margin:12px 16px 0;overflow:hidden}
  570. [data-theme="dark"] .msgd{border:1px solid var(--line)}
  571. .msgd .hd{padding:18px 18px 0}
  572. .msgd .hd h3{font-size:17px;font-weight:600;line-height:1.45;letter-spacing:.02em}
  573. .msgd .hd .t{margin-top:9px;font-size:11.5px;color:var(--ink-4);font-variant-numeric:tabular-nums;letter-spacing:.04em}
  574. .msgd .bd{padding:14px 18px 18px;font-size:14px;line-height:1.78;color:var(--ink-2)}
  575. .msgd .bd b{color:var(--ink-1);font-weight:600}
  576. .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}
  577. /* 空态占位(与 05 / 02 同一套组件) */
  578. .emptyslot{flex:1;display:flex;align-items:center;justify-content:center;padding:0 0 204px}
  579. .emptybox{--il-a:#E7EDF6;--il-b:#D8E0EC;--il-c:#F8FAFE;
  580. display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 32px}
  581. [data-theme="dark"] .emptybox{--il-a:#1F2A45;--il-b:#161F38;--il-c:#28355A}
  582. .emptybox .illu{width:120px;height:104px;display:block}
  583. .emptybox .etxt{margin-top:16px;font-size:14px;color:var(--ink-3);letter-spacing:.1em}
  584. .emptybox .esub{margin-top:8px;font-size:12px;line-height:1.65;color:var(--ink-4);max-width:236px}
  585. /* 数据表(App 内) */
  586. .dt{width:100%;border-collapse:collapse;font-size:12.5px}
  587. .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}
  588. .dt th:first-child{text-align:left}
  589. .dt td{padding:10px;text-align:right;border-top:1px solid var(--line);font-variant-numeric:tabular-nums}
  590. .dt td:first-child{text-align:left;color:var(--ink-2)}
  591. /* 键盘 */
  592. .kbd{background:var(--surface-2);padding:8px 6px 26px;display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
  593. .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)}
  594. [data-theme="dark"] .kbd span{box-shadow:none;border:1px solid var(--line)}
  595. .kbd span.fn{background:transparent;box-shadow:none;font-size:15px;color:var(--ink-2)}
  596. .kbd span.ok{background:var(--brand);color:var(--on-brand);font-size:16px}
  597. /* 对照页专用 */
  598. .pair{display:grid;grid-template-columns:390px 390px;gap:36px;justify-content:start}
  599. .pair-lb{display:flex;align-items:center;gap:7px;font-size:11.5px;color:var(--canvas-mute);margin-bottom:12px;letter-spacing:.08em}
  600. .pair-lb i{width:12px;height:12px;border-radius:3px;border:1px solid var(--canvas-line);flex:none}
  601. /* 角标占位:有角标的卡片顶部让出空间,避免压住标的名 */
  602. .pos:has(.corner) .pos-hd{padding-top:15px}
  603. .qc:has(.corner){padding-top:26px}
  604. /* ============================================================
  605. 本图纸新增:三语切换(简 zh / 繁 tw / 英 en)
  606. 机制:<u data-l="zh|tw|en"> 三份文案同时写在 DOM,
  607. 由根节点 [data-lang] 决定显示哪一份;
  608. 三语一致的内容(数字、代码、币种)不加 data-l。
  609. 选 <u> 是因为设计系统里没有任何选择器命中它,
  610. 不会被 .seg span / .pos-ops span 之类的后代选择器误伤。
  611. ============================================================ */
  612. u[data-l]{display:none;text-decoration:none;font-style:normal}
  613. [data-lang="zh"] u[data-l~="zh"],
  614. [data-lang="tw"] u[data-l~="tw"],
  615. [data-lang="en"] u[data-l~="en"]{display:inline}
  616. /* 语言字体:繁体走 TC,英文走系统西文字体;已锁定的对照机不受全局语言影响 */
  617. [data-lang="tw"] .phone .screen{font-family:"PingFang TC","Hiragino Sans CNS","Microsoft JhengHei","PingFang SC",system-ui,sans-serif}
  618. [data-lang="en"] .phone .screen{font-family:-apple-system,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
  619. /* 图纸头的语言开关:与换肤开关同构,用琥珀色区分 */
  620. .lang{display:flex;align-items:center;gap:0;padding:3px;border-radius:9px;background:var(--canvas-2);border:1px solid var(--canvas-line)}
  621. .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}
  622. .lang button.on{background:var(--accent);color:#fff;box-shadow:0 2px 8px rgba(180,112,14,.28)}
  623. [data-theme="dark"] .lang button.on{color:#231402}
  624. .lang svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  625. /* 切换中的转圈 */
  626. .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}
  627. @keyframes sp{to{transform:rotate(360deg)}}
  628. /* 语言卡片(语言设置页的整块选择) */
  629. .langrow{display:flex;align-items:center;gap:12px;padding:14px 15px;border-bottom:1px solid var(--line);font-size:15px}
  630. .langrow:last-child{border-bottom:0}
  631. .langrow .nm{flex:1}
  632. .langrow .nm b{display:block;font-weight:550;letter-spacing:.01em}
  633. .langrow .nm span{display:block;margin-top:3px;font-size:11px;color:var(--ink-3);font-family:"SF Mono",ui-monospace,Menlo,monospace}
  634. .langrow .ck{color:var(--brand);flex:none}
  635. /* 选中态跟着语言走:切到 EN 时高亮落在 English 行 */
  636. [data-lang="zh"] .langrow[data-sel="zh"] .nm b,
  637. [data-lang="tw"] .langrow[data-sel="tw"] .nm b,
  638. [data-lang="en"] .langrow[data-sel="en"] .nm b{color:var(--brand);font-weight:600}
  639. .langrow .nm span.tx{font-family:inherit;font-size:11.5px}
  640. /* ==== v1.3 · 07 专用 BEGIN ==== */
  641. /* 个人中心(与 06 M1 同版式) */
  642. .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)}
  643. [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)}
  644. .pfhero::after{content:"";position:absolute;right:-40px;top:-52px;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.07)}
  645. .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}
  646. .pfhero .nm{font-size:18px;font-weight:600}
  647. .pfhero .ac{font-family:var(--font-mono);font-size:12px;color:rgba(255,255,255,.76);margin-top:5px}
  648. .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}
  649. .mi{padding:15px}
  650. .mi .rv .icn{width:14px;height:14px;color:var(--ink-4)}
  651. .mi.hl{box-shadow:inset 0 0 0 1.5px var(--brand);border-radius:14px}
  652. .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}
  653. .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)}
  654. /* 语言单选行(代码 LanguagePicker):主名 15 / 500,选中 600 品牌色 + 对勾;副行 BCP 47 等宽 11 或「系统当前」11.5 */
  655. .lrow{display:flex;align-items:center;gap:12px;padding:14px 15px;border-bottom:1px solid var(--line)}
  656. .lrow:last-child{border-bottom:0}
  657. .lrow .nm{flex:1}
  658. .lrow .nm b{display:block;font-size:15px;font-weight:500;color:var(--ink-1)}
  659. .lrow .nm em{display:block;font-style:normal;font-size:11.5px;color:var(--ink-3);margin-top:3px}
  660. .lrow .nm em.mono{font-family:var(--font-mono);font-size:11px}
  661. .lrow .ck{color:var(--brand);display:none}
  662. .lrow.on .nm b{font-weight:600;color:var(--brand)}
  663. .lrow.on .ck{display:block}
  664. .sheetrows .lrow{padding:14px 20px}
  665. /* 弹层里的选中项跟随右上角语言开关 */
  666. [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)}
  667. [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}
  668. /* 切换遮罩(代码 PendingOverlay,compact 卡:最窄 196、圆角 18) */
  669. .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}
  670. .swcard .ring{width:30px;height:30px}
  671. .swcard .ring .trk,.swcard .ring .bar{stroke-width:2.6}
  672. .swcard span{font-size:14px;color:var(--ink-2)}
  673. .scrim.center{justify-content:center}
  674. /* 登录页(与 01 L2 同版式) */
  675. .lgtop{height:46px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;flex:none}
  676. .lgtop .lgl{display:flex;align-items:center;gap:5px;font-size:13px;color:var(--ink-2)}
  677. .lgtop .lgl .icn{width:18px;height:18px}
  678. .lgtop .hp .icn{width:22px;height:22px;color:var(--ink-3)}
  679. .lgbody{padding:14px 26px 0}
  680. .lgbody .mark{width:56px;height:56px;border-radius:16px;display:block}
  681. .lgbody h1{font-size:25px;font-weight:600;margin-top:22px}
  682. .lgbody .sub{font-size:13.5px;color:var(--ink-3);margin-top:8px}
  683. .lgbody .fld{margin-top:30px}
  684. .lgbody .fld+.fld{margin-top:16px}
  685. .lgbody .field .ph{color:var(--ink-4)}
  686. .lgbody .field .tr{margin-left:auto;color:var(--ink-3);display:flex}
  687. .lgbody .field .tr .icn{width:16px;height:16px}
  688. .lgbody .btn{margin-top:26px}
  689. .lgfoot{position:absolute;left:24px;right:24px;bottom:30px;text-align:center;font-size:11px;color:var(--ink-4);line-height:1.7}
  690. .lgfoot b{font-weight:400;color:var(--ink-2)}
  691. .lgtop .lgl.hl{box-shadow:0 0 0 1.5px var(--brand);border-radius:8px;padding:4px 7px;margin-left:-7px}
  692. /* ==== v1.3 · 07 专用 END ==== */
  693. /* ==== v1.3 公共覆盖 BEGIN · 2026-10-14 按代码现状对齐(同一段注入全部图纸,改动从清单目录的 common-v13.css 同步) ==== */
  694. /* 字体:数值走 Inter(代码 NumText),代码 / 编号走 iOS 的 Menlo(代码 MonoText),正文仍是系统字 */
  695. @font-face{font-family:"Inter";src:url("assets/fonts/Inter-Regular.subset.otf") format("opentype");font-weight:400}
  696. @font-face{font-family:"Inter";src:url("assets/fonts/Inter-Medium.subset.otf") format("opentype");font-weight:500}
  697. @font-face{font-family:"Inter";src:url("assets/fonts/Inter-SemiBold.subset.otf") format("opentype");font-weight:600}
  698. @font-face{font-family:"Inter";src:url("assets/fonts/Inter-Bold.subset.otf") format("opentype");font-weight:700}
  699. :root{--font-num:"Inter","PingFang SC","Hiragino Sans GB",system-ui,sans-serif;--font-mono:Menlo,"SF Mono",ui-monospace,monospace}
  700. .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)}
  701. .statusbar .num{font-family:inherit}
  702. .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)}
  703. /* 底栏:四个 Tab(票据 / 账户 / 消息 / 我的);消息 Tab 只有红点,后端不给条数 */
  704. .tb .tbi{position:relative;display:inline-flex;flex:none}
  705. .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)}
  706. /* 二级页导航栏:iOS 系统导航栏,表面色底、居中 17 / 600 标题、品牌色返回箭头、无分隔线(H5 标题靠左,见 00 规范) */
  707. .navbar{height:44px;background:var(--surface)}
  708. .statusbar:has(+ .navbar){background:var(--surface)}
  709. .navbar h2{font-size:17px;font-weight:600;letter-spacing:0}
  710. .navbar .bk{color:var(--brand)}
  711. .navbar .bk .icn{width:22px;height:22px;stroke-width:2.1}
  712. /* 图注里的身份标记:本期未上线 / v1.3 新增 / 平台限定 */
  713. .cap-flags{display:inline-flex;gap:6px;margin-left:8px;vertical-align:1px}
  714. .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)}
  715. .cap-flag.off{color:var(--accent);border-color:var(--accent-line);background:var(--accent-weak)}
  716. .cap-flag.new{color:var(--brand);border-color:var(--brand-line);background:var(--brand-weak)}
  717. .cap-flag.plat{color:var(--ok);border-color:rgba(15,123,79,.35);background:var(--ok-weak)}
  718. /* 实心底上的文字(角标 / 实心标签 / 危险按钮):浅色白字,深色下底色被提亮、改配近黑字(代码 $onFill / $onDanger) */
  719. [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}
  720. /* 表格首列的迷你角标(代码 CornerBadge variant="mini"):9 / 600、左右 4 */
  721. .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}
  722. .mb.d{background:var(--danger)} .mb.a{background:var(--accent)} .mb.m{background:var(--ink-3)} .mb.b{background:var(--brand)}
  723. /* Toast:按内容定宽、最宽 290(代码 maxW 290),单行放得下就不折行;位置 top 76% */
  724. .toast{width:max-content;max-width:290px}
  725. /* ---- 通用组件(代码 components/ 的对应件) ---- */
  726. /* 资金看板右上「>」用 lg 档 */
  727. .hero .arrow{width:22px;height:22px}
  728. /* 只读行:InfoRow(无分隔线)/ FieldRow(带分隔线,.frow),左 ink2 右 Inter */
  729. .irow{display:flex;justify-content:space-between;align-items:center;padding:14px 15px;font-size:14.5px}
  730. .irow span{color:var(--ink-2)}
  731. .irow b{font-weight:400;font-family:var(--font-num);font-variant-numeric:tabular-nums}
  732. .irow b.dg{color:var(--danger)}
  733. .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}
  734. .frow>span{color:var(--ink-2);display:flex;align-items:center;gap:6px}
  735. .frow>b{font-weight:400;font-family:var(--font-num);font-variant-numeric:tabular-nums;text-align:right}
  736. .frow.hl{background:var(--brand-weak)}
  737. .frow.hl>span,.frow.hl>b{color:var(--brand)}
  738. .frow.hl>b{font-weight:600}
  739. .frow.last,.frow:last-child{border-bottom:0}
  740. /* 字段说明 ⓘ(代码 IconButton name="info",ink4 14) */
  741. .xi{width:14px;height:14px;color:var(--ink-4);flex:none}
  742. /* 弹窗里的证券行(代码在前)与行情行 */
  743. .secl{display:flex;align-items:center;gap:7px}
  744. .secl .mono{font-size:12px;color:var(--ink-3)}
  745. .secl b{font-size:14.5px;font-weight:600}
  746. .phint{display:flex;gap:14px;margin-top:9px;font-size:12px;color:var(--ink-3)}
  747. .phint b{font-weight:400;font-family:var(--font-num);font-variant-numeric:tabular-nums}
  748. .field .num{font-family:var(--font-num)}
  749. .errtip .icn{width:13px;height:13px}
  750. .errtip.r{justify-content:flex-end}
  751. /* 时间片块(代码 TradingWindowDialog) */
  752. .twin{border-radius:10px;background:var(--surface-2);padding:13px 0;display:flex;flex-direction:column;align-items:center;gap:5px}
  753. .twin span{font-size:13px;color:var(--ink-3)}
  754. .twin b{font-size:17px;font-weight:600;font-family:var(--font-num)}
  755. /* 弹窗标题区(代码 DialogHeading):图标圆 44 + 标题 16.5 / 600 + 说明 14 / ink2 / 行高 23 */
  756. .dicon{width:44px;height:44px;border-radius:22px;display:flex;align-items:center;justify-content:center;margin:0 auto 6px}
  757. .dicon.warn{background:var(--warn-weak);color:var(--warn)}
  758. .dicon.danger{background:var(--danger-weak);color:var(--danger)}
  759. .dicon.ok{background:var(--ok-weak);color:var(--ok)}
  760. .dicon.brand{background:var(--brand-weak);color:var(--brand)}
  761. .dlg-hd .dsc{margin-top:6px;font-size:14px;color:var(--ink-2);line-height:23px}
  762. .dlg-ft span{font-weight:500}
  763. .dlg-ft span.off{color:var(--brand);opacity:.4}
  764. .dlg-ft span.dg{color:var(--danger)}
  765. /* 底部面板标题行(代码 SheetFrame 的四套头):select 左标题 + 右 × / centered 居中无关闭 / centered-close 居中 + 右 × / filter 左大标题 + 右 × */
  766. .shd{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 6px}
  767. .shd b{font-size:15.5px;font-weight:600}
  768. .shd .icn{color:var(--ink-3)}
  769. .shd-c{padding:16px 18px 4px;text-align:center;position:relative}
  770. .shd-c b{font-size:16.5px;font-weight:600}
  771. .shd-c .icn{position:absolute;right:18px;top:17px;color:var(--ink-3)}
  772. /* 单选面板的选项行(代码 SelectSheet) */
  773. .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)}
  774. .opt-row .icn{width:14px;height:14px;color:var(--brand)}
  775. .opt-row b{font-weight:400;color:var(--ink-1)}
  776. .opt-row.sel b{font-weight:600}
  777. .opt-row:last-child{border-bottom:0}
  778. /* 叠在另一层弹窗之上的第二层遮罩 */
  779. .scrim.top2{z-index:45}
  780. /* 列表尾的文字入口(历史票据 > 等) */
  781. .listfoot{display:flex;justify-content:center;align-items:center;gap:3px;padding:12px 0;font-size:13px;color:var(--brand)}
  782. .listfoot .icn{width:13px;height:13px}
  783. /* 分组标题(代码 Section 的标题:12 / ink3,上 16 下 8) */
  784. .gtitle{padding:16px 16px 8px}
  785. /* 转圈(代码 ProgressRing,下拉刷新 / 上拉加载 / 检索在搜共用) */
  786. @keyframes hh-spin{from{transform:rotate(-90deg)}to{transform:rotate(270deg)}}
  787. .ring{width:16px;height:16px;position:relative;flex:none;display:inline-block}
  788. .ring>svg{width:100%;height:100%;transform:rotate(-90deg);display:block}
  789. .ring .trk{fill:none;stroke:var(--line-2);stroke-width:2.8}
  790. .ring .bar{fill:none;stroke:var(--brand);stroke-width:2.8;stroke-linecap:round}
  791. .spin{animation:hh-spin .9s linear infinite}
  792. .ring.lg{width:24px;height:24px}
  793. .ring.lg .trk,.ring.lg .bar{stroke-width:2.2}
  794. /* 空态(代码 EmptyState):整页 120×104 / sm 72×62 / row 30×26 三档,插画取色走 --il-* */
  795. .emptyslot{flex:1;display:flex;align-items:center;justify-content:center;padding:0 0 204px}
  796. .emptybox{--il-a:#E7EDF6;--il-b:#D8E0EC;--il-c:#F8FAFE;display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 32px}
  797. [data-theme="dark"] .emptybox{--il-a:#1F2A45;--il-b:#161F38;--il-c:#28355A}
  798. .emptybox .illu{width:120px;height:104px;display:block}
  799. .emptybox .etxt{margin-top:16px;font-size:14px;color:var(--ink-3);letter-spacing:.1em}
  800. .emptybox .esub{margin-top:8px;font-size:12px;line-height:1.65;color:var(--ink-4);max-width:236px}
  801. .emptybox .eact{margin-top:20px}
  802. .emptybox.sm{padding:26px 20px}
  803. .emptybox.sm .illu{width:72px;height:62px}
  804. .emptybox.sm .etxt{margin-top:11px;font-size:12.5px;letter-spacing:.08em}
  805. .emptybox.row{flex-direction:row;align-items:center;justify-content:center;gap:10px;padding:9px 0}
  806. .emptybox.row .illu{width:30px;height:26px}
  807. .emptybox.row .etxt{margin-top:0;font-size:12.5px;letter-spacing:.06em}
  808. /* 状态点「已提交」档(代码 StatusSemantic submitted:未报 / 待报 / 待审批):品牌色空心 */
  809. .st.sub{color:var(--brand)}
  810. .st.sub i{background:transparent;border:1.6px solid currentColor}
  811. /* ---- 持仓卡片(代码 PositionCard)与通用表格(代码 DataTable) ---- */
  812. /* 持仓卡片:多枚角标并排;有角标时顶部只让到 15;估值后的币种小一号 */
  813. .pos .corners{position:absolute;left:0;top:0;display:flex;z-index:3}
  814. .pos .corners .corner{position:static}
  815. .pos:has(.corners) .pos-hd{padding-top:2px}
  816. .pos-val b small{font-size:13.5px;font-weight:400;color:var(--ink-2)}
  817. .pos-code b{font-weight:400;color:var(--accent)}
  818. /* 信息格五项一行:整行按宽度降档 12.5 / 11.5 / 10.5,最小档仍放不下时成对的值拆成两行(i) */
  819. .pos-grid.f5{display:flex;flex-wrap:wrap;column-gap:6px;row-gap:10px}
  820. .pos-grid.f5>div{flex:1 0 auto}
  821. .pos-grid.f5 div span{font-size:10px;letter-spacing:.02em}
  822. .pos-grid.f5 div b{font-size:12.5px;font-weight:500}
  823. .pos-grid.f5 div b em{font-size:11px;font-weight:400}
  824. .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}
  825. .pos-grid.f5.s115 div b{font-size:11.5px}.pos-grid.f5.s115 div b em{font-size:10px}
  826. .pos-grid.f5.s105 div b{font-size:10.5px}.pos-grid.f5.s105 div b em{font-size:9px}
  827. .pos-ops span.pri,.pos-ops span.hot{font-weight:500}
  828. /* 表格模式(DataTable):表头 36 / 行 52、单元格 12、列距 14,前两列冻结带右投影 */
  829. .ptab{background:var(--surface);overflow:hidden}
  830. .ptab .r{display:flex;align-items:stretch;height:52px;border-bottom:1px solid var(--line);font-size:12px;white-space:nowrap}
  831. .ptab .r.h{height:36px;background:var(--surface-2);font-size:10.5px;letter-spacing:.02em;color:var(--ink-3)}
  832. .ptab .fz,.ptab .sc{display:flex;align-items:center;gap:14px;flex:none}
  833. .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)}
  834. [data-theme="dark"] .ptab .fz{box-shadow:4px 0 10px rgba(0,0,0,.35)}
  835. .ptab .r.h .fz{background:var(--surface-2)}
  836. .ptab .c{flex:none}
  837. .ptab .c.n{text-align:right;font-family:var(--font-num);font-variant-numeric:tabular-nums}
  838. .ptab .r.h .c.n{font-family:inherit}
  839. .ptab .c.n .sub{display:block;font-size:11px;color:var(--ink-3);margin-top:2px}
  840. .ptab .cat b{display:block;font-size:12px;font-weight:600}
  841. .ptab .cat b.db{color:var(--accent)}
  842. .ptab .cat .mbs{display:flex;gap:3px;margin-top:3px}
  843. .ptab .scd b{display:block;font-size:12px;font-weight:400}
  844. .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}
  845. .ptab .scd .cmark{width:13px;height:13px;font-size:8.5px}
  846. .ptab .opsrow{border-bottom:1px solid var(--line)}
  847. .ptab .opsrow .pos-ops{border-top:0}
  848. .ptab .r.sel,.ptab .r.sel .fz{background:var(--brand-weak)}
  849. .ptab .xrow{background:var(--surface-2);border-bottom:1px solid var(--line)}
  850. /* ---- 卡片 / 表格切换(代码 ViewModeToggle) ---- */
  851. .viewtog{display:inline-flex;padding:2px;background:var(--surface-2);border-radius:8px;gap:2px;flex:none;position:relative}
  852. .viewtog.sep{margin-left:4px}
  853. .viewtog.sep::before{content:"";position:absolute;left:-7px;top:2px;bottom:2px;width:1px;background:var(--line-2)}
  854. .viewtog span{width:28px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:6px;color:var(--ink-3)}
  855. .viewtog span.on{background:var(--surface);color:var(--brand);box-shadow:var(--shadow-card)}
  856. [data-theme="dark"] .viewtog span.on{background:var(--surface-3)}
  857. .viewtog .icn{width:15px;height:15px;stroke-width:1.8}
  858. /* ==== v1.3 公共覆盖 END ==== */
  859. </style>
  860. </head>
  861. <body>
  862. <svg width="0" height="0" style="position:absolute" aria-hidden="true"><defs>
  863. <g id="i-back"><polyline points="15 4 7 12 15 20"/></g>
  864. <g id="i-right"><polyline points="9 4 17 12 9 20"/></g>
  865. <g id="i-down"><polyline points="5 9 12 16 19 9"/></g>
  866. <g id="i-up"><polyline points="5 15 12 8 19 15"/></g>
  867. <g id="i-search"><circle cx="11" cy="11" r="6.5"/><line x1="16" y1="16" x2="21" y2="21"/></g>
  868. <g id="i-x"><line x1="6" y1="6" x2="18" y2="18"/><line x1="18" y1="6" x2="6" y2="18"/></g>
  869. <g id="i-check"><polyline points="4 12.5 9.5 18 20 6"/></g>
  870. <g id="i-plus"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></g>
  871. <g id="i-minus"><line x1="5" y1="12" x2="19" y2="12"/></g>
  872. <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>
  873. <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>
  874. <g id="i-clock"><circle cx="12" cy="12" r="8.5"/><polyline points="12 7 12 12 15.5 14"/></g>
  875. <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>
  876. <g id="i-filter"><path d="M4 6h16l-6.2 7.4V19l-3.6-2v-3.6z"/></g>
  877. <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>
  878. <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>
  879. <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>
  880. <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>
  881. <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>
  882. <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>
  883. <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>
  884. <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>
  885. <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>
  886. <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>
  887. <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>
  888. <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>
  889. <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>
  890. <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>
  891. <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>
  892. <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>
  893. <g id="i-fee"><circle cx="12" cy="12" r="8.5"/><path d="M9.5 9h5M9.5 12h5M12 9v8"/></g>
  894. <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>
  895. <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>
  896. <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>
  897. <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>
  898. <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>
  899. <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>
  900. <g id="i-sort"><polyline points="7 9 10 6 13 9"/><polyline points="7 15 10 18 13 15"/></g>
  901. <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>
  902. <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>
  903. <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>
  904. <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>
  905. <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>
  906. <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>
  907. <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>
  908. <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>
  909. </defs></svg>
  910. <div class="sheet-head">
  911. <div class="brandmark">
  912. <div class="glyph"></div>
  913. <div>
  914. <div class="sheet-title">多语言 · 语言切换入口与 UI</div>
  915. <div class="sheet-sub">票据投资者 APP / 简体中文 · 繁體中文 · English | 入口位置 · 语言设置页 · 切换流程 · 组件规格</div>
  916. </div>
  917. </div>
  918. <div class="head-right">
  919. <div class="meta">
  920. <div>模块<b>多语言 I18N</b></div>
  921. <div>规格<b>iOS 390 &times; 844 @3x</b></div>
  922. <div>语言<b>zh-CN / zh-Hant-HK / en-US</b></div>
  923. <div>版本<b>v1.3 · 2026-10-14</b></div>
  924. </div>
  925. <div class="lang" role="group" aria-label="语言切换">
  926. <button data-lang="zh" class="on"><svg viewBox="0 0 24 24"><use href="#i-lang"/></svg>简</button>
  927. <button data-lang="tw"><svg viewBox="0 0 24 24"><use href="#i-lang"/></svg>繁</button>
  928. <button data-lang="en"><svg viewBox="0 0 24 24"><use href="#i-globe"/></svg>EN</button>
  929. </div>
  930. <div class="skin" role="group" aria-label="主题切换">
  931. <button data-set="light" class="on"><svg viewBox="0 0 24 24"><use href="#i-sun"/></svg>浅色</button>
  932. <button data-set="dark"><svg viewBox="0 0 24 24"><use href="#i-moon"/></svg>深色</button>
  933. </div>
  934. </div>
  935. </div>
  936. <div class="sec">
  937. <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>
  938. <div class="cards">
  939. <div class="card-x">
  940. <h4>语种 LOCALES</h4>
  941. <div class="kv">
  942. <div class="r"><span>简体中文</span><b class="mono">zh-CN</b></div>
  943. <div class="r"><span>繁體中文</span><b class="mono">zh-Hant-HK</b></div>
  944. <div class="r"><span>English</span><b class="mono">en-US</b></div>
  945. <div class="r"><span>缺省</span><b>跟随系统</b></div>
  946. <div class="r"><span>系统匹配</span><b>zh-Hant / HK / TW / MO / yue → 繁;其余中文 → 简;英文 → EN;都不中 → 简</b></div>
  947. </div>
  948. </div>
  949. <div class="card-x">
  950. <h4>入口 ENTRY</h4>
  951. <div class="bullets">
  952. <li><b>我的 → 语言</b>:「外观与偏好」组,紧随「外观」</li>
  953. <li><b>登录页左上角</b>:地球 + 语种自名 → 底部弹层,未登录也能切</li>
  954. <li>只有这两处;正文页一律不放语言开关</li>
  955. </div>
  956. </div>
  957. <div class="card-x">
  958. <h4>切换机制 MECHANISM</h4>
  959. <div class="bullets">
  960. <li>偏好 <code>language</code>(跟随系统 / 三语之一)只存本机,与皮肤一样不经后端</li>
  961. <li>切换即重渲染,不重挂、不清导航栈;遮罩用目标语言书写,300 ~ 600ms</li>
  962. <li>每个请求带 <code>X-Lang</code> = 生效语言;切换后服务端内容全量失效重取</li>
  963. </div>
  964. </div>
  965. <div class="card-x">
  966. <h4>约束 CONSTRAINTS</h4>
  967. <div class="bullets">
  968. <li>金额 / 比例 / 汇率 / 日期 / 时间 / 手机号三语完全一致(EN 日期仍是 <code>2026-08-28</code>)</li>
  969. <li>名义本金缩写:简「200万」· 繁「200萬」· EN「2M / 500K」</li>
  970. <li>EN 不缩字号、不改尺寸;人名、机构名、证券代码不翻译</li>
  971. <li>后端尚未按 <code>X-Lang</code> 下发:繁 / 英界面下错误提示、字典标签、帮助内容等仍为简体</li>
  972. </div>
  973. </div>
  974. </div>
  975. </div>
  976. <div class="sec">
  977. <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>
  978. <div class="frames">
  979. <!-- ===== L1 个人中心 · 语言入口位置 ===== -->
  980. <div class="frame">
  981. <div class="phone">
  982. <div class="screen">
  983. <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>
  984. <div class="appbar"><h1><u data-l="zh tw">我的</u><u data-l="en">Profile</u></h1></div>
  985. <div class="body">
  986. <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>
  987. <div class="gtitle"><u data-l="zh">账户</u><u data-l="tw">帳戶</u><u data-l="en">Account</u></div>
  988. <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>
  989. <div class="gtitle"><u data-l="zh">外观与偏好</u><u data-l="tw">外觀與偏好</u><u data-l="en">Appearance &amp; Preferences</u></div>
  990. <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>
  991. <div class="gtitle"><u data-l="zh tw">安全</u><u data-l="en">Security</u></div>
  992. <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>
  993. </div>
  994. <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>
  995. <div class="homebar"></div>
  996. </div>
  997. </div>
  998. <div class="cap">
  999. <div class="cap-num">L1</div>
  1000. <div class="cap-title">个人中心 · 语言入口位置</div>
  1001. <ul>
  1002. <li>与 <code>06</code> M1 同一页:「语言」在「外观与偏好」组、紧随「外观」,行尾回显语种自名(简体中文 / 繁體中文 / English)</li>
  1003. <li>菜单一律单行、没有副标题与「新增」标签;图标与同组一样蓝底(框线只为标出这一行)</li>
  1004. <li>人名与账号三语不变;品类胶囊 A类 / A類 / Class A</li>
  1005. </ul>
  1006. </div>
  1007. </div>
  1008. <!-- ===== L2 语言设置 · 单选列表 ===== -->
  1009. <div class="frame">
  1010. <div class="phone">
  1011. <div class="screen">
  1012. <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>
  1013. <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>
  1014. <div class="body">
  1015. <div class="gtitle"><u data-l="zh">显示语言</u><u data-l="tw">顯示語言</u><u data-l="en">Display Language</u></div>
  1016. <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>
  1017. </div>
  1018. <div class="homebar"></div>
  1019. </div>
  1020. </div>
  1021. <div class="cap">
  1022. <div class="cap-num">L2</div>
  1023. <div class="cap-title">语言设置 · 单选列表</div>
  1024. <ul>
  1025. <li>「显示语言」一组四行单选:跟随系统语言(缺省,副行「系统当前 X」)+ 三个语种,副行是 BCP 47 标签</li>
  1026. <li>语种名永远用自身语言书写,切到 EN 仍是「简体中文 / 繁體中文 / English」;点选即切换,没有保存键</li>
  1027. <li><b>不做格式预览卡与提示条</b>:数字与日期三语完全一致,没有可预览的差异</li>
  1028. </ul>
  1029. </div>
  1030. </div>
  1031. <!-- ===== L3 切换中 · 全局重渲染 ===== -->
  1032. <div class="frame">
  1033. <div class="phone">
  1034. <div class="screen">
  1035. <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>
  1036. <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>
  1037. <div class="body">
  1038. <div class="gtitle"><u data-l="zh">显示语言</u><u data-l="tw">顯示語言</u><u data-l="en">Display Language</u></div>
  1039. <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>
  1040. </div>
  1041. <div class="scrim center">
  1042. <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>
  1043. </div>
  1044. <div class="homebar"></div>
  1045. </div>
  1046. </div>
  1047. <div class="cap">
  1048. <div class="cap-num">L3</div>
  1049. <div class="cap-title">切换中 · 全局重渲染</div>
  1050. <ul>
  1051. <li>点选后弹小卡遮罩:转圈 +「正在切换语言…」,<b>用目标语言书写</b>(切 EN 显示 Switching language…)</li>
  1052. <li>遮罩至少 300ms、最多 600ms,超时不阻塞:内置文案即时切换,服务端内容全量失效、随下一次请求刷新</li>
  1053. <li>不重启、不清导航栈,切完仍停在语言页</li>
  1054. </ul>
  1055. </div>
  1056. </div>
  1057. <!-- ===== L4 登录页 · 左上角语言入口 ===== -->
  1058. <div class="frame">
  1059. <div class="phone">
  1060. <div class="screen">
  1061. <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>
  1062. <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>
  1063. <div class="body lgbody">
  1064. <img class="mark" src="assets/brand/honmatrix-icon.png" alt="">
  1065. <h1><u data-l="zh">欢迎回来</u><u data-l="tw">歡迎回來</u><u data-l="en">Welcome Back</u></h1>
  1066. <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>
  1067. <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>
  1068. <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>
  1069. <div class="btn wide off"><u data-l="zh">登录</u><u data-l="tw">登入</u><u data-l="en">Sign In</u></div>
  1070. </div>
  1071. <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>
  1072. <div class="homebar"></div>
  1073. </div>
  1074. </div>
  1075. <div class="cap">
  1076. <div class="cap-num">L4</div>
  1077. <div class="cap-title">登录页 · 左上角语言入口</div>
  1078. <ul>
  1079. <li>登录页顶栏左侧「地球 + 当前语种自名」(未登录也能切),右侧帮助问号;两者分居两侧,帮助隐藏时语言不位移</li>
  1080. <li>版式与 <code>01</code> L2 一致;框线只为标出入口</li>
  1081. </ul>
  1082. </div>
  1083. </div>
  1084. <!-- ===== L5 登录页 · 语言弹层 ===== -->
  1085. <div class="frame">
  1086. <div class="phone">
  1087. <div class="screen">
  1088. <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>
  1089. <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>
  1090. <div class="body lgbody">
  1091. <img class="mark" src="assets/brand/honmatrix-icon.png" alt="">
  1092. <h1><u data-l="zh">欢迎回来</u><u data-l="tw">歡迎回來</u><u data-l="en">Welcome Back</u></h1>
  1093. <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>
  1094. <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>
  1095. <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>
  1096. <div class="btn wide off"><u data-l="zh">登录</u><u data-l="tw">登入</u><u data-l="en">Sign In</u></div>
  1097. </div>
  1098. <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>
  1099. <div class="scrim bottom">
  1100. <div class="dlg sheet fsheet">
  1101. <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>
  1102. <div class="sheetrows" style="padding:6px 4px 0">
  1103. <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>
  1104. <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>
  1105. <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>
  1106. </div>
  1107. <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>
  1108. </div>
  1109. </div>
  1110. <div class="homebar"></div>
  1111. </div>
  1112. </div>
  1113. <div class="cap">
  1114. <div class="cap-num">L5</div>
  1115. <div class="cap-title">登录页 · 语言弹层</div>
  1116. <ul>
  1117. <li>底部弹层:大标题「选择语言」+ ×,三行单选(当前语言打勾),底栏「取消 · 确认」(0.82 / 1.18)</li>
  1118. <li>点「确认」才切换;未登录态只写本机偏好,与皮肤一样不经后端保存</li>
  1119. <li>选中项随右上角「简 / 繁 / EN」开关变化</li>
  1120. </ul>
  1121. </div>
  1122. </div>
  1123. </div>
  1124. </div>
  1125. <div class="sec">
  1126. <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>
  1127. <table class="spec">
  1128. <tr><th style="width:150px">组件</th><th style="width:360px">规格</th><th>说明</th></tr>
  1129. <tr><td><b>A · 我的菜单行</b></td><td class="m">图标底 30×30 r9 · 标题 15 · 回显 13.5 ink-3 · 行内边距 15</td><td>单行、无副标题;回显语种自名</td></tr>
  1130. <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>
  1131. <tr><td><b>C · 登录页语言按钮</b></td><td class="m">地球 18 + 语种名 13 ink-2 · 间距 5 · 顶栏高 46、左右 16 · 热区 ≥ 44</td><td>必须带语种名,只放地球用户不知道点了做什么</td></tr>
  1132. <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>
  1133. <tr><td><b>E · 切换遮罩</b></td><td class="m">小卡最窄 196 r18 · 转圈 · 文案 14 ink-2 · 内边距 26 / 30 / 22 · 间距 15</td><td>用目标语言书写;300 ~ 600ms</td></tr>
  1134. </table>
  1135. </div>
  1136. <div class="sec" style="margin-bottom:20px">
  1137. <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>
  1138. <table class="spec">
  1139. <tr><th style="width:130px">项目</th><th style="width:320px">规格</th><th>说明 / 边界</th></tr>
  1140. <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>
  1141. <tr><td><b>入口</b></td><td>登录页左上角 → 弹层;我的 → 外观与偏好 → 语言</td><td>全站只有这两处</td></tr>
  1142. <tr><td><b>缺省与首启</b></td><td>跟随系统;对不上回落简体</td><td>不做首启语言选择页</td></tr>
  1143. <tr><td><b>触发与生效</b></td><td>语言页点选即切;弹层点「确认」才切</td><td>重渲染,不重启、不清导航栈</td></tr>
  1144. <tr><td><b>过渡</b></td><td>小卡遮罩,300 ~ 600ms</td><td>超时不阻塞;服务端内容全量失效随下次请求刷新</td></tr>
  1145. <tr><td><b>持久化</b></td><td>本机偏好 <code>language</code></td><td>与皮肤各自独立;不经后端、未登录也能切</td></tr>
  1146. <tr><td><b>H5</b></td><td>同一套页面与入口</td><td>首屏静态 HTML 固定简体,水合后切到偏好语言</td></tr>
  1147. <tr><td><b>系统弹窗</b></td><td>iOS 权限说明随系统语言</td><td>Info.plist 文案不随 App 内语言变化</td></tr>
  1148. </table>
  1149. </div>
  1150. <script>
  1151. (function(){
  1152. var root=document.documentElement;
  1153. var skinBtns=document.querySelectorAll('.skin button');
  1154. var langBtns=document.querySelectorAll('.lang button');
  1155. document.querySelectorAll('[data-clone]').forEach(function(el){
  1156. var src=document.querySelector(el.getAttribute('data-clone'));
  1157. if(src) el.innerHTML=src.innerHTML;
  1158. });
  1159. function setSkin(t){
  1160. root.setAttribute('data-theme',t);
  1161. skinBtns.forEach(function(b){b.classList.toggle('on',b.dataset.set===t)});
  1162. document.querySelectorAll('.phone:not([data-lock])').forEach(function(p){p.setAttribute('data-theme',t)});
  1163. try{localStorage.setItem('hh-skin',t)}catch(e){}
  1164. }
  1165. var LANGATTR={zh:'zh-CN',tw:'zh-Hant-HK',en:'en-US'};
  1166. function setLang(l){
  1167. root.setAttribute('data-lang',l);
  1168. root.setAttribute('lang',LANGATTR[l]||'zh-CN');
  1169. langBtns.forEach(function(b){b.classList.toggle('on',b.dataset.lang===l)});
  1170. try{localStorage.setItem('hh-lang',l)}catch(e){}
  1171. }
  1172. skinBtns.forEach(function(b){b.addEventListener('click',function(){setSkin(b.dataset.set)})});
  1173. langBtns.forEach(function(b){b.addEventListener('click',function(){setLang(b.dataset.lang)})});
  1174. document.body.setAttribute('data-h',String(document.body.scrollHeight));
  1175. var hash=(location.hash||'').replace('#','');
  1176. var savedSkin=null,savedLang=null;
  1177. try{savedSkin=localStorage.getItem('hh-skin');savedLang=localStorage.getItem('hh-lang')}catch(e){}
  1178. setSkin(hash==='dark'||hash==='light'?hash:(savedSkin||'light'));
  1179. setLang(/^(zh|tw|en)$/.test(hash)?hash:(savedLang||'zh'));
  1180. })();
  1181. </script>
  1182. </body>
  1183. </html>