/* 全局样式 */
:root {
  --primary-color: #00a8ff;
  --secondary-color: #0097e6;
  --accent-color: #ff9f43;
  --dark-color: #2f3542;
  --darker-color: #1e272e;
  --light-color: #f5f6fa;
  --gray-color: #a4b0be;
  --success-color: #4cd137;
  --warning-color: #fbc531;
  --danger-color: #e84118;
  --border-radius: 6px;
  --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #f0f2f5;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 60px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 15px;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 15px;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--secondary-color);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary-color);
}

.btn-large {
  padding: 12px 24px;
  font-size: 1.1rem;
}

/* 头部导航 */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px;
  display: flex;
  justify-content: space-between;
}

header .container {
  display: flex;
  align-items: center;
  padding: 15px 0;
  gap: 30px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text {
  color: var(--primary-color);
}

.logo-accent {
  color: var(--accent-color);
  font-size: 1rem;
}

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-nav ul {
  display: flex;
}

.main-nav ul li {
  margin-left: 30px;
}

.main-nav ul li a {
  color: var(--dark-color);
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

.main-nav ul li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
  transition: var(--transition);
}

.main-nav ul li a:hover:after,
.main-nav ul li.active a:after {
  width: 100%;
}

.main-nav ul li.active a {
  color: var(--primary-color);
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 15px;
}

.mobile-toggle span {
  height: 3px;
  width: 100%;
  background-color: var(--dark-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* 英雄区域 */
.hero {
  background-color: var(--primary-color);
  color: white;
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 60px;
}

.hero-characters {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.character {
  text-align: center;
}

.character-avatar {
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
  font-size: 40px;
}

.character span {
  font-weight: 500;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background-color: white;
}

/* 游戏特性 */
.game-features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-showcase {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.feature-showcase:hover {
  transform: translateY(-5px);
}

.feature-showcase.wide {
  grid-column: span 3;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.feature-content {
  max-width: 600px;
}

.feature-image {
  font-size: 50px;
  margin-bottom: 20px;
}

/* 游戏亮点 */
.game-highlights {
  background-color: var(--dark-color);
  color: white;
  padding: 80px 0;
}

.game-highlights h2 {
  color: white;
}

.highlights-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.check-icon {
  color: var(--accent-color);
  margin-right: 15px;
  font-weight: bold;
  font-size: 1.2rem;
}

/* 游戏模式 */
.game-modes {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 10px 20px;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid #ddd;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  margin: 0 10px;
}

.tab-btn.active {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.mode-showcase {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--box-shadow);
}

.mode-image {
  flex: 1;
}

.emoji-placeholder {
  width: 100%;
  height: 300px;
  background-color: #f0f2f5;
  border-radius: var(--border-radius);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 100px;
}

.emoji-placeholder.large {
  font-size: 120px;
}

.mode-info {
  flex: 2;
}

.mode-info h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.mode-info p {
  margin-bottom: 20px;
}

.mode-features {
  margin-top: 20px;
}

.mode-features li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.mode-features li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* 最新动态 */
.latest-news {
  padding: 80px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.news-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-image {
  height: 200px;
  background-color: #f0f2f5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.news-image .emoji-placeholder {
  height: 100%;
  width: 100%;
  font-size: 80px;
}

.news-content {
  padding: 20px;
}

.news-date {
  color: var(--gray-color);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 10px;
}

.news-content h3 {
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  margin-top: 15px;
  font-weight: 500;
}

/* 社区展示 */
.community-showcase {
  background-color: var(--darker-color);
  color: white;
  padding: 80px 0;
}

.community-showcase h2 {
  color: white;
}

.community-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 50px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.stat-label {
  font-size: 1.1rem;
}

.community-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.community-cta p {
  margin-bottom: 20px;
}

/* 下载区域 */
.download-section {
  background-color: var(--primary-color);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.download-section h2 {
  color: white;
}

.download-platforms {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.platform-btn {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 15px 25px;
  display: flex;
  align-items: center;
  color: white;
  transition: var(--transition);
}

.platform-btn:hover {
  background-color: white;
  color: var(--primary-color);
}

.platform-icon {
  font-size: 24px;
  margin-right: 10px;
}

/* 页脚 */
footer {
  background-color: var(--darker-color);
  color: white;
  padding: 60px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  gap: 60px;
}

.footer-nav-column h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-nav-column ul li {
  margin-bottom: 10px;
}

.footer-nav-column ul li a {
  color: var(--gray-color);
}

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

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

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-color);
}

.social-icon {
  font-size: 20px;
}

.copyright {
  color: var(--gray-color);
  font-size: 0.9rem;
}

/* 页面头部 */
.page-hero {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0;
  text-align: center;
}

/* 特性分类 */
.feature-categories {
  padding: 60px 0;
}

.category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.category-tab {
  padding: 8px 20px;
  background-color: transparent;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.9rem;
  margin: 5px;
  transition: var(--transition);
}

.category-tab.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.features-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

/* 游戏视频 */
.gameplay-video {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.video-container {
  margin: 40px 0;
}

.video-placeholder {
  width: 100%;
  height: 500px;
  background-color: var(--dark-color);
  border-radius: var(--border-radius);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.play-button {
  position: absolute;
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 2;
}

.video-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* 系统需求 */
.system-requirements {
  padding: 60px 0;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.requirements-column {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.requirements-column h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
  text-align: center;
}

.requirements-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.requirements-list li:last-child {
  border-bottom: none;
}

.req-label {
  font-weight: 600;
}

/* CTA区域 */
.cta-section {
  background-color: var(--primary-color);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: white;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.subscription-form {
  display: flex;
  max-width: 500px;
  margin: 30px auto 0;
}

.subscription-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
}

.subscription-form .btn {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* 活动筛选 */
.events-filter {
  padding-top: 0;
  padding-bottom: 30px;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.filter-tab {
  padding: 10px 20px;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid #ddd;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  margin: 0 10px;
}

.filter-tab.active {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
}

/* 活动列表 */
.events-grid {
  display: none;
}

.events-grid.active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.event-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  position: relative;
}

.event-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 2fr;
}

.event-status {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 5px 10px;
  border-radius: 20px;
  color: white;
  font-size: 0.8rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}

.status-indicator.live {
  background-color: var(--success-color);
  box-shadow: 0 0 5px var(--success-color);
  animation: pulse 1.5s infinite;
}

.status-indicator.upcoming {
  background-color: var(--warning-color);
}

.status-indicator.past {
  background-color: var(--gray-color);
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

.event-header {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: #f8f9fa;
}

.event-icon {
  font-size: 30px;
  margin-right: 15px;
}

.event-title h3 {
  margin-bottom: 5px;
}

.event-period {
  font-size: 0.9rem;
  color: var(--gray-color);
}

.event-content {
  padding: 20px;
}

.event-progress {
  margin: 20px 0;
}

.progress-bar {
  height: 8px;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 5px;
}

.progress {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 4px;
}

.progress-text {
  font-size: 0.9rem;
  color: var(--gray-color);
}

.event-rewards h4 {
  margin-bottom: 10px;
}

.rewards-list {
  margin-bottom: 20px;
}

.rewards-list li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.reward-icon {
  margin-right: 10px;
}

.event-countdown {
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: var(--border-radius);
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
}

.event-results h4 {
  margin-bottom: 10px;
}

.results-list {
  margin-bottom: 20px;
}

.results-list li {
  margin-bottom: 8px;
}

/* 活动日历 */
.event-calendar {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.calendar-header {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.calendar-nav {
  display: flex;
  align-items: center;
}

.calendar-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px 10px;
  color: var(--primary-color);
}

.calendar-nav h3 {
  margin: 0 20px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}

.calendar-day {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 15px;
  min-height: 80px;
  text-align: center;
  position: relative;
}

.calendar-day.header {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  min-height: auto;
}

.calendar-day.empty {
  background-color: transparent;
}

.event-marker {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

.event-marker.exploration {
  background-color: rgba(0, 168, 255, 0.2);
}

.event-marker.combat {
  background-color: rgba(232, 65, 24, 0.2);
}

.event-marker.building {
  background-color: rgba(76, 209, 55, 0.2);
}

.event-marker.special {
  background-color: rgba(255, 159, 67, 0.2);
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
}

.legend-marker {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  margin-right: 8px;
}

.legend-marker.exploration {
  background-color: rgba(0, 168, 255, 0.2);
}

.legend-marker.combat {
  background-color: rgba(232, 65, 24, 0.2);
}

.legend-marker.building {
  background-color: rgba(76, 209, 55, 0.2);
}

.legend-marker.special {
  background-color: rgba(255, 159, 67, 0.2);
}

/* 排行榜标签页 */
.rankings-tabs {
  padding-top: 0;
  padding-bottom: 30px;
}

.rankings-filters {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: var(--gray-color);
}

.filter-group select {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  background-color: white;
}

/* 排行榜内容 */
.top-players {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 50px;
}

.top-player {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--box-shadow);
  margin: 0 15px;
  position: relative;
  width: 250px;
}

.top-player.first {
  padding-top: 40px;
  transform: scale(1.1);
  z-index: 2;
}

.player-rank {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background-color: var(--dark-color);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
}

.top-player.first .player-rank {
  background-color: var(--accent-color);
}

.top-player.second .player-rank {
  background-color: #a4b0be;
}

.top-player.third .player-rank {
  background-color: #cd7f32;
}

.player-avatar {
  width: 80px;
  height: 80px;
  background-color: #f0f2f5;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 15px;
  position: relative;
}

.player-avatar .emoji {
  font-size: 40px;
}

.player-avatar.small {
  width: 40px;
  height: 40px;
  margin: 0 10px 0 0;
}

.player-avatar.small .emoji {
  font-size: 20px;
}

.crown {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
}

.player-details {
  margin-bottom: 15px;
}

.player-class {
  background-color: #f0f2f5;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 5px;
}

.player-level {
  color: var(--primary-color);
  font-weight: 600;
}

.player-stats {
  display: flex;
  justify-content: space-around;
}

.stat {
  text-align: center;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-color);
  display: block;
}

.stat-value {
  font-weight: 600;
}

.rankings-table {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
}

.table-header {
  background-color: var(--primary-color);
  color: white;
  padding: 15px;
  display: grid;
  grid-template-columns: 80px 2fr 1fr 1fr 1fr 1fr;
  font-weight: 600;
}

.table-row {
  padding: 15px;
  display: grid;
  grid-template-columns: 80px 2fr 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.table-row:last-child {
  border-bottom: none;
}

.player-cell {
  display: flex;
  align-items: center;
}

.trend-cell.up {
  color: var(--success-color);
}

.trend-cell.down {
  color: var(--danger-color);
}

.rankings-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pagination-btn {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: var(--border-radius);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.pagination-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.pagination-btn.next {
  width: auto;
  padding: 0 15px;
}

.pagination-dots {
  display: flex;
  align-items: center;
}

/* 公会排行榜 */
.guilds-rankings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.guild-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  position: relative;
}

.guild-card.top {
  background-color: #fff8e1;
  border: 2px solid var(--accent-color);
}

.guild-rank {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 30px;
  height: 30px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
}

.guild-emblem {
  width: 60px;
  height: 60px;
  background-color: #f0f2f5;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  font-size: 30px;
}

.guild-info {
  flex: 1;
}

.guild-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

/* 成就排行榜 */
.achievements-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.category-btn {
  padding: 8px 15px;
  background-color: transparent;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

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

.achievements-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 30px;
}

.achievement-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-wrap: wrap;
}

.achievement-icon {
  width: 60px;
  height: 60px;
  background-color: #f0f2f5;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  font-size: 30px;
}

.achievement-info {
  flex: 1;
  min-width: 200px;
}

.achievement-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.achievement-rarity,
.achievement-points {
  font-size: 0.9rem;
  color: var(--gray-color);
}

.achievement-leaders {
  width: 100%;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 15px;
}

.leader {
  display: flex;
  align-items: center;
}

.leader-avatar {
  width: 30px;
  height: 30px;
  background-color: #f0f2f5;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 8px;
  font-size: 15px;
}

.leader-name {
  font-size: 0.9rem;
}

/* 活动排行榜 */
.event-rankings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 30px;
}

.event-ranking-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.event-header {
  background-color: var(--primary-color);
  color: white;
  padding: 15px;
  text-align: center;
}

.event-header h3 {
  margin-bottom: 5px;
}

.event-date {
  font-size: 0.9rem;
  opacity: 0.8;
}

.event-top-players {
  padding: 20px;
}

.event-player {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.event-player:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.event-player .player-rank {
  position: static;
  transform: none;
  margin-right: 15px;
}

.event-player .player-avatar {
  margin: 0 15px 0 0;
  width: 40px;
  height: 40px;
}

.event-player .player-avatar .emoji {
  font-size: 20px;
}

.event-player .player-name {
  font-weight: 600;
  margin-right: auto;
}

.event-player .player-score {
  font-size: 0.9rem;
  color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-characters {
    flex-wrap: wrap;
  }

  .character {
    margin-bottom: 20px;
  }

  .mode-showcase {
    flex-direction: column;
  }

  .mode-image {
    margin-bottom: 30px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-nav {
    margin-top: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }

  .event-card.featured {
    grid-template-columns: 1fr;
  }

  .top-players {
    flex-wrap: wrap;
  }

  .top-player {
    margin-bottom: 30px;
  }

  .top-player.first {
    order: -1;
    width: 100%;
  }

  .table-header,
  .table-row {
    grid-template-columns: 80px 2fr 1fr 1fr 1fr;
  }

  .trend-cell {
    display: none;
  }
}

@media (max-width: 768px) {
  header {
    display: block;
  }

  header .container {
    flex-wrap: wrap;
  }

  .mobile-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .main-nav {
    display: block;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    order: 3;
  }

  .main-nav.active {
    max-height: 300px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 20px 0 10px 0;
  }

  .main-nav ul li {
    margin: 0 0 15px 0;
  }

  .nav-buttons {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    justify-content: space-around;
  }

  .nav-buttons .btn {
    flex: 1;
    margin: 0 5px;
    text-align: center;
  }
  
  /* 添加底部padding以防止内容被固定的按钮遮挡 */
  body {
    padding-bottom: 70px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .download-platforms {
    flex-direction: column;
  }

  .platform-btn {
    width: 100%;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .table-header,
  .table-row {
    grid-template-columns: 50px 2fr 1fr;
  }

  .achievements-cell {
    display: none;
  }

  .requirements-grid {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .calendar-day.header:nth-child(n+4) {
    display: none;
  }

  .calendar-day:nth-child(n+22) {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .community-stats {
    flex-direction: column;
    gap: 20px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .subscription-form {
    flex-direction: column;
  }

  .subscription-form input {
    border-radius: var(--border-radius);
    margin-bottom: 10px;
  }

  .subscription-form .btn {
    border-radius: var(--border-radius);
  }

  .table-header,
  .table-row {
    grid-template-columns: 50px 2fr 1fr;
  }

  .level-cell {
    display: none;
  }

  .calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calendar-day.header:nth-child(n+3) {
    display: none;
  }

  .calendar-day:nth-child(n+15) {
    display: none;
  }

  .rankings-filters {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
  }
}