
/* 全局变量与重置 */
:root {
    --primary-color: #7000ff; /* 赛博紫 */
    --secondary-color: #00f3ff; /* 霓虹蓝 */
    --bg-dark: #0a0a12;
    --bg-card: #161625;
    --text-light: #e0e0e0;
    --text-dim: #a0a0b0;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: white;
}

.logo span {
    color: var(--secondary-color);
}

.navbar nav a {
    margin-left: 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dim);
}

.navbar nav a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

.login-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
    font-weight: 600;
}

.login-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px rgba(112, 0, 255, 0.4);
}

/* 英雄区域 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(10, 10, 18, 0.7), rgba(10, 10, 18, 0.9)),
        url('https://picsum.photos/1920/1080?grayscale') no-repeat center center/cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    font-weight: 900;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn.primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn.primary:hover {
    background: #8a2be2;
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.6);
    transform: translateY(-2px);
}

.btn.secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn.secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* 通用标题 */
.section-header {
    text-align: center;
    margin: 5rem 0 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.section-header p {
    color: var(--text-dim);
}

/* 游戏列表 */
.games-section {
    padding: 0 5% 4rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: bold;
    color: #ffd700;
    font-size: 0.9rem;
}

.card-info {
    padding: 1.5rem;
}

.genre-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
}

.tag.rpg { color: #ff70a6; background: rgba(255, 112, 166, 0.1); }
.tag.action { color: #00f3ff; background: rgba(0, 243, 255, 0.1); }
.tag.puzzle { color: #70ffac; background: rgba(112, 255, 172, 0.1); }

.card-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.card-info p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.price {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
}

.buy-link {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.buy-link:hover {
    text-decoration: underline;
}

/* 资讯列表 */
.news-section {
    padding: 0 5% 4rem;
    background: rgba(255, 255, 255, 0.02);
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border-radius: 8px;
    margin-right: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-date .day {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.news-date .month {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.news-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: white;
}

.news-content p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* 页脚 */
footer {
    background: #050508;
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-col h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    color: #555;
    font-size: 0.8rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .navbar nav { display: none; }
    .hero-buttons { flex-direction: column; }
    .news-item { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .news-date { flex-direction: row; width: auto; height: auto; padding: 0.5rem 1rem; gap: 0.5rem; }
}
