style.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755
  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. .pager {
  358. display: flex;
  359. align-items: center;
  360. justify-content: center;
  361. gap: 10px;
  362. margin-top: 2px;
  363. padding: 6px 0 0;
  364. }
  365. .pager-meta {
  366. color: var(--muted);
  367. font-size: 0.82rem;
  368. }
  369. .pager .text-btn:disabled {
  370. opacity: 0.45;
  371. cursor: not-allowed;
  372. }
  373. .detail-track-row {
  374. padding: 8px 10px;
  375. border-radius: 14px;
  376. border-left: 3px solid rgba(35, 136, 232, 0.28);
  377. gap: 8px;
  378. }
  379. .detail-track-row .song-copy {
  380. display: flex;
  381. flex-direction: column;
  382. gap: 2px;
  383. }
  384. .detail-track-row .track-name {
  385. font-size: 0.88rem;
  386. line-height: 1.15;
  387. }
  388. .detail-track-row .track-path {
  389. font-size: 0.72rem;
  390. line-height: 1.15;
  391. white-space: nowrap;
  392. overflow: hidden;
  393. text-overflow: ellipsis;
  394. }
  395. .detail-track-row .track-actions {
  396. gap: 4px;
  397. }
  398. .detail-track-row .small-icon-btn {
  399. width: 28px;
  400. height: 28px;
  401. }
  402. .detail-track-row .small-icon-btn svg {
  403. width: 14px;
  404. height: 14px;
  405. }
  406. .field {
  407. display: flex;
  408. flex-direction: column;
  409. gap: 8px;
  410. margin-bottom: 12px;
  411. color: var(--muted);
  412. font-size: 0.9rem;
  413. }
  414. .empty-state {
  415. padding: 16px;
  416. text-align: center;
  417. color: var(--muted);
  418. }
  419. .player-dock {
  420. position: fixed;
  421. left: 8px;
  422. right: 8px;
  423. bottom: max(8px, env(safe-area-inset-bottom));
  424. z-index: 999;
  425. padding: 12px 14px;
  426. border-radius: 24px;
  427. background:
  428. linear-gradient(180deg, rgba(247, 251, 255, 0.97), rgba(231, 243, 255, 0.99)),
  429. var(--panel);
  430. }
  431. .player-top {
  432. display: flex;
  433. align-items: center;
  434. gap: 12px;
  435. }
  436. .dock-cover-wrap {
  437. position: relative;
  438. width: 50px;
  439. height: 50px;
  440. flex: 0 0 50px;
  441. }
  442. .dock-cover-image,
  443. .dock-cover-fallback {
  444. width: 100%;
  445. height: 100%;
  446. border-radius: 16px;
  447. }
  448. .dock-cover-image {
  449. object-fit: cover;
  450. }
  451. .dock-cover-fallback {
  452. display: inline-flex;
  453. align-items: center;
  454. justify-content: center;
  455. background: linear-gradient(135deg, #45a6f5, #0e63b6);
  456. color: #f7fbff;
  457. font-size: 1rem;
  458. font-weight: 700;
  459. }
  460. .dock-copy {
  461. min-width: 0;
  462. }
  463. .dock-copy strong,
  464. .dock-copy p {
  465. display: block;
  466. white-space: nowrap;
  467. overflow: hidden;
  468. text-overflow: ellipsis;
  469. }
  470. .dock-copy p {
  471. margin: 3px 0 0;
  472. color: var(--muted);
  473. font-size: 0.82rem;
  474. }
  475. .player-progress {
  476. display: grid;
  477. grid-template-columns: 40px 1fr 40px;
  478. gap: 8px;
  479. align-items: center;
  480. margin-top: 10px;
  481. color: var(--muted);
  482. font-size: 0.76rem;
  483. }
  484. input[type="range"] {
  485. width: 100%;
  486. accent-color: var(--accent);
  487. }
  488. .icon-actions {
  489. display: flex;
  490. justify-content: space-between;
  491. align-items: center;
  492. margin-top: 12px;
  493. }
  494. .icon-btn {
  495. width: 42px;
  496. height: 42px;
  497. border-radius: 50%;
  498. background: rgba(123, 104, 84, 0.08);
  499. color: var(--text);
  500. position: relative;
  501. flex: 0 0 42px;
  502. display: inline-flex;
  503. align-items: center;
  504. justify-content: center;
  505. }
  506. .icon-btn.active {
  507. background: rgba(35, 136, 232, 0.12);
  508. color: var(--accent-deep);
  509. }
  510. .play-toggle {
  511. width: 54px;
  512. height: 54px;
  513. flex-basis: 54px;
  514. background: linear-gradient(135deg, var(--accent), #5db8ff);
  515. color: #f7fbff;
  516. }
  517. .small-icon-btn {
  518. width: 30px;
  519. height: 30px;
  520. flex-basis: 30px;
  521. }
  522. .icon-btn svg {
  523. width: 22px;
  524. height: 22px;
  525. stroke: currentColor;
  526. fill: none;
  527. stroke-width: 1.9;
  528. stroke-linecap: round;
  529. stroke-linejoin: round;
  530. }
  531. .icon-btn svg text {
  532. fill: currentColor;
  533. font-size: 8px;
  534. font-weight: 700;
  535. stroke: none;
  536. }
  537. .icon-btn svg .thick-icon-path {
  538. stroke-width: 2.6;
  539. }
  540. .small-icon-btn svg {
  541. width: 16px;
  542. height: 16px;
  543. stroke-width: 2.1;
  544. }
  545. .play-toggle svg {
  546. width: 26px;
  547. height: 26px;
  548. }
  549. .play-toggle .icon-play {
  550. margin-left: 2px;
  551. }
  552. .play-toggle svg path {
  553. fill: currentColor;
  554. stroke: none;
  555. }
  556. .icon-toast {
  557. position: fixed;
  558. left: 50%;
  559. bottom: 152px;
  560. transform: translateX(-50%);
  561. z-index: 1200;
  562. padding: 8px 12px;
  563. border-radius: 999px;
  564. background: rgba(44, 34, 24, 0.88);
  565. color: #fffaf5;
  566. font-size: 0.78rem;
  567. white-space: nowrap;
  568. }
  569. audio {
  570. display: none;
  571. }
  572. .album-menu-overlay {
  573. position: fixed;
  574. inset: 0;
  575. z-index: 1100;
  576. background: rgba(8, 31, 55, 0.2);
  577. display: flex;
  578. align-items: flex-end;
  579. justify-content: center;
  580. padding: 12px;
  581. }
  582. .album-menu {
  583. width: min(460px, 100%);
  584. max-height: 52vh;
  585. overflow: hidden;
  586. border: 1px solid var(--line);
  587. border-radius: 18px;
  588. background: rgba(247, 251, 255, 0.98);
  589. box-shadow: var(--shadow);
  590. }
  591. .album-menu-head {
  592. display: flex;
  593. align-items: center;
  594. justify-content: space-between;
  595. gap: 10px;
  596. padding: 10px 12px;
  597. border-bottom: 1px solid var(--line);
  598. }
  599. .album-menu-actions {
  600. display: flex;
  601. gap: 8px;
  602. }
  603. .album-menu-actions button {
  604. padding: 7px 10px;
  605. font-size: 0.78rem;
  606. }
  607. .album-menu-list {
  608. max-height: calc(52vh - 54px);
  609. overflow-y: auto;
  610. padding: 8px;
  611. display: grid;
  612. grid-template-columns: repeat(2, minmax(0, 1fr));
  613. gap: 8px;
  614. }
  615. .album-menu-item {
  616. min-width: 0;
  617. padding: 9px 10px;
  618. border-radius: 12px;
  619. background: rgba(35, 136, 232, 0.1);
  620. color: var(--text);
  621. text-align: left;
  622. }
  623. .album-menu-item span,
  624. .album-menu-item small {
  625. display: block;
  626. overflow: hidden;
  627. white-space: nowrap;
  628. text-overflow: ellipsis;
  629. }
  630. .album-menu-item small {
  631. margin-top: 2px;
  632. color: var(--muted);
  633. font-size: 0.72rem;
  634. }
  635. @media (min-width: 760px) {
  636. .app-shell {
  637. padding: 12px 14px 184px;
  638. }
  639. .stack-section {
  640. grid-template-columns: repeat(2, minmax(0, 1fr));
  641. }
  642. .detail-cover-wrap {
  643. width: 96px;
  644. }
  645. }