* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'HarmonyOS Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-color: #4e6ef2;
    --secondary-color: #7a89c5;
    --text-color: #f1f1f1;
    --card-bg: rgba(255, 255, 255, 0.15);
    --card-border: rgba(255, 255, 255, 0.2);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    padding-bottom: 70px;
    /* 防止移动端缩放 */
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    /* 防止移动端缩放和拖动 */
    touch-action: none;
    -webkit-user-drag: none;
    user-select: none;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease;
    /* 防止移动端缩放和拖动 */
    touch-action: none;
    -webkit-user-drag: none;
    user-select: none;
    /* 固定背景位置 */
    position: fixed;
    top: 0;
    left: 0;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    transition: var(--transition);
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    }

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .logo img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-text p {
    font-size: 1rem;
    opacity: 0.8;
}

.header-player {
    width: 350px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 0.8rem;
    transition: var(--transition);
}

    .header-player:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    }

.header-player-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.header-player-info {
    flex: 1;
    min-width: 0;
    padding: 0 0.5rem;
}

.header-music-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
}

.header-music-artist {
    font-size: 0.8rem;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-control-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

    .header-control-btn:hover {
        background: var(--primary-color);
        transform: scale(1.1);
    }

.header-play-btn {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.profile-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-info p {
    opacity: 0.9;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

    .social-link:hover {
        background: var(--primary-color);
        transform: translateY(-3px);
    }

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.time-display {
    text-align: center;
    padding: 1.5rem;
}

    .time-display .date {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .time-display .time {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .time-display .quote {
        font-style: italic;
        opacity: 0.9;
        border-left: 3px solid var(--primary-color);
        padding-left: 1rem;
    }

.weather-info {
    padding: 1rem;
    text-align: center;
}

.weather-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.weather-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

    .weather-item i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

.links-section {
    margin-bottom: 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    height: 120px;
    text-align: center;
    transition: var(--transition);
}

    .link-card i {
        font-size: 2rem;
        margin-bottom: 1rem;
        color: var(--secondary-color);
    }

    .link-card span {
        font-weight: 500;
    }

    .link-card:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-5px);
    }

.music-player-container {
    margin: 2rem 0;
    padding: 1.5rem;
    position: relative;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.player-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

    .control-btn:hover {
        background: var(--primary-color);
        transform: scale(1.1);
    }

.play-btn {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
}

.music-info {
    flex: 1;
    margin: 0 1rem;
    min-width: 0;
}

.music-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
}

.music-artist {
    font-size: 0.9rem;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    margin: 0.5rem 0;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time-display-player {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.8;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 120px;
}

.volume-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

    .volume-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--primary-color);
        cursor: pointer;
        transition: var(--transition);
    }

        .volume-slider::-webkit-slider-thumb:hover {
            transform: scale(1.2);
        }

    .volume-slider::-moz-range-thumb {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--primary-color);
        cursor: pointer;
        transition: var(--transition);
    }

        .volume-slider::-moz-range-thumb:hover {
            transform: scale(1.2);
        }

.playlist-container {
    margin-top: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.playlist {
    list-style: none;
}

.playlist-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .playlist-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .playlist-item.active {
        background: rgba(78, 110, 242, 0.2);
    }

    .playlist-item img {
        width: 40px;
        height: 40px;
        border-radius: 6px;
        object-fit: cover;
        background: #2c3e50;
    }

.playlist-info {
    flex: 1;
    min-width: 0;
}

.playlist-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-artist {
    font-size: 0.8rem;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lyrics-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    transform: translateY(100%);
}

    .lyrics-container.show {
        transform: translateY(0);
    }

.lyrics-line {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    min-height: 1.5em;
}

.footer {
    margin-top: auto;
    text-align: center;
    padding: 1.5rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

.loading-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 移动端样式调整 */
@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .header-player {
        width: 100%;
        margin-top: 1rem;
    }

    .player-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .music-info {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .control-buttons {
        order: 2;
    }

    .volume-container {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .links-grid {
        grid-template-columns: 1fr;
    }

    .weather-details {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 1rem;
    }

    .logo img {
        width: 50px;
        height: 50px;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }
    
    /* 移动端隐藏自定义鼠标 */
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

/* 触摸设备通用隐藏鼠标 */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeIn 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease-out;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }