style.css 9.1 KB

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