/* 现代化的全局样式 */
:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --dark-bg: #2d3436;
    --light-bg: #f9f9f9;
    --text-color: #2d3436;
    --light-text: #636e72;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* 导航栏美化 */
header {
    background-color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 45px;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

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

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero 区域美化 */
.hero {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.85), rgba(253, 121, 168, 0.75)), url('images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 8rem 1rem;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

/* 按钮美化 */
.cta-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin: 0.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.cta-button.secondary {
    background-color: var(--accent-color);
    color: var(--white);
}

.cta-button.secondary:hover {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* 特性区域美化 */
.features {
    padding: 6rem 5%;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.features h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background: var(--primary-color);
    bottom: -10px;
    left: 25%;
    border-radius: 2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 5px solid transparent;
}

.feature:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-color);
}

.feature img {
    width: 100px;
    height: 100px;
    margin-bottom: 2rem;
    object-fit: contain;
}

.feature h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature p {
    color: var(--light-text);
}

/* 游戏详情页专用样式 */
.game-detail {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.mechanic-card {
    display: flex;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    transition: var(--transition);
}

.mechanic-card:nth-child(even) {
    flex-direction: row-reverse;
}

.mechanic-card img {
    width: 40%;
    object-fit: cover;
}

.mechanic-card .content {
    padding: 3rem;
    width: 60%;
}

.mechanic-card h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.mechanic-card ul, .mechanic-card ol {
    padding-left: 1.5rem;
}

.mechanic-card li {
    margin-bottom: 0.8rem;
}

/* 更新板块美化 */
.updates {
    background: var(--white);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.update-card {
    border-left: 4px solid var(--primary-color);
    padding-left: 2rem;
    margin-top: 2rem;
}

.badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.update-content h3 {
    margin: 1rem 0;
}

.update-cta {
    margin-top: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

/* 系统要求美化 */
.specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.spec {
    background: #f1f2f6;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.spec h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* 截图区域美化 */
.screenshots {
    padding: 6rem 5%;
    background-color: #f1f2f6;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-gallery img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.screenshot-gallery img:hover {
    transform: scale(1.03);
}

/* 页脚美化 */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    text-align: center;
    padding: 4rem 1rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    display: inline-block;
    margin: 0 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-5px);
}

.social-links img {
    width: 35px;
    height: 35px;
    filter: invert(1);
}

/* 响应式设计优化 */
@media (max-width: 992px) {
    .mechanic-card {
        flex-direction: column !important;
    }
    .mechanic-card img, .mechanic-card .content {
        width: 100%;
    }
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1.5rem;
    }
    nav ul {
        margin-top: 1.5rem;
    }
    nav ul li {
        margin: 0 1rem;
    }
    .hero {
        padding: 6rem 1rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .specs {
        grid-template-columns: 1fr;
    }
}
