Files
StarlightRadio/public/css/style.css
T

1751 lines
57 KiB
CSS

/* ==================== TOKENS ==================== */
:root {
--bg: #f4f5f9;
--surface: #fff;
--surface-hover: #fafbff;
--accent: #4f6ef7;
--accent-hover: #3d5ce0;
--accent-light: #eef1fe;
--accent-glow: rgba(79, 110, 247, 0.14);
--accent-subtle: rgba(79, 110, 247, 0.06);
--text-primary: #0f1225;
--text-secondary: #5a607f;
--text-muted: #9499b8;
--border: #e8eaf2;
--border-light: #f0f1f6;
--danger: #ef4565;
--danger-light: #fef0f2;
--success: #30a46c;
--success-light: #e9f9ef;
--warning: #f5a623;
--warning-light: #fff7e8;
--radius-sm: 12px;
--radius: 16px;
--radius-lg: 24px;
--radius-xl: 28px;
--shadow-xs: 0 1px 2px rgba(15, 18, 37, 0.04);
--shadow-sm: 0 2px 8px rgba(15, 18, 37, 0.06);
--shadow: 0 4px 20px rgba(15, 18, 37, 0.07);
--shadow-lg: 0 8px 40px rgba(15, 18, 37, 0.1);
--content-w: 920px;
--nav-bottom: 14px;
--nav-h: 56px;
--mini-h: 0px;
--total-bottom: calc(
var(--nav-bottom) + var(--nav-h) + var(--mini-h) + 14px
);
}
.mini-player-visible {
--mini-h: 82px;
}
/* ==================== RESET ==================== */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family:
"Plus Jakarta Sans",
-apple-system,
BlinkMacSystemFont,
sans-serif;
color: var(--text-primary);
height: 100dvh;
display: flex;
flex-direction: column;
-webkit-font-smoothing: antialiased;
overflow: hidden;
}
img {
display: block;
max-width: 100%;
height: auto;
}
button {
font-family: inherit;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
}
input {
font-family: inherit;
}
/* ==================== BG ==================== */
.page-bg {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
background:
radial-gradient(
ellipse at 20% 0%,
rgba(79, 110, 247, 0.04) 0%,
transparent 50%
),
radial-gradient(
ellipse at 80% 100%,
rgba(139, 92, 246, 0.03) 0%,
transparent 50%
),
var(--bg);
}
.bg-shapes {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
overflow: hidden;
}
.bg-shapes .s {
position: absolute;
border-radius: 50%;
opacity: 0.03;
animation: floatShape 22s ease-in-out infinite alternate;
}
.bg-shapes .s:nth-child(1) {
width: 520px;
height: 520px;
top: -15%;
left: -10%;
background: var(--accent);
}
.bg-shapes .s:nth-child(2) {
width: 420px;
height: 420px;
bottom: -10%;
right: -8%;
background: #8b5cf6;
animation-delay: -6s;
}
.bg-shapes .s:nth-child(3) {
width: 300px;
height: 300px;
top: 40%;
left: 60%;
background: var(--success);
animation-delay: -12s;
}
@keyframes floatShape {
0% {
transform: translate(0, 0) scale(1);
}
100% {
transform: translate(40px, -30px) scale(1.12);
}
}
/* ==================== HEADER ==================== */
.top-header {
flex-shrink: 0;
z-index: 100;
background: rgba(244, 245, 249, 0.78);
backdrop-filter: blur(28px) saturate(180%);
padding: 0.55rem 1rem;
animation: headerSlide 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes headerSlide {
from {
opacity: 0;
transform: translateY(-100%);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.header-inner {
max-width: var(--content-w);
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.5rem;
}
.brand {
display: flex;
align-items: center;
gap: 0.5rem;
font-weight: 800;
font-size: 0.98rem;
color: var(--text-primary);
letter-spacing: -0.02em;
}
.brand-icon {
width: 30px;
height: 30px;
border-radius: 9px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
box-shadow: 0 2px 12px rgba(79, 110, 247, 0.3);
flex-shrink: 0;
}
.brand-icon img {
width: 100%;
height: 100%;
object-fit: cover;
}
.live-pill {
display: inline-flex;
align-items: center;
gap: 0.28rem;
font-size: 0.56rem;
font-weight: 700;
background: var(--success);
color: #fff;
padding: 0.18rem 0.5rem;
border-radius: 20px;
letter-spacing: 0.06em;
text-transform: uppercase;
animation: livePulse 2.5s ease-in-out infinite;
}
.live-dot {
width: 4px;
height: 4px;
background: #fff;
border-radius: 50%;
animation: dotPulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
0%,
100% {
box-shadow: 0 0 0 0 rgba(48, 164, 108, 0.35);
}
50% {
box-shadow: 0 0 0 8px rgba(48, 164, 108, 0);
}
}
@keyframes dotPulse {
0%,
100% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.3;
transform: scale(0.8);
}
}
.header-actions {
display: flex;
align-items: center;
gap: 0.45rem;
}
.cache-pill {
font-size: 0.66rem;
font-weight: 500;
color: var(--text-secondary);
background: var(--surface);
padding: 0.22rem 0.55rem;
border-radius: 20px;
display: inline-flex;
align-items: center;
gap: 0.28rem;
border: 1px solid var(--border-light);
font-family: "JetBrains Mono", monospace;
letter-spacing: -0.02em;
}
.btn-link-sm {
font-size: 0.7rem;
font-weight: 600;
color: var(--accent);
text-decoration: none;
padding: 0.28rem 0.6rem;
border-radius: 10px;
transition: all 0.2s;
display: inline-flex;
align-items: center;
gap: 0.25rem;
}
.btn-link-sm:hover {
background: var(--accent-light);
}
/* ==================== PAGE CONTAINER ==================== */
.page-container {
position: relative;
z-index: 1;
max-width: var(--content-w);
margin: 0 auto;
width: 100%;
padding: 1rem 1.25rem 2rem;
padding-bottom: calc(var(--total-bottom) + 1.5rem);
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
.page-container::-webkit-scrollbar {
width: 5px;
}
.page-container::-webkit-scrollbar-track {
background: transparent;
}
.page-container::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 10px;
}
.page-container::-webkit-scrollbar-thumb:hover {
background: var(--text-muted);
}
.page {
display: none;
}
.page.active {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
animation: pageEnter 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes pageEnter {
from {
opacity: 0;
transform: translateY(12px) scale(0.995);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
/* ==================== CARDS ==================== */
.section-card,
.search-card,
.about-card {
background: var(--surface);
border-radius: var(--radius-xl);
box-shadow: var(--shadow);
border: 1px solid var(--border-light);
animation: cardRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.section-card {
display: flex;
flex-direction: column;
min-height: 0;
}
@keyframes cardRise {
from {
opacity: 0;
transform: translateY(18px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* ==================== SEARCH ==================== */
.search-card {
display: flex;
flex-direction: column;
min-height: 0;
overflow-y: auto;
}
.search-header {
padding: 1.5rem 1.5rem 0.3rem;
}
.search-header h2 {
font-size: 1.12rem;
font-weight: 800;
letter-spacing: -0.03em;
margin-bottom: 0.12rem;
}
.search-header p {
font-size: 0.78rem;
color: var(--text-muted);
}
.search-input-wrap {
padding: 0.75rem 1.5rem;
}
.search-field {
display: flex;
gap: 0.5rem;
align-items: stretch;
}
.search-field input {
flex: 1;
border: 1.5px solid var(--border);
border-radius: var(--radius-sm);
padding: 0.65rem 0.85rem;
font-size: 0.84rem;
background: var(--bg);
color: var(--text-primary);
outline: none;
transition:
border-color 0.25s,
box-shadow 0.25s,
background 0.25s;
}
.search-field input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-glow);
background: var(--surface);
}
.search-field input::placeholder {
color: var(--text-muted);
font-size: 0.82rem;
}
.btn-search {
border: none;
background: var(--accent);
color: #fff;
padding: 0 1.2rem;
border-radius: var(--radius-sm);
font-weight: 700;
font-size: 0.82rem;
transition: all 0.2s;
white-space: nowrap;
letter-spacing: -0.01em;
position: relative;
overflow: hidden;
}
.btn-search::after {
content: "";
position: absolute;
inset: 0;
background: rgba(255, 255, 255, 0.2);
transform: translateX(-100%);
transition: transform 0.3s;
}
.btn-search:hover::after {
transform: translateX(0);
}
.btn-search:hover {
background: var(--accent-hover);
box-shadow: 0 4px 16px rgba(79, 110, 247, 0.25);
}
.btn-search:active {
transform: scale(0.97);
}
.btn-search:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Parse hint */
.parse-hint {
padding: 0 1.5rem;
margin-bottom: 0.3rem;
display: flex;
align-items: center;
gap: 0.35rem;
font-size: 0.68rem;
color: var(--text-muted);
max-height: 0;
opacity: 0;
overflow: hidden;
transition: all 0.3s ease;
}
.parse-hint.visible {
opacity: 1;
max-height: 36px;
padding-top: 0.1rem;
}
.parse-hint i {
color: var(--accent);
font-size: 0.75rem;
}
.parse-hint code {
font-family: "JetBrains Mono", monospace;
font-size: 0.64rem;
background: var(--accent-light);
color: var(--accent);
padding: 0.08rem 0.35rem;
border-radius: 5px;
font-weight: 500;
}
/* Preview card — info only, no inline player */
.preview-card {
margin: 0 1.5rem 1.5rem;
background: var(--bg);
border-radius: var(--radius-lg);
overflow: hidden;
border: 1px solid var(--border-light);
animation: slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(16px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.preview-cover-section {
display: flex;
align-items: center;
gap: 0.9rem;
padding: 0.9rem 1.1rem;
}
.preview-cover-wrap {
position: relative;
width: 64px;
height: 64px;
flex-shrink: 0;
}
.preview-cover {
width: 64px;
height: 64px;
border-radius: var(--radius);
object-fit: cover;
box-shadow: var(--shadow-sm);
}
.preview-cover-wrap::after {
content: "";
position: absolute;
inset: 0;
border-radius: var(--radius);
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
pointer-events: none;
}
.preview-info {
flex: 1;
min-width: 0;
}
.preview-title {
font-weight: 700;
font-size: 0.95rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
letter-spacing: -0.02em;
margin-bottom: 0.1rem;
}
.preview-artist {
font-size: 0.78rem;
color: var(--text-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.preview-details {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
padding: 0 1.1rem 0.9rem;
}
.detail-tag {
display: inline-flex;
align-items: center;
gap: 0.25rem;
font-size: 0.66rem;
font-weight: 500;
color: var(--text-secondary);
background: var(--surface);
padding: 0.24rem 0.55rem;
border-radius: 10px;
border: 1px solid var(--border-light);
}
.detail-tag i {
font-size: 0.7rem;
color: var(--text-muted);
}
.detail-tag.album-tag i {
color: var(--accent);
}
.detail-tag.quality-tag i {
color: var(--success);
}
.detail-tag.duration-tag i {
color: var(--warning);
}
.preview-actions {
display: flex;
gap: 0.5rem;
padding: 0 1.1rem 1.1rem;
}
.btn-download {
border: none;
background: var(--accent);
color: #fff;
padding: 0.5rem 1rem;
border-radius: var(--radius-sm);
font-weight: 700;
font-size: 0.78rem;
transition: all 0.2s;
display: inline-flex;
align-items: center;
gap: 0.35rem;
white-space: nowrap;
letter-spacing: -0.01em;
flex: 1;
justify-content: center;
position: relative;
overflow: hidden;
}
.btn-download::after {
content: "";
position: absolute;
inset: 0;
background: rgba(255, 255, 255, 0.2);
transform: translateX(-100%);
transition: transform 0.3s;
}
.btn-download:hover::after {
transform: translateX(0);
}
.btn-download:hover {
background: var(--accent-hover);
box-shadow: 0 4px 16px rgba(79, 110, 247, 0.25);
}
.btn-download:active {
transform: scale(0.97);
}
.btn-download:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Search results */
.searchResults {
margin: 0 1.5rem 1.5rem;
animation: slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.sr-head {
font-size: 0.74rem;
color: var(--text-muted);
margin-bottom: 0.5rem;
padding: 0 0.25rem;
}
.sr-head b {
color: var(--accent);
font-weight: 700;
}
.sr-list {
display: flex;
flex-direction: column;
gap: 0.3rem;
}
.sr-item {
display: flex;
align-items: center;
gap: 0.65rem;
padding: 0.55rem 0.75rem;
background: var(--bg);
border: 1.5px solid transparent;
border-radius: var(--radius);
cursor: pointer;
transition: all 0.25s ease;
opacity: 0;
animation: srFadeIn 0.35s ease forwards;
}
.sr-item:hover {
border-color: var(--accent);
box-shadow: 0 2px 10px rgba(79, 110, 247, 0.12);
transform: translateY(-1px);
}
.sr-item.active {
border-color: var(--accent);
background: var(--accent-light);
}
@keyframes srFadeIn {
from {
opacity: 0;
transform: translateY(6px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.sr-main {
flex: 1;
min-width: 0;
}
.sr-name {
font-weight: 600;
font-size: 0.84rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sr-artist {
font-size: 0.72rem;
color: var(--text-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-top: 0.06rem;
}
.sr-alias {
font-size: 0.66rem;
color: var(--text-muted);
background: var(--surface);
padding: 0.15rem 0.4rem;
border-radius: 7px;
border: 1px solid var(--border-light);
max-width: 160px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sr-duration {
font-family: "JetBrains Mono", monospace;
font-size: 0.7rem;
color: var(--text-muted);
flex-shrink: 0;
}
/* Tips — expand on tall screens */
.search-tips {
padding: 2rem 1.5rem 2.5rem;
text-align: center;
}
.tips-icon {
width: 60px;
height: 60px;
background: var(--accent-light);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 0.9rem;
font-size: 1.3rem;
color: var(--accent);
animation: float 3s ease-in-out infinite;
}
@keyframes float {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-7px);
}
}
.tips-title {
font-weight: 700;
font-size: 0.9rem;
margin-bottom: 0.3rem;
letter-spacing: -0.02em;
}
.tips-desc {
font-size: 0.76rem;
color: var(--text-muted);
line-height: 1.7;
}
.tips-desc code {
font-family: "JetBrains Mono", monospace;
font-size: 0.68rem;
background: var(--accent-light);
color: var(--accent);
padding: 0.08rem 0.3rem;
border-radius: 5px;
font-weight: 500;
}
/* ==================== RESOURCE / PLAYLIST ==================== */
.section-header {
padding: 1.1rem 1.1rem 0.65rem;
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.6rem;
flex-wrap: wrap;
flex-shrink: 0;
}
.section-title {
font-size: 0.92rem;
font-weight: 800;
display: flex;
align-items: center;
gap: 0.4rem;
letter-spacing: -0.03em;
}
.section-count {
min-width: 20px;
height: 20px;
background: var(--accent-light);
color: var(--accent);
font-size: 0.62rem;
font-weight: 700;
border-radius: 7px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 5px;
}
.section-body {
padding: 0 0.5rem 0.5rem 0.5rem;
margin-bottom: 0.5rem;
flex: 1;
min-height: 0;
overflow-y: auto;
overscroll-behavior: contain;
scrollbar-width: thin;
scrollbar-color: var(--border) transparent;
}
.section-body::-webkit-scrollbar {
width: 5px;
}
.section-body::-webkit-scrollbar-track {
background: transparent;
}
.section-body::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 10px;
}
.section-body::-webkit-scrollbar-thumb:hover {
background: var(--text-muted);
}
.resource-search {
border: 1.5px solid var(--border);
border-radius: var(--radius-sm);
padding: 0.35rem 0.65rem;
font-size: 0.74rem;
background: var(--bg);
color: var(--text-primary);
outline: none;
width: 135px;
transition:
border-color 0.25s,
box-shadow 0.25s,
width 0.25s;
}
.resource-search:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-glow);
width: 175px;
}
.resource-search::placeholder {
color: var(--text-muted);
}
/* Resource item */
.res-item {
position: relative;
overflow: hidden;
border-radius: var(--radius-lg);
margin: 0.2rem 0;
transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
cursor: default;
opacity: 0;
animation: itemFadeIn 0.4s ease forwards;
}
.res-item:hover {
box-shadow: var(--shadow-sm);
transform: translateY(-2px);
}
.res-item:active {
transform: translateY(0);
}
.res-bg {
position: absolute;
inset: -40px;
background-size: cover;
background-position: center;
filter: blur(50px) saturate(1.3);
opacity: 0.07;
z-index: 0;
transition: opacity 0.35s;
}
.res-item:hover .res-bg {
opacity: 0.15;
}
.res-row {
position: relative;
z-index: 1;
display: flex;
align-items: center;
padding: 0.6rem 0.75rem;
}
.res-cover {
width: 44px;
height: 44px;
border-radius: 11px;
object-fit: cover;
flex-shrink: 0;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.res-cover-ph {
width: 44px;
height: 44px;
border-radius: 11px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-muted);
background: var(--bg);
font-size: 1rem;
border: 1px solid var(--border-light);
}
.res-meta {
flex: 1;
min-width: 0;
margin: 0 0.65rem;
}
.res-title {
font-weight: 700;
font-size: 0.83rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
letter-spacing: -0.01em;
}
.res-artist {
font-size: 0.71rem;
color: var(--text-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-top: 0.08rem;
}
.res-actions {
display: flex;
align-items: center;
gap: 0.25rem;
flex-shrink: 0;
}
.heat-chip {
font-size: 0.62rem;
font-weight: 600;
background: var(--warning-light);
color: var(--warning);
padding: 0.14rem 0.4rem;
border-radius: 7px;
display: inline-flex;
align-items: center;
gap: 0.18rem;
}
.btn-icon {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border: none;
background: none;
color: var(--text-muted);
font-size: 1rem;
border-radius: 9px;
transition: all 0.2s;
}
.btn-icon:hover {
background: var(--accent-light);
color: var(--accent);
}
.btn-icon:active {
transform: scale(0.85);
}
.btn-icon.danger:hover {
background: var(--danger-light);
color: var(--danger);
}
.res-detail {
position: relative;
z-index: 1;
max-height: 0;
opacity: 0;
overflow: hidden;
transition:
max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
opacity 0.3s,
padding 0.35s;
font-size: 0.68rem;
color: var(--text-secondary);
padding: 0 0.75rem 0 calc(0.75rem + 44px + 0.65rem);
}
.res-item:hover .res-detail {
max-height: 36px;
opacity: 1;
padding-bottom: 0.45rem;
}
.res-detail span {
display: inline-flex;
align-items: center;
gap: 0.15rem;
}
.detail-sep {
color: var(--border);
margin: 0 0.3rem;
}
/* Playlist item */
.pl-item {
position: relative;
display: flex;
align-items: center;
gap: 0.55rem;
padding: 0.6rem 0.75rem;
border-radius: var(--radius-lg);
margin: 0.2rem 0;
transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
cursor: grab;
opacity: 0;
animation: itemFadeIn 0.4s ease forwards;
}
.pl-item:active {
cursor: grabbing;
}
.pl-item:hover {
background: var(--bg);
transform: translateY(-1px);
}
.pl-grip {
color: var(--text-muted);
font-size: 0.8rem;
flex-shrink: 0;
opacity: 0.3;
transition: opacity 0.2s;
}
.pl-item:hover .pl-grip {
opacity: 0.7;
}
.pl-num {
width: 20px;
height: 20px;
background: var(--accent-light);
color: var(--accent);
font-size: 0.6rem;
font-weight: 700;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
font-family: "JetBrains Mono", monospace;
}
.pl-info {
flex: 1;
min-width: 0;
}
.pl-name {
font-weight: 700;
font-size: 0.82rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
letter-spacing: -0.01em;
}
.pl-sub {
display: flex;
align-items: center;
gap: 0.4rem;
margin-top: 0.12rem;
}
.pl-cache {
font-size: 0.6rem;
font-weight: 600;
display: inline-flex;
align-items: center;
gap: 0.18rem;
padding: 0.08rem 0.35rem;
border-radius: 6px;
}
.pl-cache.ready {
background: var(--success-light);
color: var(--success);
}
.pl-cache.pending {
background: var(--warning-light);
color: var(--warning);
}
.pl-cache.none {
background: var(--bg);
color: var(--text-muted);
}
.pl-heat {
font-size: 0.6rem;
}
.btn-clear {
border: none;
background: var(--danger-light);
color: var(--danger);
font-size: 0.68rem;
font-weight: 700;
padding: 0.3rem 0.7rem;
border-radius: 10px;
transition: all 0.2s;
display: inline-flex;
align-items: center;
gap: 0.25rem;
}
.btn-clear:hover {
background: #fdd;
box-shadow: 0 2px 8px rgba(239, 69, 101, 0.15);
}
.btn-clear:active {
transform: scale(0.97);
}
/* Sortable */
.sortable-ghost {
opacity: 0.3;
background: var(--accent-light) !important;
border-radius: var(--radius-lg);
}
/* ==================== ABOUT PAGE ==================== */
.about-card {
display: flex;
flex-direction: column;
min-height: 0;
}
.about-hero {
text-align: center;
padding: 2.2rem 1.5rem 1.8rem;
background: linear-gradient(
135deg,
var(--accent-light) 0%,
rgba(139, 92, 246, 0.06) 100%
);
flex-shrink: 0;
border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.about-logo {
width: 72px;
height: 72px;
border-radius: 18px;
overflow: hidden;
margin: 0 auto 1rem;
box-shadow: 0 4px 24px rgba(79, 110, 247, 0.25);
}
.about-logo img {
width: 100%;
height: 100%;
object-fit: cover;
}
.about-hero h2 {
font-size: 1.25rem;
font-weight: 800;
letter-spacing: -0.03em;
margin-bottom: 0.15rem;
}
.about-hero p {
font-size: 0.82rem;
color: var(--text-secondary);
}
.about-body {
padding: 0.5rem 1.5rem 1.8rem;
flex: 1;
min-height: 0;
overflow-y: auto;
overscroll-behavior: contain;
scrollbar-width: thin;
scrollbar-color: var(--border) transparent;
}
.about-body::-webkit-scrollbar {
width: 5px;
}
.about-body::-webkit-scrollbar-track {
background: transparent;
}
.about-body::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 10px;
}
.about-body::-webkit-scrollbar-thumb:hover {
background: var(--text-muted);
}
.about-section {
display: flex;
gap: 0.75rem;
padding: 0.9rem 0;
border-bottom: 1px solid var(--border-light);
}
.about-section:last-child {
border-bottom: none;
}
.about-section-icon {
width: 34px;
height: 34px;
background: var(--accent-light);
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
color: var(--accent);
font-size: 0.95rem;
flex-shrink: 0;
}
.about-section-content h3 {
font-size: 0.82rem;
font-weight: 700;
margin-bottom: 0.25rem;
}
.about-section-content p {
font-size: 0.76rem;
color: var(--text-secondary);
line-height: 1.7;
}
.tech-tags {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
}
.tech-tags span {
font-size: 0.68rem;
font-weight: 600;
background: var(--bg);
color: var(--text-secondary);
padding: 0.2rem 0.55rem;
border-radius: 8px;
border: 1px solid var(--border-light);
}
.disclaimer-section .about-section-icon {
background: var(--warning-light);
color: var(--warning);
}
.about-version {
text-align: center;
padding: 0.8rem;
font-size: 0.65rem;
color: var(--text-muted);
font-family: "JetBrains Mono", monospace;
letter-spacing: -0.01em;
flex-shrink: 0;
}
/* ==================== ABOUT — EXTENSIONS ==================== */
/* 核心功能列表 */
.about-feature-list {
display: flex;
flex-direction: column;
gap: 0.35rem;
margin-top: 0.2rem;
}
.about-feat {
display: flex;
align-items: flex-start;
gap: 0.45rem;
font-size: 0.76rem;
color: var(--text-secondary);
line-height: 1.65;
padding: 0.3rem 0;
}
.about-feat i {
font-size: 0.72rem;
flex-shrink: 0;
margin-top: 0.18rem;
}
/* GitHub 链接徽章 */
.about-gh-link {
display: inline-flex;
align-items: center;
gap: 0.3rem;
padding: 0.3rem 0.7rem;
background: var(--bg);
border: 1px solid var(--border-light);
border-radius: 10px;
font-size: 0.72rem;
font-weight: 600;
color: var(--text-secondary);
text-decoration: none;
transition: all 0.2s;
font-family: "JetBrains Mono", monospace;
letter-spacing: -0.01em;
}
.about-gh-link:hover {
color: var(--accent);
border-color: var(--accent);
background: var(--accent-light);
}
.about-gh-link i:first-child {
font-size: 0.9rem;
}
/* ==================== MINI PLAYER ==================== */
.mini-player {
position: fixed;
bottom: calc(var(--nav-bottom) + var(--nav-h) + 12px);
left: 50%;
transform: translateX(-50%);
width: min(var(--content-w), calc(100% - 2rem));
z-index: 99;
border-radius: 20px;
overflow: hidden;
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(28px) saturate(200%);
border: 1px solid rgba(255, 255, 255, 0.6);
box-shadow:
0 4px 24px rgba(15, 18, 37, 0.1),
0 1px 4px rgba(15, 18, 37, 0.04),
inset 0 1px 0 rgba(255, 255, 255, 0.8);
opacity: 0;
pointer-events: none;
transform: translateX(-50%) translateY(16px) scale(0.96);
transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mini-player.show {
opacity: 1;
pointer-events: auto;
transform: translateX(-50%) translateY(0) scale(1);
}
/* progress = full background */
.mp-progress {
position: absolute;
inset: 0;
width: 0;
background: linear-gradient(
90deg,
rgba(79, 110, 247, 0.11),
rgba(139, 92, 246, 0.08)
);
pointer-events: none;
z-index: 0;
transition: width 0.15s linear;
}
.mini-player:hover .mp-progress {
background: linear-gradient(
90deg,
rgba(79, 110, 247, 0.16),
rgba(139, 92, 246, 0.12)
);
}
.mp-body {
position: relative;
z-index: 1;
display: flex;
align-items: center;
gap: 0.6rem;
padding: 0.5rem 0.9rem 0.55rem;
cursor: pointer;
user-select: none;
-webkit-user-select: none;
}
.mp-cover {
width: 40px;
height: 40px;
border-radius: 9px;
object-fit: cover;
flex-shrink: 0;
box-shadow: var(--shadow-xs);
}
.mp-info {
flex: 1;
min-width: 0;
}
.mp-name {
font-weight: 700;
font-size: 0.8rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
letter-spacing: -0.01em;
}
.mp-artist {
font-size: 0.68rem;
color: var(--text-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-top: 0.04rem;
}
.mp-controls {
display: flex;
align-items: center;
gap: 0.3rem;
flex-shrink: 0;
}
.mp-time {
font-family: "JetBrains Mono", monospace;
font-size: 0.64rem;
color: var(--text-muted);
flex-shrink: 0;
min-width: 40px;
text-align: center;
}
.mp-play {
width: 34px;
height: 34px;
border: none;
border-radius: 50%;
background: var(--accent);
color: #fff;
font-size: 0.95rem;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}
.mp-play:hover {
background: var(--accent-hover);
box-shadow: 0 2px 8px rgba(79, 110, 247, 0.3);
}
.mp-play:active {
transform: scale(0.88);
}
.mp-expand {
width: 30px;
height: 30px;
border: none;
border-radius: 50%;
background: transparent;
color: var(--text-muted);
font-size: 0.85rem;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}
.mp-expand:hover {
background: var(--accent-light);
color: var(--accent);
}
/* ==================== BOTTOM NAV ==================== */
.bottom-nav {
position: fixed;
bottom: var(--nav-bottom);
left: 50%;
transform: translateX(-50%);
z-index: 100;
pointer-events: none;
animation: navSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s
both;
}
@keyframes navSlideUp {
from {
opacity: 0;
transform: translateX(-50%) translateY(24px);
}
to {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
}
.bottom-nav-inner {
pointer-events: auto;
display: inline-flex;
align-items: center;
gap: 4px;
padding: 6px 8px;
background: rgba(255, 255, 255, 0.72);
backdrop-filter: blur(32px) saturate(220%);
-webkit-backdrop-filter: blur(32px) saturate(220%);
border: 1px solid rgba(255, 255, 255, 0.55);
border-radius: 22px;
box-shadow:
0 2px 12px rgba(15, 18, 37, 0.07),
0 0 0 0.5px rgba(15, 18, 37, 0.03),
inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.nav-tab {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
padding: 8px 18px;
border: none;
background: none;
color: var(--text-muted);
font-size: 0.56rem;
font-weight: 600;
letter-spacing: 0.03em;
border-radius: 16px;
z-index: 1;
transition:
color 0.3s ease,
transform 0.2s ease;
}
.nav-tab i {
font-size: 1.25rem;
transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
position: relative;
z-index: 1;
line-height: 1;
}
.nav-tab span {
position: relative;
z-index: 1;
line-height: 1;
}
/* active pill */
.nav-tab::before {
content: "";
position: absolute;
inset: 0;
background: var(--accent);
border-radius: 16px;
opacity: 0;
transform: scale(0.6);
transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
z-index: 0;
}
.nav-tab.active {
color: #fff;
}
.nav-tab.active::before {
opacity: 1;
transform: scale(1);
}
.nav-tab.active i {
transform: scale(1.1) translateY(-1px);
}
.nav-tab:hover:not(.active) {
color: var(--text-secondary);
}
.nav-tab:hover:not(.active)::before {
opacity: 0.04;
transform: scale(0.85);
background: var(--accent);
}
.nav-tab:active {
transform: scale(0.92);
}
/* ==================== EMPTY / SCROLL ==================== */
.empty-state {
text-align: center;
padding: 2rem 1.5rem;
color: var(--text-muted);
}
.empty-icon {
width: 48px;
height: 48px;
background: var(--bg);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 0.75rem;
font-size: 1.1rem;
color: var(--text-muted);
border: 1px solid var(--border-light);
animation: float 3.5s ease-in-out infinite;
}
.empty-title {
font-weight: 700;
font-size: 0.82rem;
color: var(--text-secondary);
margin-bottom: 0.15rem;
}
.empty-desc {
font-size: 0.74rem;
}
/* ==================== TOAST ==================== */
.toast-container {
position: fixed;
top: 68px;
left: 50%;
transform: translateX(-50%);
z-index: 9999;
display: flex;
flex-direction: column;
gap: 0.4rem;
pointer-events: none;
}
.toast-msg {
background: var(--text-primary);
color: #fff;
padding: 0.5rem 1.1rem;
border-radius: var(--radius-sm);
font-size: 0.78rem;
font-weight: 600;
box-shadow: var(--shadow-lg);
animation:
toastIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards,
toastOut 0.3s ease 2.5s forwards;
pointer-events: auto;
white-space: nowrap;
letter-spacing: -0.01em;
}
.toast-msg.error {
background: var(--danger);
}
.toast-msg.success {
background: var(--success);
}
@keyframes toastIn {
from {
opacity: 0;
transform: translateY(-10px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes toastOut {
from {
opacity: 1;
}
to {
opacity: 0;
transform: translateY(-8px) scale(0.95);
}
}
/* ==================== ANIMATIONS ==================== */
@keyframes itemFadeIn {
from {
opacity: 0;
transform: translateY(7px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes itemFadeOut {
from {
opacity: 1;
transform: translateY(0);
}
to {
opacity: 0;
transform: translateY(-5px);
}
}
.res-item.enter,
.pl-item.enter {
animation: itemFadeIn 0.35s ease forwards;
}
.res-item.leave,
.pl-item.leave {
animation: itemFadeOut 0.25s ease forwards;
}
.spinner-sm {
width: 15px;
height: 15px;
border: 2.5px solid rgba(255, 255, 255, 0.3);
border-top-color: #fff;
border-radius: 50%;
animation: spin 0.6s linear infinite;
display: inline-block;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* ==================== RESPONSIVE ==================== */
/* Tablet */
@media (min-width: 768px) {
.page-container {
padding: 1.2rem 2rem 2rem;
padding-bottom: calc(var(--total-bottom) + 2rem);
}
.res-detail {
display: block;
}
.search-header {
padding: 1.8rem 2rem 0.4rem;
}
.search-input-wrap {
padding: 0.8rem 2rem;
}
.preview-card {
margin: 0 2rem 2rem;
}
.searchResults {
margin: 0 2rem 2rem;
}
.parse-hint {
padding: 0 2rem;
}
.search-tips {
padding: 2.5rem 2rem 3rem;
}
.about-body {
padding: 0.5rem 2rem 2rem;
}
}
/* Large desktop */
@media (min-width: 1200px) {
:root {
--content-w: 960px;
}
.mini-player {
width: min(960px, calc(100% - 3rem));
}
}
/* Small phones */
@media (max-width: 380px) {
:root {
--nav-bottom: 10px;
}
.nav-tab {
font-size: 0.54rem;
}
.nav-tab i {
font-size: 1.05rem;
}
.cache-pill {
display: none;
}
.search-header {
padding: 1.1rem 1.1rem 0.25rem;
}
.search-input-wrap {
padding: 0.6rem 1.1rem;
}
.preview-card {
margin: 0 1.1rem 1.1rem;
}
.searchResults {
margin: 0 1.1rem 1.1rem;
}
.parse-hint {
padding: 0 1.1rem;
}
.about-body {
padding: 0.4rem 1.1rem 1.2rem;
}
}
/* Landscape phone */
@media (max-height: 500px) and (orientation: landscape) {
.top-header {
padding: 0.3rem 0.8rem;
}
.page-container {
padding: 0.5rem 1rem 1rem;
}
.search-tips {
padding: 0.8rem;
}
.tips-icon {
width: 40px;
height: 40px;
font-size: 0.9rem;
margin-bottom: 0.5rem;
}
.preview-cover-section {
padding: 0.6rem 0.8rem;
}
.preview-cover,
.preview-cover-wrap {
width: 48px;
height: 48px;
}
.sr-list,
.scroll-area {
max-height: 38vh;
}
.about-hero {
padding: 1.2rem 1rem 1rem;
}
.about-logo {
width: 52px;
height: 52px;
}
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}