/* 琉璃神社 - 创意风格：深邃琉璃色系 + 霓虹点缀 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #0f3460;
  --highlight: #e94560;
  --crystal: #00d9ff;
  --text: #eaeaea;
  --text-muted: #a0a0a0;
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(0, 217, 255, 0.2);
}

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

body {
  font-family: 'Noto Sans SC', sans-serif;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
}

/* 背景装饰 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(0, 217, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(233, 69, 96, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* 头部 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--crystal);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo:hover {
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s;
  font-weight: 500;
}

.nav-menu a:hover {
  background: var(--glass);
  color: var(--crystal);
}

/* 主内容区 */
main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  min-height: calc(100vh - 200px);
}

/* 页面标题 */
.page-title {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 2rem 0;
}

.page-title h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  background: linear-gradient(90deg, var(--crystal), var(--highlight));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 首页英雄区 */
.hero-section {
  text-align: center;
  padding: 3rem 1rem;
  margin-bottom: 3rem;
}

.hero-section img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.hero-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
  color: var(--text);
}

/* 内容区块 */
.content-section {
  margin-bottom: 2.5rem;
}

.content-section h3 {
  color: var(--crystal);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--highlight);
}

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

.content-section p:last-child {
  margin-bottom: 0;
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--crystal);
  box-shadow: 0 8px 30px rgba(0, 217, 255, 0.15);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 1.25rem;
}

.card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  border: none;
  padding: 0;
}

.card-content p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.card-content a {
  color: var(--crystal);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.card-content a:hover {
  color: var(--highlight);
}

/* 列表页 */
.list-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
}

.list-item:hover {
  border-color: var(--crystal);
}

.list-item img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.list-item-content {
  flex: 1;
}

.list-item-content h3 {
  margin-bottom: 0.5rem;
  border: none;
  padding: 0;
}

.list-item-content h3 a {
  color: var(--text);
  text-decoration: none;
}

.list-item-content h3 a:hover {
  color: var(--crystal);
}

.list-item-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* 内容页 */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.article-content h2 {
  color: var(--crystal);
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
}

.article-content h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
}

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

.article-content ul, .article-content ol {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--text-muted);
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination a {
  padding: 0.5rem 1rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s;
}

.pagination a:hover {
  background: var(--crystal);
  color: var(--primary);
  border-color: var(--crystal);
}

/* 页脚 */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--crystal);
  text-decoration: none;
}

/* 响应式 */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu {
    justify-content: center;
  }

  .list-item {
    flex-direction: column;
  }

  .list-item img {
    width: 100%;
    height: 160px;
  }

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

@media (max-width: 480px) {
  main {
    padding: 1rem;
  }

  .hero-section {
    padding: 2rem 0.5rem;
  }
}
