/* 全局样式 */
:root {
  --primary-color: #ff6b6b;
  --secondary-color: #4ecdc4;
  --accent-color: #ffbe0b;
  --dark-color: #2d3436;
  --light-color: #f9f9f9;
  --text-color: #333;
  --text-light: #666;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-color);
}

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

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

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

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  object-fit: cover;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: bold;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
  color: var(--dark-color);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-desc {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 头部样式 */
header {
  background-color: var(--dark-color);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 0;
}

.logo .slogan {
  color: var(--light-color);
  font-size: 0.9rem;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  color: var(--light-color);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

nav ul li a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* 英雄区域样式 */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--dark-color), #1a1a2e);
  color: white;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--light-color);
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-width: 100%;
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.03);
}

/* 通用部分样式 */
section {
  padding: 80px 0;
}

section:nth-child(even) {
  background-color: white;
}

section:nth-child(odd) {
  background-color: var(--light-color);
}

/* 卡片样式 */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

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

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.card-content p {
  color: var(--text-light);
  margin-bottom: 15px;
}

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

.price {
  display: block;
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 10px;
  font-size: 1.2rem;
}

/* 新闻区域样式 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

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

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.news-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.date {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 10px;
}

/* Cosplay画廊样式 */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* 社区区域样式 */
.forum-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.forum-topic {
  background-color: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.forum-topic:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.forum-topic h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.forum-topic p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.join-btn {
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

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

/* 关于我们区域样式 */
.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.about-image {
  flex: 1;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 15px;
}

/* 文章样式 */
article {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 40px;
}

article h3 {
  font-size: 1.6rem;
  color: var(--dark-color);
  margin-bottom: 20px;
}

article p {
  margin-bottom: 15px;
  line-height: 1.7;
}

/* 页脚样式 */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo h3 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 10px;
}

.footer-links h4, .footer-contact h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

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

.footer-links ul li a {
  color: var(--light-color);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
  color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }
  
  nav ul {
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav ul li {
    margin: 5px 10px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .card-container, .news-grid, .gallery, .forum-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  section {
    padding: 60px 0;
  }
}
