/* ========================================
   秋风沉默 - 传奇私服风格样式
   参考经典传奇游戏服务器网站布局
   ======================================== */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0806;
  --bg-section: #0f0c08;
  --bg-panel: #1a1410;
  --bg-panel-light: #221c14;
  --gold-main: #c8a84e;
  --gold-highlight: #f0d060;
  --gold-dark: #8b6914;
  --gold-dim: #5a4520;
  --text-primary: #e8dcc8;
  --text-secondary: #a89878;
  --text-dim: #6b5d4a;
  --red-accent: #cc3333;
  --red-glow: #ff4444;

  /* Quality Colors */
  --quality-common: #cccccc;
  --quality-magic: #4169e1;
  --quality-rare: #ffd700;
  --quality-epic: #00cc66;
  --quality-legendary: #ff4444;

  --container-width: 1200px;
  --ease-legend: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--gold-main); text-decoration: none; transition: color 0.3s var(--ease-legend); }
a:hover { color: var(--gold-highlight); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
  position: relative;
  z-index: 50;
  background: linear-gradient(180deg, #1a1410 0%, #0f0c08 100%);
  border-bottom: 1px solid var(--gold-dark);
}

.top-bar-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-logo {
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold-highlight);
  letter-spacing: 6px;
  text-shadow: 0 0 15px rgba(240, 208, 96, 0.4), 0 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.top-title-img {
  flex: 1;
  text-align: center;
}

.top-slogan {
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 4px;
}

.top-btns {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.top-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid var(--gold-dark);
  background: linear-gradient(180deg, rgba(200, 168, 78, 0.1) 0%, rgba(139, 105, 20, 0.05) 100%);
  transition: all 0.3s var(--ease-legend);
  cursor: pointer;
  min-width: 100px;
}

.top-btn:hover {
  border-color: var(--gold-main);
  background: linear-gradient(180deg, rgba(200, 168, 78, 0.2) 0%, rgba(139, 105, 20, 0.1) 100%);
  box-shadow: 0 0 15px rgba(200, 168, 78, 0.15);
}

.top-btn .btn-main {
  font-size: 0.9rem;
  color: var(--gold-main);
  letter-spacing: 2px;
  font-weight: 700;
}

.top-btn .btn-sub {
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(139, 105, 20, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(200, 168, 78, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(200, 168, 78, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-primary) 0%, #12100a 50%, var(--bg-primary) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px);
  pointer-events: none;
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold-main);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 6s infinite;
}

.hero-particles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 20%; animation-delay: 0.6s; }
.hero-particles span:nth-child(3) { left: 30%; animation-delay: 1.2s; }
.hero-particles span:nth-child(4) { left: 40%; animation-delay: 1.8s; }
.hero-particles span:nth-child(5) { left: 50%; animation-delay: 2.4s; }
.hero-particles span:nth-child(6) { left: 60%; animation-delay: 3.0s; }
.hero-particles span:nth-child(7) { left: 70%; animation-delay: 3.6s; }
.hero-particles span:nth-child(8) { left: 80%; animation-delay: 4.2s; }
.hero-particles span:nth-child(9) { left: 85%; animation-delay: 4.8s; }
.hero-particles span:nth-child(10) { left: 95%; animation-delay: 5.4s; }

@keyframes particleFloat {
  0% { transform: translateY(100%); opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { transform: translateY(-520px); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 24px;
}

.hero-badge {
  display: inline-block;
  padding: 4px 24px;
  border: 1px solid var(--gold-dark);
  margin-bottom: 20px;
}

.hero-badge .badge-text {
  font-size: 0.7rem;
  color: var(--gold-dark);
  letter-spacing: 6px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  color: var(--gold-highlight);
  letter-spacing: 20px;
  text-shadow:
    0 0 30px rgba(240, 208, 96, 0.5),
    0 0 80px rgba(240, 208, 96, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.9);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  letter-spacing: 6px;
  margin-bottom: 40px;
}

.hero-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-nav-btn {
  padding: 10px 28px;
  border: 1px solid var(--gold-dark);
  color: var(--gold-main);
  font-size: 0.9rem;
  letter-spacing: 3px;
  transition: all 0.3s var(--ease-legend);
  background: rgba(26, 20, 16, 0.6);
}

.hero-nav-btn:hover {
  border-color: var(--gold-main);
  color: var(--gold-highlight);
  background: rgba(200, 168, 78, 0.1);
  box-shadow: 0 0 20px rgba(200, 168, 78, 0.15);
}

.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--bg-primary));
  pointer-events: none;
}

/* ========================================
   SECTION HEADER (shared)
   ======================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-main);
  letter-spacing: 8px;
  text-shadow: 0 0 15px rgba(200, 168, 78, 0.25);
  white-space: nowrap;
}

.section-header-line {
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

/* ========================================
   ANNOUNCEMENT SECTION
   ======================================== */
.announcement-section {
  padding: 40px 0;
  background: var(--bg-section);
  border-top: 1px solid rgba(139, 105, 20, 0.2);
  border-bottom: 1px solid rgba(139, 105, 20, 0.2);
}

.ann-panel {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.ann-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ann-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--red-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(204, 51, 51, 0.1);
  flex-shrink: 0;
}

.ann-icon span {
  color: var(--red-accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.ann-title {
  color: var(--red-accent);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  white-space: nowrap;
}

.ann-header-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 168, 78, 0.5), rgba(200, 168, 78, 0));
}

.ann-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  border: 1px solid rgba(139, 105, 20, 0.25);
  background: rgba(15, 12, 8, 0.6);
  padding: 16px 20px;
  list-style: none;
}

.ann-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px dashed rgba(139, 105, 20, 0.12);
  min-width: 0;
}

.ann-list li:nth-last-child(-n+2) {
  border-bottom: none;
}

.ann-tag {
  flex-shrink: 0;
  color: var(--red-accent);
  border: 1px solid rgba(204, 51, 51, 0.4);
  background: rgba(204, 51, 51, 0.06);
  font-size: 0.75rem;
  padding: 1px 8px;
  letter-spacing: 1px;
}

.ann-list li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s var(--ease-legend);
}

.ann-list li a:hover {
  color: var(--gold-highlight);
}

/* ========================================
   SCREENSHOTS CAROUSEL
   ======================================== */
.screenshots-section {
  padding: 60px 0;
  background: var(--bg-primary);
}

.screenshots-carousel {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ======== 时装展示 ======== */
.fashion-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}
.fashion-marquee {
  overflow: hidden;
  border-top: 1px solid var(--gold-dark);
  border-bottom: 1px solid var(--gold-dark);
  background: rgba(13,10,7,.5);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.fashion-track {
  --sw: 350px;      /* 单个时装窗口宽 */
  --gap: 18px;      /* 窗口间距 */
  --unit: calc(var(--sw) * 5 + var(--gap) * 5); /* 一份内容宽度：5个窗口+5个gap */
  display: flex;
  gap: var(--gap);
  width: max-content;
  padding: 20px 9px;
  animation: fashionScroll 30s linear infinite;
  will-change: transform;
}
.fashion-marquee:hover .fashion-track {
  animation-play-state: paused;
}
.fashion-slide {
  position: relative;
  flex: 0 0 auto;
  width: 350px;
  height: 417px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid rgba(200,168,78,.5);
  background: var(--bg-panel);
  box-shadow: inset 0 0 18px rgba(139,105,20,.18);
}
.fashion-slide .fashion-logo {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  background: #120c07;
  border-radius: 2px;
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 2px;
}
.fashion-slide .fashion-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f0d060, #c8a84e);
  color: #201509;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.fashion-slide .fashion-logo-text {
  color: #f0d060;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 10px rgba(200, 168, 78, 0.6);
}
.fashion-slide .fashion-caption {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: #e8dcc8;
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  letter-spacing: 3px;
  padding: 4px 14px;
  background: rgba(18,12,7,.82);
  border-radius: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
}
.fashion-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@keyframes fashionScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--unit))); }
}

.carousel-viewport {
  overflow: hidden;
  border: 1px solid var(--gold-dark);
  background: var(--bg-panel);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s var(--ease-legend);
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
}

.carousel-slide .screenshot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(139, 105, 20, 0.08) 0%, transparent 50%),
    linear-gradient(315deg, rgba(200, 168, 78, 0.05) 0%, transparent 50%),
    var(--bg-panel);
  gap: 16px;
}

.placeholder-icon {
  font-size: 3rem;
  color: var(--gold-dark);
  opacity: 0.6;
}

.placeholder-label {
  font-size: 1.1rem;
  color: var(--text-dim);
  letter-spacing: 4px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold-dark);
  background: rgba(26, 20, 16, 0.85);
  color: var(--gold-main);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-legend);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  border-color: var(--gold-main);
  background: rgba(200, 168, 78, 0.15);
}

.carousel-prev { left: 32px; }
.carousel-next { right: 32px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  background: var(--gold-dark);
  transform: rotate(45deg);
  cursor: pointer;
  transition: all 0.3s var(--ease-legend);
  opacity: 0.5;
}

.carousel-dots .dot.active {
  background: var(--gold-main);
  opacity: 1;
  box-shadow: 0 0 8px rgba(200, 168, 78, 0.4);
}

/* ========================================
   EQUIPMENT SECTION
   ======================================== */
.equipment-section {
  padding: 60px 0;
  background: var(--bg-section);
  border-top: 1px solid rgba(139, 105, 20, 0.15);
}

.equip-subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 3px;
  margin-bottom: 40px;
}

/* Equipment Card */
.equip-card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid rgba(139, 105, 20, 0.3);
  transition: all 0.35s var(--ease-legend);
  overflow: hidden;
}

.equip-card:hover {
  border-color: var(--gold-main);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(200, 168, 78, 0.04);
}

/* Quality stripe */
.equip-card .quality-stripe {
  height: 3px;
  width: 100%;
}

.equip-card .quality-stripe.common { background: var(--quality-common); }
.equip-card .quality-stripe.magic { background: var(--quality-magic); }
.equip-card .quality-stripe.rare { background: var(--quality-rare); }
.equip-card .quality-stripe.epic { background: var(--quality-epic); }
.equip-card .quality-stripe.legendary { background: var(--quality-legendary); }

.equip-card:hover .quality-stripe.legendary { box-shadow: 0 0 12px rgba(255, 68, 68, 0.5); }
.equip-card:hover .quality-stripe.epic { box-shadow: 0 0 12px rgba(0, 204, 102, 0.5); }
.equip-card:hover .quality-stripe.rare { box-shadow: 0 0 12px rgba(255, 215, 0, 0.5); }
.equip-card:hover .quality-stripe.magic { box-shadow: 0 0 12px rgba(65, 105, 225, 0.5); }

/* Image area */
.equip-card .equip-image {
  width: 100%;
  aspect-ratio: 1;
  background: radial-gradient(circle at center, #1a1510 0%, #0e0b07 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.equip-card .equip-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

/* --- Animated GIF-style placeholder --- */
.equip-card .equip-anim {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Rotating ring */
.equip-card .anim-ring {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: ringRotate 4s linear infinite;
}

.equip-card .anim-ring::before,
.equip-card .anim-ring::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--anim-color, #c8a84e);
  box-shadow: 0 0 10px var(--anim-color, #c8a84e), 0 0 20px var(--anim-color, #c8a84e);
}

.equip-card .anim-ring::before { top: -4px; left: 50%; transform: translateX(-50%); }
.equip-card .anim-ring::after { bottom: -4px; left: 50%; transform: translateX(-50%); }

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Second ring (counter-rotate, for epic/legendary) */
.equip-card .anim-ring2 {
  position: absolute;
  width: 85%;
  height: 85%;
  border-radius: 50%;
  border: 1px solid transparent;
  animation: ringRotate 6s linear infinite reverse;
  opacity: 0.6;
}

.equip-card .anim-ring2::before {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--anim-color, #c8a84e);
  box-shadow: 0 0 8px var(--anim-color, #c8a84e);
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
}

/* Pulsing aura */
.equip-card .anim-aura {
  position: absolute;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--anim-color, #c8a84e) 0%, transparent 70%);
  opacity: 0.15;
  animation: auraPulse 2.5s ease-in-out infinite;
}

@keyframes auraPulse {
  0%, 100% { transform: scale(0.8); opacity: 0.1; }
  50% { transform: scale(1.3); opacity: 0.25; }
}

/* Floating sparkle particles */
.equip-card .anim-sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--anim-color, #c8a84e);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--anim-color, #c8a84e);
  animation: sparkleFloat 3s ease-in-out infinite;
}

.equip-card .anim-sparkle:nth-child(2) { animation-delay: 0.5s; left: 25%; top: 30%; }
.equip-card .anim-sparkle:nth-child(3) { animation-delay: 1.0s; left: 70%; top: 25%; }
.equip-card .anim-sparkle:nth-child(4) { animation-delay: 1.5s; left: 20%; top: 65%; }
.equip-card .anim-sparkle:nth-child(5) { animation-delay: 2.0s; left: 75%; top: 70%; }
.equip-card .anim-sparkle:nth-child(6) { animation-delay: 0.8s; left: 50%; top: 15%; }
.equip-card .anim-sparkle:nth-child(7) { animation-delay: 1.3s; left: 35%; top: 80%; }
.equip-card .anim-sparkle:nth-child(8) { animation-delay: 1.8s; left: 65%; top: 50%; }

@keyframes sparkleFloat {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
  30% { opacity: 1; transform: translateY(-8px) scale(1); }
  70% { opacity: 0.6; transform: translateY(-16px) scale(0.8); }
}

/* Equipment name character (center) */
.equip-card .anim-char {
  position: relative;
  z-index: 3;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--anim-color, #c8a84e);
  text-shadow: 0 0 15px var(--anim-color, #c8a84e), 0 0 30px var(--anim-color, #c8a84e);
  animation: charGlow 2s ease-in-out infinite;
  letter-spacing: 0;
}

@keyframes charGlow {
  0%, 100% { text-shadow: 0 0 10px var(--anim-color, #c8a84e), 0 0 20px var(--anim-color, #c8a84e); opacity: 0.8; }
  50% { text-shadow: 0 0 20px var(--anim-color, #c8a84e), 0 0 40px var(--anim-color, #c8a84e), 0 0 60px var(--anim-color, #c8a84e); opacity: 1; }
}

/* Quality-specific animation colors */
.equip-card .equip-anim.common { --anim-color: #cccccc; }
.equip-card .equip-anim.magic { --anim-color: #4169e1; }
.equip-card .equip-anim.rare { --anim-color: #ffd700; }
.equip-card .equip-anim.epic { --anim-color: #00cc66; }
.equip-card .equip-anim.legendary { --anim-color: #ff4444; }

/* Quality-based ring speed and intensity */
.equip-card .equip-anim.legendary .anim-ring { animation-duration: 2.5s; border-width: 2px; }
.equip-card .equip-anim.legendary .anim-aura { opacity: 0.25; }
.equip-card .equip-anim.epic .anim-ring { animation-duration: 3s; }
.equip-card .equip-anim.rare .anim-ring { animation-duration: 3.5s; }

/* Bottom quality label */
.equip-card .anim-quality-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  color: var(--anim-color, #c8a84e);
  letter-spacing: 3px;
  opacity: 0.7;
  z-index: 3;
  white-space: nowrap;
  text-shadow: 0 0 6px var(--anim-color, #c8a84e);
}

/* Card info */
.equip-card .equip-info {
  padding: 14px;
}

.equip-card .equip-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 3px;
}

.equip-card .equip-name.common { color: var(--quality-common); }
.equip-card .equip-name.magic { color: var(--quality-magic); }
.equip-card .equip-name.rare { color: var(--quality-rare); }
.equip-card .equip-name.epic { color: var(--quality-epic); }
.equip-card .equip-name.legendary { color: var(--quality-legendary); text-shadow: 0 0 8px rgba(255, 68, 68, 0.3); }

.equip-card .equip-type {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.equip-card .equip-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.equip-card .equip-attrs {
  list-style: none;
}

.equip-card .equip-attrs li {
  font-size: 0.75rem;
  color: var(--gold-main);
  padding: 2px 0;
  padding-left: 12px;
  position: relative;
}

.equip-card .equip-attrs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 4px;
  height: 4px;
  background: var(--gold-dark);
}

.equip-card .equip-level {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  font-size: 0.65rem;
  color: var(--text-dim);
  border: 1px solid rgba(139, 105, 20, 0.3);
  letter-spacing: 1px;
}

/* ========================================
   Equipment Role UI (传奇角色界面)
   ======================================== */
.equip-role-stage {
  max-width: 340px;
  margin: 0 auto 34px;
  border: 1px solid var(--gold-dark);
  outline: 1px solid rgba(139, 105, 20, 0.35);
  outline-offset: 4px;
  background: radial-gradient(circle at center, #1c1610 0%, #0f0c08 75%);
  padding: 10px;
  position: relative;
}

.equip-role-stage img {
  display: block;
  width: 100%;
  height: auto;
}

.equip-role-grid {
  max-width: 1500px;
  margin: 0 auto;
  margin-top: 30px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 350px);
  justify-content: center;
  justify-items: center;
  gap: 22px 18px;
}

/* Equipment slot */
.equip-slot {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid rgba(224, 208, 172, 0.45);
  padding: 10px;
  width: 350px;
  box-sizing: border-box;
  text-align: center;
  transition: all 0.35s var(--ease-legend);
}

.equip-slot:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 224, 184, 0.9);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(230, 214, 172, 0.08);
}

.equip-slot .slot-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(200, 168, 78, 0.15), rgba(224, 208, 172, 0.7), rgba(200, 168, 78, 0.15));
}

.equip-slot .slot-icon {
  width: 100%;
  height: 395px;
  background: radial-gradient(circle at center, #1a1510 0%, #0e0b07 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 8px;
  overflow: hidden;
}

.equip-slot .slot-logo {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px 5px 6px;
  background: #120c07;
  border: none;
  border-radius: 2px;
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 2px;
}
.equip-slot .slot-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f0d060, #c8a84e);
  color: #201509;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.equip-slot .slot-logo-text {
  color: #f0d060;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 10px rgba(200, 168, 78, 0.6);
}
.equip-slot:hover .slot-logo-text {
  color: #fff3d0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 12px rgba(240, 208, 96, 0.7);
}
.equip-slot .slot-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.6));
}

.equip-slot .slot-name {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.equip-slot .slot-name.common { color: var(--quality-common); }
.equip-slot .slot-name.magic { color: var(--quality-magic); }
.equip-slot .slot-name.rare { color: var(--quality-rare); }
.equip-slot .slot-name.epic { color: var(--quality-epic); }
.equip-slot .slot-name.legendary { color: var(--quality-legendary); text-shadow: 0 0 8px rgba(255, 68, 68, 0.35); }

/* Slot anim placeholder (gif 效果) */
.equip-slot .slot-anim {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  --anim-color: #c8a84e;
}

.equip-slot .slot-anim.common { --anim-color: #cccccc; }
.equip-slot .slot-anim.magic { --anim-color: #4169e1; }
.equip-slot .slot-anim.rare { --anim-color: #ffd700; }
.equip-slot .slot-anim.epic { --anim-color: #00cc66; }
.equip-slot .slot-anim.legendary { --anim-color: #ff4444; }

.equip-slot .slot-aura {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--anim-color) 55%, transparent) 0%, transparent 70%);
  animation: slotPulse 2.4s ease-in-out infinite;
}

.equip-slot .slot-ring {
  position: absolute;
  width: 60%;
  height: 60%;
  border: 1px solid var(--anim-color);
  border-radius: 50%;
  opacity: 0.5;
  animation: slotSpin 4s linear infinite;
}

.equip-slot .slot-char {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--anim-color);
  opacity: 0.85;
  text-shadow: 0 0 10px var(--anim-color);
  z-index: 2;
}

@keyframes slotPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 0.75; transform: scale(1.05); }
}

@keyframes slotSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Equipment management hint */
/* ========================================
   ACCESSORY SECTION
   ======================================== */
.accessory-section {
  padding: 60px 0;
  background: var(--bg-primary);
  border-top: 1px solid rgba(139, 105, 20, 0.15);
}

.accessory-subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 3px;
  margin-bottom: 32px;
}

.accessory-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
}

.accessory-cell {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid rgba(139, 105, 20, 0.25);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: all 0.3s var(--ease-legend);
}

.accessory-cell:hover {
  border-color: var(--gold-main);
  z-index: 60;
  box-shadow: 0 0 12px rgba(200, 168, 78, 0.15), inset 0 0 8px rgba(200, 168, 78, 0.05);
  transform: translateY(-2px);
}

/* Hover popup with detail image */
.accessory-popup {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: var(--bg-panel);
  border: 1px solid var(--gold-main);
  padding: 8px;
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s var(--ease-legend);
  z-index: 100;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7), 0 0 12px rgba(200, 168, 78, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.accessory-popup img {
  display: block;
  max-width: none;
  background: radial-gradient(circle, #1a1510 0%, #0e0b07 100%);
}

.accessory-cell:hover .accessory-popup {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Accessory thumbnail (占位图，用户可直接替换同名图片生效) */
.acc-thumb {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  object-fit: contain;
  z-index: 6;
  border: 1px solid #5a4a2a; /* 暗金色哑光边框 */
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.7); /* 仅暗影，无亮光 */
  background: #0d0a07;
}

/* Accessory animated display */
.accessory-anim {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.accessory-anim .acc-aura {
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--anim-color, #c8a84e) 0%, transparent 70%);
  opacity: 0.12;
  animation: auraPulse 2.5s ease-in-out infinite;
}

.accessory-anim .acc-ring {
  position: absolute;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  border: 1.5px solid transparent;
  animation: ringRotate 4s linear infinite;
}

.accessory-anim .acc-ring::before {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--anim-color, #c8a84e);
  box-shadow: 0 0 6px var(--anim-color, #c8a84e), 0 0 12px var(--anim-color, #c8a84e);
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
}

.accessory-anim .acc-char {
  position: relative;
  z-index: 2;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--anim-color, #c8a84e);
  text-shadow: 0 0 8px var(--anim-color, #c8a84e), 0 0 16px var(--anim-color, #c8a84e);
  animation: charGlow 2s ease-in-out infinite;
}

/* Quality colors */
.accessory-anim.common { --anim-color: #cccccc; }
.accessory-anim.magic { --anim-color: #4169e1; }
.accessory-anim.rare { --anim-color: #ffd700; }
.accessory-anim.epic { --anim-color: #00cc66; }
.accessory-anim.legendary { --anim-color: #ff4444; }

.accessory-anim.legendary .acc-ring { animation-duration: 2.5s; }
.accessory-anim.epic .acc-ring { animation-duration: 3s; }

/* Label below the cell */
.accessory-label {
  display: none;
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.55rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  z-index: 3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
}



/* Accessory responsive */
@media (max-width: 1024px) {
  .accessory-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}

@media (max-width: 768px) {
  .accessory-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .accessory-anim .acc-char {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .accessory-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   VERSION FEATURES SECTION
   ======================================== */
.version-section {
  padding: 60px 0;
  background: var(--bg-primary);
  border-top: 1px solid rgba(139, 105, 20, 0.15);
}

.version-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.version-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.version-item {
  padding: 28px 20px;
  background: var(--bg-panel);
  border: 1px solid rgba(139, 105, 20, 0.2);
  text-align: center;
  transition: all 0.35s var(--ease-legend);
}

.version-item:hover {
  border-color: var(--gold-main);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(200, 168, 78, 0.04);
}

.version-icon {
  font-size: 1.8rem;
  color: var(--gold-main);
  margin-bottom: 16px;
  text-shadow: 0 0 10px rgba(200, 168, 78, 0.2);
}

.version-item h3 {
  font-size: 1.05rem;
  color: var(--gold-main);
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.version-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   GROUP SECTION
   ======================================== */
.group-section {
  padding: 60px 0;
  background: var(--bg-section);
  border-top: 1px solid rgba(139, 105, 20, 0.15);
}

.group-panel {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
}

.group-panel-inner {
  padding: 40px;
  background: var(--bg-panel);
  border: 1px solid var(--gold-dark);
  text-align: center;
  position: relative;
}

/* Corner ornaments */
.group-panel-inner::before,
.group-panel-inner::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--gold-main);
  border-style: solid;
}

.group-panel-inner::before {
  top: 8px;
  left: 8px;
  border-width: 2px 0 0 2px;
}

.group-panel-inner::after {
  top: 8px;
  right: 8px;
  border-width: 2px 2px 0 0;
}

.group-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border: 2px solid var(--gold-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(200, 168, 78, 0.15);
}

.group-badge span {
  font-size: 1.3rem;
  color: var(--gold-highlight);
  font-weight: 900;
}

.group-panel-inner h3 {
  font-size: 1.2rem;
  color: var(--gold-main);
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.group-number {
  font-size: 1.6rem;
  color: var(--gold-highlight);
  letter-spacing: 4px;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(240, 208, 96, 0.2);
  margin-bottom: 16px;
}

.group-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.group-join-btn {
  display: inline-block;
  padding: 10px 36px;
  background: transparent;
  border: 1px solid var(--gold-main);
  color: var(--gold-main);
  font-family: 'Noto Serif SC', serif;
  font-size: 0.9rem;
  letter-spacing: 4px;
  cursor: pointer;
  transition: all 0.35s var(--ease-legend);
}

.group-join-btn:hover {
  background: rgba(200, 168, 78, 0.1);
  color: var(--gold-highlight);
  box-shadow: 0 0 20px rgba(200, 168, 78, 0.15);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #060504 100%);
  border-top: 1px solid rgba(139, 105, 20, 0.2);
}

.footer-warning {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 20px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  border-bottom: 1px dashed rgba(139, 105, 20, 0.15);
}

.footer-bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px;
  text-align: center;
}

.footer-logo {
  font-size: 1.2rem;
  color: var(--gold-dark);
  letter-spacing: 6px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  line-height: 2;
}

.footer-bottom a {
  color: var(--text-dim);
}

.footer-bottom a:hover {
  color: var(--gold-main);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-legend), transform 0.6s var(--ease-legend);
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .equip-role-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .top-title-img {
    order: 3;
    width: 100%;
  }

  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 10px;
  }

  .hero-desc {
    font-size: 0.9rem;
    letter-spacing: 3px;
  }

  .hero-nav {
    gap: 10px;
  }

  .hero-nav-btn {
    padding: 8px 18px;
    font-size: 0.8rem;
  }

  .ann-list {
    grid-template-columns: 1fr;
  }

  .ann-list li:nth-last-child(-n+2) {
    border-bottom: 1px dashed rgba(139, 105, 20, 0.12);
  }

  .ann-list li:last-child {
    border-bottom: none;
  }

  .section-header h2 {
    font-size: 1.4rem;
    letter-spacing: 4px;
  }

  .section-header-line {
    width: 50px;
  }

  .equip-role-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .equip-slot {
    width: 100%;
  }

  .equip-slot .slot-icon {
    height: 395px;
  }

  .version-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-prev { left: 28px; }
  .carousel-next { right: 28px; }

  .group-panel-inner {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 380px;
  }

  .hero-title {
    font-size: 1.8rem;
    letter-spacing: 6px;
  }

  .hero-badge .badge-text {
    font-size: 0.6rem;
    letter-spacing: 3px;
  }

  .equip-role-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .top-btns {
    gap: 8px;
  }

  .top-btn {
    padding: 8px 14px;
    min-width: 80px;
  }

  .top-btn .btn-main {
    font-size: 0.8rem;
  }
}

/* ======== 截图轮播左上角LOGO ======== */
.carousel-logo-wrap {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 370px;
  height: 370px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 4px;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}
.carousel-logo-wrap .carousel-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: auto;
}
@media (max-width: 768px) {
  .carousel-logo-wrap {
    width: 269px;
    height: 269px;
    top: 0;
    left: 0;
  }
}
@media (max-width: 480px) {
  .carousel-logo-wrap {
    width: 207px;
    height: 207px;
    top: 0;
    left: 0;
  }
}

/* ========================================
   移动端强化适配（手机打开不变形、不溢出）
   ======================================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ---- 时装展示：小屏 slide 随屏自适应，不溢出不变形 ---- */
@media (max-width: 700px) {
  .fashion-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .fashion-track {
    --sw: min(62vw, 350px);
    --gap: 12px;
    --unit: calc(var(--sw) * 5 + var(--gap) * 5);
    padding: 12px 8px;
  }
  .fashion-slide {
    width: var(--sw);
    max-width: 350px;
    height: 417px;
    padding: 8px;
  }
  .fashion-slide .fashion-logo {
    top: 6px;
    padding: 4px 10px 4px 4px;
    gap: 5px;
  }
  .fashion-slide .fashion-logo-mark { width: 20px; height: 20px; font-size: 13px; }
  .fashion-slide .fashion-logo-text { font-size: 13px; letter-spacing: 1px; }
  .fashion-slide .fashion-caption { font-size: 12px; padding: 3px 10px; letter-spacing: 1px; }
  .fashion-slide img { object-fit: contain; }
}

/* ---- 装备展示：小屏更紧凑 ---- */
@media (max-width: 700px) {
  .equip-slot { padding: 8px; }
  .equip-slot .slot-icon { height: 300px; }
}

/* ---- 首饰：小屏减少列数，避免过挤 ---- */
@media (max-width: 900px) and (min-width: 481px) {
  .accessory-grid { grid-template-columns: repeat(5, 1fr) !important; }
}

/* ---- 通用防溢出 ---- */
@media (max-width: 768px) {
  .container, .site-header .container, .fashion-container,
  .section, .site-footer, .footer-warning,
  .equip-role-grid, .carousel-viewport, .accessory-grid {
    max-width: 100vw !important;
    overflow: hidden;
    padding-left: 8px;
    padding-right: 8px;
  }
}
