style.css 14 KB

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