shanxia-mp-base.css 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803
  1. /**
  2. * 山峡化工 · 小程序移动端 Demo 基础样式
  3. * 视觉 Token 对齐 docs/miniprogram-ui-spec-sanqiang.md
  4. * 375px 基线,最大 420px 手机框
  5. */
  6. :root {
  7. --brand-green: #0a9f6d;
  8. --brand-green-dark: #087f57;
  9. --brand-green-light: #11b37a;
  10. --brand-green-soft: #e9f9f2;
  11. --barley-yellow: #d6a343;
  12. --barley-yellow-soft: #fff7e8;
  13. --bg-page: #f5f8f7;
  14. --surface: #ffffff;
  15. --text-primary: #1f2a26;
  16. --text-muted: #6b7b74;
  17. --text-placeholder: #9aa8a1;
  18. --border: #dcebe4;
  19. --border-light: #edf5f1;
  20. --shadow-sm: 0 4px 12px rgba(10, 159, 109, 0.06);
  21. --shadow-md: 0 8px 20px rgba(10, 159, 109, 0.12);
  22. --danger: #d14343;
  23. --danger-soft: #fef2f2;
  24. --warning: #cf8a19;
  25. --warning-soft: #fff4dd;
  26. --success: #189b65;
  27. --success-soft: #e9f9f2;
  28. --info: #3b82f6;
  29. --info-soft: #eff6ff;
  30. --radius-sm: 8px;
  31. --radius-md: 12px;
  32. --radius-lg: 16px;
  33. --radius-xl: 22px;
  34. --radius-pill: 999px;
  35. --space-xs: 8px;
  36. --space-sm: 10px;
  37. --space-md: 12px;
  38. --space-lg: 16px;
  39. --space-xl: 20px;
  40. --header-gradient: linear-gradient(145deg, var(--brand-green-dark) 0%, var(--brand-green) 72%, var(--barley-yellow) 165%);
  41. --tabbar-h: 56px;
  42. --safe-bottom: env(safe-area-inset-bottom, 0px);
  43. --module-crm: #0a9f6d;
  44. --module-bx: #d6a343;
  45. --module-db: #2b8a7e;
  46. --module-pl: #087f57;
  47. }
  48. * {
  49. box-sizing: border-box;
  50. margin: 0;
  51. padding: 0;
  52. }
  53. html,
  54. body {
  55. background: #e8eeeb;
  56. color: var(--text-primary);
  57. font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  58. font-size: 14px;
  59. line-height: 1.5;
  60. -webkit-font-smoothing: antialiased;
  61. }
  62. a {
  63. color: inherit;
  64. text-decoration: none;
  65. }
  66. button {
  67. font: inherit;
  68. border: none;
  69. background: none;
  70. cursor: pointer;
  71. }
  72. /* ── 手机框 ── */
  73. .phone {
  74. max-width: 420px;
  75. min-height: 100vh;
  76. margin: 0 auto;
  77. background: var(--bg-page);
  78. position: relative;
  79. padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px);
  80. }
  81. .phone.no-tabbar {
  82. padding-bottom: calc(var(--safe-bottom) + 16px);
  83. }
  84. /* ── 原型导航(右上角切换 Demo) ── */
  85. .proto-nav {
  86. position: fixed;
  87. top: 10px;
  88. right: 10px;
  89. z-index: 9999;
  90. background: rgba(31, 42, 38, 0.92);
  91. color: #fff;
  92. border-radius: var(--radius-md);
  93. padding: 8px 10px;
  94. font-size: 11px;
  95. max-width: 180px;
  96. backdrop-filter: blur(8px);
  97. box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  98. }
  99. .proto-nav strong {
  100. display: block;
  101. font-size: 11px;
  102. margin-bottom: 6px;
  103. opacity: 0.85;
  104. }
  105. .proto-nav a {
  106. display: block;
  107. padding: 4px 0;
  108. color: #b8e6d0;
  109. font-size: 11px;
  110. }
  111. .proto-nav a.active {
  112. color: #fff;
  113. font-weight: 700;
  114. }
  115. /* ── Header ── */
  116. .mp-header {
  117. background: var(--header-gradient);
  118. color: #fff;
  119. padding: calc(14px + env(safe-area-inset-top, 0px)) var(--space-lg) var(--space-lg);
  120. border-bottom-left-radius: var(--radius-xl);
  121. border-bottom-right-radius: var(--radius-xl);
  122. box-shadow: var(--shadow-md);
  123. }
  124. .mp-header__row {
  125. display: flex;
  126. align-items: center;
  127. justify-content: space-between;
  128. gap: var(--space-md);
  129. margin-bottom: var(--space-md);
  130. }
  131. .mp-header__title {
  132. font-size: 18px;
  133. font-weight: 700;
  134. }
  135. .mp-header__action {
  136. min-height: 36px;
  137. padding: 0 12px;
  138. border-radius: var(--radius-pill);
  139. border: 1px solid rgba(255, 255, 255, 0.38);
  140. display: inline-flex;
  141. align-items: center;
  142. font-size: 12px;
  143. color: #fff;
  144. }
  145. .mp-header__user {
  146. display: flex;
  147. align-items: center;
  148. gap: var(--space-md);
  149. }
  150. .mp-header__avatar {
  151. width: 48px;
  152. height: 48px;
  153. border-radius: 50%;
  154. background: rgba(255, 255, 255, 0.22);
  155. border: 2px solid rgba(255, 255, 255, 0.35);
  156. flex-shrink: 0;
  157. }
  158. .mp-header__meta strong {
  159. display: block;
  160. font-size: 15px;
  161. }
  162. .mp-header__meta p {
  163. font-size: 12px;
  164. opacity: 0.88;
  165. margin-top: 2px;
  166. }
  167. .mp-header__search {
  168. min-height: 44px;
  169. background: #fff;
  170. border-radius: var(--radius-pill);
  171. display: flex;
  172. align-items: center;
  173. padding: 0 14px;
  174. color: var(--text-placeholder);
  175. font-size: 13px;
  176. gap: 8px;
  177. }
  178. .mp-header__search-dot {
  179. width: 16px;
  180. height: 16px;
  181. border-radius: 50%;
  182. border: 2px solid #c5d5cd;
  183. }
  184. /* ── 统计条(浮在 Header 下) ── */
  185. .mp-stats {
  186. margin: -12px var(--space-lg) var(--space-md);
  187. background: var(--surface);
  188. border: 1px solid var(--border);
  189. border-radius: var(--radius-lg);
  190. display: grid;
  191. grid-template-columns: repeat(3, 1fr);
  192. padding: 14px 8px;
  193. box-shadow: var(--shadow-sm);
  194. position: relative;
  195. z-index: 2;
  196. }
  197. .mp-stats--4 {
  198. grid-template-columns: repeat(4, 1fr);
  199. }
  200. .mp-stat {
  201. text-align: center;
  202. padding: 0 4px;
  203. }
  204. .mp-stat strong {
  205. display: block;
  206. font-size: 20px;
  207. color: var(--brand-green-dark);
  208. line-height: 1.2;
  209. }
  210. .mp-stat span {
  211. display: block;
  212. font-size: 11px;
  213. color: var(--text-muted);
  214. margin-top: 4px;
  215. }
  216. /* ── Section ── */
  217. .mp-section {
  218. margin: var(--space-md) var(--space-lg);
  219. }
  220. .mp-section__head {
  221. display: flex;
  222. align-items: center;
  223. justify-content: space-between;
  224. margin-bottom: var(--space-sm);
  225. }
  226. .mp-section__head h2 {
  227. font-size: 16px;
  228. font-weight: 700;
  229. }
  230. .mp-section__head a {
  231. font-size: 12px;
  232. color: var(--text-muted);
  233. }
  234. /* ── 四大模块入口宫格 ── */
  235. .mp-module-grid {
  236. display: grid;
  237. grid-template-columns: repeat(2, 1fr);
  238. gap: var(--space-md);
  239. }
  240. .mp-module-card {
  241. background: var(--surface);
  242. border: 1px solid var(--border);
  243. border-radius: var(--radius-lg);
  244. padding: var(--space-lg) var(--space-md);
  245. min-height: 108px;
  246. display: flex;
  247. flex-direction: column;
  248. gap: 8px;
  249. box-shadow: var(--shadow-sm);
  250. transition: transform 0.15s ease;
  251. }
  252. .mp-module-card:active {
  253. transform: scale(0.98);
  254. }
  255. .mp-module-card__icon {
  256. width: 40px;
  257. height: 40px;
  258. border-radius: var(--radius-md);
  259. display: flex;
  260. align-items: center;
  261. justify-content: center;
  262. font-size: 18px;
  263. font-weight: 700;
  264. color: #fff;
  265. }
  266. .mp-module-card--crm .mp-module-card__icon { background: linear-gradient(145deg, #0a9f6d, #11b37a); }
  267. .mp-module-card--bx .mp-module-card__icon { background: linear-gradient(145deg, #c9922f, #d6a343); }
  268. .mp-module-card--db .mp-module-card__icon { background: linear-gradient(145deg, #247a70, #2b8a7e); }
  269. .mp-module-card--pl .mp-module-card__icon { background: linear-gradient(145deg, #066b49, #087f57); }
  270. .mp-module-card strong {
  271. font-size: 15px;
  272. }
  273. .mp-module-card p {
  274. font-size: 11px;
  275. color: var(--text-muted);
  276. line-height: 1.4;
  277. }
  278. .mp-module-card__badge {
  279. align-self: flex-start;
  280. min-height: 22px;
  281. padding: 0 8px;
  282. border-radius: var(--radius-pill);
  283. background: var(--warning-soft);
  284. color: var(--warning);
  285. font-size: 10px;
  286. font-weight: 600;
  287. display: inline-flex;
  288. align-items: center;
  289. }
  290. /* ── 功能宫格(模块内二级入口) ── */
  291. .mp-tool-grid {
  292. background: var(--surface);
  293. border: 1px solid var(--border);
  294. border-radius: var(--radius-lg);
  295. padding: var(--space-md);
  296. display: grid;
  297. grid-template-columns: repeat(4, 1fr);
  298. gap: var(--space-sm);
  299. }
  300. .mp-tool {
  301. min-height: 74px;
  302. border-radius: var(--radius-md);
  303. background: #f8fcfa;
  304. border: 1px solid var(--border-light);
  305. display: flex;
  306. flex-direction: column;
  307. align-items: center;
  308. justify-content: center;
  309. gap: 6px;
  310. font-size: 11px;
  311. text-align: center;
  312. color: #4f5f58;
  313. padding: 6px 4px;
  314. }
  315. .mp-tool__icon {
  316. width: 28px;
  317. height: 28px;
  318. border-radius: var(--radius-sm);
  319. background: linear-gradient(145deg, #dff1e8, #cdebdc);
  320. }
  321. /* ── Tab 筛选条 ── */
  322. .mp-tabs {
  323. display: flex;
  324. gap: 8px;
  325. overflow-x: auto;
  326. padding-bottom: 2px;
  327. scrollbar-width: none;
  328. }
  329. .mp-tabs::-webkit-scrollbar {
  330. display: none;
  331. }
  332. .mp-tab {
  333. flex: 0 0 auto;
  334. min-height: 34px;
  335. padding: 0 14px;
  336. border-radius: var(--radius-pill);
  337. border: 1px solid var(--border);
  338. background: var(--surface);
  339. color: var(--text-muted);
  340. font-size: 12px;
  341. display: inline-flex;
  342. align-items: center;
  343. }
  344. .mp-tab.active {
  345. background: var(--brand-green-soft);
  346. border-color: #b7e6d0;
  347. color: var(--brand-green-dark);
  348. font-weight: 600;
  349. }
  350. /* ── 列表卡片 ── */
  351. .mp-list {
  352. display: flex;
  353. flex-direction: column;
  354. gap: var(--space-sm);
  355. }
  356. .mp-card {
  357. background: var(--surface);
  358. border: 1px solid var(--border);
  359. border-radius: var(--radius-lg);
  360. padding: var(--space-md);
  361. box-shadow: var(--shadow-sm);
  362. }
  363. .mp-card__head {
  364. display: flex;
  365. align-items: flex-start;
  366. justify-content: space-between;
  367. gap: var(--space-sm);
  368. margin-bottom: 8px;
  369. }
  370. .mp-card__title {
  371. font-size: 14px;
  372. font-weight: 600;
  373. line-height: 1.35;
  374. }
  375. .mp-card__sub {
  376. font-size: 12px;
  377. color: var(--text-muted);
  378. margin-top: 2px;
  379. }
  380. .mp-card__row {
  381. display: flex;
  382. justify-content: space-between;
  383. gap: var(--space-md);
  384. font-size: 12px;
  385. color: var(--text-muted);
  386. margin-bottom: 6px;
  387. }
  388. .mp-card__foot {
  389. display: flex;
  390. align-items: center;
  391. justify-content: space-between;
  392. gap: var(--space-sm);
  393. margin-top: 10px;
  394. padding-top: 10px;
  395. border-top: 1px solid var(--border-light);
  396. }
  397. .mp-card__amount {
  398. font-size: 16px;
  399. font-weight: 700;
  400. color: #be7a12;
  401. }
  402. /* ── 状态标签 ── */
  403. .mp-tag {
  404. flex-shrink: 0;
  405. min-height: 24px;
  406. padding: 0 10px;
  407. border-radius: var(--radius-pill);
  408. font-size: 11px;
  409. font-weight: 600;
  410. display: inline-flex;
  411. align-items: center;
  412. }
  413. .mp-tag--success { background: var(--success-soft); color: var(--success); }
  414. .mp-tag--warning { background: var(--warning-soft); color: var(--warning); }
  415. .mp-tag--danger { background: var(--danger-soft); color: var(--danger); }
  416. .mp-tag--info { background: var(--info-soft); color: var(--info); }
  417. .mp-tag--muted { background: #f1f5f3; color: var(--text-muted); }
  418. /* ── 按钮 ── */
  419. .mp-btn {
  420. min-height: 34px;
  421. padding: 0 14px;
  422. border-radius: var(--radius-pill);
  423. font-size: 12px;
  424. font-weight: 600;
  425. display: inline-flex;
  426. align-items: center;
  427. justify-content: center;
  428. white-space: nowrap;
  429. }
  430. .mp-btn--primary {
  431. background: var(--brand-green);
  432. color: #fff;
  433. }
  434. .mp-btn--ghost {
  435. background: #fff;
  436. color: var(--brand-green-dark);
  437. border: 1px solid #b7e6d0;
  438. }
  439. .mp-btn--danger {
  440. background: var(--danger-soft);
  441. color: var(--danger);
  442. border: 1px solid #fecaca;
  443. }
  444. /* ── KPI 迷你块(详情页) ── */
  445. .mp-kpi-row {
  446. display: grid;
  447. grid-template-columns: repeat(2, 1fr);
  448. gap: var(--space-sm);
  449. }
  450. .mp-kpi {
  451. background: #f8fcfa;
  452. border: 1px solid var(--border-light);
  453. border-radius: var(--radius-md);
  454. padding: 10px 12px;
  455. }
  456. .mp-kpi label {
  457. display: block;
  458. font-size: 11px;
  459. color: var(--text-muted);
  460. }
  461. .mp-kpi strong {
  462. display: block;
  463. margin-top: 4px;
  464. font-size: 15px;
  465. color: var(--text-primary);
  466. }
  467. /* ── 详情键值 ── */
  468. .mp-kv-list {
  469. background: var(--surface);
  470. border: 1px solid var(--border);
  471. border-radius: var(--radius-lg);
  472. overflow: hidden;
  473. }
  474. .mp-kv {
  475. display: flex;
  476. justify-content: space-between;
  477. gap: var(--space-lg);
  478. padding: 12px var(--space-md);
  479. font-size: 13px;
  480. border-bottom: 1px solid var(--border-light);
  481. }
  482. .mp-kv:last-child {
  483. border-bottom: none;
  484. }
  485. .mp-kv span:first-child {
  486. color: var(--text-muted);
  487. flex-shrink: 0;
  488. }
  489. .mp-kv span:last-child {
  490. text-align: right;
  491. color: var(--text-primary);
  492. word-break: break-all;
  493. }
  494. /* ── 待办条 ── */
  495. .mp-todo {
  496. display: flex;
  497. align-items: center;
  498. gap: var(--space-md);
  499. background: var(--surface);
  500. border: 1px solid var(--border);
  501. border-radius: var(--radius-md);
  502. padding: 12px;
  503. }
  504. .mp-todo__dot {
  505. width: 8px;
  506. height: 8px;
  507. border-radius: 50%;
  508. background: var(--warning);
  509. flex-shrink: 0;
  510. }
  511. .mp-todo__body {
  512. flex: 1;
  513. min-width: 0;
  514. }
  515. .mp-todo__body strong {
  516. display: block;
  517. font-size: 13px;
  518. }
  519. .mp-todo__body span {
  520. font-size: 11px;
  521. color: var(--text-muted);
  522. }
  523. /* ── 底部 TabBar ── */
  524. .mp-tabbar {
  525. position: fixed;
  526. left: 50%;
  527. transform: translateX(-50%);
  528. bottom: 0;
  529. width: 100%;
  530. max-width: 420px;
  531. min-height: var(--tabbar-h);
  532. padding-bottom: var(--safe-bottom);
  533. background: var(--surface);
  534. border-top: 1px solid var(--border);
  535. display: grid;
  536. grid-template-columns: repeat(4, 1fr);
  537. z-index: 100;
  538. }
  539. .mp-tabbar__item {
  540. display: flex;
  541. flex-direction: column;
  542. align-items: center;
  543. justify-content: center;
  544. gap: 2px;
  545. font-size: 10px;
  546. color: var(--text-muted);
  547. padding: 6px 0;
  548. }
  549. .mp-tabbar__item.active {
  550. color: var(--brand-green-dark);
  551. font-weight: 600;
  552. }
  553. .mp-tabbar__icon {
  554. width: 22px;
  555. height: 22px;
  556. border-radius: 6px;
  557. background: #e8f3ee;
  558. }
  559. .mp-tabbar__item.active .mp-tabbar__icon {
  560. background: linear-gradient(145deg, #0a9f6d, #11b37a);
  561. }
  562. /* ── 工作台:业务大模块区块 ── */
  563. .mp-module-block {
  564. background: var(--surface);
  565. border: 1px solid var(--border);
  566. border-radius: var(--radius-lg);
  567. overflow: hidden;
  568. box-shadow: var(--shadow-sm);
  569. }
  570. .mp-module-block + .mp-module-block {
  571. margin-top: var(--space-md);
  572. }
  573. .mp-module-block__head {
  574. display: flex;
  575. align-items: center;
  576. gap: var(--space-sm);
  577. padding: 12px var(--space-md);
  578. border-bottom: 1px solid var(--border-light);
  579. background: #fafcfb;
  580. }
  581. .mp-module-block__icon {
  582. width: 32px;
  583. height: 32px;
  584. border-radius: var(--radius-sm);
  585. color: #fff;
  586. font-size: 11px;
  587. font-weight: 700;
  588. display: inline-flex;
  589. align-items: center;
  590. justify-content: center;
  591. flex-shrink: 0;
  592. }
  593. .mp-module-block--crm .mp-module-block__icon { background: linear-gradient(145deg, #0a9f6d, #11b37a); }
  594. .mp-module-block--bx .mp-module-block__icon { background: linear-gradient(145deg, #c9922f, #d6a343); }
  595. .mp-module-block--db .mp-module-block__icon { background: linear-gradient(145deg, #247a70, #2b8a7e); }
  596. .mp-module-block--pl .mp-module-block__icon { background: linear-gradient(145deg, #066b49, #087f57); }
  597. .mp-module-block__head h2 {
  598. font-size: 15px;
  599. font-weight: 700;
  600. }
  601. .mp-module-block__head p {
  602. font-size: 11px;
  603. color: var(--text-muted);
  604. margin-top: 2px;
  605. }
  606. .mp-module-block__title-wrap {
  607. flex: 1;
  608. min-width: 0;
  609. }
  610. /* ── 工作台:业务菜单卡片(模块内) ── */
  611. .mp-menu-grid {
  612. display: grid;
  613. grid-template-columns: repeat(3, 1fr);
  614. gap: 1px;
  615. background: var(--border-light);
  616. }
  617. .mp-menu-card {
  618. min-height: 78px;
  619. background: var(--surface);
  620. display: flex;
  621. flex-direction: column;
  622. align-items: center;
  623. justify-content: center;
  624. gap: 6px;
  625. padding: 10px 6px;
  626. text-align: center;
  627. transition: background 0.15s ease;
  628. }
  629. .mp-menu-card:active {
  630. background: #f4fbf8;
  631. }
  632. .mp-menu-card__icon {
  633. width: 30px;
  634. height: 30px;
  635. border-radius: var(--radius-sm);
  636. background: linear-gradient(145deg, #e8f5ef, #d9efe5);
  637. }
  638. .mp-module-block--bx .mp-menu-card__icon { background: linear-gradient(145deg, #faf0dc, #f3e4c4); }
  639. .mp-module-block--db .mp-menu-card__icon { background: linear-gradient(145deg, #dff0ee, #cce5e2); }
  640. .mp-module-block--pl .mp-menu-card__icon { background: linear-gradient(145deg, #dff1e8, #c8e8d8); }
  641. .mp-menu-card__name {
  642. font-size: 11px;
  643. color: #3f4f48;
  644. line-height: 1.35;
  645. }
  646. .mp-menu-card--disabled {
  647. opacity: 0.45;
  648. pointer-events: none;
  649. }
  650. /* ── 占位页(首页 / 待办 暂未开发) ── */
  651. .mp-placeholder {
  652. min-height: calc(100vh - var(--tabbar-h) - 120px);
  653. display: flex;
  654. flex-direction: column;
  655. align-items: center;
  656. justify-content: center;
  657. padding: 40px 24px;
  658. text-align: center;
  659. }
  660. .mp-placeholder__icon {
  661. width: 88px;
  662. height: 88px;
  663. border-radius: 50%;
  664. background: linear-gradient(145deg, #edf5f1, #dcebe4);
  665. margin-bottom: 16px;
  666. }
  667. .mp-placeholder h2 {
  668. font-size: 17px;
  669. margin-bottom: 8px;
  670. }
  671. .mp-placeholder p {
  672. font-size: 13px;
  673. color: var(--text-muted);
  674. line-height: 1.6;
  675. }
  676. .mp-placeholder .mp-tag {
  677. margin-top: 14px;
  678. }
  679. /* ── 我的(个人中心) ── */
  680. .mp-profile-hero {
  681. background: var(--header-gradient);
  682. color: #fff;
  683. padding: calc(20px + env(safe-area-inset-top, 0px)) var(--space-lg) 28px;
  684. border-bottom-left-radius: var(--radius-xl);
  685. border-bottom-right-radius: var(--radius-xl);
  686. box-shadow: var(--shadow-md);
  687. }
  688. .mp-profile-hero__user {
  689. display: flex;
  690. align-items: center;
  691. gap: var(--space-md);
  692. }
  693. .mp-profile-hero__avatar {
  694. width: 64px;
  695. height: 64px;
  696. border-radius: 50%;
  697. background: rgba(255, 255, 255, 0.22);
  698. border: 2px solid rgba(255, 255, 255, 0.4);
  699. }
  700. .mp-profile-hero__name {
  701. font-size: 20px;
  702. font-weight: 700;
  703. }
  704. .mp-profile-hero__dept {
  705. font-size: 12px;
  706. opacity: 0.88;
  707. margin-top: 4px;
  708. }
  709. .mp-profile-form {
  710. margin: -16px var(--space-lg) 0;
  711. position: relative;
  712. z-index: 2;
  713. }
  714. .mp-profile-panel {
  715. background: var(--surface);
  716. border: 1px solid var(--border);
  717. border-radius: var(--radius-lg);
  718. overflow: hidden;
  719. box-shadow: var(--shadow-sm);
  720. }
  721. .mp-form-item {
  722. display: flex;
  723. align-items: center;
  724. justify-content: space-between;
  725. gap: var(--space-lg);
  726. padding: 14px var(--space-md);
  727. border-bottom: 1px solid var(--border-light);
  728. font-size: 14px;
  729. }
  730. .mp-form-item:last-child {
  731. border-bottom: none;
  732. }
  733. .mp-form-item label {
  734. color: var(--text-muted);
  735. flex-shrink: 0;
  736. }
  737. .mp-form-item input {
  738. flex: 1;
  739. min-width: 0;
  740. border: none;
  741. text-align: right;
  742. font-size: 14px;
  743. color: var(--text-primary);
  744. background: transparent;
  745. outline: none;
  746. }
  747. .mp-form-item input::placeholder {
  748. color: var(--text-placeholder);
  749. }
  750. .mp-profile-actions {
  751. margin: var(--space-lg);
  752. display: flex;
  753. flex-direction: column;
  754. gap: var(--space-sm);
  755. }
  756. .mp-btn--block {
  757. width: 100%;
  758. min-height: 44px;
  759. border-radius: var(--radius-md);
  760. font-size: 15px;
  761. }
  762. /* ── 筛选条 ── */
  763. .mp-filter {
  764. display: flex;
  765. gap: 8px;
  766. margin-bottom: var(--space-sm);
  767. }
  768. .mp-filter__input {
  769. flex: 1;
  770. min-height: 40px;
  771. border-radius: var(--radius-pill);
  772. border: 1px solid var(--border);
  773. background: var(--surface);
  774. padding: 0 14px;
  775. font-size: 13px;
  776. color: var(--text-placeholder);
  777. display: flex;
  778. align-items: center;
  779. }
  780. .mp-filter__btn {
  781. min-width: 72px;
  782. min-height: 40px;
  783. border-radius: var(--radius-pill);
  784. background: var(--brand-green);
  785. color: #fff;
  786. font-size: 13px;
  787. font-weight: 600;
  788. }
  789. /* ── 空态(方案 B · 插画文件夹,对齐 miniprogram/components/mp-empty) ── */
  790. .mp-empty {
  791. text-align: center;
  792. padding: 40px 20px 32px;
  793. color: var(--text-muted);
  794. font-size: 13px;
  795. }
  796. .mp-empty__art {
  797. position: relative;
  798. width: 148px;
  799. height: 112px;
  800. margin: 0 auto 18px;
  801. }
  802. .mp-empty__shadow {
  803. position: absolute;
  804. left: 24px;
  805. right: 24px;
  806. bottom: 6px;
  807. height: 12px;
  808. border-radius: 50%;
  809. background: rgba(15, 30, 25, 0.08);
  810. }
  811. .mp-empty__folder {
  812. position: absolute;
  813. left: 50%;
  814. top: 10px;
  815. transform: translateX(-50%);
  816. width: 108px;
  817. height: 78px;
  818. }
  819. .mp-empty__folder-tab {
  820. position: absolute;
  821. left: 10px;
  822. top: -10px;
  823. width: 38px;
  824. height: 16px;
  825. border-radius: 8px 8px 0 0;
  826. background: #87d4b0;
  827. }
  828. .mp-empty__folder-back {
  829. position: absolute;
  830. inset: 0;
  831. border-radius: 12px 12px 14px 14px;
  832. background: linear-gradient(160deg, #b7e6d2, #7dcea0);
  833. }
  834. .mp-empty__folder-front {
  835. position: absolute;
  836. left: 0;
  837. right: 0;
  838. bottom: 0;
  839. height: 58px;
  840. border-radius: 10px 14px 14px 14px;
  841. background: linear-gradient(180deg, #ecfdf5, #dff7ec);
  842. border: 1px solid rgba(8, 127, 87, 0.18);
  843. box-shadow: 0 8px 18px rgba(10, 159, 109, 0.12);
  844. }
  845. .mp-empty__lines {
  846. position: absolute;
  847. left: 18px;
  848. right: 18px;
  849. top: 18px;
  850. }
  851. .mp-empty__line {
  852. display: block;
  853. height: 6px;
  854. border-radius: 999px;
  855. background: #cfe9dc;
  856. margin-bottom: 8px;
  857. }
  858. .mp-empty__line--mid { width: 70%; }
  859. .mp-empty__line--short { width: 48%; margin-bottom: 0; }
  860. .mp-empty__title {
  861. display: block;
  862. font-size: 15px;
  863. font-weight: 650;
  864. color: var(--text-primary);
  865. }
  866. .mp-empty__desc {
  867. display: block;
  868. margin-top: 8px;
  869. font-size: 12px;
  870. color: var(--text-muted);
  871. line-height: 1.55;
  872. }
  873. .mp-empty__actions {
  874. margin-top: 18px;
  875. display: flex;
  876. justify-content: center;
  877. gap: 10px;
  878. flex-wrap: wrap;
  879. }
  880. .mp-empty__icon {
  881. width: 64px;
  882. height: 64px;
  883. margin: 0 auto 12px;
  884. border-radius: 14px;
  885. background: linear-gradient(160deg, #b7e6d2, #7dcea0);
  886. position: relative;
  887. }
  888. .mp-empty__icon::before {
  889. content: '';
  890. position: absolute;
  891. left: 10px;
  892. top: -6px;
  893. width: 22px;
  894. height: 10px;
  895. border-radius: 6px 6px 0 0;
  896. background: #87d4b0;
  897. }
  898. .mp-empty__icon::after {
  899. content: '';
  900. position: absolute;
  901. left: 6px;
  902. right: 6px;
  903. bottom: 8px;
  904. height: 34px;
  905. border-radius: 8px 10px 10px 10px;
  906. background: linear-gradient(180deg, #ecfdf5, #dff7ec);
  907. border: 1px solid rgba(8, 127, 87, 0.16);
  908. }
  909. /* ══════════════════════════════════════════
  910. UI Kit · 业务页通用组件(列表 / 查看 / 表单)
  911. ══════════════════════════════════════════ */
  912. /* ── 业务子页导航栏(无渐变 Header 的精简顶栏) ── */
  913. .mp-navbar {
  914. position: sticky;
  915. top: 0;
  916. z-index: 50;
  917. display: flex;
  918. align-items: center;
  919. justify-content: space-between;
  920. gap: var(--space-md);
  921. min-height: 48px;
  922. padding: calc(6px + env(safe-area-inset-top, 0px)) var(--space-lg) 6px;
  923. background: var(--surface);
  924. border-bottom: 1px solid var(--border-light);
  925. }
  926. .mp-navbar__back {
  927. min-width: 44px;
  928. min-height: 44px;
  929. display: inline-flex;
  930. align-items: center;
  931. font-size: 14px;
  932. color: var(--brand-green-dark);
  933. margin-left: -8px;
  934. }
  935. .mp-navbar__title {
  936. flex: 1;
  937. text-align: center;
  938. font-size: 16px;
  939. font-weight: 700;
  940. white-space: nowrap;
  941. overflow: hidden;
  942. text-overflow: ellipsis;
  943. }
  944. .mp-navbar__action {
  945. min-width: 44px;
  946. min-height: 44px;
  947. display: inline-flex;
  948. align-items: center;
  949. justify-content: flex-end;
  950. font-size: 13px;
  951. color: var(--brand-green-dark);
  952. font-weight: 600;
  953. }
  954. /* ── 列表:可点击卡片(整卡跳转查看) ── */
  955. .mp-card--clickable {
  956. transition: transform 0.12s ease, box-shadow 0.12s ease;
  957. }
  958. .mp-card--clickable:active {
  959. transform: scale(0.985);
  960. box-shadow: 0 2px 8px rgba(10, 159, 109, 0.08);
  961. }
  962. .mp-card--accent {
  963. border-left: 3px solid var(--brand-green);
  964. }
  965. .mp-card__chevron {
  966. color: #c5d5cd;
  967. font-size: 16px;
  968. line-height: 1;
  969. flex-shrink: 0;
  970. }
  971. .mp-list-end {
  972. text-align: center;
  973. padding: 16px 0 8px;
  974. font-size: 12px;
  975. color: var(--text-placeholder);
  976. }
  977. /* ── 详情页 Hero ── */
  978. .mp-detail-hero {
  979. margin: var(--space-md) var(--space-lg) 0;
  980. background: var(--surface);
  981. border: 1px solid var(--border);
  982. border-radius: var(--radius-lg);
  983. padding: var(--space-lg);
  984. box-shadow: var(--shadow-sm);
  985. }
  986. .mp-detail-hero__top {
  987. display: flex;
  988. align-items: flex-start;
  989. justify-content: space-between;
  990. gap: var(--space-sm);
  991. margin-bottom: 10px;
  992. }
  993. .mp-detail-hero__title {
  994. font-size: 17px;
  995. font-weight: 700;
  996. line-height: 1.35;
  997. }
  998. .mp-detail-hero__sub {
  999. font-size: 12px;
  1000. color: var(--text-muted);
  1001. margin-top: 4px;
  1002. }
  1003. .mp-detail-hero__amount {
  1004. font-size: 22px;
  1005. font-weight: 700;
  1006. color: #be7a12;
  1007. margin-top: 8px;
  1008. }
  1009. .mp-detail-hero__meta {
  1010. display: flex;
  1011. flex-wrap: wrap;
  1012. gap: 8px;
  1013. margin-top: 10px;
  1014. }
  1015. .mp-detail-hero__chip {
  1016. font-size: 11px;
  1017. color: var(--text-muted);
  1018. background: #f4f9f7;
  1019. border: 1px solid var(--border-light);
  1020. border-radius: var(--radius-pill);
  1021. padding: 4px 10px;
  1022. }
  1023. /* ── 详情分块 ── */
  1024. .mp-block {
  1025. margin: var(--space-md) var(--space-lg);
  1026. }
  1027. .mp-block__title {
  1028. font-size: 14px;
  1029. font-weight: 700;
  1030. margin-bottom: var(--space-sm);
  1031. padding-left: 10px;
  1032. border-left: 3px solid var(--brand-green);
  1033. }
  1034. .mp-block__panel {
  1035. background: var(--surface);
  1036. border: 1px solid var(--border);
  1037. border-radius: var(--radius-lg);
  1038. overflow: hidden;
  1039. }
  1040. /* ── 详情表格型子表 ── */
  1041. .mp-mini-table {
  1042. width: 100%;
  1043. border-collapse: collapse;
  1044. font-size: 12px;
  1045. }
  1046. .mp-mini-table th,
  1047. .mp-mini-table td {
  1048. padding: 10px 12px;
  1049. border-bottom: 1px solid var(--border-light);
  1050. text-align: left;
  1051. }
  1052. .mp-mini-table th {
  1053. background: #f8fcfa;
  1054. color: var(--text-muted);
  1055. font-weight: 600;
  1056. }
  1057. .mp-mini-table tr:last-child td {
  1058. border-bottom: none;
  1059. }
  1060. /* ── 审批时间线 ── */
  1061. .mp-timeline {
  1062. padding: 4px var(--space-md) 12px;
  1063. }
  1064. .mp-timeline__item {
  1065. display: flex;
  1066. gap: 12px;
  1067. padding: 10px 0;
  1068. position: relative;
  1069. }
  1070. .mp-timeline__item:not(:last-child)::before {
  1071. content: '';
  1072. position: absolute;
  1073. left: 5px;
  1074. top: 24px;
  1075. bottom: -4px;
  1076. width: 2px;
  1077. background: var(--border-light);
  1078. }
  1079. .mp-timeline__dot {
  1080. width: 12px;
  1081. height: 12px;
  1082. border-radius: 50%;
  1083. background: var(--brand-green);
  1084. border: 2px solid var(--brand-green-soft);
  1085. flex-shrink: 0;
  1086. margin-top: 4px;
  1087. }
  1088. .mp-timeline__dot--muted {
  1089. background: #c5d5cd;
  1090. border-color: #edf5f1;
  1091. }
  1092. .mp-timeline__body strong {
  1093. display: block;
  1094. font-size: 13px;
  1095. }
  1096. .mp-timeline__body span {
  1097. display: block;
  1098. font-size: 11px;
  1099. color: var(--text-muted);
  1100. margin-top: 2px;
  1101. }
  1102. .mp-timeline__body p {
  1103. font-size: 12px;
  1104. color: var(--text-primary);
  1105. margin-top: 4px;
  1106. }
  1107. /* ── 附件卡片 ── */
  1108. .mp-attach-row {
  1109. display: flex;
  1110. flex-wrap: wrap;
  1111. gap: 10px;
  1112. padding: 12px;
  1113. }
  1114. .mp-attach-card {
  1115. width: 88px;
  1116. display: flex;
  1117. flex-direction: column;
  1118. gap: 6px;
  1119. align-items: center;
  1120. text-align: center;
  1121. }
  1122. .mp-attach-card__thumb {
  1123. width: 72px;
  1124. height: 72px;
  1125. border-radius: var(--radius-md);
  1126. border: 1px solid var(--border);
  1127. background: #f4f9f7;
  1128. display: flex;
  1129. align-items: center;
  1130. justify-content: center;
  1131. font-size: 11px;
  1132. color: var(--text-muted);
  1133. }
  1134. .mp-attach-card__name {
  1135. font-size: 10px;
  1136. color: var(--text-muted);
  1137. line-height: 1.3;
  1138. word-break: break-all;
  1139. }
  1140. .mp-attach-upload {
  1141. width: 72px;
  1142. height: 72px;
  1143. border-radius: var(--radius-md);
  1144. border: 1px dashed #a7d9c4;
  1145. background: #f8fcfa;
  1146. color: var(--brand-green-dark);
  1147. font-size: 11px;
  1148. display: flex;
  1149. flex-direction: column;
  1150. align-items: center;
  1151. justify-content: center;
  1152. gap: 4px;
  1153. }
  1154. .mp-attach-upload__plus {
  1155. font-size: 20px;
  1156. line-height: 1;
  1157. }
  1158. /* ── 表单页:分组 + 字段 ── */
  1159. .mp-form-page {
  1160. padding-bottom: calc(72px + var(--safe-bottom));
  1161. }
  1162. .mp-form-group {
  1163. margin: var(--space-md) var(--space-lg);
  1164. }
  1165. .mp-form-group__title {
  1166. font-size: 13px;
  1167. font-weight: 700;
  1168. color: var(--text-muted);
  1169. margin-bottom: var(--space-sm);
  1170. }
  1171. .mp-form-panel {
  1172. background: var(--surface);
  1173. border: 1px solid var(--border);
  1174. border-radius: var(--radius-lg);
  1175. overflow: hidden;
  1176. }
  1177. /* 堆叠式:label 在上 */
  1178. .mp-field {
  1179. padding: 12px var(--space-md);
  1180. border-bottom: 1px solid var(--border-light);
  1181. }
  1182. .mp-field:last-child {
  1183. border-bottom: none;
  1184. }
  1185. .mp-field__label {
  1186. display: flex;
  1187. align-items: center;
  1188. gap: 4px;
  1189. font-size: 13px;
  1190. color: var(--text-muted);
  1191. margin-bottom: 8px;
  1192. }
  1193. .mp-field__label--required::before {
  1194. content: '*';
  1195. color: var(--danger);
  1196. }
  1197. .mp-field__tip {
  1198. font-size: 11px;
  1199. color: var(--text-placeholder);
  1200. margin-left: 4px;
  1201. }
  1202. .mp-field__input,
  1203. .mp-field__textarea {
  1204. width: 100%;
  1205. border: 1px solid var(--border);
  1206. border-radius: var(--radius-sm);
  1207. padding: 10px 12px;
  1208. font-size: 14px;
  1209. color: var(--text-primary);
  1210. background: #fafcfb;
  1211. outline: none;
  1212. }
  1213. .mp-field__input:focus,
  1214. .mp-field__textarea:focus {
  1215. border-color: #8fd4b8;
  1216. box-shadow: 0 0 0 2px rgba(10, 159, 109, 0.12);
  1217. }
  1218. .mp-field__textarea {
  1219. min-height: 88px;
  1220. resize: vertical;
  1221. line-height: 1.5;
  1222. }
  1223. .mp-field--error .mp-field__input,
  1224. .mp-field--error .mp-field__textarea {
  1225. border-color: #fca5a5;
  1226. background: #fffafa;
  1227. }
  1228. .mp-field__error {
  1229. font-size: 11px;
  1230. color: var(--danger);
  1231. margin-top: 6px;
  1232. }
  1233. /* 行式:label 左 value 右(选择器/只读) */
  1234. .mp-field-row {
  1235. display: flex;
  1236. align-items: center;
  1237. justify-content: space-between;
  1238. gap: var(--space-lg);
  1239. min-height: 50px;
  1240. padding: 0 var(--space-md);
  1241. border-bottom: 1px solid var(--border-light);
  1242. font-size: 14px;
  1243. }
  1244. .mp-field-row:last-child {
  1245. border-bottom: none;
  1246. }
  1247. .mp-field-row__label {
  1248. color: var(--text-muted);
  1249. flex-shrink: 0;
  1250. }
  1251. .mp-field-row__label--required::before {
  1252. content: '* ';
  1253. color: var(--danger);
  1254. }
  1255. .mp-field-row__value {
  1256. flex: 1;
  1257. text-align: right;
  1258. color: var(--text-primary);
  1259. display: flex;
  1260. align-items: center;
  1261. justify-content: flex-end;
  1262. gap: 6px;
  1263. }
  1264. .mp-field-row__value.is-placeholder {
  1265. color: var(--text-placeholder);
  1266. }
  1267. .mp-field-row__chevron {
  1268. color: #c5d5cd;
  1269. font-size: 14px;
  1270. }
  1271. .mp-field-row__switch {
  1272. width: 44px;
  1273. height: 26px;
  1274. border-radius: var(--radius-pill);
  1275. background: var(--brand-green);
  1276. position: relative;
  1277. flex-shrink: 0;
  1278. }
  1279. .mp-field-row__switch::after {
  1280. content: '';
  1281. position: absolute;
  1282. top: 3px;
  1283. right: 3px;
  1284. width: 20px;
  1285. height: 20px;
  1286. border-radius: 50%;
  1287. background: #fff;
  1288. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  1289. }
  1290. .mp-field-row__switch--off {
  1291. background: #d1ddd7;
  1292. }
  1293. .mp-field-row__switch--off::after {
  1294. right: auto;
  1295. left: 3px;
  1296. }
  1297. /* ── 底部固定操作栏 ── */
  1298. .mp-footer-bar {
  1299. position: fixed;
  1300. left: 50%;
  1301. transform: translateX(-50%);
  1302. bottom: 0;
  1303. width: 100%;
  1304. max-width: 420px;
  1305. padding: 10px var(--space-lg) calc(10px + var(--safe-bottom));
  1306. background: var(--surface);
  1307. border-top: 1px solid var(--border);
  1308. display: flex;
  1309. gap: 10px;
  1310. z-index: 90;
  1311. }
  1312. .mp-footer-bar .mp-btn {
  1313. flex: 1;
  1314. min-height: 44px;
  1315. border-radius: var(--radius-md);
  1316. font-size: 15px;
  1317. }
  1318. .mp-footer-bar .mp-btn--ghost {
  1319. flex: 0 0 96px;
  1320. }
  1321. /* ── 遮罩层 ── */
  1322. .mp-overlay {
  1323. position: fixed;
  1324. inset: 0;
  1325. background: rgba(15, 23, 20, 0.45);
  1326. z-index: 200;
  1327. opacity: 0;
  1328. visibility: hidden;
  1329. transition: opacity 0.2s ease, visibility 0.2s ease;
  1330. }
  1331. .mp-overlay.is-open {
  1332. opacity: 1;
  1333. visibility: visible;
  1334. }
  1335. /* ── 底部抽屉(查看 / 选择) ── */
  1336. .mp-sheet {
  1337. position: fixed;
  1338. left: 50%;
  1339. transform: translateX(-50%) translateY(100%);
  1340. bottom: 0;
  1341. width: 100%;
  1342. max-width: 420px;
  1343. max-height: 88vh;
  1344. background: var(--bg-page);
  1345. border-top-left-radius: var(--radius-xl);
  1346. border-top-right-radius: var(--radius-xl);
  1347. z-index: 210;
  1348. transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  1349. display: flex;
  1350. flex-direction: column;
  1351. overflow: hidden;
  1352. }
  1353. .mp-sheet.is-open {
  1354. transform: translateX(-50%) translateY(0);
  1355. }
  1356. .mp-sheet__handle {
  1357. width: 36px;
  1358. height: 4px;
  1359. border-radius: var(--radius-pill);
  1360. background: #d1ddd7;
  1361. margin: 10px auto 6px;
  1362. flex-shrink: 0;
  1363. }
  1364. .mp-sheet__head {
  1365. display: flex;
  1366. align-items: center;
  1367. justify-content: space-between;
  1368. padding: 4px var(--space-lg) 12px;
  1369. background: var(--surface);
  1370. border-bottom: 1px solid var(--border-light);
  1371. flex-shrink: 0;
  1372. }
  1373. .mp-sheet__title {
  1374. font-size: 16px;
  1375. font-weight: 700;
  1376. }
  1377. .mp-sheet__close {
  1378. min-width: 44px;
  1379. min-height: 44px;
  1380. display: inline-flex;
  1381. align-items: center;
  1382. justify-content: flex-end;
  1383. font-size: 13px;
  1384. color: var(--text-muted);
  1385. }
  1386. .mp-sheet__body {
  1387. flex: 1;
  1388. overflow-y: auto;
  1389. padding-bottom: calc(12px + var(--safe-bottom));
  1390. }
  1391. .mp-sheet__foot {
  1392. flex-shrink: 0;
  1393. padding: 10px var(--space-lg) calc(10px + var(--safe-bottom));
  1394. background: var(--surface);
  1395. border-top: 1px solid var(--border);
  1396. display: flex;
  1397. gap: 10px;
  1398. }
  1399. .mp-sheet__foot .mp-btn {
  1400. flex: 1;
  1401. min-height: 44px;
  1402. border-radius: var(--radius-md);
  1403. font-size: 15px;
  1404. }
  1405. /* ── 居中确认弹窗 ── */
  1406. .mp-dialog {
  1407. position: fixed;
  1408. left: 50%;
  1409. top: 50%;
  1410. transform: translate(-50%, -50%) scale(0.92);
  1411. width: calc(100% - 48px);
  1412. max-width: 320px;
  1413. background: var(--surface);
  1414. border-radius: var(--radius-lg);
  1415. z-index: 220;
  1416. opacity: 0;
  1417. visibility: hidden;
  1418. transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  1419. overflow: hidden;
  1420. }
  1421. .mp-dialog.is-open {
  1422. opacity: 1;
  1423. visibility: visible;
  1424. transform: translate(-50%, -50%) scale(1);
  1425. }
  1426. .mp-dialog__body {
  1427. padding: 24px 20px 16px;
  1428. text-align: center;
  1429. }
  1430. .mp-dialog__title {
  1431. font-size: 16px;
  1432. font-weight: 700;
  1433. margin-bottom: 8px;
  1434. }
  1435. .mp-dialog__text {
  1436. font-size: 13px;
  1437. color: var(--text-muted);
  1438. line-height: 1.6;
  1439. }
  1440. .mp-dialog__foot {
  1441. display: grid;
  1442. grid-template-columns: 1fr 1fr;
  1443. border-top: 1px solid var(--border-light);
  1444. }
  1445. .mp-dialog__btn {
  1446. min-height: 48px;
  1447. font-size: 15px;
  1448. color: var(--text-muted);
  1449. }
  1450. .mp-dialog__btn--primary {
  1451. color: var(--brand-green-dark);
  1452. font-weight: 700;
  1453. border-left: 1px solid var(--border-light);
  1454. }
  1455. .mp-dialog__btn--danger {
  1456. color: var(--danger);
  1457. font-weight: 700;
  1458. border-left: 1px solid var(--border-light);
  1459. }
  1460. /* ── 操作菜单(Action Sheet) ── */
  1461. .mp-action-sheet {
  1462. position: fixed;
  1463. left: 50%;
  1464. transform: translateX(-50%) translateY(100%);
  1465. bottom: 0;
  1466. width: 100%;
  1467. max-width: 420px;
  1468. z-index: 210;
  1469. padding: 0 var(--space-md) calc(12px + var(--safe-bottom));
  1470. transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  1471. }
  1472. .mp-action-sheet.is-open {
  1473. transform: translateX(-50%) translateY(0);
  1474. }
  1475. .mp-action-sheet__group {
  1476. background: var(--surface);
  1477. border-radius: var(--radius-lg);
  1478. overflow: hidden;
  1479. margin-bottom: 8px;
  1480. }
  1481. .mp-action-sheet__item {
  1482. width: 100%;
  1483. min-height: 52px;
  1484. font-size: 15px;
  1485. color: var(--text-primary);
  1486. border-bottom: 1px solid var(--border-light);
  1487. }
  1488. .mp-action-sheet__item:last-child {
  1489. border-bottom: none;
  1490. }
  1491. .mp-action-sheet__item--danger {
  1492. color: var(--danger);
  1493. }
  1494. .mp-action-sheet__cancel {
  1495. width: 100%;
  1496. min-height: 52px;
  1497. background: var(--surface);
  1498. border-radius: var(--radius-lg);
  1499. font-size: 15px;
  1500. font-weight: 600;
  1501. color: var(--text-muted);
  1502. }
  1503. /* ── Toast 提示 ── */
  1504. .mp-toast {
  1505. position: fixed;
  1506. left: 50%;
  1507. top: 50%;
  1508. transform: translate(-50%, -50%);
  1509. max-width: 260px;
  1510. padding: 14px 20px;
  1511. background: rgba(31, 42, 38, 0.88);
  1512. color: #fff;
  1513. border-radius: var(--radius-md);
  1514. font-size: 14px;
  1515. text-align: center;
  1516. z-index: 300;
  1517. opacity: 0;
  1518. visibility: hidden;
  1519. transition: opacity 0.2s ease, visibility 0.2s ease;
  1520. }
  1521. .mp-toast.is-open {
  1522. opacity: 1;
  1523. visibility: visible;
  1524. }
  1525. /* ── 骨架屏 ── */
  1526. .mp-skeleton {
  1527. background: linear-gradient(90deg, #edf5f1 25%, #f6faf8 50%, #edf5f1 75%);
  1528. background-size: 200% 100%;
  1529. animation: mp-skeleton-shine 1.2s ease-in-out infinite;
  1530. border-radius: var(--radius-sm);
  1531. }
  1532. @keyframes mp-skeleton-shine {
  1533. 0% { background-position: 200% 0; }
  1534. 100% { background-position: -200% 0; }
  1535. }
  1536. .mp-skeleton-card {
  1537. background: var(--surface);
  1538. border: 1px solid var(--border);
  1539. border-radius: var(--radius-lg);
  1540. padding: var(--space-md);
  1541. }
  1542. .mp-skeleton-line {
  1543. height: 14px;
  1544. margin-bottom: 8px;
  1545. }
  1546. .mp-skeleton-line--short {
  1547. width: 60%;
  1548. }
  1549. .mp-skeleton-line--title {
  1550. height: 16px;
  1551. width: 75%;
  1552. margin-bottom: 12px;
  1553. }
  1554. /* ── Pattern 索引卡片 ── */
  1555. .mp-pattern-note {
  1556. margin: var(--space-md) var(--space-lg);
  1557. padding: 12px 14px;
  1558. background: var(--brand-green-soft);
  1559. border: 1px solid #b7e6d0;
  1560. border-radius: var(--radius-md);
  1561. font-size: 12px;
  1562. color: var(--brand-green-dark);
  1563. line-height: 1.6;
  1564. }
  1565. .mp-pattern-note strong {
  1566. display: block;
  1567. margin-bottom: 4px;
  1568. font-size: 13px;
  1569. }