/* == Reset & 全局 == */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
  font-family: "Microsoft YaHei", "SimSun", serif; 
  line-height: 1.8; 
  color: #2c1810; 
  background: linear-gradient(135deg, #faf8f3 0%, #f5f1e8 50%, #ede7d9 100%);
  min-height: 100vh;
}
a { color: #d4af37; text-decoration: none; transition: all 0.3s ease; }

ul { list-style: none; }

/* == Header == */
header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 15px 30px; 
  background: linear-gradient(90deg, #8b0000 0%, #dc143c 50%, #8b0000 100%);
  box-shadow: 0 4px 20px rgba(139, 0, 0, 0.3);
  border-bottom: 3px solid #d4af37;
  position: relative;
}
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="wave" x="0" y="0" width="100" height="20" patternUnits="userSpaceOnUse"><path d="M0 10 Q25 0 50 10 T100 10 V20 H0 Z" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="20" fill="url(%23wave)"/></svg>') repeat-x;
  pointer-events: none;
}
header .logo { 
  font-size: 2rem; 
  font-weight: bold; 
  color: #d4af37; 
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}
header nav ul { display: flex; gap: 25px; position: relative; z-index: 1; }
header nav li a { 
  color: #fff; 
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}


/* 当前页面导航高亮 */
header nav li a.current-page {
  background: linear-gradient(45deg, #d4af37, #f4d03f);
  color: #2c1810;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

/* 导航切换按钮 */
.nav-toggle {
  background: none;
  border: 2px solid #d4af37;
  color: #d4af37;
  font-size: 1.5rem;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}


/* 响应式导航 */
.nav-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #2c1810 0%, #1a0f0a 100%);
  border-top: 2px solid #d4af37;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}
.nav-mobile.nav-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.nav-mobile ul {
  flex-direction: column;
  padding: 20px;
  gap: 15px;
}
.nav-mobile ul li a {
  display: block;
  padding: 12px 20px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* == Hero 轮播 == */
.hero { 
  position: relative; 
  overflow: hidden; 
  height: 688px; 
  border-radius: 0 0 50px 50px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(139,0,0,0.3) 0%, rgba(212,175,55,0.2) 50%, rgba(139,0,0,0.3) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
  transition: transform 0.8s ease, filter 0.8s ease;
  filter: brightness(0.8) contrast(1.1);
}

.hero-text { 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  color: #fff; 
  text-align: center; 
  text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
  z-index: 3;
  animation: fadeInUp 1.5s ease-out;
}
.hero-text h1 { 
  font-size: 4rem; 
  margin-bottom: 1rem; 
  background: linear-gradient(45deg, #d4af37, #fff, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 3px;
  animation: glow 2s ease-in-out infinite alternate;
}
.hero-text p { 
  font-size: 1.5rem; 
  color: #f0f0f0;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}
.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 3;
}
.hero-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(212,175,55,0.8);
}
.hero-indicator.active {
  background: #d4af37;
  transform: scale(1.3);
  box-shadow: 0 0 15px rgba(212,175,55,0.8);
}

/* 轮播图控制按钮 */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #d4af37;
  border: 2px solid rgba(212,175,55,0.8);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev {
  left: 20px;
}
.carousel-next {
  right: 20px;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -30%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
@keyframes glow {
  from {
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 20px rgba(212,175,55,0.5);
  }
  to {
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 30px rgba(212,175,55,0.8), 0 0 40px rgba(212,175,55,0.6);
  }
}

/* == 特性卡片 == */
.features { 
  display: flex; 
  justify-content: space-around; 
  padding: 60px 20px; 
  background: linear-gradient(135deg, #f8f5f0 0%, #ede7d9 100%);
  position: relative;
}
.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="pattern" x="0" y="0" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="2" fill="%23d4af37" opacity="0.1"/></pattern></defs><rect width="60" height="60" fill="url(%23pattern)"/></svg>');
  pointer-events: none;
}
.feature-card { 
  width: 30%; 
  text-align: center; 
  transition: all 0.4s ease; 
  border-radius: 20px; 
  overflow: hidden; 
  box-shadow: 0 8px 25px rgba(139,0,0,0.15);
  background: linear-gradient(145deg, #fff 0%, #faf8f3 100%);
  border: 2px solid rgba(212,175,55,0.3);
  position: relative;
  z-index: 1;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(212,175,55,0.1) 0%, transparent 50%, rgba(139,0,0,0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-card img { 
  width: 100%; 
  height: 220px; 
  object-fit: cover; 
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.9);
}

.feature-card h3 { 
  padding: 20px 15px 10px; 
  color: #8b0000;
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 1px;
}
.feature-card h3 a {
  color: #8b0000;
  transition: all 0.3s ease;
}

.feature-card p { 
  padding: 0 15px 25px; 
  color: #5a4a3a; 
  line-height: 1.6;
  font-size: 0.95rem;
}


/* == Footer == */
footer { 
  background: linear-gradient(135deg, #2c1810 0%, #1a0f0a 100%); 
  color: #d4af37; 
  text-align: center; 
  padding: 40px 20px; 
  position: relative;
  border-top: 3px solid #d4af37;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #d4af37 50%, transparent 100%);
}
footer p { 
  margin: 0; 
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(212,175,55,0.3);
}

/* == 通用容器 == */
.container { max-width: 1000px; margin: 40px auto; padding: 0 20px; }

/* == 时间轴（history.html） == */
.timeline { position: relative; margin: 20px 0; }
.timeline::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 4px; background: #c00; }
.timeline-item { position: relative; margin-left: 60px; margin-bottom: 30px; cursor: pointer; padding: 10px; border-radius: 5px; transition: background-color 0.3s; }

.timeline-item::before { content: ""; position: absolute; left: -40px; top: 15px; width: 20px; height: 20px; border-radius: 50%; background: #c00; }
.timeline-item h4 { color: #c00; margin-bottom: 10px; }
.timeline-content { display: none; padding: 10px 15px; border: 1px solid #ddd; background: #fff; border-radius: 5px; margin-top: 10px; }

/* == Tab 切换 (genres.html) == */
.tabs { display: flex; border-bottom: 2px solid #ddd; margin-bottom: 20px; }
.tab { padding: 15px 25px; cursor: pointer; background: #f8f8f8; margin-right: 5px; border-radius: 5px 5px 0 0; transition: all 0.3s; }

.tab.active { border-bottom: 3px solid #c00; font-weight: bold; background: #fff; }
.tab-content { display: none; padding: 20px 0; }
.tab-content h3 { color: #c00; margin-bottom: 15px; }
.tab-content p { line-height: 1.8; }

/* == 悬停高亮 (classics.html) == */
.classics-list { display: flex; flex-wrap: wrap; gap: 20px; }
.classics-item { position: relative; width: 30%; overflow: hidden; cursor: pointer; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.classics-item img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .3s; }

.classics-item .info { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.8); color: #fff; padding: 15px; transform: translateY(100%); transition: transform .3s; }

.classics-item .info h4 { margin-bottom: 5px; }

/* == 视频弹窗 (performance.html) == */
.video-btn { background: #c00; color: #fff; border: none; padding: 15px 30px; font-size: 1.1rem; border-radius: 5px; cursor: pointer; transition: background 0.3s; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); justify-content: center; align-items: center; z-index: 1000; }
.modal-content { position: relative; width: 80%; max-width: 800px; }
.modal-content video { width: 100%; border-radius: 8px; }
.modal-close { position: absolute; top: -15px; right: -15px; cursor: pointer; font-size: 2rem; color: #fff; background: #c00; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }


/* == 手风琴 (characters.html) == */
.accordion-item { border-bottom: 1px solid #ddd; }
.accordion-header { padding: 20px 15px; cursor: pointer; position: relative; background: #f8f8f8; transition: background 0.3s; }

.accordion-header::after { content: "+"; position: absolute; right: 20px; font-size: 1.5rem; color: #c00; }
.accordion-header.active::after { content: "-"; }
.accordion-header.active { background: #fff; }
.accordion-body { display: none; padding: 20px 15px; background: #fff; }
.accordion-body p { line-height: 1.8; }

/* == 表单 (login & register) == */
form { max-width: 400px; margin: 50px auto; padding: 30px; border: 1px solid #ddd; border-radius: 8px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
form h2 { text-align: center; margin-bottom: 30px; color: #c00; }
form label { display: block; margin-bottom: 15px; font-weight: bold; }
form input { width: 100%; padding: 12px; margin-top: 5px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
form input:focus { border-color: #c00; outline: none; }
form .error { color: #c00; font-size: 0.9rem; margin-top: 5px; }
form button { width: 100%; padding: 12px; border: none; cursor: pointer; background: #c00; color: #fff; font-size: 1.1rem; border-radius: 4px; margin-top: 10px; transition: background 0.3s; }

form p { text-align: center; margin-top: 15px; }

/* == 响应式设计 == */
@media (max-width: 768px) {
  .features { 
    flex-direction: column; 
    align-items: center; 
    padding: 40px 15px;
  }
  .feature-card { 
    width: 90%; 
    margin-bottom: 30px; 
    border-radius: 15px;
  }
  .hero {
    height: 400px;
    border-radius: 0 0 30px 30px;
  }
  .hero-text h1 { 
    font-size: 2.5rem; 
    letter-spacing: 2px;
  }
  .hero-text p { 
    font-size: 1.1rem; 
    margin-bottom: 1.5rem;
  }
  .hero-indicators {
    bottom: 20px;
    gap: 10px;
  }
  .hero-indicator {
    width: 10px;
    height: 10px;
  }
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .carousel-prev {
    left: 10px;
  }
  .carousel-next {
    right: 10px;
  }
  header {
    position: relative;
  }
  header nav ul {
    flex-direction: column;
    gap: 10px;
  }
  header nav ul li a {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  .container {
    padding: 0 15px;
  }
  header { flex-direction: column; gap: 10px; }
  .classics-list { flex-direction: column; }
  .classics-item { width: 100%; }
  .tabs { flex-wrap: wrap; }
  .tab { flex: 1; min-width: 120px; }
}

@media (max-width: 480px) {
  .hero {
    height: 350px;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .feature-card {
    width: 95%;
  }
  .feature-card img {
    height: 180px;
  }
}