* {
  -webkit-tap-highlight-color: transparent;
}

html { 
  scroll-behavior: smooth; 
}

body {
  background: #0a0a0f;
  color: #e2e8f0;
  overflow-x: hidden;
  font-family: 'Noto Serif SC', serif;
}

/* 标题字体 - 马善政毛笔楷书 */
.font-xianshu {
  font-family: 'Ma Shan Zheng', cursive;
  font-weight: 400;
}

/* 正文字体 - 思源宋体 */
.font-songti {
  font-family: 'Noto Serif SC', serif;
}

/* 简洁背景 */
.bg-gradient {
  background: linear-gradient(135deg, #0a0a0f 0%, #12121a 50%, #0a0a0f 100%);
}

/* 文字样式 */
.text-xian-shadow { 
  text-shadow: 0 0 20px rgba(168,85,247,0.3); 
}

.gradient-text { 
  background: linear-gradient(135deg, #ffd700 0%, #a855f7 50%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 卡片样式 - 简洁版 */
.card-xian { 
  background: rgba(18, 18, 26, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 16px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.card-xian:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .card-xian:hover {
    transform: none;
  }
}

/* 徽章样式 - 加大 */
.badge-xian { 
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
  white-space: nowrap;
}

.badge-gold { 
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
  white-space: nowrap;
}

/* 按钮样式 - 加大 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: white;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  min-width: 160px;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(168, 85, 247, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: transparent;
  color: #ffd700;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.125rem;
  border: 1px solid rgba(255, 215, 0, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 160px;
}

.btn-secondary:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.8);
}

/* 导航样式 */
.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ffd700;
}

/* 工具卡片 */
.tool-card {
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #e2e8f0;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tool-card:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
}

/* 进度条 */
#progress-bar {
  background: linear-gradient(90deg, #a855f7, #ffd700);
  height: 2px;
  transition: width 0.1s ease;
}

/* 滚动条 */
::-webkit-scrollbar { 
  width: 6px; 
}
::-webkit-scrollbar-track { 
  background: #0a0a0f; 
}
::-webkit-scrollbar-thumb { 
  background: #4c1d95; 
  border-radius: 3px; 
}

/* 选中文字 */
::selection { 
  background: rgba(168,85,247,0.3); 
  color: #ffd700; 
}

/* 移动端优化 - 首页大字适配 */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem !important;
  }
  
  /* 首页标题移动端适配 */
  #home h1 {
    font-size: 3rem !important;
    line-height: 1.1;
  }
  
  #home h1 + p {
    font-size: 1.25rem !important;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    min-width: 140px;
  }
  
  .badge-xian,
  .badge-gold {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }
  
  .card-xian {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  #home h1 {
    font-size: 2.5rem !important;
  }
  
  #home h1 + p {
    font-size: 1.125rem !important;
  }
}

/* 宗派卡片 */
.zongpai-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.zongpai-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.05);
}

/* 功法卡片 */
.gongfa-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.gongfa-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
}

/* 标签样式 */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.2);
}