/* 全局样式 */
body {
    background: url('1.jpg') center/cover fixed;
    position: relative;
    min-height: 100vh;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* 深色遮罩 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* 导航栏样式 */
.site-header {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text, .nav-item {
    color: rgba(255, 255, 255, 0.9);
}

/* 主要内容区域 */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 英雄区域 */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    color: white;
}

.avatar-container {
    margin-bottom: 2rem;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.site-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.typed-text {
    color: #E0E0E0;
    font-size: 1.2rem;
    margin-top: 1rem;
    min-height: 1.8rem; /* 保证有足够的高度容纳文字 */
}

/* Custom Cursor Animation */
.cursor {
    opacity: 1;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 统计数据 */
.site-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat-item-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.stat-item-link:hover {
    transform: translateY(-5px);
}

.stat-item {
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: transparent;
}

.stat-count {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a90e2;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/* 内容区域 */
.content-section {
    margin-top: 4rem;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.grid-item h2 {
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.grid-item h2 i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    vertical-align: middle;
}

/* 文章列表 */
.article-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.article-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* 游戏网格 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.game-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 工具列表 */
.tool-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tool-item i {
    width: 24px;
    font-size: 1.2rem;
    text-align: center;
}

.tool-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .home-container {
        padding: 1rem;
    }

    .site-stats {
        gap: 1.5rem;
    }

    .section-grid {
        grid-template-columns: 1fr;
    }
}