/*
  九妖漫画 - 动漫音乐与OP/ED鉴赏站
  Author: Manus AI
  Theme: 迷幻紫+音波蓝+黑胶底色
*/

:root {
  /* 核心色彩体系 */
  --color-bg-base: #121212;
  --color-bg-card: #1E1E1E;
  --color-bg-hover: #2A2A2A;
  --color-primary: #8A2BE2; /* 迷幻紫 */
  --color-secondary: #00BFFF; /* 音波蓝 */
  --color-accent: #FF007F; /* 节奏红 */
  
  --color-text-main: #FFFFFF;
  --color-text-muted: #B3B3B3;
  --color-border: #333333;
  
  /* 尺寸与布局 */
  --sidebar-width: 260px;
  --player-height: 90px;
  --border-radius: 8px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  
  /* 字体 */
  --font-heading: 'Noto Serif SC', 'Songti SC', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* 布局：左侧导航 + 主体内容 + 底部播放栏 */
.app-container {
  display: flex;
  height: calc(100vh - var(--player-height));
}

/* 左侧导航栏 */
.sidebar {
  width: var(--sidebar-width);
  background-color: #000000;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
}

.brand-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.brand-logo span {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: bold;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  list-style: none;
  margin-bottom: 2rem;
}

.nav-menu li {
  margin-bottom: 0.5rem;
}

.nav-menu a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--color-text-muted);
  border-radius: var(--border-radius);
  font-weight: 500;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--color-text-main);
  background-color: var(--color-bg-card);
}

.nav-menu a i {
  margin-right: 12px;
  font-size: 1.2rem;
}

.nav-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin: 1.5rem 0 0.75rem 1rem;
}

/* 主内容区 */
.main-content {
  flex-grow: 1;
  background: linear-gradient(to bottom, #2b1b3d 0%, var(--color-bg-base) 300px);
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

/* 顶部栏（搜索等） */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: sticky;
  top: 0;
  z-padding: 1rem 0;
  z-index: 10;
}

.search-box {
  position: relative;
  width: 300px;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: 20px;
  border: none;
  background-color: rgba(255,255,255,0.1);
  color: white;
  font-family: var(--font-body);
}

.search-box input:focus {
  outline: none;
  background-color: rgba(255,255,255,0.2);
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

.user-actions a {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  background-color: var(--color-text-main);
  color: var(--color-bg-base);
  font-weight: bold;
}

.user-actions a:hover {
  transform: scale(1.05);
  background-color: var(--color-accent);
  color: white;
}

/* 首页首屏 Hero 区 */
.hero-section {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(138,43,226,0.3), rgba(0,191,255,0.1));
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  z-index: 2;
  padding-right: 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--color-primary);
  color: white;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(138,43,226,0.5);
  color: white;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  z-index: 2;
}

.hero-visual img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* 通用网格布局 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.see-all {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: bold;
}

.see-all:hover {
  color: var(--color-text-main);
  text-decoration: underline;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* 黑胶唱片展示卡片 */
.music-card {
  background-color: var(--color-bg-card);
  padding: 1rem;
  border-radius: var(--border-radius);
  transition: background-color var(--transition-fast);
  position: relative;
  cursor: pointer;
}

.music-card:hover {
  background-color: var(--color-bg-hover);
}

.card-cover-wrapper {
  position: relative;
  margin-bottom: 1rem;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
}

.card-cover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  position: relative;
  transition: transform var(--transition-normal);
}

/* 悬停唱片滑出效果 */
.vinyl-record {
  position: absolute;
  top: 5%;
  right: 5%;
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, #111 30%, #333 35%, #111 40%, #222 45%, #000 50%, #222 60%, #111 70%, #333 80%, #111 100%);
  border-radius: 50%;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.vinyl-record::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30%;
  height: 30%;
  background-color: var(--color-primary);
  border-radius: 50%;
  border: 2px solid #111;
}

.music-card:hover .vinyl-record {
  transform: translateX(40%) rotate(90deg);
}

.music-card:hover .card-cover-wrapper img {
  transform: scale(1.02);
}

.play-btn-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 48px;
  height: 48px;
  background-color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 3;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.music-card:hover .play-btn-overlay {
  opacity: 1;
  transform: translateY(0);
}

.card-info h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-info p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 动漫出处标签 */
.anime-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 8px;
  background-color: rgba(0,191,255,0.2);
  color: var(--color-secondary);
  border-radius: 12px;
  margin-top: 0.5rem;
}

/* 底部全局播放栏 */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--player-height);
  background-color: #181818;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  z-index: 100;
}

.player-now-playing {
  display: flex;
  align-items: center;
  width: 30%;
  min-width: 180px;
}

.player-cover {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  margin-right: 1rem;
}

.player-info h4 {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  font-family: var(--font-body);
}

.player-info p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.player-controls {
  width: 40%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.control-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.control-buttons i {
  color: var(--color-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.control-buttons i:hover {
  color: white;
}

.control-buttons .play-pause {
  width: 32px;
  height: 32px;
  background-color: white;
  color: black;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
}

.control-buttons .play-pause:hover {
  transform: scale(1.05);
}

.progress-container {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.progress-bar {
  flex-grow: 1;
  height: 4px;
  background-color: #4d4d4d;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.progress-current {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 2px;
  width: 30%;
}

.progress-bar:hover .progress-current {
  background-color: var(--color-secondary);
}

.player-extra {
  width: 30%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  color: var(--color-text-muted);
}

.player-extra i:hover {
  color: white;
  cursor: pointer;
}

/* 详情页头部 */
.detail-header {
  display: flex;
  gap: 2rem;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.detail-cover {
  width: 232px;
  height: 232px;
  border-radius: 4px;
  box-shadow: 0 4px 60px rgba(0,0,0,0.5);
}

.detail-info {
  flex: 1;
}

.detail-type {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.detail-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.detail-meta img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

/* 详情页内容区 */
.detail-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.review-section h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.review-text {
  color: #ccc;
  font-size: 1.05rem;
}

.review-text p {
  margin-bottom: 1.2rem;
}

/* 歌词面板 */
.lyrics-panel {
  background-color: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 1.5rem;
  max-height: 600px;
  overflow-y: auto;
}

.lyrics-line {
  margin-bottom: 1.5rem;
  transition: opacity var(--transition-fast);
}

.lyrics-line.active {
  transform: scale(1.02);
  transform-origin: left;
}

.lyrics-jp {
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  margin-bottom: 0.2rem;
}

.lyrics-ro {
  font-size: 0.9rem;
  color: var(--color-secondary);
  margin-bottom: 0.2rem;
}

.lyrics-zh {
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* 文章内容/合规页排版 */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.article-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.article-content h2 {
  margin-top: 2rem;
  color: var(--color-primary);
}

.article-content p {
  margin-bottom: 1.2rem;
  color: #ccc;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
  color: #ccc;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* 页脚 */
.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  padding-bottom: 2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .detail-content {
    grid-template-columns: 1fr;
  }
  .hero-section {
    flex-direction: column;
  }
  .hero-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
    height: auto;
    padding-bottom: calc(var(--player-height) + 60px); /* 给底部导航留空间 */
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    padding: 1rem;
    display: none; /* 移动端默认隐藏左侧栏，可改用底部Tab或汉堡菜单 */
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .detail-title {
    font-size: 2.5rem;
  }
  
  .player-bar {
    padding: 0 0.5rem;
  }
  
  .player-now-playing {
    width: auto;
    min-width: 0;
  }
  
  .player-info {
    display: none;
  }
  
  .player-extra {
    display: none;
  }
  
  .player-controls {
    width: 60%;
  }
}

/* SEO优化类 - 仅屏幕阅读器可见 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
