style.css 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
  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: 1fr;
  328. gap: 14px;
  329. padding: 14px;
  330. }
  331. .detail-cover-wrap {
  332. width: 100%;
  333. aspect-ratio: 1 / 1;
  334. border-radius: 22px;
  335. }
  336. .detail-copy {
  337. display: flex;
  338. flex-direction: column;
  339. gap: 10px;
  340. }
  341. .field {
  342. display: flex;
  343. flex-direction: column;
  344. gap: 8px;
  345. margin-bottom: 12px;
  346. color: var(--muted);
  347. font-size: 0.9rem;
  348. }
  349. .empty-state {
  350. padding: 16px;
  351. text-align: center;
  352. color: var(--muted);
  353. }
  354. .player-dock {
  355. position: fixed;
  356. left: 8px;
  357. right: 8px;
  358. bottom: max(8px, env(safe-area-inset-bottom));
  359. z-index: 999;
  360. padding: 12px 14px;
  361. border-radius: 24px;
  362. background:
  363. linear-gradient(180deg, rgba(247, 251, 255, 0.97), rgba(231, 243, 255, 0.99)),
  364. var(--panel);
  365. }
  366. .player-top {
  367. display: flex;
  368. align-items: center;
  369. gap: 12px;
  370. }
  371. .dock-cover-wrap {
  372. position: relative;
  373. width: 50px;
  374. height: 50px;
  375. flex: 0 0 50px;
  376. }
  377. .dock-cover-image,
  378. .dock-cover-fallback {
  379. width: 100%;
  380. height: 100%;
  381. border-radius: 16px;
  382. }
  383. .dock-cover-image {
  384. object-fit: cover;
  385. }
  386. .dock-cover-fallback {
  387. display: inline-flex;
  388. align-items: center;
  389. justify-content: center;
  390. background: linear-gradient(135deg, #45a6f5, #0e63b6);
  391. color: #f7fbff;
  392. font-size: 1rem;
  393. font-weight: 700;
  394. }
  395. .dock-copy {
  396. min-width: 0;
  397. }
  398. .dock-copy strong,
  399. .dock-copy p {
  400. display: block;
  401. white-space: nowrap;
  402. overflow: hidden;
  403. text-overflow: ellipsis;
  404. }
  405. .dock-copy p {
  406. margin: 3px 0 0;
  407. color: var(--muted);
  408. font-size: 0.82rem;
  409. }
  410. .player-progress {
  411. display: grid;
  412. grid-template-columns: 40px 1fr 40px;
  413. gap: 8px;
  414. align-items: center;
  415. margin-top: 10px;
  416. color: var(--muted);
  417. font-size: 0.76rem;
  418. }
  419. input[type="range"] {
  420. width: 100%;
  421. accent-color: var(--accent);
  422. }
  423. .icon-actions {
  424. display: flex;
  425. justify-content: space-between;
  426. align-items: center;
  427. margin-top: 12px;
  428. }
  429. .icon-btn {
  430. width: 42px;
  431. height: 42px;
  432. border-radius: 50%;
  433. background: rgba(123, 104, 84, 0.08);
  434. color: var(--text);
  435. position: relative;
  436. flex: 0 0 42px;
  437. display: inline-flex;
  438. align-items: center;
  439. justify-content: center;
  440. }
  441. .icon-btn.active {
  442. background: rgba(35, 136, 232, 0.12);
  443. color: var(--accent-deep);
  444. }
  445. .play-toggle {
  446. width: 54px;
  447. height: 54px;
  448. flex-basis: 54px;
  449. background: linear-gradient(135deg, var(--accent), #5db8ff);
  450. color: #f7fbff;
  451. }
  452. .small-icon-btn {
  453. width: 30px;
  454. height: 30px;
  455. flex-basis: 30px;
  456. }
  457. .icon-btn svg {
  458. width: 22px;
  459. height: 22px;
  460. stroke: currentColor;
  461. fill: none;
  462. stroke-width: 1.9;
  463. stroke-linecap: round;
  464. stroke-linejoin: round;
  465. }
  466. .small-icon-btn svg {
  467. width: 16px;
  468. height: 16px;
  469. stroke-width: 2.1;
  470. }
  471. .play-toggle svg {
  472. width: 26px;
  473. height: 26px;
  474. }
  475. .play-toggle .icon-play {
  476. margin-left: 2px;
  477. }
  478. .play-toggle svg path {
  479. fill: currentColor;
  480. stroke: none;
  481. }
  482. .icon-toast {
  483. position: fixed;
  484. left: 50%;
  485. bottom: 152px;
  486. transform: translateX(-50%);
  487. z-index: 1200;
  488. padding: 8px 12px;
  489. border-radius: 999px;
  490. background: rgba(44, 34, 24, 0.88);
  491. color: #fffaf5;
  492. font-size: 0.78rem;
  493. white-space: nowrap;
  494. }
  495. audio {
  496. display: none;
  497. }
  498. @media (min-width: 760px) {
  499. .app-shell {
  500. padding: 12px 14px 184px;
  501. }
  502. .stack-section {
  503. grid-template-columns: repeat(2, minmax(0, 1fr));
  504. }
  505. .featured-list {
  506. display: grid;
  507. grid-template-columns: repeat(2, minmax(0, 1fr));
  508. gap: 10px;
  509. }
  510. .detail-header {
  511. grid-template-columns: 120px 1fr;
  512. align-items: start;
  513. }
  514. .detail-cover-wrap {
  515. width: 120px;
  516. }
  517. }