/*
Theme Name: 最后曙光一号
Theme URI: https://www.xingio.com/
Author: 邢同学
Author URI: https://www.xingio.com/
Description: 专为游戏最后曙光设计的主题  Author: 邢同学
Version: 1.0
Text Domain: escape-game
Tags: 最后曙光-匠心小邢
*/

:root {
    --dark-bg: #0a0a12;
    --dark-accent: #1a1a2e;
    --primary: #ff2e63;
    --secondary: #08d9d6;
    --text-light: #eaeaea;
    --text-gray: #8a8a9e;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* 头部样式 */
.site-header {
    background-color: rgba(10, 10, 18, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo {
    max-height: 50px;
    width: auto;
    margin-right: 15px;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-navigation ul {
    display: flex;
    list-style: none;
}

.main-navigation li {
    margin: 0 15px;
}

.main-navigation a {
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.main-navigation a:hover {
    color: var(--primary);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.main-navigation a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 0%, var(--dark-bg) 70%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px var(--primary), 0 0 10px rgba(255, 46, 99, 0.5);
    }
    to {
        text-shadow: 0 0 15px var(--primary), 0 0 30px rgba(255, 46, 99, 0.8);
    }
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-gray);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary);
    z-index: -1;
    transition: var(--transition);
}

.btn:hover {
    color: var(--dark-bg);
    border-color: var(--primary);
}

.btn:hover::before {
    width: 100%;
}

.btn-secondary {
    border-color: var(--secondary);
}

.btn-secondary::before {
    background: var(--secondary);
}

/* 游戏介绍区域 */
.game-intro {
    padding: 100px 0;
    background-color: var(--dark-accent);
}

.intro-content {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.intro-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.intro-content h3 {
    margin: 30px 0 15px;
    color: var(--secondary);
}

/* 游戏展示区 */
.game-showcase {
    padding: 100px 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.showcase-item {
    background: var(--dark-accent);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.showcase-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #2a2a3e;
}

.showcase-content {
    padding: 25px;
}

.showcase-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* 开发历程时间线 */
.timeline-section {
    padding: 100px 0;
    background-color: var(--dark-accent);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 100px auto 0;
    padding: 0 20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: var(--secondary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    margin-bottom: 50px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-date {
    position: absolute;
    top: -20px;
    background: var(--secondary);
    color: var(--dark-bg);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -80px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -80px;
}

.timeline-desc {
    margin-top: 15px;
}

.timeline-desc img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 5px;
}

/* 内容区域 */
.content-area {
    padding: 150px 0 100px;
}

.entry-header {
    text-align: center;
    margin-bottom: 40px;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.entry-meta {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.entry-content {
    background: var(--dark-accent);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.entry-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 30px 0 15px;
    color: var(--secondary);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
}

/* 文章网格 */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.post-card {
    background: var(--dark-accent);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.post-thumbnail {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.post-content {
    padding: 20px;
}

.post-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.post-excerpt {
    color: var(--text-gray);
    margin-bottom: 15px;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-gray);
    display: flex;
    justify-content: space-between;
}

/* 404页面 */
.error-404 {
    text-align: center;
    padding: 150px 0;
}

.error-404 h1 {
    font-size: 6rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.error-404 p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 加载响应式样式 */
@import url("assets/css/responsive.css");