/**
 * LIGHTWINNER CSS ARCHITECTURE V4
 * 0-SETTINGS / VARIABLES
 * 
 * 集中管理全站颜色、间距、层级变量?
 */

:root {
    /* --- 品牌核心?(Brand Colors) --- */
    --accent-color: #ffaa00;
    --accent-warm: #dba11c;
    --lw-accent: var(--accent-color);

    /* --- 基础面板变量 (Base Panel Variables) --- */
    --lw-text: #ffffff;
    --lw-text-muted: #e0e0e0;
    --lw-bg: transparent;
    /* 允许三维星空 Canvas 穿?*/
    --lw-border: rgba(255, 255, 255, 0.08);
    --lw-panel-bg: rgba(20, 20, 25, 0.6);
    /* Match Product Card style: 10px blur + 0.6 density */
    --lw-glass-blur: blur(10px);
    --lw-glass-saturate: saturate(180%);
    --lw-panel-hover: rgba(40, 40, 60, 0.4);

    /* --- 移动端常?(Mobile Constants) --- */
    --mobile-nav-height: 80px;

    /* --- 层级管理 (Z-Index Chain) --- */
    --z-index-base: 1;
    --z-index-nav: 10000;
    --z-index-drawer: 10002;
    --z-index-modal: 100000;

    /* --- 搜索专用变量 (Search Pro Max) --- */
    --search-glow: var(--accent-color);
    --search-border: rgba(255, 170, 0, 0.4);
    --search-glass: rgba(15, 15, 20, 0.85);
}

/**
 * LIGHT MODE OVERRIDES
 * 通过变量覆盖实现主题切换，而非冗余样式声明?
 */
body.light-mode {
    --lw-text: #1a1a1a;
    --lw-text-muted: #555555;
    --lw-bg: #ffffff;
    --lw-border: rgba(0, 0, 0, 0.1);
    --lw-panel-bg: rgba(255, 255, 255, 0.75);
    /* Improved readability in light mode while keeping glass feel */
    --lw-panel-hover: rgba(0, 0, 0, 0.05);

    --search-glow: #d67e2e;
    --search-border: rgba(214, 126, 46, 0.3);
    --search-glass: rgba(255, 255, 255, 0.95);
}
/* 
 * ITCSS - Base Layer: Elements
 * ----------------------------
 * 核心目标：为原始 HTML 标签提供默认外观?
 */

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    /* 核心背景与颜色由 _critical.css 定义以保证渲染，此处提供延伸属?*/
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 链接基础 */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* 表单元素基础继承 */
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: inherit;
    margin: 0;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

/* 列表清理 */
ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}
/* 
 * ITCSS - Generic Layer: Reset
 * ----------------------------
 * 核心目标：消除浏览器默认差异，建立全站统一的盒模型基准?
 */

/* 1. 盒模型统一 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2. 移除内外边距 */
html,
body {
    margin: 0;
    padding: 0;
}

/* 3. 媒体元素响应式基?*/
img,
video,
canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 4. 移动端交互优?*/
input,
button,
textarea,
a {
    -webkit-tap-highlight-color: transparent;
}

/* 5. 溢出处理预置 */
.u-overflow-hidden {
    overflow: hidden !important;
}
/* =====================================================
   Layer 1: Base - Utilities & Global Objects
   Origin: lightwinner.css, sections.css
   ===================================================== */

/* --- Animations --- */
@keyframes cyber-breath {
    0% {
        box-shadow: 0 0 10px rgba(var(--cct-raw), 0.2), inset 0 0 0 1px rgba(255, 245, 180, 0.2);
    }

    100% {
        box-shadow: 0 0 25px rgba(var(--cct-raw), 0.60), inset 0 0 0 1px rgba(255, 245, 180, 0.6);
    }
}

/* Global Breathing Glow Containers (Migrated from lightwinner.css) */
.theater-playlist,
.row-timeline,
.atlas-directory,
.atlas-reader,
.atlas-sidebar,
.atlas-list,
.region-content,
.search-dropdown,
.theater-stage,
.atlas-map {
    animation: cyber-breath 4s ease-in-out infinite alternate;
    border: none;
    border-radius: 12px;
}

/* --- Scrollbar Utilities --- */
/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    display: none !important;
}

/* Hide scrollbar for IE, Edge and Firefox */
html,
body,
.section,
main,
.no-scrollbar {
    -ms-overflow-style: none !important;
    /* IE and Edge */
    scrollbar-width: none !important;
    /* Firefox */
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* --- Global Layout Objects (SPA Engine) --- */
main {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: transparent;
    /* TRANSPARENT to show Stars/DayMode */
}

/* Base Section Class */
.section,
section[id$="-section"],
section[id="product-container"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* SCROLL MECHANISM */
    overflow-y: auto;
    overflow-x: hidden;
    overflow-x: hidden;
    padding-top: 100px;
    /* Slight increase for header clearance */
    padding-bottom: 150px;
    /* AGGRESSIVE PADDING to fix "Cannot scroll to bottom" */

    /* VISIBILITY LOGIC (Display Toggle) */
    display: none;
    opacity: 0;
    pointer-events: none;
    background: transparent !important;
    /* Force Transparency */

    transition: opacity 0.4s ease;
    box-sizing: border-box;
    z-index: 10;
}

/* Base Active State (Generic) */
.section.active,
section.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 20;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Global Overlay Utility --- */
.lw-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    /* Transparent overlay to show stars behind */
    background: #000;
    z-index: 99999;
    /* INCREASED: Ensure on top */
    display: flex !important;
    justify-content: center;
    align-items: center;
    overflow: hidden !important;
    /* Prevent scrolling */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.lw-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Lock background scrolling when modal is open */
html.modal-open,
body.modal-open {
    overflow: hidden !important;
}

/* Hide Elements when Modal Open */
.hidden-for-modal {
    opacity: 0;
    filter: blur(10px);
    pointer-events: none;
    transition: opacity 0.5s ease, filter 0.5s ease;
}

/* --- Skeleton Loading States --- */
.skeleton {
    position: relative;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 4px;
}

.skeleton::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%) !important;
    animation: shimmer 1.5s infinite !important;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

body.light-mode .skeleton {
    background: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .skeleton::after {
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.03) 50%, transparent 100%) !important;
}
/* =====================================================
   Layer 3: Components - Navigation (Global, Drawer, Search)
   Origin: navigation.css (v2.5), lightwinner-mobile.css (v3.1)
   ===================================================== */

/* --- 1. Global Navbar (#global-navbar) & Shimmer --- */
#global-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    /* Base Glass: Dark with a hint of ambient reflection */
    background: var(--lw-panel-bg);
    backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    -webkit-backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

/* Glass Reflection: Shimmer that reacts to CCT */
#global-navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Simulation of a light source reflecting on the glass pane */
    background: linear-gradient(105deg,
            transparent 20%,
            rgba(var(--cct-raw), 0.15) 35%,
            rgba(var(--cct-raw), 0.25) 40%,
            rgba(var(--cct-raw), 0.1) 45%,
            transparent 60%);
    background-size: 200% 100%;
    background-position: var(--cursor-x) 0;
    /* Follows mouse slightly for parallax feel */
    pointer-events: none;
    opacity: 0.6;
    z-index: -1;
    transition: background-position 0.2s ease-out;
}

#global-navbar.scrolled,
#global-navbar:hover {
    background: var(--lw-panel-bg);
    backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.nav-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

/* --- 2. Navigation Left (Logo) --- */
.nav-left {
    min-width: 100px;
    display: flex;
    align-items: center;
    gap: 15px;
}

#logo-switch {
    display: flex;
    align-items: center;
}

/* Halley Hint */
#halley-hint {
    font-size: 0.75rem;
    color: #00eaff;
    font-weight: 500;
    opacity: 0;
    white-space: nowrap;
    cursor: help;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.6);
    margin: 0 !important;
    pointer-events: auto;
    margin-top: 4px;
}

@keyframes hint-breath {
    0% {
        text-shadow: 0 0 5px rgba(0, 234, 255, 0.4);
        opacity: 0.6;
    }

    100% {
        text-shadow: 0 0 15px rgba(0, 234, 255, 1);
        opacity: 1;
    }
}

body:not(.light-mode) #halley-hint {
    opacity: 0.9;
    animation: hint-breath 2s infinite alternate;
}

body.light-mode #halley-hint {
    opacity: 0;
    pointer-events: none;
    display: none;
}

/* --- 4. Navigation Center (Links) --- */
.nav-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 10px 15px;
    transition: color 0.3s;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 5px rgba(255, 255, 255, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(-50%);
    box-shadow: 0 0 5px var(--accent-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color);
}

/* Active State - Dynamic CCT Color */
.nav-link.active {
    color: var(--cct-ui-color, #fff) !important;
    text-shadow: 0 0 15px var(--cct-ui-color, #fff);
    border: 1px solid var(--cct-ui-color, #fff);
    border-bottom: none;
    background: rgba(var(--cct-raw), 0.1);
    border-radius: 4px;
    animation: breathing-glow 3s infinite ease-in-out;
}

.nav-link.active::after {
    width: 100%;
    background: var(--cct-ui-color, #fff);
    box-shadow: 0 0 10px var(--cct-ui-color, #fff);
    height: 2px;
    bottom: 0px;
    animation: breathing-line 3s infinite ease-in-out;
}

@keyframes breathing-line {

    0%,
    100% {
        box-shadow: 0 0 5px var(--cct-ui-color);
        opacity: 0.7;
    }

    50% {
        box-shadow: 0 0 15px var(--cct-ui-color);
        opacity: 1;
    }
}

@keyframes breathing-glow {

    0%,
    100% {
        text-shadow: 0 0 10px var(--cct-ui-color);
        opacity: 1;
    }

    50% {
        text-shadow: 0 0 20px var(--cct-ui-color);
        opacity: 0.8;
    }
}

/* --- 5. Mega Menu --- */
.mega-menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100vw;
    background: var(--lw-panel-bg);
    backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 40px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

body.light-mode .mega-menu {
    background: rgba(220, 235, 255, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 50, 100, 0.1);
}

body.light-mode .mega-menu a {
    color: #445566;
}

body.light-mode .mega-menu a:hover {
    color: var(--accent-color);
}

body.light-mode .mega-col h4 {
    color: #223344;
    border-bottom-color: #ccddee;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.mega-col h4 {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
    margin-bottom: 20px;
    font-size: 16px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.mega-col ul {
    list-style: none;
    padding: 0;
}

.mega-col li {
    margin-bottom: 10px;
}

.mega-col a {
    text-decoration: none;
    color: #ccc;
    font-size: 14px;
    transition: color 0.2s, padding-left 0.2s;
    display: block;
}

.mega-col a:hover {
    color: #fff;
    text-shadow: 0 0 8px #fff;
    padding-left: 5px;
    border-left: 2px solid var(--accent-color);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--panel-bg);
    padding: 15px;
    border-radius: 4px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* --- Fireworks Toggle (Refined Position) --- */


/* --- Language Dropdown --- */
.lang-dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    margin-bottom: 0px;
    background: var(--lw-panel-bg);
    backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    -webkit-backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    list-style: none;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

body.light-mode .lang-dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 50, 100, 0.1);
}

.lang-dropdown-container:hover .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu li {
    padding: 10px 20px;
    font-size: 13px;
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
}

body.light-mode .lang-dropdown-menu li {
    color: #445566;
}

.lang-dropdown-menu li:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

body.light-mode .lang-dropdown-menu li:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--accent-color);
}

/* --- 6. Navigation Right (Icons) --- */
.nav-right {
    min-width: 100px;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.nav-icon {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

.nav-icon:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}

/* --- 7. Mobile Drawer (Merged from lightwinner-mobile.css) --- */

/* Trigger Container */
.mobile-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
    width: 40px !important;
    height: 40px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    z-index: var(--z-trigger) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Icon Animation (Hamburger to X) */
.hamburger-icon {
    width: 20px !important;
    height: 2px !important;
    background: var(--accent-cyan, #00ffff) !important;
    position: relative !important;
    transition: all 0.3s ease-in-out !important;
    pointer-events: none;
    display: block !important;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '' !important;
    position: absolute !important;
    width: 20px !important;
    height: 2px !important;
    background: inherit !important;
    transition: all 0.3s ease-in-out !important;
    left: 0 !important;
}

.hamburger-icon::before {
    top: -6px !important;
}

.hamburger-icon::after {
    top: 6px !important;
}

/* Animation State: [aria-expanded="true"] */
#mobile-menu-trigger[aria-expanded="true"] .hamburger-icon {
    background: transparent !important;
}

#mobile-menu-trigger[aria-expanded="true"] .hamburger-icon::before {
    top: 0 !important;
    transform: rotate(45deg) !important;
}

#mobile-menu-trigger[aria-expanded="true"] .hamburger-icon::after {
    top: 0 !important;
    transform: rotate(-45deg) !important;
}

/* Drawer Container */
.mobile-nav {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 80% !important;
    max-width: 280px !important;
    height: 100vh !important;
    background: var(--lw-panel-bg);
    backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate) !important;
    -webkit-backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate) !important;
    border-left: 1px solid rgba(0, 229, 255, 0.25) !important;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.7) !important;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: var(--z-drawer) !important;
    padding: 90px 20px 40px !important;
    overflow-y: auto !important;
}

/* Light Mode Mobile Drawer Override */
body.light-mode .mobile-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1) !important;
    /* Light Mode Gradient Override if needed, or just solid background */
    background: linear-gradient(165deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(240, 245, 255, 0.95) 100%) !important;
}

.mobile-nav.active {
    right: 0 !important;
}

/* Mobile Links */
.mobile-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mobile-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mobile-nav-link,
.mobile-item>a,
.mobile-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 0 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.mobile-item i {
    margin-right: 12px !important;
    width: 20px !important;
    text-align: center !important;
    color: var(--lw-cyan, #00e5ff) !important;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3) !important;
    font-size: 0.9em !important;
}

.mobile-nav-link:hover,
.mobile-head:hover {
    color: var(--accent-cyan, #00ffff) !important;
}

/* Accordion Icon */
.mobile-head .accordion-icon {
    transition: transform 0.3s ease !important;
    font-size: 1rem !important;
    opacity: 0.9 !important;
    color: var(--lw-gold, #D4AF37) !important;
}

.mobile-item.active .accordion-icon {
    transform: rotate(45deg) !important;
    color: var(--lw-cyan, #00e5ff) !important;
}

/* Submenu */
.mobile-sub {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.mobile-item.active .mobile-sub {
    max-height: 800px !important;
    margin-bottom: 10px !important;
}

.mobile-group-title {
    padding: 12px 15px 5px !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: var(--accent-cyan, #00ffff) !important;
    opacity: 0.6 !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin-top: 5px !important;
}

.mobile-sub li a {
    display: block !important;
    padding: 12px 15px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem !important;
    border-left: 2px solid transparent !important;
}

.mobile-sub li a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-left-color: var(--accent-cyan, #00ffff) !important;
}

/* Mobile Overlay */
.mobile-nav-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(5px) !important;
    z-index: var(--z-drawer-overlay) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s ease !important;
}

.mobile-nav-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Light Mode Text Overrides for Mobile Drawer */
body.light-mode .mobile-nav-link,
body.light-mode .mobile-head,
body.light-mode .mobile-item>a {
    color: #333 !important;
}

body.light-mode .mobile-item {
    border-bottom-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .mobile-item i {
    color: var(--accent-color) !important;
    text-shadow: none !important;
}

body.light-mode .mobile-sub {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .mobile-sub li a {
    color: #555 !important;
    border-left: 2px solid transparent !important;
}

body.light-mode .mobile-sub li a:hover {
    color: var(--accent-color) !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border-left-color: var(--accent-color) !important;
}

body.light-mode .mobile-group-title {
    color: #888 !important;
    border-bottom-color: rgba(0, 0, 0, 0.05) !important;
}

/* --- 8. Responsive & Light Mode Overrides --- */
@media (max-width: 1024px) {
    .nav-center {
        display: none;
    }

    #mobile-menu-trigger {
        display: block;
    }

    /* Mobile: FAB Style (Bottom Right - Shifted up to avoid Inquiry Bar) */

}

@media (max-width: 600px) {
    .nav-container {
        padding: 0 15px;
    }

    #halley-hint {
        display: none !important;
    }

    .nav-left,
    .nav-right {
        gap: 10px;
    }

    #logo-switch img {
        height: 24px;
    }
}

@media (min-width: 1025px) {
    #mobile-menu-trigger {
        display: none;
    }
}

/* Light Mode Navbar */
body.light-mode #global-navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* V11: Logo Optimization - Clean Text, No Yellow Glow */
body.light-mode #logo-switch {
    color: #000 !important;
    text-shadow: none !important;
    font-weight: 800;
    letter-spacing: -1px;
}

body.light-mode .nav-link {
    color: #333 !important;
}

body.light-mode .nav-link:hover {
    color: var(--lw-accent) !important;
}

/* Mobile Navbar Fixes (from lightwinner-mobile.css) */
@media (max-width: 1024px) {

    .nav-links,
    .nav-center,
    #halley-hint {
        display: none !important;
    }

    #global-navbar {
        padding: 0 20px !important;
        height: 60px !important;
    }

    .nav-container {
        padding: 0 20px !important;
        height: 100% !important;
    }



    .nav-left {
        min-width: 100px;
        display: flex;
        align-items: center;
        gap: 10px !important;
    }

    .nav-right {
        margin-right: 0 !important;
        display: flex !important;
        gap: 15px !important;
        align-items: center !important;
        height: 100% !important;
    }
}


/* --- 9. Mobile Inquiry Bar (Restored from Legacy) --- */
@keyframes bubbleFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    }

    50% {
        transform: scale(1.08);
        opacity: 0.9;
        filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.5));
    }
}

#mobile-inquiry-bar,
.mobile-sticky-inquiry {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 75px !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 9999 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    padding: 0 20px 20px !important;
    box-sizing: border-box !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

.inquiry-btn {
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: auto !important;
    margin: 0 !important;
    text-decoration: none !important;
    animation: bubbleFloat 5s ease-in-out infinite !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.inquiry-btn i {
    font-size: 1.8rem !important;
    margin: 0 !important;
    animation: iconPulse 4s ease-in-out infinite !important;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.4)) !important;
}

.whatsapp-btn {
    color: #25D366 !important;
    animation-delay: 0s !important;
}

.whatsapp-btn i {
    animation-delay: 0s !important;
}

.email-btn {
    color: var(--accent-cyan, #00ffff) !important;
    animation-delay: -0.5s !important;
}

.email-btn i {
    animation-delay: -0.5s !important;
}

/* Active states: Squishy & Fun */
.inquiry-btn:active {
    transform: scale(0.8) rotate(-8deg) !important;
    filter: brightness(1.4) !important;
    transition: all 0.1s ease !important;
}
/* =====================================================
   Layer 3: Components - Hero Section
   Origin: lightwinner-mobile.css (v3.1)
   ===================================================== */

/* Step 20: Hero Layout */
#hero .hero-content {
    padding-top: 50px !important;
    /* EXTREME UP-PUSH: Reduced from 80px to free up space below */
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Step 21: Hero Title (Reinforcement) */
#hero h1,
#hero .glitch-text {
    font-size: clamp(2rem, 9vw, 3rem) !important;
    /* SLIGHTLY SMALLER for compactness */
    margin-bottom: 8px !important;
    line-height: 1.1 !important;
}

/* Tagline Visibility */
#hero .hero-tagline,
#hero .tagline {
    font-size: 0.9rem !important;
    margin-bottom: 22px !important;
    /* INCREASED from 15px for breathing room */
    opacity: 0.9 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Step 22: Card Base (Premium Glass - MORE TRANSPARENT) */
.glass-card,
.hero-tile,
.quick-card {
    /* Lighter, more ethereal glass */
    background: var(--lw-panel-bg);
    backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate) !important;
    -webkit-backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate) !important;

    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
    /* Top light */
    border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important;
    /* Bottom shadow */
    border-radius: 14px !important;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.3),
        /* Deeper shadow */
        0 4px 12px rgba(0, 0, 0, 0.2) !important;

    margin-bottom: 15px !important;
    padding: 10px !important;
    transition: transform 0.2s ease !important;
}

.glass-card:active,
.hero-tile:active,
.quick-card:active {
    transform: scale(0.97) !important;
    filter: brightness(1.2) !important;
    border-color: rgba(0, 255, 255, 0.3) !important;
}

/* Step 23: Quick Access - COMPACT VERTICAL STACK */
.hero-quick-access {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    /* RESTORED from 8px for better breathing room */
    padding: 0 45px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 10px !important;
    /* SLIGHTLY INCREASED from 5px for air */
}

/* Target the actual cards inside */
.hero-quick-access .hero-tile {
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    padding: 12px 20px !important;
    /* COMPACT: Reduced from 22px to save space */

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;

    margin-bottom: 0 !important;
    /* More rounded for aesthetic */
}

/* Icon Polishing - SMALLER */
.hero-quick-access .tile-icon {
    font-size: 1.4rem !important;
    margin-bottom: 5px !important;
    height: 28px !important;
    width: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 50% !important;
}

/* Title Polishing */
.hero-quick-access h3 {
    font-size: 0.95rem !important;
    margin: 0 0 2px 0 !important;
    font-weight: 600 !important;
}

/* Description Polishing */
.hero-quick-access p {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    opacity: 0.9 !important;
    margin: 0 !important;
    max-width: 90% !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
}

/* Icon Polishing (Grid) */
.quick-access-grid .tile-icon,
.hero-grid .tile-icon {
    font-size: 1.5rem !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 30px !important;
    width: 30px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
}

/* Text Polishing (Grid) */
.quick-access-grid h3,
.hero-grid h3 {
    font-size: 0.9rem !important;
    margin: 0 0 4px 0 !important;
    white-space: nowrap !important;
}

.quick-access-grid p,
.hero-grid p {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    opacity: 0.8 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
}

/* --- Light Mode Overrides --- */

.light-mode .glass-card,
.light-mode .hero-tile,
.light-mode .quick-card {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.05),
        0 4px 6px rgba(0, 0, 0, 0.02) !important;
    color: #333 !important;
}

.light-mode #hero h1,
.light-mode .glitch-text {
    color: #1a1a1a !important;
    text-shadow: none !important;
}

.light-mode #hero .tagline {
    color: #444 !important;
    /* Darker grey */
    text-shadow: none !important;
    font-weight: 500 !important;
}

/* Fix Invisible Hero Card Text in Light Mode */
.light-mode .hero-quick-access .hero-tile {
    background: rgba(255, 255, 255, 0.85) !important;
    /* Whiter background */
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) !important;
}

.light-mode .hero-quick-access h3 {
    color: #1a1a1a !important;
    /* Dark Text */
    text-shadow: none !important;
}

.light-mode .hero-quick-access p {
    color: #555555 !important;
    /* Dark Grey Text */
    opacity: 1 !important;
    text-shadow: none !important;
}

.light-mode .hero-quick-access .tile-icon {
    background: rgba(0, 0, 0, 0.05) !important;
    color: var(--accent-warm) !important;
}

/* --- Desktop Restoration (Fix 49.7) --- */
@media (min-width: 1024px) {
    .hero-quick-access {
        flex-direction: row !important;
        justify-content: center !important;
        /* Center the cards */
        gap: 20px !important;
        padding: 0 20px !important;
        /* Reduced padding */
        margin: 30px auto 0 !important;
        /* Auto margin for container centering */
        max-width: 1200px !important;
    }

    .hero-quick-access .hero-tile {
        flex: 1 !important;
        /* Allow growing */
        min-width: 280px !important;
        /* Minimum width */
        max-width: 380px !important;
        /* Cap width */
        height: auto !important;
        /* Let content dictate height */
        min-height: 180px !important;
        /* Restore substantial height */
        padding: 35px 25px !important;
        /* Restore generous padding */
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .hero-quick-access .tile-icon {
        margin-bottom: 20px !important;
        /* More space */
        width: 48px !important;
        /* Larger icon container */
        height: 48px !important;
        font-size: 2rem !important;
        /* Larger icon */
    }

    .hero-quick-access h3 {
        font-size: 1.3rem !important;
        /* Larger title */
        margin-bottom: 10px !important;
    }

    .hero-quick-access p {
        font-size: 0.95rem !important;
        /* Larger text */
        -webkit-line-clamp: 3 !important;
        line-clamp: 3 !important;
    }
}
/**
 * LIGHTWINNER CSS ARCHITECTURE V4
 * 7-TRUMPS / CRITICAL CSS
 * 
 * 此文件由 index.html 内联样式物理提取生成?
 * 承载第一秒渲染的关键路径样式，包括全局变量、Navbar、Hero 骨架及搜索模态框?
 */

/* ==========================================================================
   PART 1: 全局变量与基础骨架 (Original id="critical-css")
   ========================================================================== */
:root {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --accent-color: #ffcc00;
    --panel-bg: rgba(40, 40, 40, 0.9);
    --cct-filter: sepia(0) hue-rotate(0deg);
    --cursor-size: 150px;
    --cursor-x: 50%;
    --cursor-y: 50%;
    --font-main: 'Inter', sans-serif;
    --z-background: 1;
    --z-content: 5;
    --z-flashlight: 9999;
    --z-ui: 10000;
    --lw-gold: #D4AF37;
    --lw-gold-light: #F9F1D8;
    --lw-gold-muted: #C6A355;
    --lw-cyan: #00e5ff;
    --lw-bg-main: #0a0a14;
    --lw-text-main: #ffffff;
    --lw-text-dim: rgba(255, 255, 255, 0.7);
}

body {
    background-color: transparent;
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

body.light-mode,
html.light-mode {
    --bg-color: #f0f0f0;
    --text-color: #1a1a1a;
    --panel-bg: #ffffff;
    --lw-bg-main: #ffffff;
    --lw-text-main: #1a1a1a;
    --lw-text-dim: rgba(0, 0, 0, 0.6);
}

#app-container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    z-index: var(--z-content);
    padding-top: 60px;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0;
    margin: 0;
    transition: none;
}

/* 滚动条美?*/
::-webkit-scrollbar {
    width: 14px;
    height: 40px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    background-image: linear-gradient(90deg, rgba(0, 255, 255, 0.2) 0%, rgba(0, 255, 255, 0.15) 50%, rgba(0, 255, 255, 0.2) 100%);
    border-radius: 14px;
    border: 2px solid rgba(0, 255, 255, 0.25);
}

/* 导航栏基础视觉 */
#global-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(var(--cct-raw), 0.15) 0%, rgba(20, 20, 20, 0.8) 50%, rgba(var(--cct-raw), 0.05) 100%);
    display: flex;
    align-items: center;
    backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    -webkit-backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
}

/* ==========================================================================
   PART 3: 全局搜索模态框 (Search Modal)
   ========================================================================== */
.lw-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.lw-search-modal.active {
    display: flex;
    opacity: 1;
}

.search-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.search-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    margin: auto;
    background: var(--panel-bg, rgba(20, 20, 30, 0.95));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body.light-mode .search-container {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   PART 4: 引导窗体 (Onboarding Overlay) & 响应式补?
   ========================================================================== */
#onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Cinematic Vignette Background */
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.85) 100%);
    backdrop-filter: var(--lw-glass-blur);
    -webkit-backdrop-filter: var(--lw-glass-blur);
    /* Deep blur */
    z-index: 2147483647;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: auto !important;
    user-select: none;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.onboarding-active #global-navbar,
body.onboarding-active #control-dock,
body.onboarding-active #custom-cursor,
body.onboarding-active #hero,
body.onboarding-active #product-container {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

/* Glass Card */
#onboarding-overlay .content {
    background: var(--lw-panel-bg, rgba(15, 20, 30, 0.75));
    /* Deep Blue-Black Glass */
    padding: 60px 50px;
    border-radius: 24px;
    text-align: center;
    /* Double border effect for glass edge */
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    -webkit-backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    max-width: 460px;
    width: 90%;
    transform: translateY(20px);
    opacity: 0;
    animation: overlayContentIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s forwards;
}

@keyframes overlayContentIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#onboarding-overlay h2 {
    margin-bottom: 25px;
    line-height: 1.1;
}

#onboarding-overlay .sub-title {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    margin-bottom: 5px;
}

#onboarding-overlay .brand-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #ffffff 0%, #00eaff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 234, 255, 0.3);
    letter-spacing: -0.03em;
}

#onboarding-overlay p {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 300;
}

#onboarding-overlay #onboarding-hint {
    margin-bottom: 30px;
    font-style: italic;
    color: rgba(0, 234, 255, 0.7);
    font-size: 0.95rem;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.2);
}

/* Glowing CTA Button */
#onboarding-overlay button {
    padding: 16px 45px;
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.15), rgba(0, 234, 255, 0.02));
    color: #00eaff !important;
    border: 1px solid rgba(0, 234, 255, 0.4);
    border-radius: 50px;
    /* Pill shape */
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.05);
    position: relative;
    overflow: hidden;
}

#onboarding-overlay button:hover {
    background: #00eaff;
    color: #050a10 !important;
    box-shadow: 0 0 50px rgba(0, 234, 255, 0.5);
    transform: translateY(-2px) scale(1.02);
    border-color: #00eaff;
}

#onboarding-overlay button:active {
    transform: translateY(1px) scale(0.98);
}

@media (max-width: 768px) {
    #onboarding-overlay .content {
        padding: 40px 25px !important;
        max-width: 340px !important;
    }

    #onboarding-overlay .brand-title {
        font-size: 2.5rem;
    }
}

/* Light Mode Adaptation */
html.light-mode #onboarding-overlay .content {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

html.light-mode #onboarding-overlay .sub-title {
    color: #666;
}

html.light-mode #onboarding-overlay .brand-title {
    background: linear-gradient(135deg, #1a1a1a 0%, #00a0b0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

html.light-mode #onboarding-overlay p {
    color: #444 !important;
}

html.light-mode #onboarding-overlay button:hover {
    color: #fff !important;
}
/* 
 * Effects & Immersive Interaction Layer (v2.0)
 * -------------------------------------------
 * Purpose: Global visual effects, loaders, and immersive interactive elements.
 * Dependencies: Driven by js/lightwinner.js (variables) and js/core/ui_manager.js.
 * 
 * Contents:
 * 1. Flashlight Overlay/Tint (#flashlight-overlay, #flashlight-tint)
 * 2. Cyber Loader Overlay (.cyber-loader-overlay)
 * 3. Logo/Power Switch Styling (#logo-switch)
 */

/* Global Console (Logo) - MOVED TO NAVIGATION.CSS */

/* #global-console {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: var(--z-ui);
} */

#logo-switch {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    text-shadow: 0 0 10px var(--accent-color);
    transition: transform 0.2s;
    user-select: none;
}

#logo-switch:active {
    transform: scale(0.95);
}

/* Cyber-Loader: Neon & Glitch Experience */
.cyber-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 5, 10, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        visibility 0.5s;
}

.cyber-loader-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.loader-scanline {
    position: absolute;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.1), transparent);
    top: -100px;
    left: 0;
    animation: scanlineMove 3s linear infinite;
    pointer-events: none;
}

@keyframes scanlineMove {
    0% {
        top: -100px;
    }

    100% {
        top: 100vh;
    }
}

.loader-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.loader-hex {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    position: relative;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hexRotate 10s linear infinite;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.loader-hex::before {
    content: '';
    position: absolute;
    inset: 5px;
    clip-path: inherit;
    background: repeating-linear-gradient(0deg, rgba(212, 175, 55, 0.05) 0px, transparent 1px, transparent 3px);
}

.loader-inner-circle {
    width: 60px;
    height: 60px;
    border: 4px solid #D4AF37;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes hexRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #D4AF37;
    font-size: 1.2rem;
    position: relative;
    text-shadow: 2px 2px 0px rgba(255, 0, 0, 0.5), -2px -2px 0px rgba(0, 0, 255, 0.5);
    animation: textGlitch 2s infinite;
}

@keyframes textGlitch {

    0%,
    100% {
        transform: none;
        opacity: 1;
    }

    7% {
        transform: skew(-0.5deg, -0.9deg);
        opacity: 0.75;
    }

    10% {
        transform: none;
        opacity: 1;
    }

    27% {
        transform: none;
        opacity: 1;
    }

    30% {
        transform: skew(0.8deg, -0.1deg);
        opacity: 0.75;
    }

    35% {
        transform: none;
        opacity: 1;
    }

    52% {
        transform: none;
        opacity: 1;
    }

    55% {
        transform: skew(-1deg, 0.2deg);
        opacity: 0.75;
    }
}

.loader-status {
    margin-top: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: rgba(212, 175, 55, 0.6);
    letter-spacing: 2px;
}
/* 懒加载图片样?*/
:root {
    /* Local Error Tokens (Scoped to be moved to global later if needed) */
    --lazy-error-bg: rgba(255, 59, 48, 0.1);
    --lazy-error-border: rgba(255, 59, 48, 0.3);
}

/* 图片加载前的占位样式 */
img[data-src]:not(.loaded),
img[loading="lazy"]:not(.loaded) {
    background: linear-gradient(135deg, var(--pj-bg-light) 0%, rgba(255, 255, 255, 0.02) 100%);
    min-height: 200px;
}

/* 图片加载动画 */
img.loaded {
    animation: fadeIn 0.6s ease-in-out;
}

/* 背景图加载前 */
.lazy-bg:not(.loaded),
[data-background]:not(.loaded) {
    background-color: var(--pj-bg-light);
}

/* 背景图加载动?*/
.lazy-bg.loaded,
[data-background].loaded {
    animation: bgFadeIn 0.8s ease-in-out;
}

/* 图片加载失败样式 */
img.error {
    background: var(--lazy-error-bg);
    border: 1px solid var(--lazy-error-border);
}

img.error::after {
    content: '图片加载失败';
    display: block;
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 背景淡入动画 */
@keyframes bgFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 加载中的占位动画（可选） */
img[data-src]:not(.loaded)::before,
.lazy-bg:not(.loaded)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--pj-border-normal);
    border-top-color: var(--accent-color, #00ffff);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
    /* Safety Fix: Ensure spinner is above background */
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
