style.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702
  1. :root {
  2. --bg: #eaf4ff;
  3. --panel: rgba(247, 251, 255, 0.93);
  4. --panel-strong: rgba(255, 255, 255, 0.95);
  5. --line: rgba(28, 93, 153, 0.16);
  6. --text: #10243a;
  7. --muted: #58718b;
  8. --accent: #2388e8;
  9. --accent-deep: #0e63b6;
  10. --shadow: 0 18px 50px rgba(9, 50, 94, 0.18);
  11. }
  12. * {
  13. box-sizing: border-box;
  14. }
  15. body {
  16. margin: 0;
  17. min-height: 100vh;
  18. font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  19. color: var(--text);
  20. background:
  21. linear-gradient(rgba(231, 244, 255, 0.78), rgba(205, 229, 250, 0.9)),
  22. url("/static/img/background.jpg"),
  23. linear-gradient(160deg, #eaf6ff 0%, #b9dcfb 48%, #74b4f1 100%);
  24. background-attachment: fixed;
  25. background-position: center;
  26. background-size: cover;
  27. }
  28. button,
  29. input {
  30. font: inherit;
  31. }
  32. button {
  33. border: 0;
  34. cursor: pointer;
  35. }
  36. input[type="text"],
  37. input[type="file"] {
  38. width: 100%;
  39. padding: 12px 14px;
  40. border: 1px solid var(--line);
  41. border-radius: 14px;
  42. background: rgba(255, 255, 255, 0.8);
  43. color: var(--text);
  44. }
  45. .app-shell {
  46. max-width: 1180px;
  47. margin: 0 auto;
  48. padding: 10px 10px 188px;
  49. }
  50. .app-header,
  51. .content-section,
  52. .player-dock {
  53. background: var(--panel);
  54. border: 1px solid var(--line);
  55. box-shadow: var(--shadow);
  56. backdrop-filter: blur(16px);
  57. }
  58. .app-header {
  59. display: flex;
  60. justify-content: space-between;
  61. align-items: center;
  62. gap: 10px;
  63. padding: 10px 14px;
  64. border-radius: 18px;
  65. }
  66. .header-copy h1,
  67. .content-section h2 {
  68. margin: 0;
  69. }
  70. .header-copy h1 {
  71. font-size: 1rem;
  72. }
  73. .eyebrow {
  74. margin: 0 0 4px;
  75. color: var(--accent);
  76. font-size: 0.64rem;
  77. letter-spacing: 0.16em;
  78. text-transform: uppercase;
  79. }
  80. .subtext {
  81. margin: 0;
  82. color: var(--muted);
  83. line-height: 1.45;
  84. font-size: 0.86rem;
  85. }
  86. .header-pill {
  87. flex: 0 0 auto;
  88. padding: 7px 10px;
  89. border-radius: 999px;
  90. background: rgba(35, 136, 232, 0.12);
  91. color: var(--accent-deep);
  92. font-size: 0.82rem;
  93. }
  94. .page-content {
  95. margin-top: 12px;
  96. display: flex;
  97. flex-direction: column;
  98. gap: 14px;
  99. }
  100. .view-stack {
  101. display: flex;
  102. flex-direction: column;
  103. gap: 14px;
  104. }
  105. .is-hidden {
  106. display: none !important;
  107. }
  108. .content-section {
  109. border-radius: 24px;
  110. padding: 16px;
  111. }
  112. .slim-hero {
  113. display: flex;
  114. flex-direction: column;
  115. gap: 12px;
  116. padding: 14px 16px;
  117. }
  118. .hero-metrics {
  119. display: grid;
  120. grid-template-columns: repeat(2, minmax(0, 1fr));
  121. gap: 10px;
  122. }
  123. .metric-card {
  124. padding: 12px;
  125. border-radius: 18px;
  126. background: rgba(255, 255, 255, 0.8);
  127. }
  128. .metric-card strong {
  129. display: block;
  130. font-size: 1.25rem;
  131. margin-bottom: 2px;
  132. }
  133. .metric-card span {
  134. color: var(--muted);
  135. font-size: 0.84rem;
  136. }
  137. .section-head {
  138. display: flex;
  139. justify-content: space-between;
  140. align-items: center;
  141. gap: 10px;
  142. margin-bottom: 12px;
  143. }
  144. .section-head h2 {
  145. font-size: 1rem;
  146. }
  147. .section-head span {
  148. color: var(--muted);
  149. font-size: 0.8rem;
  150. }
  151. .featured-list,
  152. .song-list,
  153. .ranking-list,
  154. .queue-list,
  155. .playlist-list {
  156. display: flex;
  157. flex-direction: column;
  158. gap: 10px;
  159. }
  160. .album-grid,
  161. .stack-section {
  162. display: grid;
  163. gap: 10px;
  164. }
  165. .album-grid {
  166. grid-template-columns: repeat(2, minmax(0, 1fr));
  167. }
  168. .stack-section {
  169. grid-template-columns: 1fr;
  170. }
  171. .feature-card,
  172. .album-card,
  173. .song-row,
  174. .ranking-card,
  175. .playlist-item,
  176. .empty-state,
  177. .detail-header {
  178. border: 1px solid rgba(123, 104, 84, 0.12);
  179. background: var(--panel-strong);
  180. border-radius: 20px;
  181. }
  182. .feature-card {
  183. overflow: hidden;
  184. }
  185. .feature-card-inner {
  186. display: grid;
  187. grid-template-columns: 108px 1fr;
  188. min-height: 176px;
  189. }
  190. .album-cover,
  191. .feature-cover,
  192. .detail-cover-wrap {
  193. position: relative;
  194. overflow: hidden;
  195. background: linear-gradient(145deg, rgba(35, 136, 232, 0.95), rgba(14, 99, 182, 0.94));
  196. color: #f7fbff;
  197. display: flex;
  198. align-items: center;
  199. justify-content: center;
  200. text-align: center;
  201. font-weight: 700;
  202. }
  203. .feature-cover {
  204. padding: 14px;
  205. }
  206. .album-cover {
  207. min-height: 118px;
  208. padding: 12px;
  209. border-bottom: 1px solid rgba(123, 104, 84, 0.12);
  210. }
  211. .cover-image,
  212. .detail-cover-image {
  213. position: absolute;
  214. inset: 0;
  215. width: 100%;
  216. height: 100%;
  217. object-fit: cover;
  218. }
  219. .cover-name,
  220. .detail-cover-fallback {
  221. position: relative;
  222. z-index: 1;
  223. line-height: 1.3;
  224. }
  225. .feature-body,
  226. .album-body {
  227. display: flex;
  228. flex-direction: column;
  229. gap: 10px;
  230. padding: 12px;
  231. }
  232. .feature-body h3,
  233. .album-body h3,
  234. .ranking-card h3,
  235. .track-name,
  236. .detail-copy h2 {
  237. margin: 0;
  238. }
  239. .meta-row,
  240. .track-path,
  241. .playlist-item p,
  242. .ranking-note {
  243. margin: 0;
  244. color: var(--muted);
  245. font-size: 0.84rem;
  246. word-break: break-word;
  247. }
  248. .card-actions,
  249. .track-actions {
  250. display: flex;
  251. flex-wrap: wrap;
  252. gap: 8px;
  253. }
  254. .album-card .card-actions {
  255. flex-wrap: nowrap;
  256. }
  257. .album-card .card-actions button {
  258. flex: 1 1 0;
  259. min-width: 0;
  260. padding: 7px 8px;
  261. font-size: 0.78rem;
  262. }
  263. .compact-actions {
  264. flex-wrap: nowrap;
  265. }
  266. .primary-btn,
  267. .secondary-btn,
  268. .text-btn,
  269. .back-btn {
  270. padding: 9px 13px;
  271. border-radius: 999px;
  272. }
  273. .primary-btn {
  274. background: linear-gradient(135deg, var(--accent), #5db8ff);
  275. color: #f7fbff;
  276. }
  277. .secondary-btn {
  278. background: rgba(35, 136, 232, 0.12);
  279. color: var(--accent-deep);
  280. }
  281. .text-btn,
  282. .back-btn {
  283. background: rgba(123, 104, 84, 0.08);
  284. color: var(--text);
  285. }
  286. .song-row,
  287. .ranking-card,
  288. .playlist-item {
  289. display: flex;
  290. justify-content: space-between;
  291. align-items: center;
  292. gap: 10px;
  293. padding: 12px;
  294. }
  295. .compact-list .song-row {
  296. padding: 10px 12px;
  297. }
  298. .compact-list .track-name {
  299. font-size: 0.92rem;
  300. }
  301. .compact-list .track-path {
  302. font-size: 0.76rem;
  303. }
  304. .song-copy,
  305. .ranking-main {
  306. min-width: 0;
  307. flex: 1;
  308. }
  309. .queue-list .song-row.is-active {
  310. border-color: rgba(35, 136, 232, 0.5);
  311. box-shadow: inset 0 0 0 1px rgba(35, 136, 232, 0.16);
  312. }
  313. .rank-badge {
  314. width: 34px;
  315. height: 34px;
  316. flex: 0 0 34px;
  317. display: inline-flex;
  318. align-items: center;
  319. justify-content: center;
  320. border-radius: 14px;
  321. background: rgba(35, 136, 232, 0.12);
  322. color: var(--accent-deep);
  323. font-weight: 700;
  324. }
  325. .detail-header {
  326. display: grid;
  327. grid-template-columns: minmax(0, 1fr) 88px;
  328. align-items: center;
  329. gap: 10px;
  330. padding: 10px;
  331. }
  332. .detail-cover-wrap {
  333. width: 88px;
  334. aspect-ratio: 1 / 1;
  335. border-radius: 16px;
  336. }
  337. .detail-copy {
  338. display: flex;
  339. flex-direction: column;
  340. gap: 8px;
  341. min-width: 0;
  342. }
  343. .detail-copy .card-actions {
  344. gap: 6px;
  345. }
  346. .detail-copy .card-actions button {
  347. flex: 1 1 calc(50% - 3px);
  348. padding: 7px 9px;
  349. font-size: 0.78rem;
  350. }
  351. .detail-copy .card-actions .detail-back-home {
  352. flex-basis: 100%;
  353. background: rgba(35, 136, 232, 0.18);
  354. color: var(--accent-deep);
  355. font-weight: 700;
  356. }
  357. .field {
  358. display: flex;
  359. flex-direction: column;
  360. gap: 8px;
  361. margin-bottom: 12px;
  362. color: var(--muted);
  363. font-size: 0.9rem;
  364. }
  365. .empty-state {
  366. padding: 16px;
  367. text-align: center;
  368. color: var(--muted);
  369. }
  370. .player-dock {
  371. position: fixed;
  372. left: 8px;
  373. right: 8px;
  374. bottom: max(8px, env(safe-area-inset-bottom));
  375. z-index: 999;
  376. padding: 12px 14px;
  377. border-radius: 24px;
  378. background:
  379. linear-gradient(180deg, rgba(247, 251, 255, 0.97), rgba(231, 243, 255, 0.99)),
  380. var(--panel);
  381. }
  382. .player-top {
  383. display: flex;
  384. align-items: center;
  385. gap: 12px;
  386. }
  387. .dock-cover-wrap {
  388. position: relative;
  389. width: 50px;
  390. height: 50px;
  391. flex: 0 0 50px;
  392. }
  393. .dock-cover-image,
  394. .dock-cover-fallback {
  395. width: 100%;
  396. height: 100%;
  397. border-radius: 16px;
  398. }
  399. .dock-cover-image {
  400. object-fit: cover;
  401. }
  402. .dock-cover-fallback {
  403. display: inline-flex;
  404. align-items: center;
  405. justify-content: center;
  406. background: linear-gradient(135deg, #45a6f5, #0e63b6);
  407. color: #f7fbff;
  408. font-size: 1rem;
  409. font-weight: 700;
  410. }
  411. .dock-copy {
  412. min-width: 0;
  413. }
  414. .dock-copy strong,
  415. .dock-copy p {
  416. display: block;
  417. white-space: nowrap;
  418. overflow: hidden;
  419. text-overflow: ellipsis;
  420. }
  421. .dock-copy p {
  422. margin: 3px 0 0;
  423. color: var(--muted);
  424. font-size: 0.82rem;
  425. }
  426. .player-progress {
  427. display: grid;
  428. grid-template-columns: 40px 1fr 40px;
  429. gap: 8px;
  430. align-items: center;
  431. margin-top: 10px;
  432. color: var(--muted);
  433. font-size: 0.76rem;
  434. }
  435. input[type="range"] {
  436. width: 100%;
  437. accent-color: var(--accent);
  438. }
  439. .icon-actions {
  440. display: flex;
  441. justify-content: space-between;
  442. align-items: center;
  443. margin-top: 12px;
  444. }
  445. .icon-btn {
  446. width: 42px;
  447. height: 42px;
  448. border-radius: 50%;
  449. background: rgba(123, 104, 84, 0.08);
  450. color: var(--text);
  451. position: relative;
  452. flex: 0 0 42px;
  453. display: inline-flex;
  454. align-items: center;
  455. justify-content: center;
  456. }
  457. .icon-btn.active {
  458. background: rgba(35, 136, 232, 0.12);
  459. color: var(--accent-deep);
  460. }
  461. .play-toggle {
  462. width: 54px;
  463. height: 54px;
  464. flex-basis: 54px;
  465. background: linear-gradient(135deg, var(--accent), #5db8ff);
  466. color: #f7fbff;
  467. }
  468. .small-icon-btn {
  469. width: 30px;
  470. height: 30px;
  471. flex-basis: 30px;
  472. }
  473. .icon-btn svg {
  474. width: 22px;
  475. height: 22px;
  476. stroke: currentColor;
  477. fill: none;
  478. stroke-width: 1.9;
  479. stroke-linecap: round;
  480. stroke-linejoin: round;
  481. }
  482. .icon-btn svg text {
  483. fill: currentColor;
  484. font-size: 8px;
  485. font-weight: 700;
  486. stroke: none;
  487. }
  488. .icon-btn svg .thick-icon-path {
  489. stroke-width: 2.6;
  490. }
  491. .small-icon-btn svg {
  492. width: 16px;
  493. height: 16px;
  494. stroke-width: 2.1;
  495. }
  496. .play-toggle svg {
  497. width: 26px;
  498. height: 26px;
  499. }
  500. .play-toggle .icon-play {
  501. margin-left: 2px;
  502. }
  503. .play-toggle svg path {
  504. fill: currentColor;
  505. stroke: none;
  506. }
  507. .icon-toast {
  508. position: fixed;
  509. left: 50%;
  510. bottom: 152px;
  511. transform: translateX(-50%);
  512. z-index: 1200;
  513. padding: 8px 12px;
  514. border-radius: 999px;
  515. background: rgba(44, 34, 24, 0.88);
  516. color: #fffaf5;
  517. font-size: 0.78rem;
  518. white-space: nowrap;
  519. }
  520. audio {
  521. display: none;
  522. }
  523. .album-menu-overlay {
  524. position: fixed;
  525. inset: 0;
  526. z-index: 1100;
  527. background: rgba(8, 31, 55, 0.2);
  528. display: flex;
  529. align-items: flex-end;
  530. justify-content: center;
  531. padding: 12px;
  532. }
  533. .album-menu {
  534. width: min(460px, 100%);
  535. max-height: 52vh;
  536. overflow: hidden;
  537. border: 1px solid var(--line);
  538. border-radius: 18px;
  539. background: rgba(247, 251, 255, 0.98);
  540. box-shadow: var(--shadow);
  541. }
  542. .album-menu-head {
  543. display: flex;
  544. align-items: center;
  545. justify-content: space-between;
  546. gap: 10px;
  547. padding: 10px 12px;
  548. border-bottom: 1px solid var(--line);
  549. }
  550. .album-menu-actions {
  551. display: flex;
  552. gap: 8px;
  553. }
  554. .album-menu-actions button {
  555. padding: 7px 10px;
  556. font-size: 0.78rem;
  557. }
  558. .album-menu-list {
  559. max-height: calc(52vh - 54px);
  560. overflow-y: auto;
  561. padding: 8px;
  562. display: grid;
  563. grid-template-columns: repeat(2, minmax(0, 1fr));
  564. gap: 8px;
  565. }
  566. .album-menu-item {
  567. min-width: 0;
  568. padding: 9px 10px;
  569. border-radius: 12px;
  570. background: rgba(35, 136, 232, 0.1);
  571. color: var(--text);
  572. text-align: left;
  573. }
  574. .album-menu-item span,
  575. .album-menu-item small {
  576. display: block;
  577. overflow: hidden;
  578. white-space: nowrap;
  579. text-overflow: ellipsis;
  580. }
  581. .album-menu-item small {
  582. margin-top: 2px;
  583. color: var(--muted);
  584. font-size: 0.72rem;
  585. }
  586. @media (min-width: 760px) {
  587. .app-shell {
  588. padding: 12px 14px 184px;
  589. }
  590. .stack-section {
  591. grid-template-columns: repeat(2, minmax(0, 1fr));
  592. }
  593. .featured-list {
  594. display: grid;
  595. grid-template-columns: repeat(2, minmax(0, 1fr));
  596. gap: 10px;
  597. }
  598. .detail-cover-wrap {
  599. width: 96px;
  600. }
  601. }