/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 文字选中高亮效果优化 */
::selection {
    background-color: rgba(255, 255, 255, 0.95); /* 高不透明度白色背景 */
    color: #1a1a2e; /* 深色文字 */
    text-shadow: none; /* 移除文字阴影 */
}

::-moz-selection {
    background-color: rgba(255, 255, 255, 0.95); /* 高不透明度白色背景 */
    color: #1a1a2e; /* 深色文字 */
    text-shadow: none; /* 移除文字阴影 */
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #1a1a2e; /* 备用背景色 */
    background-image: 
        linear-gradient(135deg, rgba(26, 26, 46, 0.6) 0%, rgba(22, 33, 62, 0.6) 50%, rgba(15, 52, 96, 0.6) 100%),
        url('/bgwlk/wlk.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    /* 性能优化 */
    will-change: auto;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 背景增强效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(74, 158, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 70% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(74, 158, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* 加载屏幕 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: #ffffff;
}

.loading-crown {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #ffd700;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    border-radius: 2px;
    animation: loading 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

/* 标题选中时的特殊处理 */
.logo h1::selection {
    background-color: #ffffff; /* 纯白色背景 */
    color: #1a1a2e; /* 深色文字 */
    -webkit-text-fill-color: #1a1a2e; /* 覆盖透明文字 */
    text-shadow: none; /* 移除文字阴影 */
}

.logo h1::-moz-selection {
    background-color: #ffffff; /* 纯白色背景 */
    color: #1a1a2e; /* 深色文字 */
    text-shadow: none; /* 移除文字阴影 */
}

.logo p {
    font-size: 1.2rem;
    color: #b0b0b0;
    font-weight: 300;
}

/* 主要内容 */
.main-content {
    padding: 60px 0;
}

.hero-section {
    text-align: center;
    margin-bottom: 60px;
}

.hero-section h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-section p {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

/* 版本卡片容器 */
.version-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* 版本卡片样式 */
.version-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    /* 性能优化 */
    will-change: transform, box-shadow, border-color;
    transform: translateZ(0);
}

.version-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.version-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.6);
    background: rgba(0, 0, 0, 0.6);
}

.version-card:focus-within {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

.version-card:hover::before {
    opacity: 1;
}

/* WLK卡片 */
.wlk-card {
    color: #4a9eff;
    border-color: rgba(74, 158, 255, 0.3);
    position: relative;
}

.wlk-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4a9eff, #74b9ff, #4a9eff);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wlk-card:hover {
    background: rgba(74, 158, 255, 0.15);
    border-color: rgba(74, 158, 255, 0.6);
    box-shadow: 0 20px 60px rgba(74, 158, 255, 0.2);
}

.wlk-card:hover::after {
    opacity: 0.3;
}

/* CTM卡片 */
.ctm-card {
    color: #ff6b35;
}

.ctm-card:hover {
    background: rgba(255, 107, 53, 0.1);
}

/* MoP卡片 */
.mop-card {
    color: #4ecdc4;
}

.mop-card:hover {
    background: rgba(78, 205, 196, 0.1);
}

/* 卡片头部 */
.card-header {
    text-align: center;
    margin-bottom: 25px;
}

.version-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid currentColor;
}

.wlk-icon {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.2), rgba(74, 158, 255, 0.1));
}

.ctm-icon {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.1));
}

.mop-icon {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(78, 205, 196, 0.1));
}

.card-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.version-subtitle {
    font-size: 1rem;
    color: #b0b0b0;
    font-style: italic;
}

/* 卡片内容 */
.card-content {
    margin-bottom: 25px;
}

.version-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.version-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: currentColor;
}

.build-number {
    font-size: 0.9rem;
    color: #b0b0b0;
    font-family: 'Courier New', monospace;
}

.version-description {
    font-size: 1rem;
    color: #d0d0d0;
    margin-bottom: 20px;
    line-height: 1.6;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.1);
    color: currentColor;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid currentColor;
}

/* 卡片底部按钮 */
.card-footer {
    text-align: center;
}

.version-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid currentColor;
    background: transparent;
    color: currentColor;
    position: relative;
    overflow: hidden;
}

.version-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: currentColor;
    transition: left 0.3s ease;
    z-index: -1;
}

.version-button:hover::before {
    left: 0;
}

.version-button:hover {
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.version-button:hover .arrow {
    transform: translateX(5px);
}

/* 下载区域 */
.download-section {
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.download-section h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.download-section p {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 30px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a2e;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

/* 按钮文字选中样式 */
.version-button::selection,
.download-button::selection {
    background-color: #ffd700; /* 纯金色背景 */
    color: #1a1a2e; /* 深色文字 */
    text-shadow: none; /* 移除文字阴影 */
}

.version-button::-moz-selection,
.download-button::-moz-selection {
    background-color: #ffd700; /* 纯金色背景 */
    color: #1a1a2e; /* 深色文字 */
    text-shadow: none; /* 移除文字阴影 */
}

.download-icon {
    font-size: 1.3rem;
}

/* 卡片内容选中样式 */
.version-card h3::selection,
.version-card p::selection,
.hero-section h2::selection,
.hero-section p::selection {
    background-color: #4a9eff; /* 纯WLK蓝色背景 */
    color: #ffffff; /* 白色文字 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* 添加文字阴影增强对比度 */
}

.version-card h3::-moz-selection,
.version-card p::-moz-selection,
.hero-section h2::-moz-selection,
.hero-section p::-moz-selection {
    background-color: #4a9eff; /* 纯WLK蓝色背景 */
    color: #ffffff; /* 白色文字 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* 添加文字阴影增强对比度 */
}

/* 版本信息选中样式 */
.version-info .version-number::selection,
.version-info .build-number::selection {
    background-color: #ffffff; /* 纯白色背景 */
    color: #1a1a2e; /* 深色文字 */
    text-shadow: none;
}

.version-info .version-number::-moz-selection,
.version-info .build-number::-moz-selection {
    background-color: #ffffff; /* 纯白色背景 */
    color: #1a1a2e; /* 深色文字 */
    text-shadow: none;
}

/* 功能标签选中样式 */
.feature-tag::selection {
    background-color: #ffd700; /* 金色背景 */
    color: #1a1a2e; /* 深色文字 */
    text-shadow: none;
}

.feature-tag::-moz-selection {
    background-color: #ffd700; /* 金色背景 */
    color: #1a1a2e; /* 深色文字 */
    text-shadow: none;
}

/* 页脚 */
.footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        background-attachment: scroll; /* 移动设备上使用scroll而不是fixed */
    }
    
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .version-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .version-card {
        padding: 25px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    .version-card {
        padding: 20px;
    }
    
    .version-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .download-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.version-card {
    animation: fadeInUp 0.6s ease forwards;
}

.version-card:nth-child(1) {
    animation-delay: 0.1s;
}

.version-card:nth-child(2) {
    animation-delay: 0.2s;
}

.version-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* 加载动画 */
.loading {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* 高分辨率显示优化 */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .logo h1 {
        font-size: 4rem;
    }
    
    .hero-section h2 {
        font-size: 3rem;
    }
    
    .version-card {
        padding: 40px;
    }
}

/* 背景图片优化 */
@media (prefers-reduced-motion: no-preference) {
    body {
        background-attachment: fixed;
    }
}

@media (prefers-reduced-motion: reduce) {
    body {
        background-attachment: scroll;
    }
    
    .version-card, .download-button {
        transition: none;
    }
}
