ui-styles-preview.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <title>安建医院纪委 · UI 风格预览</title>
  7. <style>
  8. :root {
  9. --page-bg: #ece8e4;
  10. --ink: #1a1a1a;
  11. --muted: #5c5c5c;
  12. }
  13. * { box-sizing: border-box; margin: 0; padding: 0; }
  14. body {
  15. font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  16. background:
  17. radial-gradient(ellipse at 20% 0%, #f5e6e6 0%, transparent 50%),
  18. radial-gradient(ellipse at 80% 100%, #e8e4dc 0%, transparent 45%),
  19. var(--page-bg);
  20. color: var(--ink);
  21. min-height: 100vh;
  22. line-height: 1.5;
  23. }
  24. .page-header {
  25. max-width: 1200px;
  26. margin: 0 auto;
  27. padding: 40px 24px 16px;
  28. text-align: center;
  29. }
  30. .page-header .eyebrow {
  31. font-size: 13px;
  32. letter-spacing: 0.2em;
  33. color: #c8102e;
  34. font-weight: 600;
  35. margin-bottom: 10px;
  36. }
  37. .page-header h1 {
  38. font-size: clamp(24px, 4vw, 36px);
  39. font-weight: 700;
  40. letter-spacing: 0.04em;
  41. }
  42. .page-header p {
  43. margin-top: 10px;
  44. color: var(--muted);
  45. font-size: 15px;
  46. max-width: 560px;
  47. margin-left: auto;
  48. margin-right: auto;
  49. }
  50. /* 顶部四图总览 */
  51. .gallery {
  52. max-width: 1100px;
  53. margin: 28px auto 0;
  54. padding: 0 20px;
  55. display: grid;
  56. grid-template-columns: repeat(4, 1fr);
  57. gap: 14px;
  58. }
  59. @media (max-width: 900px) {
  60. .gallery { grid-template-columns: repeat(2, 1fr); }
  61. }
  62. @media (max-width: 480px) {
  63. .gallery { grid-template-columns: 1fr; }
  64. }
  65. .gallery-item {
  66. background: #fff;
  67. border-radius: 14px;
  68. overflow: hidden;
  69. border: 2px solid transparent;
  70. cursor: pointer;
  71. transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  72. box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  73. text-align: center;
  74. font-family: inherit;
  75. padding: 0;
  76. color: inherit;
  77. }
  78. .gallery-item:hover {
  79. transform: translateY(-2px);
  80. box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  81. }
  82. .gallery-item.active {
  83. border-color: #c8102e;
  84. box-shadow: 0 6px 20px rgba(200, 16, 46, 0.22);
  85. }
  86. .gallery-item img {
  87. width: 100%;
  88. aspect-ratio: 9 / 16;
  89. object-fit: cover;
  90. object-position: top center;
  91. display: block;
  92. background: #f0ebe6;
  93. }
  94. .gallery-item .label {
  95. padding: 10px 8px 12px;
  96. font-size: 12px;
  97. font-weight: 600;
  98. }
  99. .gallery-item.active .label { color: #c8102e; }
  100. .tabs {
  101. display: flex;
  102. flex-wrap: wrap;
  103. justify-content: center;
  104. gap: 8px;
  105. max-width: 960px;
  106. margin: 24px auto 0;
  107. padding: 0 16px;
  108. }
  109. .tab {
  110. border: 1px solid #d4cfc9;
  111. background: #fff;
  112. color: #333;
  113. padding: 10px 16px;
  114. border-radius: 999px;
  115. font-size: 13px;
  116. cursor: pointer;
  117. transition: all 0.2s ease;
  118. font-family: inherit;
  119. }
  120. .tab:hover { border-color: #c8102e; color: #c8102e; }
  121. .tab.active {
  122. background: #c8102e;
  123. border-color: #c8102e;
  124. color: #fff;
  125. box-shadow: 0 4px 14px rgba(200, 16, 46, 0.28);
  126. }
  127. .panel {
  128. display: none;
  129. max-width: 1100px;
  130. margin: 0 auto;
  131. padding: 32px 20px 48px;
  132. }
  133. .panel.active { display: block; }
  134. .panel-grid {
  135. display: grid;
  136. grid-template-columns: 1fr minmax(280px, 340px);
  137. gap: 40px;
  138. align-items: start;
  139. }
  140. @media (max-width: 860px) {
  141. .panel-grid {
  142. grid-template-columns: 1fr;
  143. justify-items: center;
  144. }
  145. .spec { order: 2; max-width: 420px; width: 100%; }
  146. .preview-wrap { order: 1; }
  147. }
  148. .spec h2 {
  149. font-size: 22px;
  150. margin-bottom: 6px;
  151. }
  152. .spec .tag {
  153. display: inline-block;
  154. font-size: 12px;
  155. padding: 3px 10px;
  156. border-radius: 4px;
  157. background: #fde8eb;
  158. color: #c8102e;
  159. margin-bottom: 16px;
  160. font-weight: 600;
  161. }
  162. .spec .desc {
  163. color: var(--muted);
  164. font-size: 14px;
  165. margin-bottom: 20px;
  166. }
  167. .spec h3 {
  168. font-size: 13px;
  169. letter-spacing: 0.08em;
  170. color: #888;
  171. margin: 20px 0 10px;
  172. }
  173. .bg-list {
  174. list-style: none;
  175. font-size: 13px;
  176. background: #fff;
  177. border-radius: 10px;
  178. padding: 4px 14px;
  179. border: 1px solid #e8e4e0;
  180. }
  181. .bg-list li {
  182. padding: 10px 0;
  183. border-bottom: 1px solid #f0ebe6;
  184. color: #444;
  185. }
  186. .bg-list li:last-child { border-bottom: none; }
  187. .bg-list strong {
  188. display: block;
  189. color: #c8102e;
  190. font-size: 12px;
  191. margin-bottom: 2px;
  192. }
  193. .swatches {
  194. display: flex;
  195. flex-wrap: wrap;
  196. gap: 10px;
  197. }
  198. .swatch {
  199. width: 72px;
  200. text-align: center;
  201. }
  202. .swatch .chip {
  203. width: 72px;
  204. height: 40px;
  205. border-radius: 8px;
  206. border: 1px solid rgba(0,0,0,0.08);
  207. margin-bottom: 4px;
  208. }
  209. .swatch span {
  210. font-size: 10px;
  211. color: #666;
  212. word-break: break-all;
  213. }
  214. .kv {
  215. list-style: none;
  216. font-size: 14px;
  217. }
  218. .kv li {
  219. display: flex;
  220. justify-content: space-between;
  221. gap: 16px;
  222. padding: 10px 0;
  223. border-bottom: 1px solid #e5e0db;
  224. }
  225. .kv li span:first-child { color: #777; }
  226. .kv li span:last-child { font-weight: 500; text-align: right; }
  227. .pros {
  228. font-size: 14px;
  229. color: #444;
  230. padding-left: 18px;
  231. }
  232. .pros li { margin-bottom: 6px; }
  233. /* 原图预览(含背景) */
  234. .preview-wrap {
  235. display: flex;
  236. flex-direction: column;
  237. align-items: center;
  238. gap: 12px;
  239. position: sticky;
  240. top: 24px;
  241. width: 100%;
  242. }
  243. .shot {
  244. width: 100%;
  245. max-width: 340px;
  246. border-radius: 20px;
  247. overflow: hidden;
  248. background: #111;
  249. box-shadow:
  250. 0 24px 48px rgba(0,0,0,0.18),
  251. 0 0 0 1px rgba(0,0,0,0.12);
  252. }
  253. .shot img {
  254. width: 100%;
  255. display: block;
  256. vertical-align: middle;
  257. }
  258. .preview-caption {
  259. font-size: 12px;
  260. color: #888;
  261. text-align: center;
  262. }
  263. .preview-caption a {
  264. color: #c8102e;
  265. text-decoration: none;
  266. }
  267. .preview-caption a:hover { text-decoration: underline; }
  268. /* 对照:CSS 增强版(补背景纹理) */
  269. .css-note {
  270. font-size: 12px;
  271. color: #999;
  272. margin-top: 8px;
  273. text-align: center;
  274. max-width: 300px;
  275. }
  276. .compare {
  277. max-width: 1100px;
  278. margin: 0 auto 40px;
  279. padding: 0 20px;
  280. }
  281. .compare h2 {
  282. text-align: center;
  283. font-size: 18px;
  284. margin-bottom: 16px;
  285. }
  286. table {
  287. width: 100%;
  288. border-collapse: collapse;
  289. background: #fff;
  290. border-radius: 12px;
  291. overflow: hidden;
  292. font-size: 13px;
  293. box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  294. }
  295. th, td {
  296. padding: 12px 14px;
  297. text-align: center;
  298. border-bottom: 1px solid #eee;
  299. }
  300. th {
  301. background: #2c1810;
  302. color: #fff;
  303. font-weight: 500;
  304. }
  305. th:first-child, td:first-child {
  306. text-align: left;
  307. }
  308. td:first-child { font-weight: 500; color: #333; }
  309. tr:last-child td { border-bottom: none; }
  310. .rec { color: #c8102e; font-weight: 700; }
  311. .assets-path {
  312. max-width: 1100px;
  313. margin: 0 auto 48px;
  314. padding: 16px 20px;
  315. background: #fff;
  316. border-radius: 10px;
  317. font-size: 13px;
  318. color: #555;
  319. border: 1px dashed #d4cfc9;
  320. }
  321. .assets-path code {
  322. background: #f7f5f3;
  323. padding: 2px 6px;
  324. border-radius: 4px;
  325. font-size: 12px;
  326. color: #c8102e;
  327. }
  328. .page-footer {
  329. text-align: center;
  330. padding: 0 20px 40px;
  331. font-size: 12px;
  332. color: #999;
  333. }
  334. </style>
  335. </head>
  336. <body>
  337. <header class="page-header">
  338. <div class="eyebrow">安建医院纪委 · 微信小程序</div>
  339. <h1>UI 风格方案预览</h1>
  340. <p>以下为带背景插画的完整效果图。点击缩略图或标签切换详情;原图已保存在本地 <code>assets/</code> 目录。</p>
  341. </header>
  342. <div class="gallery" id="gallery">
  343. <button type="button" class="gallery-item active" data-tab="a" aria-label="方案 A">
  344. <img src="assets/style-a-classic-party-red.png" alt="方案 A 党政庄重红" />
  345. <div class="label">A · 党政庄重红</div>
  346. </button>
  347. <button type="button" class="gallery-item" data-tab="b" aria-label="方案 B">
  348. <img src="assets/style-b-medical-integrity.png" alt="方案 B 医纪融合红" />
  349. <div class="label">B · 医纪融合红</div>
  350. </button>
  351. <button type="button" class="gallery-item" data-tab="c" aria-label="方案 C">
  352. <img src="assets/style-c-modern-civic.png" alt="方案 C 现代政务极简" />
  353. <div class="label">C · 现代政务极简</div>
  354. </button>
  355. <button type="button" class="gallery-item" data-tab="d" aria-label="方案 D">
  356. <img src="assets/style-d-solemn-deep-red.png" alt="方案 D 深沉肃穆红" />
  357. <div class="label">D · 深沉肃穆红</div>
  358. </button>
  359. </div>
  360. <nav class="tabs" role="tablist">
  361. <button class="tab active" data-tab="a" type="button">A · 党政庄重红(推荐)</button>
  362. <button class="tab" data-tab="b" type="button">B · 医纪融合红</button>
  363. <button class="tab" data-tab="c" type="button">C · 现代政务极简</button>
  364. <button class="tab" data-tab="d" type="button">D · 深沉肃穆红</button>
  365. </nav>
  366. <!-- Panel A -->
  367. <section class="panel active" id="panel-a">
  368. <div class="panel-grid">
  369. <div class="spec">
  370. <span class="tag">首选推荐</span>
  371. <h2>方案 A · 党政庄重红</h2>
  372. <p class="desc">标准中国红顶栏 + 白底内容区。顶栏含华表与长城水印插画,底部有「忠诚 干净 担当」徽章装饰。</p>
  373. <h3>背景 / 装饰图(原图已含)</h3>
  374. <ul class="bg-list">
  375. <li>
  376. <strong>顶栏左侧</strong>
  377. 华表剪影水印(浅红叠印于红底)
  378. </li>
  379. <li>
  380. <strong>顶栏右侧</strong>
  381. 长城剪影水印
  382. </li>
  383. <li>
  384. <strong>页脚</strong>
  385. 红盾五星徽章 + 标语「忠诚 干净 担当」
  386. </li>
  387. </ul>
  388. <h3>配色</h3>
  389. <div class="swatches">
  390. <div class="swatch"><div class="chip" style="background:#C8102E"></div><span>Primary<br>#C8102E</span></div>
  391. <div class="swatch"><div class="chip" style="background:#9E0B24"></div><span>Dark<br>#9E0B24</span></div>
  392. <div class="swatch"><div class="chip" style="background:#F7F5F3"></div><span>Bg<br>#F7F5F3</span></div>
  393. <div class="swatch"><div class="chip" style="background:#FFFFFF;border-color:#ddd"></div><span>Surface<br>#FFFFFF</span></div>
  394. <div class="swatch"><div class="chip" style="background:#FDE8EB"></div><span>Tint<br>#FDE8EB</span></div>
  395. <div class="swatch"><div class="chip" style="background:#1A1A1A"></div><span>Text<br>#1A1A1A</span></div>
  396. </div>
  397. <h3>规范要点</h3>
  398. <ul class="kv">
  399. <li><span>圆角</span><span>8–12px</span></li>
  400. <li><span>入口</span><span>三张纵向卡片 + 红按钮</span></li>
  401. <li><span>字体</span><span>系统黑体 / 苹方</span></li>
  402. <li><span>本地原图</span><span>assets/style-a-classic-party-red.png</span></li>
  403. </ul>
  404. </div>
  405. <div class="preview-wrap">
  406. <div class="shot">
  407. <img src="assets/style-a-classic-party-red.png" alt="方案 A 完整效果图(含华表、长城背景)" />
  408. </div>
  409. <div class="preview-caption">
  410. 完整效果图(含背景插画)·
  411. <a href="assets/style-a-classic-party-red.png" target="_blank" rel="noopener">打开原图</a>
  412. </div>
  413. </div>
  414. </div>
  415. </section>
  416. <!-- Panel B -->
  417. <section class="panel" id="panel-b">
  418. <div class="panel-grid">
  419. <div class="spec">
  420. <span class="tag">医院属性</span>
  421. <h2>方案 B · 医纪融合红</h2>
  422. <p class="desc">深红 + 医疗洁净白 + 细金线。品牌区背后为医院建筑淡影,底部横幅为水墨长城/山峦背景。</p>
  423. <h3>背景 / 装饰图(原图已含)</h3>
  424. <ul class="bg-list">
  425. <li>
  426. <strong>品牌区背景</strong>
  427. 现代医院建筑高调淡影(半透明叠白)
  428. </li>
  429. <li>
  430. <strong>顶栏分割</strong>
  431. 金色装饰线(中间下尖)
  432. </li>
  433. <li>
  434. <strong>底部横幅</strong>
  435. 水墨山峦 / 长城淡底图 + 标语
  436. </li>
  437. <li>
  438. <strong>标识</strong>
  439. 圆形院徽(十字 + 盾形)
  440. </li>
  441. </ul>
  442. <h3>配色</h3>
  443. <div class="swatches">
  444. <div class="swatch"><div class="chip" style="background:#9B1B1E"></div><span>Primary<br>#9B1B1E</span></div>
  445. <div class="swatch"><div class="chip" style="background:#C4A35A"></div><span>Gold<br>#C4A35A</span></div>
  446. <div class="swatch"><div class="chip" style="background:#FAFBFC"></div><span>Bg<br>#FAFBFC</span></div>
  447. <div class="swatch"><div class="chip" style="background:#FFFFFF;border-color:#ddd"></div><span>Surface<br>#FFFFFF</span></div>
  448. <div class="swatch"><div class="chip" style="background:#F5E8E8"></div><span>Icon<br>#F5E8E8</span></div>
  449. <div class="swatch"><div class="chip" style="background:#1F2937"></div><span>Text<br>#1F2937</span></div>
  450. </div>
  451. <h3>规范要点</h3>
  452. <ul class="kv">
  453. <li><span>金色</span><span>仅作细线点缀,忌大面积</span></li>
  454. <li><span>布局</span><span>院徽 + 三宫格入口 + 横幅</span></li>
  455. <li><span>本地原图</span><span>assets/style-b-medical-integrity.png</span></li>
  456. </ul>
  457. </div>
  458. <div class="preview-wrap">
  459. <div class="shot">
  460. <img src="assets/style-b-medical-integrity.png" alt="方案 B 完整效果图(含医院建筑、水墨背景)" />
  461. </div>
  462. <div class="preview-caption">
  463. 完整效果图(含医院建筑 / 水墨背景)·
  464. <a href="assets/style-b-medical-integrity.png" target="_blank" rel="noopener">打开原图</a>
  465. </div>
  466. </div>
  467. </div>
  468. </section>
  469. <!-- Panel C -->
  470. <section class="panel" id="panel-c">
  471. <div class="panel-grid">
  472. <div class="spec">
  473. <span class="tag">中老年友好</span>
  474. <h2>方案 C · 现代政务极简红</h2>
  475. <p class="desc">大红顶栏 + 浅灰底 + 大留白列表。风格偏「政务服务」,背景以纯色与微纹理为主,强调可读与大触控。</p>
  476. <h3>背景 / 装饰图(原图已含)</h3>
  477. <ul class="bg-list">
  478. <li>
  479. <strong>页面底</strong>
  480. 浅灰 / 米白纯色底(#F5F5F5),突出白卡片
  481. </li>
  482. <li>
  483. <strong>卡片强调</strong>
  484. 左侧红色竖条作为视觉锚点
  485. </li>
  486. <li>
  487. <strong>氛围</strong>
  488. 极简政务风,几乎无插画,靠留白与层级
  489. </li>
  490. </ul>
  491. <h3>配色</h3>
  492. <div class="swatches">
  493. <div class="swatch"><div class="chip" style="background:#E31C23"></div><span>Primary<br>#E31C23</span></div>
  494. <div class="swatch"><div class="chip" style="background:#F5F5F5"></div><span>Bg<br>#F5F5F5</span></div>
  495. <div class="swatch"><div class="chip" style="background:#FFFFFF;border-color:#ddd"></div><span>Surface<br>#FFFFFF</span></div>
  496. <div class="swatch"><div class="chip" style="background:#111111"></div><span>Text<br>#111111</span></div>
  497. <div class="swatch"><div class="chip" style="background:#888888"></div><span>Muted<br>#888888</span></div>
  498. </div>
  499. <h3>规范要点</h3>
  500. <ul class="kv">
  501. <li><span>触控区</span><span>≥ 48px 高度</span></li>
  502. <li><span>正文</span><span>≥ 16px</span></li>
  503. <li><span>本地原图</span><span>assets/style-c-modern-civic.png</span></li>
  504. </ul>
  505. </div>
  506. <div class="preview-wrap">
  507. <div class="shot">
  508. <img src="assets/style-c-modern-civic.png" alt="方案 C 完整效果图" />
  509. </div>
  510. <div class="preview-caption">
  511. 完整效果图 ·
  512. <a href="assets/style-c-modern-civic.png" target="_blank" rel="noopener">打开原图</a>
  513. </div>
  514. </div>
  515. </div>
  516. </section>
  517. <!-- Panel D -->
  518. <section class="panel" id="panel-d">
  519. <div class="panel-grid">
  520. <div class="spec">
  521. <span class="tag">仪式感</span>
  522. <h2>方案 D · 深沉肃穆红</h2>
  523. <p class="desc">酒红纹理顶区 + 羊皮纸暖底。顶区有医院建筑线描,底部有水墨山峦与医院淡影、红色丝绸波浪装饰。</p>
  524. <h3>背景 / 装饰图(原图已含)</h3>
  525. <ul class="bg-list">
  526. <li>
  527. <strong>顶部酒红区</strong>
  528. 纸质纹理 + 医院建筑群线描淡影
  529. </li>
  530. <li>
  531. <strong>分区曲线</strong>
  532. 金色描边波浪分隔上下区
  533. </li>
  534. <li>
  535. <strong>标识</strong>
  536. 金色月桂环院徽(十字 / 建筑)
  537. </li>
  538. <li>
  539. <strong>页脚</strong>
  540. 水墨山峦与建筑淡影 + 红色丝绸波浪
  541. </li>
  542. </ul>
  543. <h3>配色</h3>
  544. <div class="swatches">
  545. <div class="swatch"><div class="chip" style="background:#6B0F1A"></div><span>Header<br>#6B0F1A</span></div>
  546. <div class="swatch"><div class="chip" style="background:#8B1538"></div><span>Primary<br>#8B1538</span></div>
  547. <div class="swatch"><div class="chip" style="background:#C4A35A"></div><span>Gold<br>#C4A35A</span></div>
  548. <div class="swatch"><div class="chip" style="background:#F9F6F1"></div><span>Bg<br>#F9F6F1</span></div>
  549. <div class="swatch"><div class="chip" style="background:#2C1810"></div><span>Text<br>#2C1810</span></div>
  550. </div>
  551. <h3>规范要点</h3>
  552. <ul class="kv">
  553. <li><span>圆角</span><span>入口近直角</span></li>
  554. <li><span>表单页</span><span>建议改浅底,降低压迫感</span></li>
  555. <li><span>本地原图</span><span>assets/style-d-solemn-deep-red.png</span></li>
  556. </ul>
  557. </div>
  558. <div class="preview-wrap">
  559. <div class="shot">
  560. <img src="assets/style-d-solemn-deep-red.png" alt="方案 D 完整效果图(含建筑线描、水墨、丝绸波浪)" />
  561. </div>
  562. <div class="preview-caption">
  563. 完整效果图(含建筑 / 水墨 / 波浪装饰)·
  564. <a href="assets/style-d-solemn-deep-red.png" target="_blank" rel="noopener">打开原图</a>
  565. </div>
  566. </div>
  567. </div>
  568. </section>
  569. <section class="compare">
  570. <h2>四套对比</h2>
  571. <table>
  572. <thead>
  573. <tr>
  574. <th>维度</th>
  575. <th>A 庄重红</th>
  576. <th>B 医纪融合</th>
  577. <th>C 极简政务</th>
  578. <th>D 肃穆红</th>
  579. </tr>
  580. </thead>
  581. <tbody>
  582. <tr>
  583. <td>背景丰富度</td>
  584. <td>华表 + 长城</td>
  585. <td class="rec">医院 + 水墨</td>
  586. <td>纯色留白</td>
  587. <td class="rec">建筑 + 水墨 + 波浪</td>
  588. </tr>
  589. <tr>
  590. <td>正式感</td>
  591. <td class="rec">★★★★★</td>
  592. <td>★★★★</td>
  593. <td>★★★★</td>
  594. <td>★★★★★</td>
  595. </tr>
  596. <tr>
  597. <td>易用 / 可达</td>
  598. <td>★★★★</td>
  599. <td>★★★★</td>
  600. <td class="rec">★★★★★</td>
  601. <td>★★★</td>
  602. </tr>
  603. <tr>
  604. <td>推荐场景</td>
  605. <td class="rec">默认首选</td>
  606. <td>强调医院属性</td>
  607. <td>中老年扫码</td>
  608. <td>仪式感入口</td>
  609. </tr>
  610. </tbody>
  611. </table>
  612. </section>
  613. <div class="assets-path">
  614. <strong>本地图片路径</strong><br /><br />
  615. <code>assets/style-a-classic-party-red.png</code> — 方案 A<br />
  616. <code>assets/style-b-medical-integrity.png</code> — 方案 B<br />
  617. <code>assets/style-c-modern-civic.png</code> — 方案 C<br />
  618. <code>assets/style-d-solemn-deep-red.png</code> — 方案 D
  619. </div>
  620. <footer class="page-footer">
  621. 安建医院纪委小程序 · UI 风格预览 · 刷新页面即可看到带背景的完整效果图
  622. </footer>
  623. <script>
  624. function switchTab(id) {
  625. document.querySelectorAll(".tab").forEach((t) => {
  626. t.classList.toggle("active", t.dataset.tab === id);
  627. });
  628. document.querySelectorAll(".gallery-item").forEach((g) => {
  629. g.classList.toggle("active", g.dataset.tab === id);
  630. });
  631. document.querySelectorAll(".panel").forEach((p) => {
  632. p.classList.toggle("active", p.id === "panel-" + id);
  633. });
  634. }
  635. document.querySelectorAll(".tab, .gallery-item").forEach((el) => {
  636. el.addEventListener("click", () => switchTab(el.dataset.tab));
  637. });
  638. </script>
  639. </body>
  640. </html>