/* Hollow Knight: Silksong 风格样式 */

/* 自定义字体导入 */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  /* 游戏主题颜色 */
  --primary-dark: #0a0a0a;
  --secondary-dark: #1a1a1a;
  --accent-blue: #4a90e2;
  --accent-purple: #9b59b6;
  --accent-gold: #f39c12;
  --accent-silver: #bdc3c7;
  --text-primary: #f8f9fa;
  --text-secondary: #adb5bd;
  --border-glow: #3498db;
  --shadow-glow: rgba(52, 152, 219, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.6;
}

/* 主标题字体 */
h1, h2, h3, .title-font {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 发光效果 */
.glow {
  box-shadow: 0 0 20px var(--shadow-glow);
  border: 1px solid var(--border-glow);
}

.glow-text {
  text-shadow: 0 0 10px var(--accent-blue), 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 导航栏样式 */
.navbar {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--accent-blue);
  box-shadow: 0 2px 20px rgba(52, 152, 219, 0.2);
}

.navbar-brand {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold) !important;
  text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

.nav-link {
  color: var(--text-primary) !important;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-blue) !important;
  text-shadow: 0 0 8px var(--accent-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--accent-blue);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
  box-shadow: 0 0 8px var(--accent-blue);
}

/* 卡片样式 */
.card {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(74, 144, 226, 0.3);
  border-radius: 8px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
  border-color: var(--accent-blue);
}

.card-header {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
  font-weight: 600;
  border-bottom: none;
}

/* 按钮样式 */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border: none;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent-silver);
  color: var(--accent-silver);
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--accent-silver);
  color: var(--primary-dark);
  box-shadow: 0 0 15px rgba(189, 195, 199, 0.3);
}

/* Hero区域 */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="g" cx="50" cy="50" r="50"><stop offset="0%" style="stop-color:%234a90e2;stop-opacity:0.1"/><stop offset="100%" style="stop-color:%239b59b6;stop-opacity:0.05"/></radialGradient></defs><circle fill="url(%23g)" cx="50" cy="50" r="50"/></svg>');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
}

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

/* 攻略卡片特殊样式 */
.guide-card {
  background: rgba(26, 26, 26, 0.9);
  border: 1px solid rgba(74, 144, 226, 0.2);
  transition: all 0.3s ease;
}

.guide-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 5px 20px rgba(243, 156, 18, 0.2);
}

.guide-category {
  background: linear-gradient(45deg, var(--accent-purple), var(--accent-blue));
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* 视频容器 */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 比例 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 面包屑导航 */
.breadcrumb {
  background: rgba(26, 26, 26, 0.7);
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  margin-bottom: 2rem;
}

.breadcrumb-item a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--accent-gold);
}

.breadcrumb-item.active {
  color: var(--text-secondary);
}

/* 语言切换器 */
.language-switcher {
  position: relative;
}

.language-switcher .dropdown-menu {
  background: rgba(26, 26, 26, 0.95);
  border: 1px solid var(--accent-blue);
  backdrop-filter: blur(10px);
}

.language-switcher .dropdown-item {
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.language-switcher .dropdown-item:hover {
  background: rgba(74, 144, 226, 0.2);
  color: var(--accent-blue);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
}

/* 加载动画 */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 1.5s infinite;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--secondary-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* 文章内容样式 */
.article-content {
  line-height: 1.8;
}

.article-content h2 {
  color: var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  color: var(--accent-blue);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.article-content a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-content a:hover {
  color: var(--accent-gold);
  text-shadow: 0 0 5px rgba(243, 156, 18, 0.3);
}

/* 图片样式 */
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin: 1rem 0;
}

/* 引用样式 */
.article-content blockquote {
  background: rgba(74, 144, 226, 0.1);
  border-left: 4px solid var(--accent-blue);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
}

/* 标签样式 */
.tag {
  background: rgba(74, 144, 226, 0.2);
  color: var(--accent-blue);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  display: inline-block;
}
