/* 
 * 星辰加密系统 - 样式表
 * 版本: v1.0.1
 * 最后更新: 2024-06-07
 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html {
    height: 100%;
    width: 100%;
}

body {
    color: #fff;
    position: relative;
    height: 100%;
    background: #000;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 星空背景 */
.stars, .twinkling, .clouds {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.stars {
    background: #000 url('../img/stars.png') repeat top center;
    z-index: -3;
    animation: stars-depth 50s linear infinite;
    transform: translateZ(0);
    opacity: 0.7;
}

@keyframes stars-depth {
    from { background-position: 0 0; }
    to { background-position: 0 10000px; }
}

.twinkling {
    background: transparent url('../img/twinkling.png') repeat top center;
    z-index: -2;
    animation: move-twink-back 200s linear infinite;
    opacity: 0.4;
}

.clouds {
    background: transparent url('../img/clouds.png') repeat top center;
    z-index: -1;
    animation: move-clouds-back 300s linear infinite;
    opacity: 0.2;
}

@keyframes move-twink-back {
    from { transform: translateY(0); }
    to { transform: translateY(1000px); }
}

@keyframes move-clouds-back {
    from { transform: translateY(0); }
    to { transform: translateY(1000px); }
}

/* 容器样式 */
.container {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    background-color: rgba(13, 17, 23, 0.85);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(139, 233, 253, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: container-glow 4s ease-in-out infinite alternate;
}

@keyframes container-glow {
    from { box-shadow: 0 0 30px rgba(139, 233, 253, 0.15); }
    to { box-shadow: 0 0 40px rgba(139, 233, 253, 0.25), 0 0 60px rgba(189, 147, 249, 0.1); }
}

/* 头部样式 */
header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #8be9fd;
    text-shadow: 0 0 10px #8be9fd, 0 0 20px #8be9fd;
}

header p {
    font-size: 1.2rem;
    color: #bd93f9;
}

/* 导航样式 */
nav {
    margin: 20px 0;
    position: relative;
    z-index: 20;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #f8f8f2;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(40, 42, 54, 0.8);
    border: 2px solid transparent;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #8be9fd, #bd93f9, #ff79c6);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 233, 253, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: starPulse 2s ease-in-out infinite;
    pointer-events: none;
}

nav ul li a:hover, nav ul li a.active {
    background: rgba(40, 42, 54, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(139, 233, 253, 0.2);
    text-shadow: 0 0 8px rgba(248, 248, 242, 0.5);
}

nav ul li a:hover::before, nav ul li a.active::before {
    opacity: 1;
}

nav ul li a:active {
    transform: translateY(1px);
}

@keyframes starPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

/* 主要内容区域 */
main {
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    overflow: visible;
}

section {
    display: none;
    animation: fadeIn 0.5s ease;
}

section.active {
    display: block;
}

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

section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #50fa7b;
    font-size: 2rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #f8f8f2;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    background-color: rgba(40, 42, 54, 0.8);
    border: 1px solid #6272a4;
    color: #f8f8f2;
    font-size: 1rem;
    min-height: 120px;
    resize: vertical;
    transition: all 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: #bd93f9;
    box-shadow: 0 0 10px rgba(189, 147, 249, 0.5);
    animation: textarea-focus 2s ease-in-out infinite;
}

@keyframes textarea-focus {
    0% { border-color: #bd93f9; box-shadow: 0 0 10px rgba(189, 147, 249, 0.5); }
    50% { border-color: #ff79c6; box-shadow: 0 0 15px rgba(255, 121, 198, 0.6); }
    100% { border-color: #bd93f9; box-shadow: 0 0 10px rgba(189, 147, 249, 0.5); }
}

.form-group select {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    background-color: rgba(40, 42, 54, 0.8);
    border: 1px solid #6272a4;
    color: #f8f8f2;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: #bd93f9;
    box-shadow: 0 0 10px rgba(189, 147, 249, 0.5);
}

.password-input {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    background-color: rgba(40, 42, 54, 0.8);
    border: 1px solid #6272a4;
    color: #f8f8f2;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 5px rgba(139, 233, 253, 0.2);
}

.password-input:focus {
    outline: none;
    border-color: #bd93f9;
    box-shadow: 0 0 15px rgba(189, 147, 249, 0.6);
    background-color: rgba(40, 42, 54, 0.9);
}

.password-input::placeholder {
    color: rgba(248, 248, 242, 0.5);
}

.form-group:has(.password-input) {
    position: relative;
    overflow: hidden;
}

.form-group:has(.password-input)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -50px;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 233, 253, 0.3), transparent);
    animation: password-sparkle 4s linear infinite;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-group:has(.password-input:focus)::before {
    opacity: 1;
}

@keyframes password-sparkle {
    0% { transform: translateX(-100%) translateY(-50%) rotate(45deg); }
    100% { transform: translateX(200%) translateY(-50%) rotate(45deg); }
}

/* 滑块样式 */
.slider-container {
    display: flex;
    align-items: center;
}

.slider-container input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #ff5555, #ff79c6, #bd93f9, #8be9fd, #50fa7b);
    outline: none;
    margin-right: 15px;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f8f8f2;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(139, 233, 253, 0.6);
    background: linear-gradient(45deg, #f8f8f2, #8be9fd);
}

.slider-container span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f8f8f2;
    min-width: 30px;
    text-align: center;
}

/* 按钮样式 */
.btn {
    display: block;
    width: 200px;
    margin: 30px auto;
    padding: 12px 20px;
    background: linear-gradient(45deg, #ff5555, #ff79c6);
    border: none;
    border-radius: 25px;
    color: #f8f8f2;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 121, 198, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 121, 198, 0.6);
    background: linear-gradient(45deg, #ff79c6, #ff5555);
    animation: btn-glow 1.5s ease-in-out infinite alternate;
}

@keyframes btn-glow {
    from { box-shadow: 0 8px 20px rgba(255, 121, 198, 0.6); }
    to { box-shadow: 0 8px 25px rgba(255, 121, 198, 0.8), 0 0 10px rgba(255, 85, 85, 0.5); }
}

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

.btn-secondary {
    background: linear-gradient(45deg, #6272a4, #8be9fd);
    width: 150px;
    padding: 8px 15px;
    font-size: 0.9rem;
    margin: 15px auto;
    display: block;
    border: none;
    border-radius: 20px;
    color: #f8f8f2;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(139, 233, 253, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 233, 253, 0.6);
}

/* 结果容器样式优化 */
.result-container {
    margin-top: 30px;
    padding: 20px;
    background: rgba(40, 42, 54, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(139, 233, 253, 0.2);
    position: relative;
}

/* 确保解密动画容器可以显示完整内容 */
#decrypt-result .decryption-animation {
    overflow: visible !important;
    z-index: 10;
    height: 180px;
    margin-bottom: 15px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* 确保加密动画容器可以显示完整内容 */
#encrypt-result .encryption-animation {
    overflow: visible !important;
    z-index: 10;
    height: 180px;
    margin-bottom: 15px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.result-container.hidden {
    display: none;
}

.result-container h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #ff79c6;
    font-size: 1.5rem;
}

.result-text {
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.result-text p {
    margin-bottom: 10px;
    color: #f8f8f2;
}

.result-text textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    background-color: rgba(40, 42, 54, 0.8);
    border: 1px solid #6272a4;
    color: #f8f8f2;
    font-size: 1rem;
    min-height: 120px;
    resize: vertical;
    transition: all 0.3s ease;
    overflow-y: auto;
    max-height: 300px;
}

/* 统一加密和解密动画 */
.encryption-animation, .decryption-animation {
    height: 180px;
    position: relative;
    margin: 10px 0;
    overflow: visible;
    z-index: 10;
    perspective: 1000px;
    border-radius: 10px;
    background: radial-gradient(circle at center, rgba(30, 35, 80, 0.6), rgba(20, 25, 40, 0.4));
    box-shadow: 0 0 25px rgba(139, 233, 253, 0.2);
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* 确保两种动画表现完全一致 */
.encryption-animation *, .decryption-animation * {
    animation-duration: inherit;
    animation-timing-function: inherit;
    animation-iteration-count: inherit;
}

/* 行星样式优化 */
.planet {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 30% 30%, #8be9fd, #6272a4);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(139, 233, 253, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.6);
    z-index: 15;
    animation: pulse 3s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

/* 轨道样式优化 */
.orbit {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(139, 233, 253, 0.5);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 15s linear infinite;
    z-index: 12;
    will-change: transform;
}

/* 优化第二轨道尺寸 */
.secondary-orbit {
    width: 170px;
    height: 170px;
    border: 1px dotted rgba(189, 147, 249, 0.4);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 25s linear infinite reverse;
    z-index: 11;
    will-change: transform;
}

/* 简化卫星动画 */
.satellite {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 30% 30%, #ff79c6, #bd93f9);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 121, 198, 0.7);
    z-index: 14;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: satellite-orbit 15s linear infinite;
    will-change: transform;
}

/* 简化星云效果 */
.nebula {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(255, 121, 198, 0.08), transparent 70%),
        radial-gradient(ellipse at 70% 60%, rgba(189, 147, 249, 0.08), transparent 70%);
    mix-blend-mode: screen;
    z-index: 11;
    animation: nebula-pulse 8s ease-in-out infinite alternate;
    will-change: opacity;
}

/* 使用更高效的星空背景样式 */
.stars-small {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 10% 10%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 20% 50%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 30% 30%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 70% 70%, rgba(255, 255, 255, 0.5), transparent);
    z-index: 10;
    animation: twinkle 4s ease-in-out infinite alternate;
    will-change: opacity;
}

/* 优化流星样式 */
.shooting-star {
    position: absolute;
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8), rgba(139, 233, 253, 0.4));
    transform: rotate(-45deg);
    z-index: 16;
    filter: drop-shadow(0 0 1px #fff);
    border-radius: 100px;
    overflow: hidden;
    will-change: transform, opacity;
}

/* 减少流星数量和复杂度 */
.encryption-animation .shooting-star:nth-child(1),
.decryption-animation .shooting-star:nth-child(1) {
    top: 30%;
    left: -80px;
    animation: shooting 3s linear 1s infinite;
}

.encryption-animation .shooting-star:nth-child(2),
.decryption-animation .shooting-star:nth-child(2) {
    top: 50%;
    left: -80px;
    animation: shooting 4s linear 2.5s infinite;
    width: 60px;
}

.encryption-animation .shooting-star:nth-child(3),
.decryption-animation .shooting-star:nth-child(3) {
    top: 70%;
    left: -80px;
    animation: shooting 5s linear 0.5s infinite;
    width: 100px;
}

/* 使用更高效的动画关键帧 */
@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes twinkle {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

@keyframes shooting {
    0% {
        transform: translate(-50px, -50px) rotate(-45deg);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(150px, 150px) rotate(-45deg);
        opacity: 0;
    }
}

@keyframes satellite-orbit {
    0% { transform: rotate(0deg) translateX(60px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
}

@keyframes nebula-pulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.5; }
}

/* 关于页面样式 */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.galaxy {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('https://i.imgur.com/2kJT5gM.jpg') center/cover no-repeat;
    animation: galaxy-rotate 60s linear infinite;
}

@keyframes galaxy-rotate {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1.2); }
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text h3 {
    color: #ff79c6;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #f8f8f2;
}

.about-text ul {
    list-style-type: none;
    margin-bottom: 20px;
}

.about-text ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #f8f8f2;
}

.about-text ul li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: #50fa7b;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}    

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .stars, .twinkling, .clouds {
        position: fixed;
        width: 200%;
        height: 200%;
        transform-origin: top left;
    }

    .stars {
        background-size: 100px 100px;
    }

    .twinkling {
        background-size: 800px 800px;
    }

    .clouds {
        background-size: 1000px 1000px;
        opacity: 0.3;
    }

    .container {
        padding: 10px;
        width: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    nav {
        margin: 15px 0;
    }
    
    nav ul {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 10px;
    }
    
    nav ul li {
        margin: 0;
        width: 30%;
    }
    
    nav ul li a {
        display: block;
        text-align: center;
        padding: 8px 5px;
        width: 100%;
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 1rem;
    }
    
    .form-group textarea {
        min-height: 100px;
        font-size: 16px; /* 防止iOS上自动缩放 */
    }
    
    .form-group select {
        font-size: 16px; /* 防止iOS上自动缩放 */
    }
    
    .slider-container {
        margin-top: 5px;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
        margin: 20px auto;
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .btn-secondary {
        width: 100%;
        max-width: 180px;
        padding: 10px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .about-image {
        height: 200px;
        min-width: 100%;
    }
    
    .result-text textarea {
        font-size: 16px; /* 防止iOS上自动缩放 */
    }

    .decryption-animation {
        height: 175px; /* 略微减小容器高度 */
    }

    .galaxy {
        width: 150%;
        height: 150%;
        top: -25%;
        left: -25%;
    }

    .nebula {
        filter: blur(6px);
    }

    .stardust {
        background-size: 100px 100px;
    }

    .star-field {
        perspective: 800px;
    }

    .star {
        width: 1.5px;
        height: 1.5px;
    }

    /* 调整轨道位置使其居中 */
    .orbit, .secondary-orbit {
        position: absolute;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    /* 确保行星居中 */
    .planet {
        width: 25px; /* 稍微缩小行星 */
        height: 25px;
    }

    .orbit {
        width: 110px !important; /* 调整为与JS设置一致 */
        height: 110px !important;
    }
    
    .secondary-orbit {
        width: 165px !important; /* 调整为与JS设置一致 */
        height: 165px !important;
    }
}

@media screen and (max-width: 480px) {
    .stars {
        background-size: 50px 50px;
    }

    .twinkling {
        background-size: 400px 400px;
    }

    .clouds {
        background-size: 500px 500px;
        opacity: 0.2;
    }

    header h1 {
        font-size: 1.5rem;
    }
    
    header p {
        font-size: 0.9rem;
    }
    
    main {
        padding: 10px 5px;
    }
    
    .encryption-animation,
    .decryption-animation {
        height: 170px; /* 更小的屏幕使用更小的高度 */
    }
    
    .orbit {
        width: 100px !important;
        height: 100px !important;
    }
    
    .secondary-orbit {
        width: 160px !important;
        height: 160px !important;
    }
    
    .slider-container span {
        font-size: 1rem;
    }
    
    .slider-container input[type="range"]::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }
    
    .result-container {
        padding: 15px 10px;
        margin-top: 20px;
    }
    
    .result-container h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .form-group textarea {
        padding: 10px;
    }
    
    .form-group select {
        padding: 10px;
    }
    
    .about-text h3 {
        font-size: 1.2rem;
    }
    
    .about-text ul li {
        padding-left: 20px;
        margin-bottom: 8px;
    }

    .galaxy {
        width: 120%;
        height: 120%;
        top: -10%;
        left: -10%;
    }

    .nebula {
        filter: blur(4px);
    }

    .stardust {
        background-size: 50px 50px;
    }

    .star-field {
        perspective: 600px;
    }

    .star {
        width: 1px;
        height: 1px;
    }
}

@media screen and (max-width: 320px) {
    header h1 {
        font-size: 1.3rem;
    }
    
    section h2 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 12px;
        font-size: 1rem;
    }
    
    .encryption-animation,
    .decryption-animation {
        height: 100px;
    }
}

/* 快速粘贴按钮容器样式 */
.quick-paste-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

/* 快速粘贴按钮样式 */
.quick-paste-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
    padding: 8px 10px;
    background: rgba(40, 42, 54, 0.8);
    border: 1px solid rgba(139, 233, 253, 0.3);
    border-radius: 5px;
    color: #f8f8f2;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.quick-paste-btn:hover {
    background: rgba(40, 42, 54, 0.9);
    border-color: rgba(139, 233, 253, 0.5);
    box-shadow: 0 0 15px rgba(139, 233, 253, 0.3);
    transform: translateY(-1px);
}

.quick-paste-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 233, 253, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    animation: starlight 3s ease-in-out infinite;
    pointer-events: none;
}

.quick-paste-btn i {
    color: #8be9fd;
    font-size: 1rem;
}

/* 星辰提示框样式 */
.star-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(40, 42, 54, 0.95);
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(189, 147, 249, 0.5), 0 0 40px rgba(139, 233, 253, 0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(139, 233, 253, 0.3);
    max-width: 90%;
    width: auto;
    overflow: hidden;
    pointer-events: none;
}

.star-alert.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.star-alert::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 233, 253, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    animation: starlight 5s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.star-alert::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.star-alert-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.star-alert-content i {
    color: #ffb86c;
    font-size: 1.2rem;
    animation: star-twinkle 1s ease-in-out infinite alternate;
    position: relative;
}

.star-alert-content i:first-child {
    animation-delay: 0s;
}

.star-alert-content i:last-child {
    animation-delay: 0.5s;
}

.star-alert-content i::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 184, 108, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: star-pulse 2s ease-in-out infinite;
    z-index: -1;
}

.star-alert-content p {
    color: #f8f8f2;
    font-size: 1rem;
    margin: 0;
    text-shadow: 0 0 5px rgba(248, 248, 242, 0.5);
    animation: text-glow 2s ease-in-out infinite alternate;
}

@keyframes text-glow {
    from { text-shadow: 0 0 5px rgba(248, 248, 242, 0.5); }
    to { text-shadow: 0 0 10px rgba(248, 248, 242, 0.8), 0 0 15px rgba(139, 233, 253, 0.5); }
}

/* 警告弹窗中的星星粒子 */
.alert-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
    animation: alert-star-twinkle 2s ease-in-out infinite alternate;
}

@keyframes alert-star-twinkle {
    0% { transform: scale(0.5); opacity: 0.3; box-shadow: 0 0 2px #fff; }
    50% { transform: scale(1.2); opacity: 0.7; box-shadow: 0 0 4px #fff, 0 0 6px #8be9fd; }
    100% { transform: scale(0.5); opacity: 0.3; box-shadow: 0 0 2px #fff; }
}

@keyframes star-twinkle {
    from { opacity: 0.5; transform: scale(0.8) rotate(-5deg); }
    to { opacity: 1; transform: scale(1) rotate(5deg); }
}

@keyframes star-pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
}

@keyframes starlight {
    0% { transform: rotate(0deg); opacity: 0.3; }
    50% { transform: rotate(180deg); opacity: 0.7; }
    100% { transform: rotate(360deg); opacity: 0.3; }
}

@keyframes shimmer {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .star-alert {
        padding: 12px 20px;
        max-width: 85%;
    }

    .star-alert-content {
        gap: 10px;
    }

    .star-alert-content i {
    font-size: 1rem;
    }

    .star-alert-content p {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .star-alert {
        padding: 10px 15px;
        max-width: 85%;
    }

    .star-alert-content {
        gap: 8px;
    }

    .star-alert-content i {
        font-size: 0.9rem;
    }

    .star-alert-content p {
        font-size: 0.85rem;
    }
}

.play-pause-btn {
    background: #1a1a2e;
    border: 1px solid #4a4e69;
    color: #e0e1dd;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
    box-shadow: 0 0 5px rgba(103, 128, 159, 0.7);
}

.play-pause-btn:hover {
    background: #262653;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(103, 128, 159, 0.9);
}

.play-pause-btn:active {
    transform: scale(0.95);
}

/* 音量图标美化 */
#volumeIcon {
    cursor: pointer;
    margin-right: 8px;
    transition: all 0.3s ease;
    color: #e0e1dd;
    position: relative;
    display: inline-block;
    z-index: 10;
    text-shadow: 0 0 5px rgba(139, 233, 253, 0.5);
}

#volumeIcon:hover {
    color: #8be9fd;
    transform: scale(1.1);
    animation: star-glow 1.5s ease-in-out infinite alternate;
}

#volumeIcon:active {
    transform: scale(0.95);
}

@keyframes star-glow {
    0% {
        text-shadow: 0 0 5px rgba(139, 233, 253, 0.5);
    }
    100% {
        text-shadow: 0 0 15px rgba(139, 233, 253, 0.9), 0 0 20px rgba(189, 147, 249, 0.6);
    }
}

.volume-control i.muted {
    color: #ff79c6;
    animation: muted-pulse 1.5s infinite alternate;
}

@keyframes muted-pulse {
    0% { 
        opacity: 0.7; 
        transform: scale(1);
        text-shadow: 0 0 5px rgba(255, 121, 198, 0.5);
    }
    100% { 
        opacity: 1;
        transform: scale(1.1);
        text-shadow: 0 0 15px rgba(255, 121, 198, 0.8), 0 0 20px rgba(255, 121, 198, 0.5);
    }
}

/* 音量控制面板 */
.volume-control {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(to bottom right, rgba(40, 42, 54, 0.95), rgba(33, 34, 44, 0.98));
    padding: 15px;
    border-radius: 12px;
    display: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 
                0 0 30px rgba(139, 233, 253, 0.2), 
                inset 0 0 10px rgba(80, 250, 250, 0.1);
    z-index: 100;
    width: 220px;
    border: 1px solid rgba(98, 114, 164, 0.6);
    backdrop-filter: blur(5px);
    transform-origin: top right;
    animation: panel-appear 0.3s ease-out forwards;
    overflow: hidden;
}

@keyframes panel-appear {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.volume-control::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 15px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, rgba(40, 42, 54, 0), rgba(33, 34, 44, 0.98) 60%);
    transform: rotate(45deg);
    border-top: 1px solid rgba(98, 114, 164, 0.6);
    border-left: 1px solid rgba(98, 114, 164, 0.6);
    z-index: 0;
}

/* 面板内部星星背景 */
.volume-control::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 10% 10%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 20% 50%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 30% 30%, rgba(139, 233, 253, 0.3), transparent),
        radial-gradient(1px 1px at 40% 70%, rgba(189, 147, 249, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 60% 30%, rgba(139, 233, 253, 0.3), transparent),
        radial-gradient(1px 1px at 70% 70%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 80% 40%, rgba(189, 147, 249, 0.3), transparent),
        radial-gradient(1px 1px at 90% 60%, rgba(255, 255, 255, 0.3), transparent);
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
}

.volume-control-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 5;
}

/* 美化音量滑块 */
#volumeSlider {
    -webkit-appearance: none;
    height: 5px;
    border-radius: 5px;
    background: linear-gradient(to right, #8be9fd, #bd93f9);
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s, box-shadow 0.3s;
    margin: 0;
    padding: 0;
    flex: 1;
    box-shadow: 0 0 5px rgba(139, 233, 253, 0.5);
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f8f2, #bd93f9);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(139, 233, 253, 0.8);
    transition: all 0.3s ease;
}

#volumeSlider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f8f2, #bd93f9);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(139, 233, 253, 0.8);
    transition: all 0.3s ease;
    border: none;
}

#volumeSlider:hover {
    opacity: 1;
    box-shadow: 0 0 10px rgba(139, 233, 253, 0.8);
}

#volumeSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(139, 233, 253, 1);
}

#volumeSlider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(139, 233, 253, 1);
}

/* 确保音量控制面板在显示时所有元素都可见 */
.volume-control.show, .volume-control[style*="display: block"] {
    display: block !important;
    opacity: 1 !important;
}

.volume-control > * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 确保结果容器样式正确 */
.result-container {
    position: relative;
    z-index: 5;
    overflow: visible;
}

.result-text {
    position: relative;
    z-index: 25;
}

/* 确保复制按钮正确显示 */
#copy-encrypt, #copy-decrypt {
    position: relative;
    z-index: 30;
}

/* 星空动画效果 */
@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes twinkle {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

@keyframes shooting {
    0% {
        transform: translate(-50px, -50px) rotate(-45deg);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(150px, 150px) rotate(-45deg);
        opacity: 0;
    }
}

/* 确保音量控制面板正常显示 */
.volume-control.show {
    display: block !important;
}

#volumeIcon {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 优化随机流星样式 */
.random-meteor {
    position: absolute;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9), rgba(189, 147, 249, 0.5));
    border-radius: 100px;
    filter: none; /* 移除昂贵的滤镜 */
    z-index: 16;
    animation: meteor-shoot 2s linear forwards;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
    overflow: visible;
    transform-origin: left center;
    will-change: transform, opacity;
}

/* 简化流星尾部效果 */
.random-meteor::after {
    content: '';
    position: absolute;
    width: 15%;
    height: 4px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.6), transparent 70%);
    left: 30%;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    opacity: 0.5;
}

/* 优化流星动画 */
@keyframes meteor-shoot {
    0% {
        transform: translateX(0) rotate(-45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 50px)) rotate(-45deg);
        opacity: 0;
    }
}

/* 音乐播放器美化 */
.music-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a1b36, #283053);
    border: 1px solid rgba(138, 180, 248, 0.3);
    color: #8be9fd;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(139, 233, 253, 0.4), 
                inset 0 0 10px rgba(80, 250, 250, 0.2);
    overflow: hidden;
    z-index: 1000;
}

.music-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff79c6, #bd93f9, #8be9fd, #50fa7b);
    z-index: -1;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(139, 233, 253, 0.2) 70%);
    border-radius: 50%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(139, 233, 253, 0.6),
                0 0 30px rgba(139, 233, 253, 0.4),
                inset 0 0 15px rgba(80, 250, 250, 0.3);
    color: #f8f8f2;
}

.music-btn:hover::before {
    opacity: 0.3;
    animation: rotate-gradient 3s linear infinite;
}

.music-btn:hover::after {
    opacity: 1;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

.music-btn i {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 3px rgba(139, 233, 253, 0.7));
}

.music-btn i.fa-music {
    animation: music-star-pulse 3s ease-in-out infinite alternate;
}

.music-btn.active {
    animation: music-active 2s ease-in-out infinite alternate;
}

@keyframes rotate-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.2); }
}

@keyframes music-star-pulse {
    0% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 2px rgba(139, 233, 253, 0.7));
    }
    50% { 
        transform: scale(1.1); 
        filter: drop-shadow(0 0 5px rgba(139, 233, 253, 0.9));
    }
    100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 2px rgba(139, 233, 253, 0.7));
    }
}

@keyframes music-active {
    0% { box-shadow: 0 0 15px rgba(139, 233, 253, 0.4), 
                    inset 0 0 10px rgba(80, 250, 250, 0.2); }
    100% { box-shadow: 0 0 25px rgba(139, 233, 253, 0.7), 
                       0 0 40px rgba(139, 233, 253, 0.4),
                       inset 0 0 15px rgba(80, 250, 250, 0.4); }
}

/* 动画效果 */
.fade {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

#volumeIcon.animated {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* 修复微信浏览器缩放按钮问题 */
html, body {
    overflow-x: hidden;
        width: 100%;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    position: relative;
    touch-action: manipulation;
}

/* 确保所有内容适应屏幕宽度 */
img, video, iframe, canvas, svg, table {
    max-width: 100%;
    height: auto;
}

/* 低性能模式优化 - 保留基本轨道效果 */
.low-performance-mode .stars,
.low-performance-mode .twinkling,
.low-performance-mode .clouds {
    animation-duration: 300s; /* 减缓背景动画速度 */
}

.low-performance-mode .twinkling {
    opacity: 0.3;
}

.low-performance-mode .clouds {
    display: none; /* 完全移除云动画 */
}

.low-performance-mode .encryption-animation,
.low-performance-mode .decryption-animation {
    height: 180px !important; /* 确保与主样式一致 */
    background: rgba(30, 35, 80, 0.6); /* 使用纯色背景替代渐变 */
    overflow: visible !important; /* 确保轨道可见 */
}

/* 保留基本轨道效果，但减缓动画速度 */
.low-performance-mode .orbit {
    animation-duration: 25s; /* 减缓轨道动画速度 */
    opacity: 0.8; /* 稍微降低透明度 */
    width: 110px !important; /* 调整轨道尺寸 */
    height: 110px !important;
}

.low-performance-mode .secondary-orbit {
    animation-duration: 40s; /* 减缓轨道动画速度 */
    opacity: 0.8; /* 稍微降低透明度 */
    border: 1px dotted rgba(189, 147, 249, 0.3); /* 更淡的轨道 */
    width: 170px !important; /* 调整轨道尺寸 */
    height: 170px !important;
}

/* 移除一些高级特效 */
.low-performance-mode .satellite,
.low-performance-mode .nebula {
    display: none; /* 移除这些高级效果 */
}

.low-performance-mode .shooting-star,
.low-performance-mode .random-meteor {
    animation-duration: 3s !important; /* 确保所有流星动画使用相同的速度 */
}

.low-performance-mode .glowing-star {
    animation: none; /* 移除星星动画 */
}

/* 移动设备适配 */
@media screen and (max-width: 768px) {
    .orbit {
        width: 110px !important; /* 调整为与JS设置一致 */
        height: 110px !important;
    }
    
    .secondary-orbit {
        width: 165px !important; /* 调整为与JS设置一致 */
        height: 165px !important;
    }
    
    .planet {
        width: 25px; /* 稍微缩小行星 */
        height: 25px;
    }
    
    .encryption-animation, 
    .decryption-animation {
        height: 175px; /* 略微减小容器高度 */
    }
    
    #decrypt-result .decryption-animation,
    #encrypt-result .encryption-animation {
        height: 175px; /* 一致的高度 */
    }
}

@media screen and (max-width: 480px) {
    .encryption-animation,
    .decryption-animation {
        height: 170px; /* 更小的屏幕使用更小的高度 */
    }
    
    .orbit {
        width: 100px !important;
        height: 100px !important;
    }
    
    .secondary-orbit {
        width: 160px !important;
        height: 160px !important;
    }
}

/* 减少滚动时的动画 */
.is-scrolling .stars,
.is-scrolling .twinkling,
.is-scrolling .clouds,
.is-scrolling .encryption-animation,
.is-scrolling .decryption-animation {
    animation-play-state: paused; /* 暂停滚动时的动画 */
}

/* 进一步减少动画效果 */
.reduce-animations .stars,
.reduce-animations .twinkling,
.reduce-animations .clouds {
    animation: none; /* 完全移除背景动画 */
}

.reduce-animations .shooting-star,
.reduce-animations .random-meteor,
.reduce-animations .nebula,
.reduce-animations .satellite {
    display: none; /* 移除所有流星和复杂动画 */
}

.reduce-animations .orbit,
.reduce-animations .secondary-orbit {
    animation-duration: 60s; /* 极度减缓轨道动画 */
}

/* 图片和资源优化提示 */
img {
    will-change: transform;
    transform: translateZ(0);
}

/* 使用效率更高的变换 */
.animation-container {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform, opacity;
}

/* 彩色恒星样式优化 */
.rotating-star {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor, 0 0 15px currentColor;
    transform-origin: center center;
    will-change: transform;
    z-index: 13;
    transition: transform 0.3s ease-out;
}

.rotating-star:hover {
    transform: scale(1.5);
    box-shadow: 0 0 15px currentColor, 0 0 25px currentColor;
    z-index: 20;
}

/* 旋转轨道样式优化 */
.star-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    animation: orbit-rotation linear infinite;
    will-change: transform;
    pointer-events: none; /* 让点击事件穿透轨道 */
}

/* 背景随机恒星样式优化 */
.background-star {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor, 0 0 12px currentColor;
    animation: star-twinkle 4s ease-in-out infinite alternate;
    z-index: 9;
    will-change: opacity, transform;
}

/* 修复星星闪烁动画 */
@keyframes star-twinkle {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
        box-shadow: 0 0 5px currentColor, 0 0 8px currentColor;
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 0 0 10px currentColor, 0 0 15px currentColor;
    }
    100% {
        opacity: 0.5;
        transform: scale(1);
        box-shadow: 0 0 8px currentColor, 0 0 12px currentColor;
    }
}

/* 优化轨道旋转动画 */
@keyframes orbit-rotation {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 恒星脉动动画优化 */
@keyframes star-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 8px currentColor, 0 0 12px currentColor;
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 12px currentColor, 0 0 18px currentColor;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 8px currentColor, 0 0 12px currentColor;
    }
}

/* 低性能模式下调整恒星效果 */
.low-performance-mode .star-orbit {
    display: none;
}

.low-performance-mode .background-star {
    animation-duration: 6s; /* 减慢动画速度 */
    box-shadow: 0 0 5px currentColor; /* 简化阴影 */
}

/* 移动设备下的优化 */
@media screen and (max-width: 768px) {
    .star-orbit {
        border-width: 0.5px; /* 更细的轨道 */
    }
    
    .rotating-star {
        box-shadow: 0 0 5px currentColor, 0 0 8px currentColor; /* 减弱阴影 */
    }

    .background-star {
        box-shadow: 0 0 4px currentColor, 0 0 6px currentColor; /* 减弱阴影 */
    }
}

/* 为不同恒星设置不同的动画延迟和持续时间 */
.star-delay-1 { animation-delay: 0s; }
.star-delay-2 { animation-delay: 1s; }
.star-delay-3 { animation-delay: 2s; }
.star-delay-4 { animation-delay: 3s; }
.star-delay-5 { animation-delay: 1.5s; }

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

