* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0d0d1a 0%, #1a1a3a 25%, #2d1b4e 50%, #1a1a3a 75%, #0d0d1a 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
    color: #fff;
    position: relative;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 2s infinite;
    /* 提示浏览器提前准备动画，提升渲染性能 */
    will-change: opacity, transform;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

.logo {
    font-size: 4.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, #00f5ff, #7b2cbf, #ff00ff, #00f5ff);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 6s linear infinite; /* 增加动画持续时间到6秒，减少更新频率 */
    margin-bottom: 25px;
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.5); /* 减少阴影模糊半径 */
    filter: drop-shadow(0 0 10px rgba(123, 44, 191, 0.5)); /* 减少阴影模糊半径 */
    /* 提示浏览器提前准备动画，提升渲染性能 */
    will-change: background-position;
}

@keyframes gradient {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}

.subtitle {
    font-size: 1.6rem;
    color: #c0c0ff;
    margin-bottom: 20px;
    letter-spacing: 4px;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 0 20px rgba(192, 192, 255, 0.5);
    font-weight: 300;
}

/* 一言样式 */
.hitokoto {
    font-size: 1.1rem;
    color: #00f5ff;
    margin-bottom: 70px;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-shadow: 0 0 15px rgba(0, 245, 255, 0.6);
    font-weight: 300;
    font-style: italic;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.card-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 2px solid rgba(0, 245, 255, 0.4);
    border-radius: 24px;
    padding: 50px 40px;
    /* 减少模糊半径，提升性能 */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    /* 简化阴影效果，减少性能开销 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    /* 提示浏览器提前准备动画，提升渲染性能 */
    will-change: transform, box-shadow;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.15) 0%, transparent 70%);
    /* 移除旋转动画，减少GPU负担 */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1) 0%, rgba(123, 44, 191, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

.card:hover::after {
    opacity: 1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    /* 简化hover时的阴影效果 */
    box-shadow: 0 12px 30px rgba(0, 245, 255, 0.3), 0 0 20px rgba(123, 44, 191, 0.2);
    border-color: #00f5ff;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    display: block;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
    border: 4px solid rgba(0, 245, 255, 0.6);
    /* 简化头像阴影效果，减少GPU负担 */
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
    transition: all 0.4s ease;
    /* 提示浏览器提前准备动画，提升渲染性能 */
    will-change: transform, box-shadow;
    /* 添加外圈发光动画 */
    animation: iconGlow 3s ease-in-out infinite;
}

/* 头像外圈发光动画 - 增强呼吸效果 */
@keyframes iconGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0, 245, 255, 0.3),
                    0 0 30px rgba(0, 245, 255, 0.15),
                    0 0 45px rgba(0, 245, 255, 0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 245, 255, 0.5),
                    0 0 50px rgba(0, 245, 255, 0.3),
                    0 0 75px rgba(0, 245, 255, 0.2),
                    inset 0 0 5px rgba(0, 245, 255, 0.1);
        transform: scale(1.03);
    }
}

.card:hover .card-icon {
    border-color: #00f5ff;
    /* 性能优化：简化hover时的头像阴影 */
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4), inset 0 0 15px rgba(0, 245, 255, 0.2);
    transform: scale(1.05) rotate(360deg);
    transition: all 0.6s ease;
    /* 暂停原有动画，确保旋转效果可见 */
    animation-play-state: paused;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #00f5ff;
    text-shadow: 0 0 15px rgba(0, 245, 255, 0.6);
    font-weight: 600;
    letter-spacing: 1px;
}

/* 访问者信息样式 */
.visitor-info {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 245, 255, 0.3);
    animation: fadeInUp 0.5s ease-out;
}

.visitor-message {
    font-size: 1.1rem;
    color: #00f5ff;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.card p {
    color: #c0c0ff;
    line-height: 2;
    font-size: 1.05rem;
    font-weight: 300;
}

.glow-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00f5ff, #7b2cbf, #00f5ff, transparent);
    background-size: 200% auto;
    margin: 70px 0;
    animation: glowLine 3s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes glowLine {
    0%,
    100% {
        background-position: 0% center;
        opacity: 0.6;
        box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
    }

    50% {
        background-position: 200% center;
        opacity: 1;
        box-shadow: 0 0 20px rgba(0, 245, 255, 0.6);
    }
}

.footer {
    margin-top: 100px;
    color: #9090d0;
    font-size: 0.95rem;
    animation: fadeInUp 1s ease-out 0.5s both;
    letter-spacing: 1px;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* 连接线容器 */
.connection-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* 连接线样式 */
.connection-line {
    stroke: rgba(0, 245, 255, 0.2);
    stroke-width: 1;
    fill: none;
    /* 连接线实时跟随数字，不需要过渡效果 */
    will-change: x1, y1, x2, y2, stroke-opacity;
}

/* 随机数字容器 */
.random-numbers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* 随机数字样式 */
.random-number {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    color: rgba(0, 245, 255, 0.3);
    font-family: 'Courier New', monospace;
    /* 添加圆圈边框 */
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 移除text-shadow，减少GPU负担 */
    /* 添加位置变化的平滑过渡 */
    transition: left 2s ease-in-out, top 2s ease-in-out;
    will-change: left, top;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #00f5ff, #7b2cbf);
    border-radius: 50%;
    animation: float 15s infinite;
    opacity: 0.6;
    /* 移除粒子阴影效果，减少GPU负担 */
    /* 提示浏览器提前准备动画，提升渲染性能 */
    will-change: transform, opacity;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.btn {
    display: inline-block;
    padding: 18px 45px;
    margin: 10px;
    background: linear-gradient(135deg, #7b2cbf 0%, #00f5ff 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 35px;
    font-weight: bold;
    font-size: 1.05rem;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.4);
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 245, 255, 0.6);
}

.btn-outline {
    background: transparent;
    border: 3px solid #00f5ff;
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(0, 245, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 245, 255, 0.4);
}

.cta-section {
    margin-top: 70px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* 社交媒体链接容器 */
.social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* 社交媒体卡片 */
.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    /* 提示浏览器提前准备动画，提升渲染性能 */
    will-change: transform, box-shadow;
}

/* GitHub卡片样式 */
.github-card {
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.15) 0%, rgba(51, 51, 51, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

.github-card:hover {
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.25) 0%, rgba(51, 51, 51, 0.1) 100%);
    border-color: #333;
    box-shadow: 0 15px 40px rgba(51, 51, 51, 0.4);
    transform: translateY(-10px) scale(1.05);
}

/* 哔哩哔哩卡片样式 */
.bilibili-card {
    background: linear-gradient(135deg, rgba(251, 114, 153, 0.15) 0%, rgba(251, 114, 153, 0.05) 100%);
    border-color: rgba(251, 114, 153, 0.3);
}

.bilibili-card:hover {
    background: linear-gradient(135deg, rgba(251, 114, 153, 0.25) 0%, rgba(251, 114, 153, 0.1) 100%);
    border-color: #fb7299;
    box-shadow: 0 15px 40px rgba(251, 114, 153, 0.4);
    transform: translateY(-10px) scale(1.05);
}

/* 博客卡片样式 */
.blog-card {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.15) 0%, rgba(0, 245, 255, 0.05) 100%);
    border-color: rgba(0, 245, 255, 0.3);
}

.blog-card:hover {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.25) 0%, rgba(0, 245, 255, 0.1) 100%);
    border-color: #00f5ff;
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.4);
    transform: translateY(-10px) scale(1.05);
}

/* 社交媒体图标 */
.social-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.social-card:hover .social-icon {
    transform: scale(1.2) rotate(10deg);
}

/* 社交媒体标题 */
.social-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* 社交媒体描述 */
.social-desc {
    font-size: 0.95rem;
    color: #c0c0ff;
    font-weight: 300;
}

@media (max-width: 768px) {
    .container {
        padding: 60px 15px;
    }
    
    .logo {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }

    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 15px;
        letter-spacing: 2px;
    }
    
    .hitokoto {
        font-size: 1rem;
        margin-bottom: 50px;
        padding: 0 10px;
    }

    .glow-line {
        margin: 50px 0;
    }

    .card-container {
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 30px;
    }

    .card {
        padding: 35px 20px;
        border-radius: 20px;
    }

    .card-icon {
        width: 100px;
        height: 100px;
    }

    .card h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .card p {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    /* 访问者信息样式优化 */
    .visitor-info {
        margin-bottom: 15px;
        padding: 12px;
    }
    
    .visitor-message {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    /* 社交媒体链接容器优化 */
    .social-links {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        padding: 0 15px;
    }

    .social-card {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .social-icon {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    .social-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .social-desc {
        font-size: 0.85rem;
    }
    
    .footer {
        margin-top: 80px;
        font-size: 0.85rem;
    }
}

/* 针对小屏手机的额外优化 */
@media (max-width: 480px) {
    .container {
        padding: 40px 10px;
    }
    
    .logo {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 12px;
        letter-spacing: 1px;
    }
    
    .hitokoto {
        font-size: 0.9rem;
        margin-bottom: 40px;
        padding: 0 15px;
    }

    .card {
        padding: 30px 15px;
    }

    .card-icon {
        width: 80px;
        height: 80px;
    }

    .card h3 {
        font-size: 1.3rem;
    }

    .social-links {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .social-card {
        padding: 18px 12px;
    }

    .social-icon {
        font-size: 2rem;
    }
    
    .footer {
        margin-top: 60px;
        font-size: 0.8rem;
    }
}

/* 为偏好减少动画的用户禁用动画 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .stars,
    .particles,
    .connection-lines,
    .random-numbers {
        display: none;
    }
    
    body {
        background: #0d0d1a;
    }
}

/* 音乐播放器样式 - 小长条优化版 */
.music-player {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 2px solid rgba(0, 245, 255, 0.4);
    border-radius: 16px;
    padding: 12px 20px;
    margin: 50px auto 0;
    max-width: 800px;
    min-height: 80px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.3s both;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.music-player::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.music-player:hover::before {
    opacity: 1;
}

.music-player:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 245, 255, 0.3), 0 0 20px rgba(123, 44, 191, 0.2);
    border-color: #00f5ff;
}

.player-header {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    margin: 0;
    position: relative;
    z-index: 2;
}

.player-title {
    font-size: 1rem;
    color: #00f5ff;
    margin-bottom: 4px;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.6);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-track-info {
    color: #c0c0ff;
    font-size: 0.85rem;
    font-weight: 300;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 圆形专辑封面容器 - 小尺寸优化 */
.album-art-container {
    width: 56px;
    height: 56px;
    margin: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2) 0%, rgba(123, 44, 191, 0.2) 100%);
    border: 2px solid rgba(0, 245, 255, 0.6);
    box-shadow: 0 5px 15px rgba(0, 245, 255, 0.3), 0 0 10px rgba(123, 44, 191, 0.2), inset 0 0 10px rgba(0, 245, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: rotate 20s linear infinite;
    animation-play-state: paused;
    flex-shrink: 0;
}

/* 播放时旋转动画 */
.album-art-container.playing {
    animation-play-state: running;
}

/* 专辑封面图片 */
.album-art {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.8;
}

/* 默认专辑封面 */
.album-art-placeholder {
    font-size: 1.5rem;
    color: rgba(0, 245, 255, 0.6);
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

/* 旋转动画 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.control-btn {
    background: rgba(0, 245, 255, 0.15);
    border: 2px solid rgba(0, 245, 255, 0.5);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00f5ff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0, 245, 255, 0.2);
    flex-shrink: 0;
}

.control-btn:hover {
    background: rgba(0, 245, 255, 0.25);
    box-shadow: 0 5px 15px rgba(0, 245, 255, 0.4);
    transform: scale(1.1);
    border-color: #00f5ff;
}

.control-btn.play {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.3) 0%, rgba(123, 44, 191, 0.3) 100%);
}

/* 进度条容器 - 小尺寸优化 */
.player-progress {
    width: 100%;
    position: relative;
    z-index: 2;
    margin-top: 12px;
    order: 4;
}

.progress-container {
    position: relative;
    margin: 0 0 5px 0;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    cursor: pointer;
    overflow: visible;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 245, 255, 0.8) 0%, rgba(123, 44, 191, 0.8) 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
    box-shadow: 0 0 8px rgba(0, 245, 255, 0.5);
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #00f5ff 0%, #7b2cbf 100%);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0, 245, 255, 0.8), 0 1px 4px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.9);
    opacity: 1;
    transition: all 0.2s ease;
    cursor: pointer;
}

.progress-bar:hover::after,
.progress-container:hover .progress-bar::after {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 18px rgba(0, 245, 255, 1), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.time-info {
    display: flex;
    justify-content: space-between;
    color: #c0c0ff;
    font-size: 0.75rem;
    margin: 0;
    position: relative;
    z-index: 2;
    font-weight: 400;
    text-shadow: 0 0 5px rgba(192, 192, 255, 0.3);
}

/* 音量控制 - 小尺寸优化 */
.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    min-width: 120px;
}

.volume-icon {
    color: #00f5ff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(0, 245, 255, 0.5);
    min-width: 16px;
    text-align: center;
}

.volume-icon:hover {
    color: #7b2cbf;
    text-shadow: 0 0 12px rgba(123, 44, 191, 0.8);
    transform: scale(1.05);
}

.volume-slider {
    width: 60px;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    cursor: pointer;
    overflow: visible;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);
}

.volume-bar {
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 245, 255, 0.8) 0%, rgba(123, 44, 191, 0.8) 100%);
    border-radius: 2px;
    width: 70%;
    transition: width 0.1s ease;
    position: relative;
    box-shadow: 0 0 6px rgba(0, 245, 255, 0.5);
}

.volume-bar::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #00f5ff 0%, #7b2cbf 100%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.8), 0 1px 4px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.9);
    opacity: 1;
    transition: all 0.2s ease;
    cursor: pointer;
}

.volume-bar:hover::after,
.volume-slider:hover .volume-bar::after {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 16px rgba(0, 245, 255, 1), 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* 响应式音乐播放器 */
@media (max-width: 768px) {
    .music-player {
        margin: 30px auto 0;
        padding: 15px 20px;
        border-radius: 20px;
    }
    
    .player-controls {
        gap: 15px;
        margin: 20px 0;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .control-btn.play {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .player-title {
        font-size: 1.1rem;
    }
    
    .player-track-info {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .music-player {
        padding: 12px 15px;
        border-radius: 16px;
    }
    
    .player-controls {
        gap: 10px;
        margin: 15px 0;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .control-btn.play {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* 在低性能设备上禁用部分动画 */
@media (max-width: 480px) and (max-height: 800px) {
    .stars,
    .particles,
    .connection-lines,
    .random-numbers {
        display: none;
    }
    
    .card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.1);
    }
}
