/* Minecraft风格下载页面样式 */
@import url('https://fonts.googleapis.com/css2?family=Minecraft&display=swap');

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Minecraft', 'Courier New', monospace;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 容器 */
.minecraft-container {
    min-height: 100vh;
    position: relative;
}

/* 背景粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #4fc3f7;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particles::before {
    left: 10%;
    animation-delay: 0s;
}

.particles::after {
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.8; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.3; }
}

/* 导航栏 */
.minecraft-nav {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #4fc3f7;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px #4fc3f7);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4fc3f7;
    text-shadow: 0 0 10px #4fc3f7;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #4fc3f7;
    background: rgba(79, 195, 247, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #4fc3f7;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 主要内容 */
.main-content {
    margin-top: 80px;
    position: relative;
    z-index: 2;
}

/* 英雄区域 */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    margin-bottom: 2rem;
}

.title-block {
    display: block;
    font-size: 3.5rem;
    font-weight: bold;
    color: #4fc3f7;
    text-shadow: 0 0 20px #4fc3f7;
    margin-bottom: 0.5rem;
    animation: glow 2s ease-in-out infinite alternate;
}

.title-subtitle {
    display: block;
    font-size: 1.5rem;
    color: #81c784;
    text-shadow: 0 0 10px #81c784;
}

@keyframes glow {
    from { text-shadow: 0 0 20px #4fc3f7; }
    to { text-shadow: 0 0 30px #4fc3f7, 0 0 40px #4fc3f7; }
}

.hero-description {
    font-size: 1.2rem;
    color: #b0bec5;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #ffffff;
}

.btn-primary {
    background: linear-gradient(45deg, #4fc3f7, #29b6f6);
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #4fc3f7;
}

.btn-secondary:hover {
    background: rgba(79, 195, 247, 0.1);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Minecraft立方体 */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.minecraft-cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 20s linear infinite;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #4fc3f7, #29b6f6);
    border: 2px solid #ffffff;
    opacity: 0.8;
}

.cube-face.front { transform: translateZ(100px); }
.cube-face.back { transform: translateZ(-100px); }
.cube-face.right { transform: rotateY(90deg) translateZ(100px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top { transform: rotateX(90deg) translateZ(100px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotate {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* 区域标题 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #4fc3f7;
    margin: 4rem 0 3rem;
    text-shadow: 0 0 15px #4fc3f7;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4fc3f7, transparent);
}

/* 下载区域 */
.downloads-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.download-card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #4fc3f7;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 195, 247, 0.1), transparent);
    transition: left 0.5s ease;
}

.download-card:hover::before {
    left: 100%;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.3);
}

.download-card.featured {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.download-card.featured::before {
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.version-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.version-badge.latest {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
}

.version-badge.stable {
    background: linear-gradient(45deg, #4fc3f7, #29b6f6);
    color: #fff;
}

.version-badge.classic {
    background: linear-gradient(45deg, #9c27b0, #ba68c8);
    color: #fff;
}

.version-title {
    font-size: 1.8rem;
    color: #4fc3f7;
    margin-bottom: 0.5rem;
}

.version-date {
    color: #b0bec5;
    font-size: 1rem;
}

.card-content {
    margin-bottom: 2rem;
}

.version-info {
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(79, 195, 247, 0.2);
}

.info-label {
    color: #b0bec5;
    font-weight: bold;
}

.info-value {
    color: #ffffff;
}

.version-features h4 {
    color: #4fc3f7;
    margin-bottom: 1rem;
}

.version-features ul {
    list-style: none;
    padding-left: 0;
}

.version-features li {
    padding: 0.3rem 0;
    color: #b0bec5;
    position: relative;
    padding-left: 1.5rem;
}

.version-features li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #4fc3f7;
}

.card-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.btn-download {
    flex: 0 0 auto;
    padding: 0.8rem 1.2rem;
    border: 2px solid #4fc3f7;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: bold;
    font-family: 'Minecraft', 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #ffffff;
    min-width: 140px;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.6);
    text-shadow: 0 0 5px #4fc3f7;
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.3);
}

.btn-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 195, 247, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-download:hover::before {
    left: 100%;
}

.btn-download.primary {
    background: rgba(0, 0, 0, 0.6);
    border-color: #4fc3f7;
}

.btn-download.primary:hover {
    background: rgba(79, 195, 247, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 195, 247, 0.4);
}

.btn-download.secondary {
    background: rgba(0, 0, 0, 0.6);
    border-color: #4fc3f7;
    flex: 0 0 auto;
    min-width: 120px;
}

.btn-download.secondary:hover {
    background: rgba(79, 195, 247, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 195, 247, 0.4);
}

.btn-download:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(79, 195, 247, 0.4);
}

.btn-download .btn-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 3px #4fc3f7);
}

/* 功能特性区域 */
.features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #4fc3f7;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(79, 195, 247, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #4fc3f7;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #b0bec5;
    line-height: 1.6;
}

/* 安装说明区域 */
.install-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.install-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #4fc3f7, #29b6f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    flex-shrink: 0;
}

.step-content h3 {
    color: #4fc3f7;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #b0bec5;
    line-height: 1.6;
}

/* 常见问题区域 */
.faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.faq-list {
    margin-top: 3rem;
}

.faq-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #4fc3f7;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    color: #ffffff;
    font-weight: bold;
}

.faq-question:hover {
    background: rgba(79, 195, 247, 0.1);
}

.faq-toggle {
    font-size: 1.5rem;
    color: #4fc3f7;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 1.5rem;
    color: #b0bec5;
    line-height: 1.6;
}

/* 页脚 */
.minecraft-footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 2px solid #4fc3f7;
    margin-top: 4rem;
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.footer-section h4 {
    color: #4fc3f7;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: #b0bec5;
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4fc3f7;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0 0;
    border-top: 1px solid rgba(79, 195, 247, 0.2);
    margin-top: 2rem;
    color: #b0bec5;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    backdrop-filter: blur(10px);
    font-family: 'Minecraft', 'Courier New', monospace;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(22, 33, 62, 0.98));
    border: 4px solid #4fc3f7;
    border-radius: 0;
    padding: 2.5rem;
    min-width: 500px;
    max-width: 90%;
    box-shadow: 
        0 0 30px rgba(79, 195, 247, 0.6),
        0 0 60px rgba(79, 195, 247, 0.3),
        inset 0 0 20px rgba(79, 195, 247, 0.1);
    overflow: hidden;
    animation: modalContentSlideIn 0.4s ease-out;
}

@keyframes modalContentSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4fc3f7, #29b6f6, #4fc3f7, #29b6f6, #4fc3f7);
    animation: borderGlow 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.8);
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(79, 195, 247, 0.3);
}

.modal-header h3 {
    color: #4fc3f7;
    margin: 0;
    font-family: 'Minecraft', 'Courier New', monospace;
    text-shadow: 0 0 15px #4fc3f7, 0 0 25px #4fc3f7;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.modal-close {
    background: none;
    border: 2px solid #4fc3f7;
    color: #4fc3f7;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.modal-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(79, 195, 247, 0.1);
    transition: left 0.3s ease;
}

.modal-close:hover::before {
    left: 0;
}

.modal-close:hover {
    color: #ffffff;
    border-color: #29b6f6;
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.5);
}

.download-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 25px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #4fc3f7;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4fc3f7, #29b6f6, #4fc3f7);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s linear infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-text {
    display: flex;
    justify-content: space-between;
    color: #b0bec5;
    font-size: 0.9rem;
}

.download-info p {
    color: #b0bec5;
    margin-bottom: 0.5rem;
    font-family: 'Minecraft', 'Courier New', monospace;
}

.download-info strong {
    color: #4fc3f7;
    text-shadow: 0 0 5px #4fc3f7;
}

/* 下载完成按钮 */
.download-complete-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #4fc3f7;
    border-radius: 0;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Minecraft', 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: #4fc3f7;
    text-shadow: 0 0 5px #4fc3f7;
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.3);
    margin-top: 1rem;
}

.download-complete-btn:hover {
    background: rgba(79, 195, 247, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 195, 247, 0.4);
}

.download-complete-btn:active {
    transform: translateY(0);
}

/* 透明按钮样式（像更新日志按钮） */
.transparent-btn {
    background: rgba(0, 0, 0, 0.6) !important;
    color: #4fc3f7 !important;
    border-color: #4fc3f7 !important;
}

.transparent-btn:hover {
    background: rgba(79, 195, 247, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 195, 247, 0.4);
}

/* 下载错误样式 */
.download-error {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    border: 2px solid #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.error-icon {
    font-size: 2rem;
    color: #f44336;
    margin-bottom: 0.5rem;
}

.error-text {
    color: #f44336;
    margin-bottom: 1rem;
    font-weight: bold;
}

.retry-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #f44336;
    border-radius: 0;
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Minecraft', 'Courier New', monospace;
}

.retry-btn:hover {
    background: rgba(244, 67, 54, 0.2);
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .title-block {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .install-steps {
        grid-template-columns: 1fr;
    }
    
    .nav-content {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .modal-content {
        min-width: 90%;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .title-block {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .btn-download {
        width: 100%;
    }
}
