/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 科幻风格的字体和颜色方案 */
body {
    font-family: 'Orbitron', sans-serif;
    background-color: #0a0a23;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 星空背景效果 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

.stars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 20px 140px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 110px 190px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 190px 160px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 35, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ffff;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 英雄区域样式 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(50, 50, 50, 0.9) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(128, 0, 255, 0.1) 100%);
    z-index: -1;
}

.hero-content {
    display: flex;
    width: 100%;
    gap: 50px;
    z-index: 1;
}

/* 左侧游戏界面 */
.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 游戏界面样式 */
.game-interface {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.hearts {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.heart {
    color: #ff0000;
    font-size: 1.2rem;
    text-shadow: 0 0 10px #ff0000;
}

.score {
    margin-left: 10px;
    color: #ffff00;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 0 10px #ffff00;
}

.inventory {
    display: flex;
    gap: 10px;
}

.item {
    width: 60px;
    height: 60px;
    background: rgba(50, 50, 50, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.item span {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 0.8rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.7);
    padding: 1px 4px;
    border-radius: 3px;
}

.item.empty {
    background: rgba(30, 30, 30, 0.5);
}

/* 右侧内容 */
.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-right h2 {
    font-size: 2.5rem;
    color: #ffffff;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 0 15px #00ffff;
}

/* 时间线样式 */
.timeline {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff;
    letter-spacing: 1px;
}

/* 图片区域 */
.hero-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

.hero-image-text {
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
}

.hero-image-text h3 {
    font-size: 1.5rem;
    color: #ffffff;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 0 15px #00ffff;
}

/* 英雄按钮样式 */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-buttons p {
    color: #ffffff;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin: 0;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #00ffff 0%, #8000ff 100%);
    color: #0a0a23;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    text-align: center;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.8);
}

/* 通用部分样式 */
section {
    padding: 100px 0;
    position: relative;
}

section h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

section h2 span {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

/* 关于我们部分样式 */
.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.5);
}

/* 服务部分样式 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(10, 10, 35, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    border-color: #00ffff;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(128, 0, 255, 0.2) 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3) 0%, rgba(128, 0, 255, 0.3) 100%);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.service-icon svg {
    color: #00ffff;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon svg {
    transform: scale(1.2);
    text-shadow: 0 0 15px #00ffff;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: 1px;
}

.service-card p {
    color: #cccccc;
    line-height: 1.6;
}

/* 博客部分样式 */
.blog {
    background: rgba(10, 10, 35, 0.5);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.blog-content {
    display: flex;
    gap: 50px;
}

.blog-posts {
    flex: 1;
}

.blog-post {
    background: rgba(10, 10, 35, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
}

.post-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #999999;
    letter-spacing: 1px;
}

.post-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: 1px;
}

.post-content p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-link {
    display: inline-block;
    color: #00ffff;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.post-link:hover {
    text-shadow: 0 0 10px #00ffff;
    transform: translateX(5px);
}

/* 侧边栏样式 */
.sidebar {
    width: 350px;
    flex-shrink: 0;
}

.sidebar-widget {
    background: rgba(10, 10, 35, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.sidebar-widget h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 10px;
}

/* 搜索框样式 */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 10px;
    background: rgba(10, 10, 35, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 1px;
}

.search-form input::placeholder {
    color: #999999;
}

.search-form input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.search-form button {
    padding: 10px 15px;
    background: linear-gradient(135deg, #00ffff 0%, #8000ff 100%);
    color: #0a0a23;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

/* 分类样式 */
.categories {
    list-style: none;
}

.categories li {
    margin-bottom: 10px;
}

.categories a {
    display: block;
    color: #cccccc;
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.categories a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    transform: translateX(5px);
}

/* 最近文章样式 */
.recent-posts {
    list-style: none;
}

.recent-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts a {
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    line-height: 1.4;
}

.recent-posts a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

/* 联系我们部分样式 */
.contact-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info {
    text-align: center;
}

/* 投稿按钮样式 */
.submit-btn {
    display: inline-block;
    padding: 20px 40px;
    background: linear-gradient(135deg, #00ffff 0%, #8000ff 100%);
    color: #0a0a23;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

.submit-btn:hover::before {
    left: 100%;
}

/* 页脚样式 */
.footer {
    background: rgba(10, 10, 35, 0.9);
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    padding: 50px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-size: 2rem;
    color: #00ffff;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.footer-logo p {
    color: #cccccc;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999999;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* 英雄区域响应式设计 */
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-left h2 {
        font-size: 2rem;
    }
    
    .timeline {
        font-size: 1rem;
    }
    
    .inventory {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-right-text h3 {
        font-size: 1.5rem;
    }
    
    /* 博客响应式设计 */
    .blog-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .post-image {
        height: 200px;
    }
    
    .contact-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 1s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 35, 0.8);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00ffff 0%, #8000ff 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00cccc 0%, #6600cc 100%);
}

/* 字体导入 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&display=swap');
