/* 全局样式 */
body {
    margin: 0;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    color: #ffe066;
    background: #222;
    line-height: 1.6;
    font-size: 18px;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #1a1a1a; /* 深色背景 */
}

.logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: #f4e04d; /* 黄色文字 */
}

.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    position: relative;
    margin-right: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #f4e04d; /* 黄色文字 */
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff6f61; /* 橙色悬停效果 */
}

/* 下拉菜单样式 */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a; /* 深色背景 */
    padding: 0.5rem 0;
    list-style: none;
    border: 1px solid #f4e04d; /* 黄色边框 */
    z-index: 1000;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #f4e04d;
    text-decoration: none;
    font-size: 0.8rem;
}

.dropdown-menu a:hover {
    background-color: #ff6f61; /* 橙色悬停背景 */
    color: #ffffff; /* 白色文字 */
}

/* 显示下拉菜单 */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* 英雄区 */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #3a3a3a, #1a1a1a); /* 深灰渐变背景 */
    color: #f4e04d;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* 柔和阴影 */
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px #000; /* 黑色阴影 */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* 按钮样式 */
.cta-button {
    display: inline-block;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: #fff;
    background-color: #f4e04d; /* 黄色背景 */
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* 按钮阴影 */
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #ff6f61; /* 悬停时的背景颜色 */
    transform: scale(1.1); /* 悬停时放大效果 */
}

/* 游戏卡片 */
.game-gallery {
    padding: 2rem;
    text-align: center;
    background-color: #1a1a1a; /* 深色背景 */
}

.game-gallery h2 {
    margin-bottom: 1.5rem;
    color: #f4e04d; /* 黄色标题 */
    text-shadow: 2px 2px #000;
}

.game-cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.game-card {
    background-color: #3a3a3a; /* 深灰色卡片背景 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* 柔和阴影 */
    border-radius: 10px;
    padding: 1rem;
    width: 200px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #f4e04d; /* 黄色光晕效果 */
}

/* 热门游戏区域 */
.featured-game {
    padding: 2rem;
    text-align: center;
    background-color: #1a1a1a; /* 深色背景 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* 柔和阴影 */
    margin: 2rem auto;
    max-width: 900px; /* 控制宽度，左右留白 */
}

.featured-game h2 {
    font-size: 1.8rem;
    color: #ff6f61; /* 橙红色标题 */
    text-shadow: 2px 2px #000;
    margin-bottom: 1rem;
}

.game-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.game-iframe {
    width: 100%;
    height: 450px;
    border: none; /* 去掉边框 */
    background-color: #000; /* 黑色背景 */
}

.play-button {
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-family: 'Press Start 2P', cursive; /* 像素风字体 */
    color: #1a1a1a; /* 深色按钮文字 */
    background-color: #f4e04d; /* 黄色按钮 */
    border: none; /* 去掉边框 */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.play-button:hover {
    background-color: #ff6f61; /* 橙红色悬停效果 */
    transform: scale(1.1); /* 放大效果 */
}

/* 折叠区域样式 */
.game-info {
    padding: 2rem;
    text-align: center;
    background-color: #1a1a1a; /* 深色背景 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* 柔和阴影 */
    margin: 2rem auto;
    max-width: 900px; /* 控制宽度 */
    border-radius: 10px;
}

.game-info h2 {
    font-size: 1.8rem;
    color: #ff6f61; /* 橙红色标题 */
    text-shadow: 2px 2px #000;
    margin-bottom: 1rem;
}

.toggle-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-family: 'Press Start 2P', cursive; /* 像素风字体 */
    color: #1a1a1a; /* 深色按钮文字 */
    background-color: #f4e04d; /* 黄色按钮 */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.toggle-button:hover {
    background-color: #ff6f61; /* 橙红色悬停效果 */
    transform: scale(1.1); /* 放大效果 */
}

.game-details {
    display: none; /* 默认隐藏 */
    margin-top: 1rem;
    text-align: left;
    color: #f4e04d; /* 黄色文字 */
    font-size: 1rem;
    line-height: 1.5;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 1rem;
    background-color: #1a1a1a; /* 深色背景 */
    color: #f4e04d; /* 黄色文字 */
}

/* 友情链接 */
.friend-links {
    margin-top: 1rem;
    text-align: center;
}

.friend-links h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #f4e04d; /* 黄色标题 */
}

.friend-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.friend-links li {
    display: inline-block;
    margin: 0 0.5rem;
}

.friend-links a {
    text-decoration: none;
    color: #ff6f61; /* 橙红色链接 */
    transition: color 0.3s;
}

.friend-links a:hover {
    color: #f4e04d; /* 悬停时变为黄色 */
}

/* 分享按钮容器 */
.share-buttons {
    margin-top: 1rem;
    text-align: center;
}

.share-buttons p {
    font-family: 'Press Start 2P', cursive; /* 像素字体 */
    font-size: 0.9rem;
    color: #f4e04d; /* 黄色文字 */
    margin-bottom: 0.5rem;
}

/* 分享按钮样式 */
.share-button {
    display: inline-block;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    font-family: 'Press Start 2P', cursive; /* 像素字体 */
    font-size: 0.8rem;
    color: #ffffff; /* 白色文字 */
    background-color: #ff6f61; /* 橙色背景 */
    text-decoration: none;
    border: none;
    border-radius: 8px; /* 添加圆角 */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* 添加轻微阴影 */
    transition: transform 0.2s, box-shadow 0.2s;
}

/* 鼠标悬停效果 */
.share-button:hover {
    transform: translateY(-2px); /* 悬停时按钮稍微上移 */
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4); /* 悬停时阴影更明显 */
}

.share-button.twitter {
    background-color: #1da1f2; /* Twitter 蓝色 */
    color: #ffffff;
}

.share-button.facebook {
    background-color: #1877f2; /* Facebook 蓝色 */
    color: #ffffff;
}

.share-button.linkedin {
    background-color: #0077b5; /* LinkedIn 蓝色 */
    color: #ffffff;
}