/* ==================================================
 * 基础变量与全局重置 (★ 色彩与材质提纯)
 * ================================================== */
:root {
  --color-abyss: #000000;
  --color-blood-main: #9b1919; 
  --color-blood-glow: #e62222;
  --color-gold-main: #b89b6a;  
  --color-gold-light: #ebdcc2; 
  --color-gold-dark: #4a382c;
  --color-text-title: #ffffff;
  --color-text-body: #d2d2d2;
  --color-text-muted: #8c8c8c;
  --font-system: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  font-family: var(--font-system);
  line-height: 1.6;
  scroll-behavior: smooth;
  background-color: #050403;
  -webkit-text-size-adjust: 100%;
  width: 100%;
}

body {
  background-color: #050403;
  color: var(--color-text-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; 
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* ★ 国际化(i18n)语言切换显隐控制 */
html[lang="zh"] .lang-en { display: none !important; }
html[lang="en"] .lang-zh { display: none !important; }

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh;
  background: radial-gradient(circle at 50% 0%, #150d0a 0%, var(--color-abyss) 65%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 500%;
  background-color: #050403;
  z-index: -2;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

ul { list-style: none; }

button, input {
  font: inherit;
  background: transparent;
  border: none;
  outline: none;
}

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

/* ==================================================
 * 通用组件样式与渲染性能调优
 * ================================================== */
.text-center { text-align: center; }

.text-glow {
  color: var(--color-gold-light);
  text-shadow: 0 0 10px rgba(184, 155, 106, 0.6), 
               0 0 25px rgba(184, 155, 106, 0.3),
               0 2px 4px rgba(0, 0, 0, 0.8);
}

.mt-large { margin-top: 4.5rem; }
.mb-normal { margin-bottom: 1rem; }

.glass-panel, .theme-frame, .theme-btn, .nav-bg, .lang-btn, .lang-dropdown, .mobile-menu {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

.glass-panel {
  background: rgba(15, 12, 10, 0.82);
  backdrop-filter: blur(28px) saturate(120%);
  -webkit-backdrop-filter: blur(28px) saturate(120%);
  border-radius: 9999px;
  border: 1px solid rgba(184, 155, 106, 0.18);
  border-top: 1px solid rgba(235, 220, 194, 0.3);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.08), 
              0 15px 35px rgba(0, 0, 0, 0.9);
}

.theme-frame {
  position: relative;
  background: rgba(15, 12, 10, 0.75);
  backdrop-filter: blur(30px) saturate(120%);
  -webkit-backdrop-filter: blur(30px) saturate(120%);
  border-radius: 24px;
  border: 1px solid rgba(184, 155, 106, 0.15);
  border-top: 1px solid rgba(235, 220, 194, 0.25);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05), 
              0 25px 50px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.theme-btn {
  position: relative;
  background: linear-gradient(180deg, rgba(35, 28, 24, 0.8) 0%, rgba(15, 12, 10, 0.9) 100%);
  border-radius: 16px;
  border: 1px solid rgba(184, 155, 106, 0.2);
  border-top: 1px solid rgba(184, 155, 106, 0.5);
  color: var(--color-gold-light);
  overflow: hidden;
  z-index: 1;
  display: block;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 
              0 8px 20px rgba(0, 0, 0, 0.8);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.theme-btn:hover {
  background: linear-gradient(180deg, rgba(155, 25, 25, 0.3) 0%, rgba(55, 10, 10, 0.8) 100%);
  border-color: var(--color-blood-glow);
  border-top-color: #ff5555;
  box-shadow: 0 15px 30px rgba(230, 34, 34, 0.35), 
              inset 0 2px 5px rgba(255, 255, 255, 0.15);
  color: #fff;
  -webkit-transform: translateY(-3px) translateZ(0);
  transform: translateY(-3px) translateZ(0);
}

.theme-btn:active {
  -webkit-transform: translateY(1px) scale(0.98) translateZ(0);
  transform: translateY(1px) scale(0.98) translateZ(0);
  box-shadow: 0 4px 10px rgba(230, 34, 34, 0.2);
}

.spotlight-container {
  position: relative;
  overflow: hidden;
}

.spotlight-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 155, 106, 0.25) 0%, rgba(184, 155, 106, 0.1) 35%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
}

.spotlight-container:hover .spotlight-glow { opacity: 1; }

.nav-inner {
  position: relative;
  border-radius: 9999px;
}

.nav-bg {
  position: absolute; inset: 0; z-index: 0; border-radius: 9999px;
  background: linear-gradient(135deg, rgba(26, 22, 20, 0.85) 0%, rgba(12, 10, 8, 0.9) 100%);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(184, 155, 106, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black); 
}

.nav-inner .spotlight-glow { z-index: 5; border-radius: 9999px; }
.theme-tag, .meta-card, .detail-panel { position: relative; overflow: hidden; }

.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(184, 155, 106, 0.25);
  border-radius: 10px;
  transition: background-color 0.3s ease;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(184, 155, 106, 0.6); }
.modal-body.custom-scrollbar::-webkit-scrollbar { width: 4px; }

.rotation-hint {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh;
  z-index: 9999999; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  background: #050403;
}
.rotation-icon { width: 80px; height: 80px; animation: rotate-phone 2.5s ease-in-out infinite; }
.rotation-icon svg { width: 100%; height: 100%; }
.rotation-text { font-size: 1.1rem; font-weight: bold; color: var(--color-gold-light); letter-spacing: 0.1em; text-align: center; }

@keyframes rotate-phone {
  0%, 15% { transform: rotate(-90deg); }
  40%, 60% { transform: rotate(0deg); }
  85%, 100% { transform: rotate(-90deg); }
}

.smoke-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0; mix-blend-mode: normal; transition: opacity 0.5s ease;
}
.smoke-bg.visible { opacity: 1; }

.dft-section {
  position: relative; width: 100%; height: 100vh; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; overflow: hidden;
  padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
  z-index: 10; background-color: #050403;
}

/* 支持动态视口高度 */
@supports (height: 100dvh) {
  .dft-section {
    height: 100dvh;
    min-height: 100dvh;
  }
}

.dft-video-fallback {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: url('./images/banner_main.webp') center center / cover no-repeat; z-index: 0;
}

.dft-video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 1;
}

.dft-video.loaded { opacity: 1; }
.dft-video:not(.loaded) { opacity: 0; }
.dft-video.error { display: none; }

.dft-mask {
  position: absolute; bottom: 0; left: 0; right: 0; height: 15rem;
  background: linear-gradient(to top, #050403 0%, rgba(5,4,3,0.85) 30%, rgba(5,4,3,0.3) 70%, transparent 100%);
  pointer-events: none; z-index: 10;
}

.audio-toggle {
  position: absolute; top: 2rem; right: 2rem; z-index: 100;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(15, 12, 10, 0.7); border: 1px solid rgba(184, 155, 106, 0.3); border-top: 1px solid rgba(184, 155, 106, 0.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.audio-toggle:hover {
  background: rgba(155, 25, 25, 0.4); border-color: var(--color-blood-glow);
  box-shadow: 0 0 25px rgba(230, 34, 34, 0.4); transform: scale(1.08);
}
.audio-toggle svg { width: 20px; height: 20px; color: var(--color-gold-light); transition: all 0.3s ease; }
.audio-toggle:hover svg { color: #fff; }
.audio-icon, .mute-icon { position: absolute; }
.audio-toggle.muted .audio-icon { opacity: 0; transform: scale(0.5); }
.audio-toggle.muted .mute-icon { opacity: 1; transform: scale(1); }
.audio-toggle:not(.muted) .audio-icon { opacity: 1; transform: scale(1); }
.audio-toggle:not(.muted) .mute-icon { opacity: 0; transform: scale(0.5); }

.dft-center-logo {
  position: absolute; top: 60%; left: 50%; transform: translate(-50%, -50%); z-index: 100;
  width: clamp(320px, 70vw, 950px); display: flex; justify-content: center; align-items: center; pointer-events: none;
}
.dft-center-logo::before {
  content: ''; position: absolute; top: 50%; left: 50%; width: 140vw; height: 140vw; max-width: 1000px; max-height: 1000px;
  transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(155, 25, 25, 0.45) 0%, rgba(80, 10, 10, 0.25) 30%, rgba(20, 0, 0, 0.05) 55%, transparent 75%);
  border-radius: 50%; z-index: -1; mix-blend-mode: color-dodge;
}
.dft-logo-img {
  width: 100%; height: auto; position: relative; z-index: 2; animation: dft-logo-float 4.5s ease-in-out infinite;
}

@keyframes dft-logo-float {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 20px 50px rgba(0,0,0,0.9)) drop-shadow(0 0 30px rgba(155,25,25,0.4)); }
  50% { transform: translateY(-12px) scale(1.015); filter: drop-shadow(0 30px 60px rgba(0,0,0,0.95)) drop-shadow(0 0 45px rgba(155,25,25,0.6)); }
}

.scroll-indicator {
  position: absolute; bottom: 3rem; display: flex; flex-direction: column;
  align-items: center; opacity: 1; z-index: 100; animation: float-indicator 3.5s ease-in-out infinite;
}
.scroll-mouse {
  width: 30px; height: 50px; border-radius: 20px; border: 1.5px solid rgba(184, 155, 106, 0.5); border-top: 1.5px solid var(--color-gold-light);
  display: flex; justify-content: center; padding-top: 10px; margin-bottom: 1rem; opacity: 0.9;
}
.scroll-wheel {
  width: 4px; height: 12px; background-color: var(--color-gold-light); border-radius: 4px;
  animation: scroll-wheel 1.8s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94); box-shadow: 0 0 8px rgba(184, 155, 106, 0.8);
}
.scroll-text { font-size: 11px; font-weight: 700; letter-spacing: 0.4em; text-transform: uppercase; text-shadow: 0 0 10px rgba(184, 155, 106, 0.6); }

@keyframes float-indicator { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes scroll-wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(22px); opacity: 0; } }

.dft-action { position: absolute; bottom: 18vh; z-index: 100; display: flex; justify-content: center; width: 100%; }
.dft-app-badge {
  display: flex; align-items: center; gap: 1.2rem; padding: 0.75rem 2.5rem 0.75rem 1.8rem; border-radius: 20px;
  background: linear-gradient(180deg, rgba(25, 20, 18, 0.9) 0%, rgba(10, 8, 6, 0.95) 100%);
  border: 1px solid rgba(184, 155, 106, 0.3); border-top: 1px solid rgba(184, 155, 106, 0.7);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.95), inset 0 1px 2px rgba(255, 255, 255, 0.1); cursor: pointer;
  -webkit-transform: translateZ(0); transform: translateZ(0);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.dft-app-badge:hover {
  background: linear-gradient(180deg, rgba(85, 15, 15, 0.8) 0%, rgba(35, 5, 5, 0.95) 100%);
  border-color: var(--color-blood-glow); border-top-color: #ff6b6b;
  -webkit-transform: translateY(-5px) scale(1.02) translateZ(0); transform: translateY(-5px) scale(1.02) translateZ(0);
  box-shadow: 0 25px 50px rgba(230, 34, 34, 0.4), inset 0 2px 6px rgba(255, 255, 255, 0.2);
}
.badge-icon { height: 40px; width: auto; fill: var(--color-gold-light); filter: drop-shadow(0 0 6px rgba(184,155,106,0.5)); transition: fill 0.3s ease, filter 0.3s ease; }
.dft-app-badge:hover .badge-icon { fill: #fff; filter: drop-shadow(0 0 12px var(--color-blood-glow)); }
.badge-text { display: flex; flex-direction: column; align-items: flex-start; }
.badge-sub { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; color: var(--color-text-muted); line-height: 1; margin-bottom: 6px; transition: color 0.3s ease; text-transform: uppercase; }
.dft-app-badge:hover .badge-sub { color: rgba(255, 255, 255, 0.9); }
.badge-main { font-size: 26px; font-weight: 800; letter-spacing: 0.08em; color: var(--color-gold-light); line-height: 1; text-shadow: 0 2px 5px rgba(0,0,0,0.9); transition: color 0.3s ease, text-shadow 0.3s ease; }
.dft-app-badge:hover .badge-main { color: #fff; text-shadow: 0 0 15px rgba(230, 34, 34, 0.9); }

.main-nav {
  position: fixed; left: 50%; top: 1.5rem; z-index: 9000; width: 92%; max-width: 1200px; opacity: 0; pointer-events: none;
  will-change: transform, opacity; -webkit-transform: translateZ(0); transform: translateZ(0);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
}
.nav-hidden { -webkit-transform: translate(-50%, -150%) scale(0.95) translateZ(0); transform: translate(-50%, -150%) scale(0.95) translateZ(0); opacity: 0; pointer-events: none; }
.nav-scrolled { -webkit-transform: translate(-50%, 0) scale(1) translateZ(0); transform: translate(-50%, 0) scale(1) translateZ(0); opacity: 1; pointer-events: auto; }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 4px 12px; position: relative; }
.nav-logo { margin-left: 1rem; z-index: 20; position: relative; }
.nav-logo img { height: 50px; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.9)); transition: filter 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.nav-logo:hover img { filter: drop-shadow(0 0 20px rgba(184, 155, 106, 0.7)) brightness(1.15); transform: scale(1.05); }
.nav-menu { display: none; align-items: center; position: relative; height: 100%; padding: 4px 8px; }

.nav-highlight {
  position: absolute; top: 0; left: 0; border-radius: 9999px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(184, 155, 106, 0.1) 0%, rgba(184, 155, 106, 0.05) 100%);
  border: 1px solid rgba(184, 155, 106, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  will-change: transform, opacity; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}
.nav-link { font-size: 15px; font-weight: 700; color: var(--color-text-body); padding: 12px 28px; height: 100%; display: flex; align-items: center; position: relative; z-index: 10; letter-spacing: 0.05em; transition: color 0.3s ease, text-shadow 0.3s ease; }
.nav-link:hover { color: var(--color-gold-light); text-shadow: 0 0 12px rgba(184, 155, 106, 0.6); }
.nav-right { display: flex; align-items: center; gap: 0.5rem; z-index: 20; position: relative; }

.lang-switcher { position: relative; z-index: 99999; }
.lang-btn {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--color-gold-light); cursor: pointer; border: 1px solid rgba(184, 155, 106, 0.3);
  background: linear-gradient(145deg, rgba(35, 28, 24, 0.8) 0%, rgba(15, 12, 10, 0.9) 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05), 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lang-btn:hover, .lang-btn:focus { border-color: rgba(184, 155, 106, 0.8); color: #fff; transform: scale(1.08); box-shadow: 0 0 25px rgba(184, 155, 106, 0.5), inset 0 1px 4px rgba(255, 255, 255, 0.2), 0 8px 20px rgba(0, 0, 0, 0.6); }
.lang-icon { width: 20px; height: 20px; filter: drop-shadow(0 0 6px rgba(184, 155, 106, 0.6)); pointer-events: none; }

.lang-dropdown {
  position: absolute; top: calc(100% + 20px); right: 0; width: 170px; border-radius: 16px; padding: 8px;
  display: flex; flex-direction: column; opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-15px); 
  background: linear-gradient(135deg, rgba(26, 22, 20, 0.85) 0%, rgba(10, 8, 6, 0.95) 100%);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(184, 155, 106, 0.25); border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(184, 155, 106, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.3s; z-index: 99999;
}

@media (hover: hover) {
  .lang-switcher:hover .lang-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
}
.lang-switcher.active .lang-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }

.dropdown-item { padding: 14px 20px; text-align: left; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.7); border-radius: 12px; position: relative; z-index: 999999; overflow: hidden; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); cursor: pointer; }
.dropdown-item::before { content: ''; position: absolute; top: 50%; left: 0; width: 4px; height: 60%; background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold-main)); border-radius: 0 4px 4px 0; transform: translateY(-50%) scaleX(0); transition: transform 0.3s ease; }
.dropdown-item:hover { color: #fff; background: rgba(184, 155, 106, 0.15); padding-left: 24px; transform: translateX(4px); }
.dropdown-item:hover::before, .dropdown-item.active::before { transform: translateY(-50%) scaleX(1); }
.dropdown-item.active { color: var(--color-gold-light); background: rgba(184, 155, 106, 0.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.dropdown-item:not(:last-child) { margin-bottom: 4px; }

.mobile-toggle-cb { display: none; }
.mobile-hamburger { display: flex; flex-direction: column; gap: 6px; padding: 12px; cursor: pointer; z-index: 50; margin-right: 8px; }

.mobile-hamburger span { 
  display: block; width: 24px; height: 2px; border-radius: 2px; 
  background-color: var(--color-gold-main); 
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, background-color 0.3s ease; 
}
.nav-inner:has(.mobile-toggle-cb:checked) .mobile-hamburger span:nth-child(1) { 
  transform: translateY(8px) rotate(45deg); background-color: var(--color-blood-glow); 
}
.nav-inner:has(.mobile-toggle-cb:checked) .mobile-hamburger span:nth-child(2) { 
  opacity: 0; transform: scaleX(0); 
}
.nav-inner:has(.mobile-toggle-cb:checked) .mobile-hamburger span:nth-child(3) { 
  transform: translateY(-8px) rotate(-45deg); background-color: var(--color-blood-glow); 
}

.mobile-menu {
  position: absolute; top: 85px; left: 0; width: 100%; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 16px;
  background: linear-gradient(180deg, rgba(20, 16, 14, 0.85) 0%, rgba(10, 8, 6, 0.95) 100%);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.95), inset 0 1px 1px rgba(255, 255, 255, 0.08); 
  border: 1px solid rgba(184, 155, 106, 0.2); border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0; visibility: hidden;
  transform: translateY(-15px); 
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.3s; z-index: 99999;
}
.nav-inner:has(.mobile-toggle-cb:checked) ~ .mobile-menu, 
.nav-inner .mobile-toggle-cb:checked ~ .mobile-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-link { color: var(--color-text-title); text-align: center; font-size: 16px; font-weight: 700; letter-spacing: 0.05em; padding: 10px 16px; border-radius: 12px; }

@media (min-width: 768px) { .nav-menu, .lang-switcher { display: flex; } .mobile-hamburger, .mobile-menu { display: none !important; } }

.main-container { padding: clamp(4rem, 8vw, 8rem) clamp(1.2rem, 5vw, 4rem); max-width: 1450px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(5rem, 10vw, 10rem); position: relative; z-index: 20; }
.content-section { scroll-margin-top: 140px; display: flex; flex-direction: column; width: 100%; }
.intro-grid { display: flex; flex-direction: column; gap: 3rem; margin-bottom: 4rem; }
@media (min-width: 1024px) { .intro-grid { flex-direction: row; align-items: center; gap: 4rem; } }

.intro-banner-wrap { width: 100%; display: flex; flex-direction: column; }
@media (min-width: 1024px) { .intro-banner-wrap { width: 55%; } }
.banner-inner { padding: 4px; border-radius: 20px; aspect-ratio: 16 / 9; position: relative; display: flex; width: 100%; }
.carousel-container { overflow: hidden; position: relative; border: 1px solid rgba(184, 155, 106, 0.15); box-shadow: 0 25px 50px rgba(0,0,0,0.8); }
.carousel-track { position: relative; width: 100%; height: 100%; border-radius: 16px; overflow: hidden; background: rgba(0,0,0,0.5); }
.carousel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(10%) contrast(1.1); opacity: 0; -webkit-transform: scale(1.05) translateZ(0); transform: scale(1.05) translateZ(0); will-change: opacity, transform; transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 4.5s cubic-bezier(0.2, 0.8, 0.2, 1); z-index: 1; pointer-events: none; }
.carousel-img.active { opacity: 0.95; -webkit-transform: scale(1) translateZ(0); transform: scale(1) translateZ(0); z-index: 2; pointer-events: auto; }
.intro-banner-wrap:hover .carousel-img.active { filter: grayscale(0) contrast(1.15); opacity: 1; }

.carousel-arrow { position: absolute; top: 50%; width: 44px; height: 80px; background: rgba(15, 12, 10, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(184, 155, 106, 0.3); color: var(--color-gold-light); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; opacity: 0; will-change: opacity, transform; transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease; box-shadow: 0 10px 25px rgba(0,0,0,0.8), inset 0 1px 2px rgba(255,255,255,0.08); }
.carousel-arrow.prev-arrow { left: 0; border-left: none; border-radius: 0 16px 16px 0; -webkit-transform: translate(-10px, -50%) translateZ(0); transform: translate(-10px, -50%) translateZ(0); }
.carousel-arrow.next-arrow { right: 0; border-right: none; border-radius: 16px 0 0 16px; -webkit-transform: translate(10px, -50%) translateZ(0); transform: translate(10px, -50%) translateZ(0); }
.carousel-container:hover .carousel-arrow.prev-arrow, .carousel-container:hover .carousel-arrow.next-arrow { opacity: 1; -webkit-transform: translate(0, -50%) translateZ(0); transform: translate(0, -50%) translateZ(0); }
.carousel-arrow:hover { background: linear-gradient(180deg, rgba(155, 25, 25, 0.6) 0%, rgba(55, 10, 10, 0.9) 100%); color: #fff; border-color: rgba(230, 34, 34, 0.7); box-shadow: 0 0 30px rgba(230, 34, 34, 0.5), 0 15px 30px rgba(0,0,0,0.9), inset 0 1px 4px rgba(255,255,255,0.15); }
.carousel-arrow svg { width: 28px; height: 28px; stroke-width: 2.5; transition: transform 0.3s ease; }
.carousel-arrow.prev-arrow:hover svg { transform: translateX(-4px); }
.carousel-arrow.next-arrow:hover svg { transform: translateX(4px); }

@media (max-width: 1024px) {
  .carousel-arrow { opacity: 0.85; -webkit-transform: translate(0, -50%) translateZ(0); transform: translate(0, -50%) translateZ(0); }
  .carousel-arrow.prev-arrow { left: 0; }
  .carousel-arrow.next-arrow { right: 0; }
}

.carousel-indicators { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.6rem; z-index: 10; }
.carousel-indicators .dot { width: 8px; height: 8px; border-radius: 50%; background-color: rgba(184, 155, 106, 0.3); border: 1px solid rgba(184, 155, 106, 0.5); cursor: pointer; transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-radius 0.3s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.9); }
.carousel-indicators .dot:hover { background-color: rgba(184, 155, 106, 0.8); }
.carousel-indicators .dot.active { background-color: var(--color-gold-light); box-shadow: 0 0 12px rgba(184, 155, 106, 0.8); width: 28px; border-radius: 4px; border-color: transparent; }

.intro-text-wrap { width: 100%; display: flex; flex-direction: column; justify-content: center; gap: 1.6rem; padding: 1rem 0; }
@media (min-width: 1024px) { .intro-text-wrap { width: 45%; } }
.section-title { font-size: clamp(1.5rem, 4vw, 1.85rem); font-weight: 800; color: var(--color-text-title); letter-spacing: 0.1em; display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0; }
.section-title::before { content: ''; display: inline-block; width: 4px; height: 24px; border-radius: 4px; background-color: var(--color-gold-main); box-shadow: 0 0 12px var(--color-gold-main); }
.intro-desc { font-size: 15px; letter-spacing: 0.05em; line-height: 2; margin-bottom: 1.5rem; color: #b3b3b3; text-align: justify; }

.tag-group { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 0; }
.theme-tag { background: linear-gradient(135deg, rgba(20,15,12,0.6) 0%, rgba(5,4,3,0.8) 100%); border: 1px solid rgba(184, 155, 106, 0.25); color: var(--color-gold-main); padding: 6px 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; border-radius: 8px; will-change: transform; -webkit-transform: translateZ(0); transform: translateZ(0); transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease; cursor: default; }
.theme-tag:hover { background: linear-gradient(135deg, rgba(184, 155, 106, 0.15) 0%, rgba(184, 155, 106, 0.05) 100%); color: var(--color-gold-light); border-color: var(--color-gold-main); -webkit-transform: translateY(-2px) translateZ(0); transform: translateY(-2px) translateZ(0); box-shadow: 0 8px 15px rgba(0,0,0,0.5), 0 0 15px rgba(184, 155, 106, 0.2); }

.meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 0.5rem; border-top: none; padding-top: 0; }
.meta-card { background: linear-gradient(145deg, rgba(30, 25, 20, 0.6) 0%, rgba(10, 8, 6, 0.8) 100%); border: 1px solid rgba(184, 155, 106, 0.15); border-top: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 1.25rem 1.75rem; display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; will-change: transform; -webkit-transform: translateZ(0); transform: translateZ(0); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease; box-shadow: 0 10px 25px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.03); }
.meta-card:hover { border-color: rgba(184, 155, 106, 0.4); background: linear-gradient(145deg, rgba(40, 35, 30, 0.7) 0%, rgba(15, 12, 10, 0.9) 100%); -webkit-transform: translateY(-5px) translateZ(0); transform: translateY(-5px) translateZ(0); box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 30px rgba(184, 155, 106, 0.1), inset 0 1px 2px rgba(255,255,255,0.1); }
.pub-card { grid-column: span 2; }
.meta-label { color: rgba(184, 155, 106, 0.7); font-size: 11px; font-weight: 700; letter-spacing: 0.15em; display: block; margin-bottom: 2px; text-transform: uppercase; }
.meta-value { color: #fff; font-size: 1.2rem; font-weight: 800; letter-spacing: 0.05em; text-shadow: 0 2px 8px rgba(0,0,0,0.9); }

.expand-toggle-cb { display: none; }
.detail-panel { padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem); overflow: hidden; max-height: 650px; background: linear-gradient(180deg, rgba(15, 12, 10, 0.85) 0%, rgba(5, 4, 3, 0.95) 100%); transition: max-height 1.2s cubic-bezier(0.25, 1, 0.5, 1), padding-bottom 0.8s ease; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.expand-toggle-cb:checked + .detail-panel { max-height: 5000px; padding-bottom: 8rem; }

.expand-toggle-cb:not(:checked) + .detail-panel .text-collapse { display: none; }
.expand-toggle-cb:checked + .detail-panel .text-expand { display: none; }
.expand-icon { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); margin-left: 4px; }
.expand-toggle-cb:checked + .detail-panel .expand-icon { transform: rotate(-180deg); }
.btn-text { height: 100%; display: flex; align-items: center; justify-content: center; gap: 0.25rem; }

.expand-btn-wrapper::before { transition: opacity 0.6s ease, visibility 0.6s ease; }
.expand-toggle-cb:checked + .detail-panel .expand-btn-wrapper::before { opacity: 0; visibility: hidden; pointer-events: none; }

.dark-heading { width: 100%; font-size: clamp(1.35rem, 3.5vw, 1.6rem); font-weight: 800; color: var(--color-text-title); letter-spacing: 0.2em; text-transform: uppercase; padding-bottom: 1.2rem; text-align: center; margin-bottom: 3.5rem; position: relative; }
.dark-heading::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 150px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--color-gold-main), transparent); box-shadow: 0 0 10px var(--color-gold-main); }

.features-grid { display: flex; flex-direction: column; gap: 3.5rem; margin-bottom: 4rem; width: 100%; }
.feature-item { display: flex; flex-direction: column; gap: 1.8rem; align-items: center; }
.feature-title { font-size: clamp(1.35rem, 3vw, 1.6rem); font-weight: 800; margin-bottom: 1.2rem; letter-spacing: 0.05em; }
.feature-text p { line-height: 1.9; font-size: clamp(15px, 2vw, 16px); color: var(--color-text-body); font-weight: 400; }
@media (min-width: 768px) { .features-grid { gap: 6rem; } .feature-item { flex-direction: row; gap: 4rem; } .feature-item.reverse { flex-direction: row-reverse; } .feature-item > .media-container, .feature-item > .feature-text { flex: 1; } .feature-item > .media-container { margin-bottom: 0; } .feature-item.reverse .feature-text { text-align: right; } }

.media-container { display: block; padding: 8px; margin-bottom: 1.5rem; background: linear-gradient(135deg, rgba(35,28,24,0.6) 0%, rgba(10,8,6,0.8) 100%); border-radius: 22px; border: 1px solid rgba(184, 155, 106, 0.2); box-shadow: 0 20px 45px rgba(0,0,0,0.8), inset 0 1px 1px rgba(255,255,255,0.08); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.feature-item:hover .media-container { transform: translateY(-8px); box-shadow: 0 35px 60px rgba(0,0,0,0.95), 0 0 40px rgba(184, 155, 106, 0.15), inset 0 1px 2px rgba(255,255,255,0.15); }
.media-container video, .media-container img { width: 100%; border-radius: 14px; opacity: 0.9; transition: opacity 0.5s ease; filter: contrast(1.05); }
.feature-item:hover .media-container video, .feature-item:hover .media-container img { opacity: 1; }
.highlight-text { font-weight: 800; color: var(--color-gold-light); }

.bullet-list { width: 100%; padding: 0 1rem; display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 1024px) { .bullet-list { padding: 0 3rem; } }
.bullet-list li { position: relative; padding-left: 2rem; line-height: 1.8; font-size: 15px; font-weight: 500; letter-spacing: 0.02em; }
.bullet-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background-color: var(--color-blood-glow); box-shadow: 0 0 8px var(--color-blood-glow); transform: rotate(45deg); }

.more-content-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; width: 100%; margin-top: 1.5rem; }
@media (min-width: 1024px) { .more-content-grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.more-content-grid .bullet-list { padding: 0; }
.more-content-image { margin-bottom: 0; width: 100%; }
.more-content-image img { width: 100%; height: auto; display: block; border-radius: 14px; }

.expand-btn-wrapper { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; z-index: 20; padding-bottom: 2.5rem; }
.expand-btn-wrapper::before { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 120%; height: 320px; background: linear-gradient(to top, #050403 0%, rgba(5, 4, 3, 0.95) 30%, rgba(15, 12, 10, 0.6) 60%, transparent 100%); pointer-events: none; border-radius: 24px; }
.expand-btn { cursor: pointer; height: 56px; padding: 0 4.5rem; text-align: center; font-size: 14px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 800; border-radius: 9999px; position: relative; z-index: 1; }
.expand-btn .btn-text { position: relative; z-index: 10; height: 100%; display: flex; align-items: center; justify-content: center; gap: 4px; }

#sys-req { gap: 2rem; }
.table-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; padding: 0; margin: 0; border-radius: 24px; border: 1px solid rgba(184, 155, 106, 0.1); }
.table-wrapper::-webkit-scrollbar { height: 8px; }
.table-wrapper::-webkit-scrollbar-track { background: rgba(184, 155, 106, 0.1); border-radius: 4px; margin: 0 1rem; }
.table-wrapper::-webkit-scrollbar-thumb { background: rgba(184, 155, 106, 0.4); border-radius: 4px; }
.table-wrapper::-webkit-scrollbar-thumb:hover { background: rgba(184, 155, 106, 0.6); }

.spec-table { width: 100%; min-width: max(500px, 100%); border-collapse: collapse; text-align: left; }
.spec-table th, .spec-table td { padding: 1.25rem 1.75rem; border-bottom: 1px dashed rgba(184, 155, 106, 0.15); transition: background-color 0.4s ease, color 0.4s ease, text-shadow 0.4s ease; white-space: nowrap; }
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table th { font-size: 1rem; font-weight: 800; color: var(--color-text-title); letter-spacing: 0.1em; border-bottom: 1px solid rgba(184, 155, 106, 0.3); background: rgba(15, 12, 10, 0.4); }
.spec-table th .spec-en { display: block; font-size: 10px; color: var(--color-gold-main); text-transform: uppercase; letter-spacing: 0.2em; margin-top: 0.3rem; font-weight: 800; }
.spec-table th.col-rec { color: var(--color-gold-light); text-shadow: 0 0 10px rgba(184, 155, 106, 0.5); }
.spec-table th.col-rec .spec-en { color: var(--color-blood-glow); }
.spec-label { color: var(--color-gold-main); font-weight: 800; width: 30%; letter-spacing: 0.05em; transition: color 0.3s ease, text-shadow 0.3s ease; }
.spec-table td { color: var(--color-text-body); font-size: 14px; font-family: ui-monospace, SFMono-Regular, monospace; font-weight: 500; }
.spec-highlight { color: #fff !important; font-weight: 800; background-color: transparent; background-image: linear-gradient(90deg, rgba(230, 34, 34, 0.08) 0%, transparent 100%); border-left: 2px solid rgba(230, 34, 34, 0.4); transition: background-image 0.4s ease, border-left-color 0.4s ease, box-shadow 0.4s ease; }
.spec-table tbody tr:hover { background-color: rgba(184, 155, 106, 0.06); }
.spec-table tbody tr:hover td { color: #fff; }
.spec-table tbody tr:hover .spec-label { color: var(--color-gold-light); text-shadow: 0 0 10px rgba(184, 155, 106, 0.5); }
.spec-table tbody tr:hover .spec-highlight { background-image: linear-gradient(90deg, rgba(230, 34, 34, 0.2) 0%, transparent 100%); border-left-color: var(--color-blood-glow); box-shadow: inset 25px 0 35px -20px rgba(230, 34, 34, 0.6); text-shadow: 0 0 10px rgba(255, 255, 255, 0.6); }

.section-desc { font-size: 16px; color: var(--color-text-body); line-height: 1.8; margin-bottom: 1.5rem; }
.community-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; width: 100%; }
@media (min-width: 768px) { .community-grid { grid-template-columns: repeat(2, 1fr); } }

.guild-card { display: flex; align-items: center; padding: 1.5rem 2rem; background: linear-gradient(135deg, rgba(20, 15, 12, 0.8) 0%, rgba(10, 8, 6, 0.95) 100%); border-radius: 20px; border: 1px solid rgba(184, 155, 106, 0.15); border-left: 4px solid var(--color-gold-dark); will-change: transform; -webkit-transform: translateZ(0); transform: translateZ(0); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease; box-shadow: 0 15px 35px rgba(0,0,0,0.8), inset 0 1px 1px rgba(255,255,255,0.05); position: relative; overflow: hidden; }
.guild-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% center, rgba(230, 34, 34, 0.2) 0%, transparent 65%); opacity: 0; transition: opacity 0.5s ease; }
.guild-card:hover { border-color: rgba(184, 155, 106, 0.4); border-left-color: var(--color-blood-glow); -webkit-transform: translateX(8px) translateZ(0); transform: translateX(8px) translateZ(0); box-shadow: 0 25px 50px rgba(0,0,0,0.95), inset 0 1px 2px rgba(255,255,255,0.15); }
.guild-card:hover::before { opacity: 1; }

.guild-icon { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(180deg, rgba(35, 28, 24, 0.8) 0%, rgba(10, 8, 6, 0.9) 100%); border: 1px solid rgba(184, 155, 106, 0.25); display: flex; align-items: center; justify-content: center; color: var(--color-gold-main); margin-right: 1.8rem; will-change: transform; -webkit-transform: translateZ(0); transform: translateZ(0); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease; position: relative; z-index: 10; box-shadow: inset 0 1px 1px rgba(255,255,255,0.05), 0 5px 15px rgba(0,0,0,0.5); }
.guild-card:hover .guild-icon { color: #fff; border-color: var(--color-blood-glow); background: linear-gradient(180deg, rgba(155, 25, 25, 0.4) 0%, rgba(35, 5, 5, 0.9) 100%); box-shadow: 0 0 25px rgba(230, 34, 34, 0.5), inset 0 1px 2px rgba(255,255,255,0.2); -webkit-transform: scale(1.1) rotate(5deg) translateZ(0); transform: scale(1.1) rotate(5deg) translateZ(0); }
.guild-icon svg { width: 26px; height: 26px; }
.guild-icon img { width: 38px; height: 38px; object-fit: contain; transition: filter 0.4s ease; }
.guild-card:hover .guild-icon img { filter: drop-shadow(0 0 10px rgba(230, 34, 34, 0.8)); }

.guild-info { display: flex; flex-direction: column; flex: 1; position: relative; z-index: 10; }
.guild-label { font-size: 11px; color: var(--color-text-muted); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.4rem; font-weight: 800; transition: color 0.4s ease; }
.guild-card:hover .guild-label { color: var(--color-gold-light); }
.guild-value { font-size: 1.35rem; font-weight: 800; color: var(--color-text-title); letter-spacing: 0.05em; transition: color 0.4s ease, text-shadow 0.4s ease; }
.guild-card:hover .guild-value { color: #fff; text-shadow: 0 0 15px rgba(230, 34, 34, 0.9); }
.guild-arrow { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 1.6rem; font-weight: bold; color: rgba(184, 155, 106, 0.2); position: relative; z-index: 10; margin-left: 1rem; transition: color 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), text-shadow 0.4s ease; }
.guild-card:hover .guild-arrow { color: var(--color-blood-glow); transform: translateX(8px) scale(1.2); text-shadow: 0 0 12px var(--color-blood-glow); }

.main-footer {
  margin-top: 3rem; padding: 3rem 0 calc(1.5rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.98) 0%, #050403 100%);
  border-top: 1px solid rgba(184, 155, 106, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 -10px 30px rgba(0, 0, 0, 0.8);
  position: relative; z-index: 10;
}
.main-footer::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 80%; height: 1px; background: linear-gradient(90deg, transparent, rgba(184, 155, 106, 0.3), transparent); }

.footer-content { max-width: 1450px; margin: 0 auto; padding: 0 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.85rem; text-align: center; }
@media (min-width: 768px) { .footer-content { flex-direction: row; gap: 1.8rem; flex-wrap: wrap; } }
.footer-content p { font-size: 12px; color: var(--color-text-muted); letter-spacing: 0.05em; font-weight: 500; font-family: var(--font-system); text-transform: uppercase; }
.footer-copyright-en { color: rgba(140, 140, 140, 0.8); }
.footer-copyright-zh { color: rgba(184, 155, 106, 0.7); }
.divider-pipe { display: none; color: rgba(184, 155, 106, 0.3); opacity: 0.5; font-size: 14px; }
@media (min-width: 768px) { .divider-pipe { display: inline; } }

.icp-link { display: flex; align-items: center; gap: 0.4rem; font-size: 12px; color: rgba(140, 140, 140, 0.8); letter-spacing: 0.05em; transition: color 0.3s ease; text-transform: uppercase; }
.icp-link:hover { color: var(--color-gold-light); }
.icp-link svg { width: 14px; height: 14px; opacity: 0.7; }
.icp-link:hover svg { opacity: 1; filter: drop-shadow(0 0 5px var(--color-gold-light)); }

.privacy-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; will-change: opacity; transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.privacy-modal:target { opacity: 1; visibility: visible; }
.modal-overlay { position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.9); cursor: pointer; transform: translateZ(0); will-change: opacity; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-panel { position: relative; width: 100%; max-width: 900px; max-height: 85vh; margin: 0 1.5rem; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(20, 15, 12, 0.98) 0%, rgba(10, 8, 6, 0.95) 100%); border-radius: 24px; border: 1px solid rgba(184, 155, 106, 0.25); border-top: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 35px 60px rgba(0, 0, 0, 0.95), inset 0 1px 2px rgba(255, 255, 255, 0.05); -webkit-transform: scale(0.95) translateY(30px) translateZ(0); transform: scale(0.95) translateY(30px) translateZ(0); opacity: 0; will-change: transform, opacity; contain: layout style paint; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease; transition-delay: 0.05s; }
.privacy-modal:target .modal-panel { -webkit-transform: scale(1) translateY(0) translateZ(0); transform: scale(1) translateY(0) translateZ(0); opacity: 1; }
.modal-close { position: absolute; top: 1.5rem; right: 1.5rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(184, 155, 106, 0.1); border: 1px solid rgba(184, 155, 106, 0.25); color: var(--color-text-muted); z-index: 20; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.modal-close:hover { background: rgba(230, 34, 34, 0.2); color: #fff; border-color: rgba(230, 34, 34, 0.5); transform: rotate(90deg) scale(1.1); box-shadow: 0 0 20px rgba(230, 34, 34, 0.4); }
.modal-close svg { width: 22px; height: 22px; }
.modal-header { padding: 2.5rem 3rem; border-bottom: 1px solid rgba(184, 155, 106, 0.15); background: transparent; position: relative; z-index: 10; flex-shrink: 0; }
.modal-header h2 { font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: 0.15em; }
.modal-header span { font-size: 11px; color: var(--color-gold-main); margin-left: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.25em; }
.modal-body { padding: 2.5rem; overflow-y: auto; background: transparent; position: relative; z-index: 10; }
@media (min-width: 768px) { .modal-body { padding: 4rem; } }
.modal-tip { color: var(--color-gold-light); font-weight: 800; font-size: 1.35rem; margin-bottom: 1.5rem; letter-spacing: 0.05em; }
.modal-body p { margin-bottom: 1.5rem; line-height: 1.9; color: var(--color-text-body); font-size: 15px; font-weight: 400; }
.modal-list { list-style-type: none; padding-left: 0; margin-bottom: 2.5rem; color: var(--color-text-title); }
.modal-list li { margin-bottom: 1.2rem; position: relative; padding-left: 1.8rem; line-height: 1.7; font-weight: 500; }
.modal-list li::before { content: "›"; position: absolute; left: 0; top: -2px; color: var(--color-gold-main); font-size: 22px; font-weight: bold; line-height: 1.2; text-shadow: 0 0 10px rgba(184, 155, 106, 0.6); }
.modal-meta { font-size: 14px; color: var(--color-text-muted); margin: 3rem 0; padding-bottom: 3rem; border-bottom: 1px dashed rgba(184, 155, 106, 0.25); font-weight: 500; }
.modal-title { text-align: center; font-size: 1.85rem; color: #fff; margin-bottom: 3rem; font-weight: 800; letter-spacing: 0.05em; }
.modal-subtitle { color: #fff; font-weight: 800; margin-top: 2.5rem; font-size: 1.25rem; border-left: 4px solid var(--color-blood-glow); padding-left: 12px; letter-spacing: 0.05em; box-shadow: -2px 0 10px -2px rgba(230, 34, 34, 0.5); }
.modal-contact-box { background: linear-gradient(135deg, rgba(30, 25, 20, 0.5) 0%, rgba(10, 8, 6, 0.8) 100%); border-radius: 16px; padding: 1.8rem; border: 1px solid rgba(184, 155, 106, 0.2); margin: 2.5rem 0; font-size: 15px; box-shadow: inset 0 1px 1px rgba(255,255,255,0.05), 0 10px 20px rgba(0,0,0,0.5); }
.modal-contact-box p { margin-bottom: 0.8rem; }
.modal-contact-box p:last-child { margin-bottom: 0; }
.modal-contact-box strong { color: var(--color-gold-light); font-weight: 700; letter-spacing: 0.05em; }
.policy-table-wrapper { width: 100%; overflow-x: auto; margin: 2.5rem 0; border-radius: 12px; border: 1px solid rgba(184, 155, 106, 0.3); background: rgba(0, 0, 0, 0.6); box-shadow: 0 15px 30px rgba(0,0,0,0.6); }
.policy-table { width: 100%; min-width: 600px; border-collapse: collapse; text-align: left; }
.policy-table th, .policy-table td { padding: 1.2rem 1.5rem; border-bottom: 1px solid rgba(184, 155, 106, 0.15); font-size: 14px; color: var(--color-text-body); transition: background-color 0.3s ease, color 0.3s ease; }
.policy-table th { color: var(--color-gold-light); font-weight: 800; background: rgba(184, 155, 106, 0.12); border-bottom: 1px solid rgba(184, 155, 106, 0.4); letter-spacing: 0.05em; }
.policy-table tr:last-child td { border-bottom: none; }
.policy-table tbody tr:hover { background-color: rgba(184, 155, 106, 0.08); color: #fff; }

@media (max-width: 767px) and (orientation: portrait) {
  .dft-center-logo { top: 60%; width: clamp(260px, 90vw, 420px); }
  .dft-action { bottom: 20vh; transform: scale(0.9); }
  .scroll-indicator { bottom: 2.5rem; transform: scale(0.72); }
  
  .dft-logo-img { filter: drop-shadow(0 5px 15px rgba(0,0,0,0.8)) drop-shadow(0 0 15px rgba(139,24,24,0.5)); }
  .dft-mask { height: 8rem; background: linear-gradient(to top, #050403 0%, rgba(5,4,3,0.7) 40%, rgba(5,4,3,0.2) 70%, transparent 100%); }

  .main-container { padding: clamp(3rem, 6vw, 5rem) clamp(0.8rem, 4vw, 1.5rem); gap: clamp(3rem, 6vw, 5rem); }
  .content-section { scroll-margin-top: 100px; }
  .intro-grid { gap: 2rem; margin-bottom: 2.5rem; }

  .banner-inner { padding: 3px; border-radius: 16px; }
  .carousel-container { box-shadow: 0 15px 30px rgba(0,0,0,0.5); }

  .section-title { font-size: clamp(1.3rem, 4vw, 1.5rem); }
  .section-desc { font-size: 14px; line-height: 1.7; }
  .intro-desc { font-size: 14px; line-height: 1.8; }
  .tag-group { gap: 0.6rem; }
  .theme-tag { padding: 5px 12px; font-size: 11px; }

  .meta-grid { gap: 1rem; }
  .meta-card { padding: 1.2rem; }
  .meta-label { font-size: 10px; }
  .meta-value { font-size: 1.1rem; }

  .detail-panel { padding: clamp(1.5rem, 4vw, 3rem) clamp(1.2rem, 4vw, 2rem); }
  .guild-card { padding: 1.2rem; }
  .guild-icon { width: 48px; height: 48px; margin-right: 1.2rem; }
  .guild-icon img { width: 32px; height: 32px; }
  .guild-label { font-size: 10px; }
  .guild-value { font-size: 1.15rem; }

  .table-wrapper { border-radius: 16px; }
  .spec-table th, .spec-table td { padding: 1rem 1.2rem; font-size: 13px; }
  .spec-table th { font-size: 0.95rem; }
  .spec-table th .spec-en { font-size: 9px; }

  .audio-toggle { width: 40px; height: 40px; top: 1.2rem; right: 1.2rem; }
  .audio-toggle svg { width: 18px; height: 18px; }
}

body.is-landscape { overflow: hidden !important; }
body.is-landscape .rotation-hint { display: flex !important; }
body.is-landscape #dft, 
body.is-landscape #main-nav, 
body.is-landscape #main-content, 
body.is-landscape .main-footer, 
body.is-landscape .privacy-modal, 
body.is-landscape .smoke-bg { display: none !important; }

@media (min-width: 951px) and (max-width: 1366px) and (orientation: landscape) {
  .dft-center-logo { top: 55%; width: clamp(380px, 55vw, 700px); }
  .dft-action { bottom: 17vh; }
  .scroll-indicator { bottom: 3.5rem; }
}

@media (min-width: 1367px) and (orientation: landscape) {
  .dft-center-logo { top: 60%; width: clamp(450px, 60vw, 950px); }
  .dft-action { bottom: 18vh; }
  .scroll-indicator { bottom: 4rem; }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .dft-center-logo { top: 50%; width: clamp(450px, 70vw, 700px); }
  .dft-action { bottom: 17vh; }
  .scroll-indicator { bottom: 3rem; }
}

@media (min-width: 1920px) {
  .dft-center-logo { width: 850px; top: 60%; }
  .dft-action { bottom: 17vh; }
}

/* iOS Safari 特定优化 */
@supports (-webkit-touch-callout: none) {
  body {
    -webkit-overflow-scrolling: touch;
  }
  
  .dft-section {
    background-color: #050403;
  }
  
  /* 额外的背景层确保 Safari 底部完全覆盖 */
  body::before {
    height: 200vh;
  }
}

/* 确保在所有设备上都有完整的背景 */
.main-container {
  background-color: transparent;
}

/* 防止 Safari 弹性滚动时看到后面 */
html {
  background-color: #050403;
}

body {
  background-color: #050403;
}

/* 确保底部 footer 有完整的背景覆盖 */
.main-footer {
  position: relative;
  z-index: 10;
}

/* 仅在 Safari 上添加轻微的背景延伸 */
@supports (-webkit-touch-callout: none) {
  .main-footer::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100vh;
    background-color: #050403;
    pointer-events: none;
  }
}