style.css 13 KB

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