:root {
  --gold: #9b7d4a;
  --light-gold: #e5c087;
  --dark: #2a2a2a;
}

body {
  background: #fefefe;
  font-family: "Noto Serif SC", serif;
  color: var(--dark);
  overflow-x: hidden;
}

/* 粒子背景 */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.3;
}

/* 霓虹文字效果 */
.neon-text {
  text-shadow: 0 0 10px rgba(155, 125, 74, 0.8),
    0 0 20px rgba(155, 125, 74, 0.6), 0 0 30px rgba(155, 125, 74, 0.4);
  animation: neonGlow 2s infinite alternate;
}

@keyframes neonGlow {
  from {
    text-shadow: 0 0 10px rgba(155, 125, 74, 0.8),
      0 0 20px rgba(155, 125, 74, 0.6), 0 0 30px rgba(155, 125, 74, 0.4);
  }

  to {
    text-shadow: 0 0 15px rgba(155, 125, 74, 1),
      0 0 25px rgba(155, 125, 74, 0.8), 0 0 35px rgba(155, 125, 74, 0.6);
  }
}

/* 3D卡片翻转 */
.flip-card {
  perspective: 1000px;
  height: 300px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.flip-card-back {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* 视差效果 */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/* 流光边框 */
.flow-border {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
}

.flow-border::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  background-size: 400%;
  border-radius: 15px;
  z-index: -1;
  animation: flow 20s linear infinite;
  filter: blur(5px);
  opacity: 0.7;
}

@keyframes flow {
  0% {
    background-position: 0 0;
  }

  50% {
    background-position: 300% 0;
  }

  100% {
    background-position: 0 0;
  }
}

/* 悬浮动画 */
.hover-float {
  transition: transform 0.3s ease;
}

.hover-float:hover {
  transform: translateY(-10px) scale(1.03);
}

/* 打字效果 */
.typewriter {
  overflow: hidden;
  border-right: 3px solid var(--gold);
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 2px;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: var(--gold);
  }
}

/* 滚动动画元素 */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}

/* 其他样式 */
.carousel-item {
  height: 48vh;
}

.carousel-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
}

.carousel-caption {
  position: absolute;
  top: 75%;
  transform: translateY(-50%);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  z-index: 2;
}

.section-title {
  font-weight: 700;
  color: var(--gold);
  border-bottom: 3px solid var(--light-gold);
  display: inline-block;
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.card-title {
  color: var(--gold);
  font-weight: 600;
}

.highlight-section {
  background: #fffaf3;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.highlight-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="%239b7d4a" opacity="0.05" d="M0,0 L100,0 L100,100 L0,100 Z"></path></svg>');
  background-size: 50px 50px;
  opacity: 0.1;
  z-index: 0;
}

.qrcode {
  width: 180px;
  border: 4px solid var(--light-gold);
  border-radius: 10px;
  transition: all 0.5s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.qrcode:hover {
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

footer {
  background: #2b2b2b;
  color: #bbb;
  padding: 60px 20px;
  text-align: center;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--gold),
    var(--light-gold),
    var(--gold)
  );
}

/* 悬浮按钮 */
.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
}

.floating-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* 加载动画 */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fefefe;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-circle {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .carousel-caption h1 {
    font-size: 2.5rem;
  }

  .parallax {
    background-attachment: scroll;
  }
}

/* 群友战绩轮播图样式 */
#galleryCarousel {
  border: 3px solid var(--light-gold);
  box-shadow: 0 10px 30px rgba(155, 125, 74, 0.3);
  background-color: #1a1a1a;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--light-gold);
  opacity: 0.5;
  margin: 0 5px;
}

.carousel-indicators button.active {
  opacity: 1;
  transform: scale(1.2);
}

.img-thumbnail {
  transition: all 0.3s ease;
  opacity: 0.7;
  border: 2px solid #333;
}

.img-thumbnail:hover,
.img-thumbnail.active {
  opacity: 1;
  border-color: var(--gold) !important;
  transform: scale(1.05);
}

.cursor-pointer {
  cursor: pointer;
}

/* 轮播图标题样式 */
.carousel-caption h5 {
  color: var(--light-gold);
  font-weight: bold;
  font-size: 1.2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.carousel-caption p {
  font-size: 0.9rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  margin-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .carousel-caption {
    display: none !important;
  }

  #galleryCarousel .d-flex {
    height: 300px !important;
  }
}

/* 地图标记动画 */
.map-marker {
  transform: translate(-50%, -100%);
  z-index: 2;
}

.marker-pin {
  font-size: 2rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: bounce 1.5s infinite;
}

.pulse-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255, 0, 0, 0.5);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.7;
  }

  70% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.2;
  }

  100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.7;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.map-container {
  transition: all 0.5s ease;
}

.map-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* 确保图片填充整个正方形容器 */
.object-fit-cover {
  object-fit: cover;
}

/* 新增的footer样式 */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2b2b2b 100%);
  color: #e9ecef;
  padding: 60px 20px;
  position: relative;
}

footer h5 {
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

footer h5::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gold);
}

footer a {
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

footer a:hover {
  color: var(--light-gold) !important;
  transform: translateX(5px);
}

footer a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--light-gold);
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}

footer li i {
  color: var(--light-gold);
  width: 20px;
  text-align: center;
}

/* 技师按钮样式 */
.technician-btn {
  transition: all 0.3s ease;
  min-width: 120px;
}

.technician-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.technician-btn.active {
  background-color: #9b7d4a;
  color: white;
  border-color: #9b7d4a;
}

/* 战绩容器样式 */
#zhanjiContainer {
  min-height: 300px;
  background-color: #211c2f;
  border-radius: 8px;
}
