/* 基础样式 */
:root {
    --primary: #6a11cb;
    --secondary: #2575fc;
    --accent: #ff4d6d;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #4bb543;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--light);
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

/* 导航栏 - 移动端优化 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

header.scrolled {
    background: rgba(26, 26, 46, 0.98);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.logo img {
    height: 35px;
    margin-right: 8px;
}

.nav-links {
    display: flex;
    position: static;
    transform: none;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    padding: 0;
    width: auto;
}

.nav-links li {
    margin-left: 20px;
    position: relative;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light);
}

/* 顶部图片区域 - 移除文字 */
.top-banner {
    width: 100%;
    height: auto;
    margin-top: 60px;
    overflow: hidden;
}

.top-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* 下载按钮区域 */
.top-download {
    background: rgba(15, 15, 26, 0.8);
    padding: 30px 0;
    text-align: center;
}

.top-download-title {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-button-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
}

.download-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

.download-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.download-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.download-button-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

/* 修改备用链接样式 - 更大更醒目 */
.backup-link {
    margin-top: 15px;
    font-size: 1rem; /* 增大字体 */
    font-weight: 600; /* 加粗 */
}

.backup-link a {
    color: #FFD700; /* 改为醒目的金色 */
    text-decoration: none;
    padding: 8px 16px; /* 增加内边距 */
    background: rgba(255, 215, 0, 0.1); /* 添加背景色 */
    border-radius: 6px; /* 圆角 */
    border: 1px solid rgba(255, 215, 0, 0.3); /* 添加边框 */
    transition: var(--transition);
    display: inline-block; /* 使padding生效 */
}

.backup-link a:hover {
    color: white;
    background: rgba(255, 215, 0, 0.3); /* 悬停时背景更明显 */
    transform: translateY(-2px); /* 悬停效果 */
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2); /* 添加阴影 */
}

/* 英雄区域 - 简化 */
.hero {
    padding: 30px 0;
    text-align: center;
    background: rgba(15, 15, 26, 0.7);
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--light);
    text-transform: uppercase;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 游戏截图 - 自动滚动 */
.screenshots {
    background: rgba(15, 15, 26, 0.5);
    padding: 40px 0;
}

.screenshot-carousel {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--accent);
}

/* 更新介绍 */
.updates {
    background: rgba(15, 15, 26, 0.7);
}

.update-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.update-card {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 10px;
    padding: 20px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.update-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.update-title {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.update-content {
    color: var(--light);
}

.update-item {
    margin-bottom: 12px;
    padding-left: 15px;
    position: relative;
    font-size: 0.9rem;
}

.update-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-size: 1rem;
}

/* 页脚 */
footer {
    background: var(--darker);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: white;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

/* 修复公告 */
.fix-notice {
    background: rgba(255, 77, 109, 0.1);
    border-left: 4px solid var(--accent);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.fix-notice h3 {
    color: var(--accent);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.fix-notice p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* 图片模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 95%;
    max-height: 95%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 46, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        transform: translateY(-150%);
        transition: var(--transition);
        backdrop-filter: blur(10px);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 12px 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .top-download-title {
        font-size: 1.3rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-button-item {
        width: 100%;
        max-width: 250px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }

    
    .hero p {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .carousel-slide {
        height: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* 移动端备用链接调整 */
    .backup-link {
        font-size: 0.95rem;
    }
    
    .backup-link a {
        padding: 6px 12px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    .carousel-slide {
        height: 250px;
    }
}

/* Font Awesome 字体定义 - 修复路径 */
@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../webfonts/fa-brands-400.woff2") format("woff2"), 
       url("../webfonts/fa-brands-400.ttf") format("truetype");
}

@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../webfonts/fa-regular-400.woff2") format("woff2"), 
       url("../webfonts/fa-regular-400.ttf") format("truetype");
}

@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("../webfonts/fa-solid-900.woff2") format("woff2"), 
       url("../webfonts/fa-solid-900.ttf") format("truetype");
}

/* Font Awesome 基础样式 */
.fa,
.fas,
.far,
.fal,
.fad,
.fab {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.fa-lg {
  font-size: 1.33333em;
  line-height: 0.75em;
  vertical-align: -.0667em;
}

.fa-xs {
  font-size: .75em;
}

.fa-sm {
  font-size: .875em;
}

.fa-1x {
  font-size: 1em;
}

.fa-2x {
  font-size: 2em;
}

.fa-3x {
  font-size: 3em;
}

.fa-4x {
  font-size: 4em;
}

.fa-5x {
  font-size: 5em;
}

.fa-6x {
  font-size: 6em;
}

.fa-7x {
  font-size: 7em;
}

.fa-8x {
  font-size: 8em;
}

.fa-9x {
  font-size: 9em;
}

.fa-10x {
  font-size: 10em;
}

.fa-fw {
  text-align: center;
  width: 1.25em;
}

.fa-ul {
  list-style-type: none;
  margin-left: 2.5em;
  padding-left: 0;
}

.fa-ul > li {
  position: relative;
}

.fa-li {
  left: -2em;
  position: absolute;
  text-align: center;
  width: 2em;
  line-height: inherit;
}

.fa-border {
  border: solid 0.08em #eee;
  border-radius: .1em;
  padding: .2em .25em .15em;
}

.fa-pull-left {
  float: left;
}

.fa-pull-right {
  float: right;
}

.fa.fa-pull-left,
.fas.fa-pull-left,
.far.fa-pull-left,
.fal.fa-pull-left,
.fab.fa-pull-left {
  margin-right: .3em;
}

.fa.fa-pull-right,
.fas.fa-pull-right,
.far.fa-pull-right,
.fal.fa-pull-right,
.fab.fa-pull-right {
  margin-left: .3em;
}

.fa-spin {
  animation: fa-spin 2s infinite linear;
}

.fa-pulse {
  animation: fa-spin 1s infinite steps(8);
}

@keyframes fa-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.fa-rotate-90 {
  transform: rotate(90deg);
}

.fa-rotate-180 {
  transform: rotate(180deg);
}

.fa-rotate-270 {
  transform: rotate(270deg);
}

.fa-flip-horizontal {
  transform: scale(-1, 1);
}

.fa-flip-vertical {
  transform: scale(1, -1);
}

.fa-flip-both,
.fa-flip-horizontal.fa-flip-vertical {
  transform: scale(-1, -1);
}

:root .fa-rotate-90,
:root .fa-rotate-180,
:root .fa-rotate-270,
:root .fa-flip-horizontal,
:root .fa-flip-vertical,
:root .fa-flip-both {
  filter: none;
}

.fa-stack {
  display: inline-block;
  height: 2em;
  line-height: 2em;
  position: relative;
  vertical-align: middle;
  width: 2.5em;
}

.fa-stack-1x,
.fa-stack-2x {
  left: 0;
  position: absolute;
  text-align: center;
  width: 100%;
}

.fa-stack-1x {
  line-height: inherit;
}

.fa-stack-2x {
  font-size: 2em;
}

.fa-inverse {
  color: #fff;
}

/* Font Awesome 图标 */
.fa-desktop:before {
  content: "\f108";
}

.fa-android:before {
  content: "\f17b";
}

.fa-apple:before {
  content: "\f179";
}

.fa-bars:before {
  content: "\f0c9";
}

.fa-chevron-left:before {
  content: "\f053";
}

.fa-chevron-right:before {
  content: "\f054";
}

.fa-weibo:before {
  content: "\f18a";
}

.fa-weixin:before {
  content: "\f1d7";
}

.fa-qq:before {
  content: "\f1d6";
}

.fa-github:before {
  content: "\f09b";
}

/* 字体族定义 */
.fa,
.fas {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

.far {
  font-family: 'Font Awesome 6 Free';
  font-weight: 400;
}

.fab {
  font-family: 'Font Awesome 6 Brands';
  font-weight: 400;
}