/* 共享样式文件 - 下载和邀请页面通用样式 */
:root {
    --color-primary: #7c3aed;
    --color-primary-2: #4f46e5;
    --color-accent: #f59e0b;
    --color-apple: #0A84FF;
    --color-android-1: #34A853;
    --color-android-2: #4285F4;
    --color-text: #1f2937;
    --color-text-weak: #6b7280;
    --bg-gradient: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    --card-bg: rgba(255,255,255,0.95);
    --card-blur: 12px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-lg: 0 16px 40px rgba(31,41,55,0.25);
    --shadow-md: 0 10px 24px rgba(31,41,55,0.18);
    --shadow-sm: 0 6px 16px rgba(31,41,55,0.12);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", 'PingFang SC', 'Hiragino Sans GB', 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--color-text);
    position: relative;
    overflow-x: hidden;
}

/* 祥云特效容器 */
.clouds-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* 测试样式 - 确保祥云可见 */
.clouds-container::before {
    content: '☁️';
    position: absolute;
    top: 20%;
    left: 10%;
    font-size: 30px;
    animation: float-test 10s infinite linear;
    opacity: 0.7;
}

@keyframes float-test {
    0% { transform: translateX(-50px); }
    100% { transform: translateX(calc(100vw + 50px)); }
}

/* 祥云基础样式 */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    opacity: 1;
    filter: blur(3px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* 大祥云 */
.cloud-large {
    width: 120px;
    height: 40px;
    animation: float-large 25s infinite linear;
}

.cloud-large::before {
    width: 80px;
    height: 30px;
    top: -15px;
    left: 10px;
}

.cloud-large::after {
    width: 60px;
    height: 25px;
    top: -10px;
    right: 15px;
}

/* 中祥云 */
.cloud-medium {
    width: 80px;
    height: 30px;
    animation: float-medium 20s infinite linear;
}

.cloud-medium::before {
    width: 50px;
    height: 20px;
    top: -10px;
    left: 8px;
}

.cloud-medium::after {
    width: 40px;
    height: 18px;
    top: -8px;
    right: 10px;
}

/* 小祥云 */
.cloud-small {
    width: 50px;
    height: 20px;
    animation: float-small 15s infinite linear;
}

.cloud-small::before {
    width: 30px;
    height: 15px;
    top: -8px;
    left: 5px;
}

.cloud-small::after {
    width: 25px;
    height: 12px;
    top: -6px;
    right: 8px;
}

/* 祥云飘动动画 */
@keyframes float-large {
    0% {
        transform: translateX(-150px) translateY(0px);
    }
    100% {
        transform: translateX(calc(100vw + 150px)) translateY(-20px);
    }
}

@keyframes float-medium {
    0% {
        transform: translateX(-100px) translateY(0px);
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(15px);
    }
}

@keyframes float-small {
    0% {
        transform: translateX(-80px) translateY(0px);
    }
    100% {
        transform: translateX(calc(100vw + 80px)) translateY(-10px);
    }
}

/* 祥云位置分布 */
.cloud:nth-child(1) { top: 10%; animation-delay: 0s; }
.cloud:nth-child(2) { top: 20%; animation-delay: -5s; }
.cloud:nth-child(3) { top: 35%; animation-delay: -10s; }
.cloud:nth-child(4) { top: 50%; animation-delay: -15s; }
.cloud:nth-child(5) { top: 65%; animation-delay: -20s; }
.cloud:nth-child(6) { top: 80%; animation-delay: -8s; }
.cloud:nth-child(7) { top: 15%; animation-delay: -12s; }
.cloud:nth-child(8) { top: 45%; animation-delay: -18s; }

.container {
    max-width: 460px;
    margin: 0 auto;
    padding: 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

/* 卡片样式 */
.card {
    background: var(--card-bg);
    opacity: 0.8;
    backdrop-filter: blur(var(--card-blur));
    border-radius: var(--radius-lg);
    padding: 24px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

/* 围绕边框运动的闪光效果 */
.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        transparent,
        transparent,
        rgba(124, 58, 237, 0.6),
        rgba(255, 255, 255, 0.8),
        rgba(124, 58, 237, 0.6),
        transparent,
        transparent
    );
    border-radius: var(--radius-lg);
    z-index: -1;
    animation: border-glow-rotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* 内层背景确保内容可见 */
.card::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--card-bg);
    border-radius: calc(var(--radius-lg) - 2px);
    z-index: -1;
}

@keyframes border-glow-rotate {
    0% {
        background: conic-gradient(
            from 0deg,
            transparent 0deg,
            transparent 60deg,
            rgba(124, 58, 237, 0.4) 120deg,
            rgba(255, 255, 255, 0.8) 180deg,
            rgba(124, 58, 237, 0.4) 240deg,
            transparent 300deg,
            transparent 360deg
        );
    }
    100% {
        background: conic-gradient(
            from 360deg,
            transparent 0deg,
            transparent 60deg,
            rgba(124, 58, 237, 0.4) 120deg,
            rgba(255, 255, 255, 0.8) 180deg,
            rgba(124, 58, 237, 0.4) 240deg,
            transparent 300deg,
            transparent 360deg
        );
    }
}

/* 额外的闪光粒子效果 */
.card .sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: sparkle-dance 2s ease-in-out infinite;
}

.card .sparkle:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card .sparkle:nth-child(2) {
    top: 10%;
    right: 10%;
    animation-delay: 0.5s;
}

.card .sparkle:nth-child(3) {
    bottom: 10%;
    right: 10%;
    animation-delay: 1s;
}

.card .sparkle:nth-child(4) {
    bottom: 10%;
    left: 10%;
    animation-delay: 1.5s;
}

@keyframes sparkle-dance {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

/* 增强的悬停效果 */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(124, 58, 237, 0.2);
}

/* 脉冲光晕效果 */
.card:hover::after {
    box-shadow: 
        inset 0 0 20px rgba(124, 58, 237, 0.1),
        inset 0 0 40px rgba(255, 255, 255, 0.05);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            inset 0 0 20px rgba(124, 58, 237, 0.1),
            inset 0 0 40px rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow: 
            inset 0 0 30px rgba(124, 58, 237, 0.2),
            inset 0 0 60px rgba(255, 255, 255, 0.1);
    }
}

/* 应用图标样式 */
.app-icon {
    width: 160px;
    height: 160px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    padding: 16px;
}

.app-icon img {
    width: 128px;
    height: 128px;
    object-fit: contain;
    border-radius: 20px;
}

/* 应用信息样式 */
.app-name {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #111827;
    text-align: center;
    margin-bottom: 8px;
}

.app-subtitle {
    font-size: 14px;
    color: var(--color-text-weak);
    margin-bottom: 18px;
    line-height: 1.6;
    text-align: center;
}

.app-version {
    color: var(--color-text-weak);
    margin-bottom: 20px;
    font-size: 13px;
    text-align: center;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary-ios {
    background: linear-gradient(45deg, var(--color-apple), #5856D6);
    color: white;
}

.btn-primary-android {
    background: linear-gradient(45deg, var(--color-android-1), var(--color-android-2));
    color: white;
}

.btn-secondary {
    background: rgba(255,255,255,0.8);
    color: var(--color-text);
    border: 1px solid rgba(0,0,0,0.1);
}

/* 下载按钮容器 */
.download-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px auto 18px;
    flex-wrap: wrap;
}

/* 功能列表样式 */
.features {
    background: rgba(255,255,255,0.85);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 18px;
}

.features h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    text-align: center;
}

.features ul {
    list-style: none;
    padding: 0;
}

.features li {
    padding: 6px 0;
    color: var(--color-text-weak);
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* 邀请码样式 */
.invite-section {
    text-align: center;
    margin-top: 20px;
}

.invite-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.invite-code-display {
    background: rgba(255,255,255,0.9);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin: 12px 0;
    border: 1px dashed var(--color-primary);
}

.invite-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 32px;
    font-weight: 800;
    color: var(--color-accent);
    background: rgba(255,255,255,0.8);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    display: inline-block;
    letter-spacing: 1px;
    margin: 6px 0;
}

/* 二维码样式 */
.qr-section {
    text-align: center;
    margin: 20px 0;
}

.qr-code {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.9);
    border-radius: var(--radius-md);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--color-text-weak);
    text-align: center;
    line-height: 1.4;
}

.qr-text {
    font-size: 14px;
    color: var(--color-text-weak);
}

/* 功能预览样式 */
.features-preview {
    margin-top: 20px;
}

.features-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    text-align: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.feature-name {
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
    font-size: 18px;
}

.feature-desc {
    font-size: 14px;
    color: var(--color-text-weak);
    line-height: 1.4;
}

/* 添加平滑过渡效果 */
.app-icon,
.app-icon img,
.app-name,
.features-title,
.btn,
.card {
    transition: all 0.3s ease;
}

/* 响应式设计 - 多断点平滑过渡 */
/* 平板横屏 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .app-name {
        font-size: 30px;
    }
    
    .features-title {
        font-size: 30px;
    }
    
    .app-icon {
        width: 140px;
        height: 140px;
        padding: 14px;
    }
    
    .app-icon img {
        width: 112px;
        height: 112px;
    }
}

/* 平板竖屏 */
@media (max-width: 600px) {
    .container {
        padding: 18px;
    }
    
    .app-name {
        font-size: 26px;
    }
    
    .features-title {
        font-size: 28px;
    }
    
    .download-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .app-icon {
        width: 130px;
        height: 130px;
        padding: 13px;
    }
    
    .app-icon img {
        width: 104px;
        height: 104px;
    }
}

/* 手机横屏 */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }
    
    .card {
        padding: 20px;
    }
    
    .btn {
        font-size: 16px;
        padding: 12px 24px;
        min-width: 180px;
    }
    
    .download-buttons {
        gap: 8px;
    }
    
    .app-name {
        font-size: 24px;
    }
    
    .features-title {
        font-size: 26px;
    }
    
    .app-icon {
        width: 120px;
        height: 120px;
        padding: 12px;
    }
    
    .app-icon img {
        width: 96px;
        height: 96px;
    }
}

/* 小屏手机 */
@media (max-width: 360px) {
    .container {
        padding: 12px;
    }
    
    .card {
        padding: 16px;
    }
    
    .app-name {
        font-size: 22px;
    }
    
    .features-title {
        font-size: 24px;
    }
    
    .btn {
        font-size: 15px;
        padding: 10px 20px;
        min-width: 160px;
    }
    
    .app-icon {
        width: 100px;
        height: 100px;
        padding: 10px;
    }
    
    .app-icon img {
        width: 80px;
        height: 80px;
    }
}

/* ========== 玄学神秘感特效 ========== */

/* ========== 增强星空背景特效 ========== */
.mystical-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    background: 
        radial-gradient(ellipse at top, rgba(29, 78, 216, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

/* 银河背景 */
.mystical-stars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 800px 600px at 50% 20%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 1200px 400px at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: galaxy-drift 60s linear infinite;
}

@keyframes galaxy-drift {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(1.1); }
}

/* 基础星星 */
.star {
    position: absolute;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

/* 小星星 */
.star.small {
    width: 1px;
    height: 1px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

/* 中等星星 */
.star.medium {
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}

/* 大星星 */
.star.large {
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* 彩色星星 */
.star.colored {
    width: 2px;
    height: 2px;
    animation: color-twinkle 4s infinite;
}

.star.blue { background: #60a5fa; box-shadow: 0 0 4px #60a5fa; }
.star.purple { background: #a78bfa; box-shadow: 0 0 4px #a78bfa; }
.star.gold { background: #fbbf24; box-shadow: 0 0 4px #fbbf24; }
.star.pink { background: #f472b6; box-shadow: 0 0 4px #f472b6; }

/* 闪烁动画 */
@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes color-twinkle {
    0%, 100% { opacity: 0.4; transform: scale(1); filter: brightness(1); }
    25% { opacity: 0.8; transform: scale(1.1); filter: brightness(1.2); }
    50% { opacity: 1; transform: scale(1.3); filter: brightness(1.5); }
    75% { opacity: 0.8; transform: scale(1.1); filter: brightness(1.2); }
}

/* 流星特效 */
.shooting-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(45deg, #fff, transparent);
    border-radius: 50%;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
    transform-origin: 0 0;
    animation: shooting 3s linear infinite;
}

.shooting-star:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: shoot1 8s linear infinite;
}

.shooting-star:nth-child(2) {
    top: 40%;
    left: 30%;
    animation: shoot2 12s linear infinite;
    animation-delay: 3s;
}

.shooting-star:nth-child(3) {
    top: 60%;
    left: 70%;
    animation: shoot3 10s linear infinite;
    animation-delay: 6s;
}

@keyframes shooting {
    0% { transform: rotate(45deg) scaleX(0); opacity: 1; }
    70% { transform: rotate(45deg) scaleX(1); opacity: 1; }
    100% { transform: rotate(45deg) scaleX(1); opacity: 0; }
}

@keyframes shoot1 {
    0% { transform: translateX(0) translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(300px) translateY(300px); opacity: 0; }
}

@keyframes shoot2 {
    0% { transform: translateX(0) translateY(0); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateX(-250px) translateY(250px); opacity: 0; }
}

@keyframes shoot3 {
    0% { transform: translateX(0) translateY(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(-200px) translateY(200px); opacity: 0; }
}

/* 星座连线特效 */
.constellation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.constellation-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.2) 100%);
    transform-origin: 0 0;
    animation: constellation-glow 6s ease-in-out infinite;
}

@keyframes constellation-glow {
    0%, 100% { opacity: 0.2; box-shadow: 0 0 2px rgba(255, 255, 255, 0.2); }
    50% { opacity: 0.6; box-shadow: 0 0 4px rgba(255, 255, 255, 0.4); }
}

/* 星云特效 */
.nebula {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

.nebula-cloud {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: nebula-drift 20s ease-in-out infinite;
}

.nebula-cloud.purple {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
}

.nebula-cloud.blue {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

.nebula-cloud.pink {
    background: radial-gradient(circle, rgba(244, 114, 182, 0.06) 0%, transparent 70%);
}

@keyframes nebula-drift {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    33% { transform: scale(1.2) rotate(120deg); opacity: 0.5; }
    66% { transform: scale(0.8) rotate(240deg); opacity: 0.4; }
}

/* 脉冲星特效 */
.pulsar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.pulsar-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0.8) 30%, transparent 70%);
    border-radius: 50%;
    animation: pulsar-pulse 2s ease-in-out infinite;
}

.pulsar-star::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pulsar-ring 2s ease-in-out infinite;
}

.pulsar-star::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: pulsar-ring 2s ease-in-out infinite 0.5s;
}

@keyframes pulsar-pulse {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1); 
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2); 
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

@keyframes pulsar-ring {
    0% { 
        opacity: 0; 
        transform: scale(0.5); 
    }
    50% { 
        opacity: 0.3; 
        transform: scale(1); 
    }
    100% { 
        opacity: 0; 
        transform: scale(1.5); 
    }
}

/* 星团特效 */
.star-cluster {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.cluster {
    position: absolute;
    width: 80px;
    height: 80px;
    animation: cluster-rotate 30s linear infinite;
}

.cluster-star {
    position: absolute;
    width: 1px;
    height: 1px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: cluster-twinkle 4s ease-in-out infinite;
}

@keyframes cluster-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes cluster-twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.9; }
}

/* 深空背景层 */
.deep-space {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -3;
    background: 
        radial-gradient(ellipse 400px 300px at 20% 30%, rgba(29, 78, 216, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 300px 400px at 80% 70%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 500px 200px at 50% 90%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
    animation: deep-space-drift 120s ease-in-out infinite;
}

@keyframes deep-space-drift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(90deg); }
    50% { transform: scale(0.9) rotate(180deg); }
    75% { transform: scale(1.05) rotate(270deg); }
}

/* 彗星特效 */
.comet {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.comet-trail {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0.8) 20%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
}

.comet-trail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0.6) 20%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    transform-origin: 0 50%;
    transform: rotate(45deg);
}

.comet-trail.active {
    animation: comet-fly 15s linear infinite;
}

@keyframes comet-fly {
    0% { 
        opacity: 0; 
        transform: translateX(-100px) translateY(-100px) scale(0); 
    }
    10% { 
        opacity: 1; 
        transform: translateX(0) translateY(0) scale(1); 
    }
    90% { 
        opacity: 1; 
        transform: translateX(calc(100vw + 200px)) translateY(calc(100vh + 200px)) scale(1); 
    }
    100% { 
        opacity: 0; 
        transform: translateX(calc(100vw + 300px)) translateY(calc(100vh + 300px)) scale(0); 
    }
}

/* 神秘光晕特效 */
.mystical-aura {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.05) 30%, transparent 70%);
    border-radius: 50%;
    animation: pulse-aura 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes pulse-aura {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.6; }
}

/* 八卦旋转特效 */
.bagua-container {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

.bagua {
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="none" stroke="%23ffffff" stroke-width="2"/><path d="M50 5 L50 95 M5 50 L95 50 M21.5 21.5 L78.5 78.5 M78.5 21.5 L21.5 78.5" stroke="%23ffffff" stroke-width="1" opacity="0.6"/></svg>') center/contain no-repeat;
    animation: rotate-bagua 20s linear infinite;
}

@keyframes rotate-bagua {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 符文闪烁特效 */
.rune-symbols {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.rune {
    position: absolute;
    font-size: 24px;
    color: rgba(124, 58, 237, 0.3);
    animation: rune-glow 6s ease-in-out infinite;
    font-family: serif;
}

.rune:nth-child(1) { top: 15%; left: 10%; content: "☰"; animation-delay: 0s; }
.rune:nth-child(2) { top: 25%; right: 15%; content: "☱"; animation-delay: 1s; }
.rune:nth-child(3) { bottom: 30%; left: 20%; content: "☲"; animation-delay: 2s; }
.rune:nth-child(4) { bottom: 20%; right: 10%; content: "☳"; animation-delay: 3s; }
.rune:nth-child(5) { top: 50%; left: 5%; content: "☴"; animation-delay: 4s; }
.rune:nth-child(6) { top: 60%; right: 5%; content: "☵"; animation-delay: 5s; }

.rune::before {
    content: attr(data-symbol);
}

@keyframes rune-glow {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); text-shadow: 0 0 10px rgba(124, 58, 237, 0.5); }
}

/* 增强祥云特效 */
.enhanced-clouds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.mystical-cloud {
    position: absolute;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(124, 58, 237, 0.05));
    border-radius: 50px;
    filter: blur(2px);
    opacity: 0.6;
}

.mystical-cloud::before,
.mystical-cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: inherit;
    filter: blur(1px);
}

.mystical-cloud.large {
    width: 120px;
    height: 60px;
    animation: float-mystical-large 25s ease-in-out infinite;
}

.mystical-cloud.medium {
    width: 80px;
    height: 40px;
    animation: float-mystical-medium 20s ease-in-out infinite;
}

.mystical-cloud.small {
    width: 50px;
    height: 25px;
    animation: float-mystical-small 15s ease-in-out infinite;
}

.mystical-cloud.large::before {
    width: 80%;
    height: 80%;
    top: -20%;
    left: 10%;
}

.mystical-cloud.large::after {
    width: 60%;
    height: 60%;
    top: -10%;
    right: 15%;
}

.mystical-cloud.medium::before {
    width: 70%;
    height: 70%;
    top: -15%;
    left: 15%;
}

.mystical-cloud.medium::after {
    width: 50%;
    height: 50%;
    top: -5%;
    right: 20%;
}

.mystical-cloud.small::before {
    width: 60%;
    height: 60%;
    top: -10%;
    left: 20%;
}

.mystical-cloud.small::after {
    width: 40%;
    height: 40%;
    top: 0%;
    right: 25%;
}

/* 神秘祥云动画 */
@keyframes float-mystical-large {
    0%, 100% { transform: translateX(-100px) translateY(0px) rotate(0deg); opacity: 0.4; }
    25% { transform: translateX(calc(100vw + 50px)) translateY(-20px) rotate(90deg); opacity: 0.6; }
    50% { transform: translateX(calc(100vw + 100px)) translateY(10px) rotate(180deg); opacity: 0.4; }
    75% { transform: translateX(-50px) translateY(-10px) rotate(270deg); opacity: 0.6; }
}

@keyframes float-mystical-medium {
    0%, 100% { transform: translateX(calc(100vw + 50px)) translateY(0px) rotate(0deg); opacity: 0.5; }
    25% { transform: translateX(-50px) translateY(15px) rotate(120deg); opacity: 0.7; }
    50% { transform: translateX(-100px) translateY(-15px) rotate(240deg); opacity: 0.5; }
    75% { transform: translateX(calc(100vw)) translateY(5px) rotate(360deg); opacity: 0.7; }
}

@keyframes float-mystical-small {
    0%, 100% { transform: translateX(-50px) translateY(10px) rotate(0deg); opacity: 0.6; }
    33% { transform: translateX(calc(50vw)) translateY(-10px) rotate(180deg); opacity: 0.8; }
    66% { transform: translateX(calc(100vw + 25px)) translateY(5px) rotate(360deg); opacity: 0.6; }
}

/* 神秘粒子特效 */
.mystical-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.8), transparent);
    border-radius: 50%;
    animation: float-particle 8s linear infinite;
}

.particle:nth-child(odd) {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.6), transparent);
}

@keyframes float-particle {
    0% { transform: translateY(100vh) translateX(0px) scale(0); opacity: 0; }
    10% { opacity: 1; transform: scale(1); }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(100px) scale(0); opacity: 0; }
}

/* ========== 神秘感交互效果 ========== */

/* 应用图标神秘悬停效果 */
.app-icon:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 20px rgba(124, 58, 237, 0.4),
        0 0 40px rgba(124, 58, 237, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: mystical-glow 2s ease-in-out infinite;
}

@keyframes mystical-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.4), 0 0 40px rgba(124, 58, 237, 0.2); }
    50% { box-shadow: 0 0 30px rgba(124, 58, 237, 0.6), 0 0 60px rgba(124, 58, 237, 0.3); }
}

/* 按钮神秘悬停效果 */
.btn:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, #9333ea 100%);
    box-shadow: 
        0 8px 25px rgba(124, 58, 237, 0.3),
        0 0 20px rgba(124, 58, 237, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.02);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn:active {
    transform: translateY(0) scale(1);
    box-shadow: 
        0 4px 15px rgba(124, 58, 237, 0.2),
        0 0 10px rgba(124, 58, 237, 0.3);
}

/* 卡片神秘悬停效果 */
.card:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 30px rgba(124, 58, 237, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* 功能图标神秘悬停效果 */
.feature-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 0 15px rgba(124, 58, 237, 0.4),
        0 0 30px rgba(124, 58, 237, 0.2);
    animation: icon-pulse 1.5s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1.1) rotate(5deg); }
    50% { transform: scale(1.15) rotate(-5deg); }
}

/* 功能列表项神秘悬停效果 */
.feature-list li:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(124, 58, 237, 0.02) 100%);
    border-left: 3px solid var(--color-primary);
    padding-left: 13px;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.1);
}

.feature-list li:hover .feature-icon {
    animation: icon-glow 2s ease-in-out infinite;
}

@keyframes icon-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2) drop-shadow(0 0 8px rgba(124, 58, 237, 0.6)); }
}

/* 标题神秘效果 */
.features-title:hover {
    text-shadow: 
        0 0 10px rgba(124, 58, 237, 0.5),
        0 0 20px rgba(124, 58, 237, 0.3),
        0 0 30px rgba(124, 58, 237, 0.1);
    transform: scale(1.02);
    cursor: default;
}

.app-name:hover {
    text-shadow: 
        0 0 8px rgba(124, 58, 237, 0.4),
        0 0 16px rgba(124, 58, 237, 0.2);
    transform: scale(1.01);
    cursor: default;
}

/* 邀请码神秘效果 */
.invite-code-display:hover {
    text-shadow: 
        0 0 10px rgba(233, 30, 99, 0.6),
        0 0 20px rgba(233, 30, 99, 0.3);
    transform: scale(1.05);
    animation: code-shimmer 2s ease-in-out infinite;
}

@keyframes code-shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2) hue-rotate(10deg); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .mystical-aura {
        width: 200px;
        height: 200px;
        margin: -100px 0 0 -100px;
    }
    
    .bagua-container {
        width: 150px;
        height: 150px;
        margin: -75px 0 0 -75px;
    }
    
    .rune {
        font-size: 18px;
    }
    
    .mystical-cloud.large {
        width: 80px;
        height: 40px;
    }
    
    .mystical-cloud.medium {
        width: 60px;
        height: 30px;
    }
    
    .mystical-cloud.small {
        width: 40px;
        height: 20px;
    }
    
    /* 移动端减少悬停效果强度 */
    .app-icon:hover,
    .btn:hover,
    .card:hover {
        transform: none;
    }
    
    .feature-icon:hover {
        transform: scale(1.05);
    }
}