/* 全局样式 */
:root {
  --primary-color: #FFD700;
  --text-color: #333;
  --bg-color: #fff;
  --section-padding: 80px 0;
  --nav-height: 60px;
  --container-width: 1200px;
  --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  --transition-normal: all 0.3s ease;
}

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #f5f5f5;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
  background-color: rgba(34, 32, 21, 0.95);
  height: var(--nav-height);
  padding: 0;
  transition: transform 0.3s ease-in-out;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin-right: 40px;
}

.navbar__logo {
  height: 36px;
  width: auto;
}

.navbar__menu {
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 0;
  height: 100%;
}

.navbar__item {
  color: #999;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.navbar__item:hover,
.navbar__item.active {
  color: #fff;
}

.navbar__item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: var(--primary-color);
}

/* 搜索框样式 */
.search-box {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 20px;
}

.search-box__input {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  color: #fff;
  width: 200px;
  font-size: 14px;
}

.search-box__input::placeholder {
  color: #666;
}

.search-box__input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.15);
}

/* 按钮样式 */
.btn {
  padding: 6px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  font-weight: 500;
}

.btn--login {
  background-color: transparent;
  color: #fff;
}

.btn--login:hover {
  color: var(--primary-color);
}

.btn--register {
  background-color: var(--primary-color);
  color: #000;
  margin-left: 10px;
}

.btn--register:hover {
  background-color: #e6c200;
}

/* 通用区块样式 */
.section {
  padding: var(--section-padding);
}

.section__title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section__title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 20px auto 0;
}

/* 关于我们 */
.about {
  background-color: #fff;
}

.about__image {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.about__content {
  padding: 2rem;
}

.about__content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.about__content p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
}

/* 游戏卡片样式 */
.game-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.game-card__image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.game-card__content {
  padding: 1.5rem;
  flex: 1;
}

.game-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.game-card__desc {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* 新闻卡片样式 */
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-normal);
  height: 100%;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-card__image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.news-card__content {
  padding: 2rem;
}

.news-card__content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.news-card__content p {
  color: #666;
  line-height: 1.6;
}

/* 页脚样式 */
.footer {
  background-color: #222;
  color: #fff;
  padding: 80px 0 40px;
}

.footer__content {
  margin-bottom: 60px;
}

.footer h4 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer p {
  color: #999;
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-link {
  color: #fff;
  font-size: 1.5rem;
  transition: var(--transition-normal);
}

.social-link:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.footer__bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #666;
}

/* 响应式布局 */
@media (max-width: 1200px) {
  :root {
    --container-width: 960px;
  }
}

@media (max-width: 992px) {
  :root {
    --container-width: 720px;
  }
  
  .banner__content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --container-width: 540px;
    --section-padding: 60px 0;
  }

  .navbar__menu {
    display: none;
  }
  
  .navbar__menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: rgba(34, 32, 21, 0.95);
    padding: 1rem;
    gap: 15px;
  }

  .search-box {
    display: none;
  }
  
  .navbar__item.active::after {
    display: none;
  }

  .banner__content h1 {
    font-size: 2.5rem;
  }

  .section__title h2 {
    font-size: 2rem;
  }

  .about__content {
    padding: 2rem 0;
    text-align: center;
  }

  .game-card,
  .news-card {
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  :root {
    --container-width: 100%;
    --section-padding: 40px 0;
  }

  .banner__content h1 {
    font-size: 2rem;
  }

  .banner__content p {
    font-size: 1rem;
  }

  .section__title h2 {
    font-size: 1.75rem;
  }
} 