/* ==========================================
   摇光岁星工作室 - 星球旋转引导页
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    overflow-x: hidden;
    background: #000;
    color: #fff;
    position: relative;
    min-height: 100vh;
}

/* ==================== 星空背景 ==================== */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0a 100%);
    z-index: -2;
}

.stars-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 60px 70px, #fff, transparent),
        radial-gradient(1px 1px at 50px 50px, #ddd, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(2px 2px at 90px 10px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 3s ease-in-out infinite;
}

.stars-layer:nth-child(2) {
    animation-delay: 1s;
    opacity: 0.7;
}

.stars-layer:nth-child(3) {
    animation-delay: 2s;
    opacity: 0.5;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==================== 主容器 ==================== */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ==================== 3D星球系统 ==================== */
.solar-system {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
}

/* 中心光源 */
.sun-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,200,100,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* 星球包装器 */
.planet-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 主星球 */
.planet {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform-style: preserve-3d;
    /* 主星球不旋转，保持静止 */
    transform: rotateZ(10deg);
}

/* 星球表面 */
.planet-surface {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, #667eea 0%, #764ba2 50%, #4a148c 100%);
    box-shadow: 
        inset -40px -40px 80px rgba(0,0,0,0.6),
        inset 20px 20px 40px rgba(255,255,255,0.1),
        0 0 100px rgba(102,126,234,0.5),
        0 0 150px rgba(118,75,162,0.3);
    animation: surface-shine 8s ease-in-out infinite;
}

@keyframes surface-shine {
    0%, 100% {
        box-shadow: 
            inset -40px -40px 80px rgba(0,0,0,0.6),
            inset 20px 20px 40px rgba(255,255,255,0.1),
            0 0 100px rgba(102,126,234,0.5);
    }
    50% {
        box-shadow: 
            inset -40px -40px 80px rgba(0,0,0,0.4),
            inset 30px 30px 60px rgba(255,255,255,0.2),
            0 0 150px rgba(102,126,234,0.8);
    }
}

/* 星球大气层 */
.planet-atmosphere {
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 60%, rgba(102,126,234,0.3) 100%);
    animation: atmosphere-glow 5s ease-in-out infinite;
}

@keyframes atmosphere-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* 星球光环 - 静止不旋转 */
.planet-ring {
    position: absolute;
    width: 160%;
    height: 40%;
    top: 30%;
    left: -30%;
    border: 3px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: rotateX(75deg);
    box-shadow: 
        0 0 20px rgba(102,126,234,0.5),
        inset 0 0 20px rgba(102,126,234,0.3);
}

/* 星球云层 */
.planet-clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 30%),
        radial-gradient(ellipse at 60% 70%, rgba(255,255,255,0.08) 0%, transparent 25%),
        radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 20%);
    animation: clouds-drift 40s linear infinite;
}

@keyframes clouds-drift {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 卫星轨道 */
.orbit {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: orbit-rotate linear infinite;
}

.orbit-1 {
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    animation-duration: 15s;
}

.orbit-2 {
    width: 180%;
    height: 180%;
    top: -40%;
    left: -40%;
    animation-duration: 25s;
}

.orbit-3 {
    width: 210%;
    height: 210%;
    top: -55%;
    left: -55%;
    animation-duration: 35s;
}

@keyframes orbit-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 卫星 */
.satellite {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    top: -10px;
    left: 50%;
}

.satellite-1 {
    background: radial-gradient(circle, #ff6b6b 0%, #c92a2a 100%);
    box-shadow: 0 0 20px rgba(255,107,107,0.8);
}

.satellite-2 {
    background: radial-gradient(circle, #4dabf7 0%, #1864ab 100%);
    box-shadow: 0 0 20px rgba(77,171,247,0.8);
}

.satellite-3 {
    background: radial-gradient(circle, #51cf66 0%, #2b8a3e 100%);
    box-shadow: 0 0 20px rgba(81,207,102,0.8);
}

/* ==================== Logo和标题区域 ==================== */
.header-section {
    text-align: center;
    margin-bottom: 60px;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.main-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 0 40px rgba(102,126,234,0.6);
    animation: logo-pulse 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes logo-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102,126,234,0.3), transparent);
    z-index: 1;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* 标题文字 */
.studio-title {
    font-size: 64px;
    font-weight: bold;
    margin: 20px 0;
    letter-spacing: 8px;
}

.title-char {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-wave 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(102,126,234,0.5);
}

.title-char:nth-child(1) { animation-delay: 0s; }
.title-char:nth-child(2) { animation-delay: 0.2s; }
.title-char:nth-child(3) { animation-delay: 0.4s; }
.title-char:nth-child(4) { animation-delay: 0.6s; }

@keyframes title-wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.studio-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.7);
    margin: 15px 0;
    letter-spacing: 2px;
}

.location-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
}

.location-icon {
    filter: drop-shadow(0 0 5px rgba(102,126,234,0.8));
}

/* ==================== 导航卡片 ==================== */
.nav-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.nav-card {
    position: relative;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(102,126,234,0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.nav-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(102,126,234,0.4);
    border-color: rgba(102,126,234,0.5);
}

.nav-card:hover::before {
    opacity: 1;
}

.nav-card[data-color="blue"]:hover {
    box-shadow: 0 20px 60px rgba(77,171,247,0.5);
}

.nav-card[data-color="purple"]:hover {
    box-shadow: 0 20px 60px rgba(118,75,162,0.5);
}

.nav-card[data-color="orange"]:hover {
    box-shadow: 0 20px 60px rgba(255,127,64,0.5);
}

.nav-card[data-color="green"]:hover {
    box-shadow: 0 20px 60px rgba(81,207,102,0.5);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

.card-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

.card-link {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.card-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102,126,234,0.6);
}

/* ==================== 音乐播放器 ==================== */
.music-player-container {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 30px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.player-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    color: rgba(255,255,255,0.9);
}

.player-icon {
    font-size: 24px;
    animation: rotate-icon 3s linear infinite;
}

@keyframes rotate-icon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* APlayer 样式覆盖 - 确保所有控制按钮显示 */
.aplayer {
    background: rgba(0,0,0,0.3) !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important;
    font-family: inherit !important;
}

/* 确保专辑封面显示 */
.aplayer .aplayer-pic {
    display: block !important;
    float: left !important;
    height: 66px !important;
    width: 66px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    position: relative !important;
}

/* 确保播放按钮显示 */
.aplayer .aplayer-pic .aplayer-button {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.aplayer .aplayer-pic .aplayer-button .aplayer-play {
    display: block !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
}

.aplayer .aplayer-pic .aplayer-button .aplayer-play svg {
    display: block !important;
    opacity: 1 !important;
}

/* 播放器信息区域 */
.aplayer .aplayer-info {
    display: block !important;
    margin-left: 78px !important;
    padding: 14px 7px 7px 10px !important;
}

/* 歌曲信息 */
.aplayer .aplayer-music {
    display: block !important;
    margin-bottom: 10px !important;
}

.aplayer .aplayer-title {
    color: #fff !important;
    font-size: 16px !important;
}

.aplayer .aplayer-author {
    color: rgba(255,255,255,0.7) !important;
}

/* 控制器区域 */
.aplayer .aplayer-controller {
    display: block !important;
    position: relative !important;
}

/* 进度条 */
.aplayer .aplayer-bar-wrap {
    background: rgba(255,255,255,0.1) !important;
    display: block !important;
    margin: 0 !important;
    padding: 5px 0 !important;
}

.aplayer .aplayer-bar {
    display: block !important;
}

.aplayer .aplayer-bar .aplayer-loaded {
    background: rgba(255,255,255,0.2) !important;
}

.aplayer .aplayer-bar .aplayer-played {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.aplayer .aplayer-bar .aplayer-played .aplayer-thumb {
    background: #667eea !important;
    display: block !important;
}

/* 时间显示 */
.aplayer .aplayer-time {
    color: rgba(255,255,255,0.8) !important;
    display: inline-block !important;
}

.aplayer .aplayer-time .aplayer-time-inner {
    display: inline-block !important;
}

.aplayer .aplayer-time .aplayer-icon {
    display: inline-block !important;
    cursor: pointer !important;
}

/* 音量控制 */
.aplayer .aplayer-volume-wrap {
    display: inline-block !important;
    opacity: 0.8 !important;
}

.aplayer .aplayer-volume-wrap .aplayer-volume-bar-wrap {
    display: block !important;
}

/* 播放列表按钮 */
.aplayer .aplayer-list {
    display: inline-block !important;
    opacity: 0.8 !important;
}

/* SVG图标 */
.aplayer .aplayer-icon {
    fill: #667eea !important;
    display: inline-block !important;
    width: 100% !important;
    height: 100% !important;
}

.aplayer .aplayer-icon path {
    display: block !important;
}

.aplayer .aplayer-icon:hover {
    fill: #764ba2 !important;
}

/* 歌词样式 */
.aplayer .aplayer-lrc {
    display: block !important;
    text-shadow: 0 0 5px rgba(102,126,234,0.8);
    height: 30px !important;
    margin-top: 7px !important;
    text-align: center !important;
}

.aplayer .aplayer-lrc p {
    color: rgba(255,255,255,0.6) !important;
    font-size: 14px !important;
    line-height: 30px !important;
    height: 30px !important;
}

.aplayer .aplayer-lrc p.aplayer-lrc-current {
    color: #667eea !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-shadow: 0 0 10px rgba(102,126,234,0.8) !important;
}

/* 确保所有按钮都可见和可点击 */
.aplayer button {
    display: inline-block !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

.aplayer svg {
    display: block !important;
    opacity: 1 !important;
}

/* ==================== 打赏区域 ==================== */
.donate-section {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
}

.donate-title {
    font-size: 28px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.donate-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.donate-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: linear-gradient(135deg, rgba(102,126,234,0.2) 0%, rgba(118,75,162,0.2) 100%);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.donate-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102,126,234,0.5);
    border-color: rgba(102,126,234,0.8);
}

.donate-icon {
    font-size: 24px;
}

/* ==================== 二维码弹窗 ==================== */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.qr-modal.active {
    display: flex;
}

.qr-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

.qr-content {
    position: relative;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    backdrop-filter: blur(20px);
    animation: modal-appear 0.3s ease-out;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.qr-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.qr-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.qr-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ==================== 底部信息 ==================== */
.footer-section {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-quote {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
    font-style: italic;
}

.footer-author {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.footer-badge {
    max-height: 20px;
    vertical-align: middle;
}

.footer-links a {
    color: rgba(102,126,234,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #667eea;
}

.divider {
    color: rgba(255,255,255,0.3);
}

/* ==================== 粒子画布 ==================== */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .studio-title {
        font-size: 42px;
        letter-spacing: 4px;
    }
    
    .studio-subtitle {
        font-size: 16px;
    }
    
    .solar-system {
        height: 350px;
    }
    
    .planet-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .nav-cards-container {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .donate-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .donate-btn {
        width: 200px;
        justify-content: center;
    }
}
