:root {
  color-scheme: dark;
}

body {
  background-image: linear-gradient(135deg, rgba(11, 58, 63, 0.3), rgba(18, 18, 18, 0.9)), url("../images/paper-texture.svg");
  background-size: cover;
  background-attachment: fixed;
}

.site-shell {
  min-height: 100vh;
}

.paper-panel,
.feature-card,
.member-card,
.gallery-card,
.floating-toolbar,
.tree-node {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.paper-panel:hover,
.feature-card:hover,
.member-card:hover,
.gallery-card:hover,
.tree-node:hover,
.toolbar-btn:hover,
.nav-link:hover,
.filter-chip:hover,
.tab-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  border-color: rgba(212, 175, 55, 0.7);
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 70vh;
}

.hero-slide.active {
  display: block;
}

.hero-slide img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  filter: saturate(0.9);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(90deg, rgba(7, 24, 27, 0.7), rgba(0, 0, 0, 0.25));
}

.dot {
  height: 10px;
  width: 10px;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(255, 255, 255, 0.3);
}

.dot.active {
  background: #d4af37;
}

.nav-link {
  color: #e7d6ab;
  transition: color 0.2s ease;
}

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

.filter-chip,
.tab-button,
.toolbar-btn {
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 9999px;
  padding: 0.52rem 0.85rem;
  color: #d4af37;
  background: rgba(7, 24, 27, 0.8);
  transition: all 0.25s ease;
}

.filter-chip.active,
.tab-button.active {
  background: #d4af37;
  color: #0b3a3f;
}

.toolbar-btn {
  display: block;
  margin-top: 0.5rem;
  text-align: center;
}

.is-hidden {
  display: none !important;
}

/* 古风装饰边框 */
.paper-panel,
.feature-card,
.member-card,
.gallery-card,
.floating-toolbar,
.tree-node {
  position: relative;
  overflow: hidden;
}

.paper-panel::before,
.feature-card::before,
.member-card::before,
.gallery-card::before,
.tree-node::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: inherit;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-slide img {
    height: 60vh;
  }
}
