/* 千年MMORPG古风主题 */

:root {
  --ancient-primary: #8B4513;     /* 古铜色 */
  --ancient-secondary: #D4AF37;   /* 金色 */
  --ancient-bg: #F5F0E6;          /* 米黄色 */
  --ancient-text: #2C1810;        /* 深棕色 */
  --ancient-accent: #C41E3A;      /* 朱红色 */
  --ancient-border: #5D3A1A;      /* 深褐色 */
}

/* 书法字体 */
.font-ancient {
  font-family: "STKaiti", "KaiTi", "楷体", "楷体_GB2312", serif;
}

.font-calligraphy {
  font-family: "STXingkai", "华文行楷", "隶书", serif;
}

/* 古风卡片 */
.ancient-card {
  background: var(--ancient-bg);
  border: 2px solid var(--ancient-border);
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(139, 69, 19, 0.2);
  position: relative;
  margin-bottom: 1.5rem;
}

.ancient-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ancient-primary), var(--ancient-secondary));
}

/* 古风按钮 */
.ancient-btn {
  background: linear-gradient(135deg, var(--ancient-primary), var(--ancient-border));
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: "STKaiti", "KaiTi", serif;
  text-decoration: none;
  display: inline-block;
}

.ancient-btn:hover {
  background: linear-gradient(135deg, var(--ancient-border), var(--ancient-primary));
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.4);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

/* 云纹背景装饰 */
.cloud-pattern-bg {
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(212, 175, 55, 0.03) 10px,
      rgba(212, 175, 55, 0.03) 20px
    );
}

/* 祥云装饰（使用emoji实现） */
.cloud-decoration::after {
  content: '☁️';
  position: absolute;
  font-size: 3rem;
  opacity: 0.1;
  top: -10px;
  right: 20px;
}

/* 古风标题 */
.ancient-title {
  font-family: "STXingkai", "华文行楷", serif;
  font-size: 2.5rem;
  color: var(--ancient-primary);
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.ancient-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ancient-secondary), transparent);
}

/* 古风Hero区 */
.ancient-hero {
  background: linear-gradient(135deg, var(--ancient-primary), var(--ancient-border));
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ancient-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(196, 30, 58, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.ancient-hero .hero-content {
  position: relative;
  z-index: 1;
}

/* 专区导航 */
.section-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem;
  background: var(--ancient-bg);
  border-bottom: 2px solid var(--ancient-border);
}

.section-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #fff;
  border: 1px solid var(--ancient-border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ancient-text);
  transition: all 0.3s;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 1.1rem;
}

.section-nav-item:hover,
.section-nav-item.active {
  background: var(--ancient-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(139, 69, 19, 0.3);
  text-decoration: none;
}

/* 书法印章效果 */
.seal-stamp {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: var(--ancient-accent);
  color: #fff;
  border-radius: 4px;
  font-family: "STXingkai", "华文行楷", serif;
  font-size: 0.9rem;
  border: 2px solid #8B0000;
}

/* 统计看板 */
.stats-dashboard .ancient-card h3 {
  font-size: 2.5rem;
  color: var(--ancient-primary);
  margin-bottom: 0.5rem;
  font-family: "STXingkai", "华文行楷", serif;
}

.stats-dashboard .ancient-card p {
  color: var(--ancient-text);
  font-size: 0.9rem;
}

/* 内容列表项 */
.strategy-item,
.news-item {
  padding: 1rem;
  border-bottom: 1px solid rgba(139, 69, 19, 0.2);
  transition: background 0.3s;
}

.strategy-item:last-child,
.news-item:last-child {
  border-bottom: none;
}

.strategy-item:hover,
.news-item:hover {
  background: rgba(139, 69, 19, 0.05);
}

.strategy-item a,
.news-item a {
  text-decoration: none;
  color: var(--ancient-text);
}

.strategy-item a:hover,
.news-item a:hover {
  color: var(--ancient-primary);
}

.strategy-item h4,
.news-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--ancient-primary);
}

/* 游戏封面图 */
.hero-cover {
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .ancient-title {
    font-size: 1.8rem;
  }

  .section-nav {
    flex-direction: column;
  }

  .section-nav-item {
    width: 100%;
    justify-content: center;
  }

  .ancient-hero {
    padding: 2rem 1rem;
  }

  .stats-dashboard .ancient-card h3 {
    font-size: 2rem;
  }
}

/* 辅助类 */
.text-ancient-primary {
  color: var(--ancient-primary) !important;
}

.bg-ancient {
  background-color: var(--ancient-bg) !important;
}

.border-ancient {
  border-color: var(--ancient-border) !important;
}
