/**
 * 风清扬技术团队 - 主题样式
 * EyouCMS 源码交易站模板
 * 深浅混合配色 + Raycast/Linear级别动画
 */

/* ==========================================================================
   1. CSS变量 - 配色方案
   ========================================================================== */

:root {
    /* === 深色区域配色（Hero + Footer） === */
    --dark-bg-primary: #0a0a0f;
    --dark-bg-secondary: #12121a;
    --dark-bg-tertiary: #1a1a26;
    --dark-bg-card: rgba(255, 255, 255, 0.05);
    --dark-bg-card-hover: rgba(255, 255, 255, 0.08);
    --dark-border: rgba(255, 255, 255, 0.08);
    --dark-border-hover: rgba(255, 255, 255, 0.15);

    /* 深色区域文字 */
    --dark-text-primary: #ffffff;
    --dark-text-secondary: #a1a1aa;
    --dark-text-muted: #71717a;

    /* === 浅色区域配色（列表页 + 详情页） === */
    --light-bg-primary: #f8fafc;
    --light-bg-secondary: #ffffff;
    --light-bg-tertiary: #f1f5f9;
    --light-bg-card: #ffffff;
    --light-border: rgba(0, 0, 0, 0.06);
    --light-border-hover: rgba(99, 102, 241, 0.2);

    /* 浅色区域文字 */
    --light-text-primary: #0f172a;
    --light-text-secondary: #334155;
    --light-text-muted: #64748b;

    /* === 强调色（全局通用） === */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #06b6d4;
    --accent-primary-rgb: 99, 102, 241;
    --accent-secondary-rgb: 139, 92, 246;
    --accent-tertiary-rgb: 6, 182, 212;

    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-primary-reverse: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #6366f1 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.5) 0%, rgba(139, 92, 246, 0.5) 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
    --gradient-radial: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);

    /* 发光效果 */
    --glow-primary: 0 0 30px rgba(99, 102, 241, 0.4);
    --glow-secondary: 0 0 60px rgba(139, 92, 246, 0.3);
    --glow-soft: 0 8px 32px rgba(99, 102, 241, 0.15);

    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.1);

    /* 语义色 */
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --error: #ef4444;
    --error-light: rgba(239, 68, 68, 0.1);
    --price: #ef4444;

    /* === 缓动函数 === */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* === 时长 === */
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.6s;
    --duration-slower: 0.8s;

    /* === Z-Index 层级 === */
    --z-particles: -1;
    --z-content: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-header: 500;
    --z-bottom-bar: 1000;
    --z-float-btn: 1100;
    --z-cursor: 1200;
    --z-overlay: 1500;
    --z-modal: 2000;
    --z-toast: 9999;

    /* === 间距 === */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* === 圆角 === */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* === 容器宽度 === */
    --container-max: 1280px;
    --container-padding: 20px;
}

/* ==========================================================================
   2. 全局基础样式
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Lenis 平滑滚动需要 */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--light-text-primary);
    background-color: var(--light-bg-primary);
    overflow-x: hidden;
    position: relative;
}

/* 隐藏默认滚动条（可选） */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--dark-bg-primary);
}

body::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-smooth);
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

ul,
ol {
    list-style: none;
}

/* ==========================================================================
   3. 容器
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--container-padding);
}

/* ==========================================================================
   4. 深色区域样式（Hero + Footer）
   ========================================================================== */

.dark-section {
    background-color: var(--dark-bg-primary);
    color: var(--dark-text-primary);
    position: relative;
    overflow: hidden;
}

.dark-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-radial);
    pointer-events: none;
}

/* ==========================================================================
   5. 浅色区域样式（列表页 + 详情页）
   ========================================================================== */

.light-section {
    background-color: var(--light-bg-primary);
    color: var(--light-text-primary);
    position: relative;
}

/* ==========================================================================
   6. 导航栏
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    padding: 16px 0;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.site-header.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dark-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--duration-normal) var(--ease-out-back);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    position: relative;
}

.logo-main::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(10px);
    opacity: 0;
    transition: opacity var(--duration-normal);
    pointer-events: none;
}

.logo:hover .logo-main::after {
    opacity: 0.6;
}

.logo-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--dark-text-secondary);
    letter-spacing: 4px;
    margin-top: 2px;
}

/* 导航链接 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    position: relative;
    color: var(--dark-text-secondary);
    text-decoration: none;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--dark-text-primary);
    background: var(--dark-bg-card);
}

.nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active {
    color: var(--dark-text-primary);
}

.nav-link.active::before {
    transform: scaleX(1);
}

/* 导航图标样式 */
.nav-icon {
    font-size: 18px;
    margin-right: 6px;
    vertical-align: middle;
    transition: all 0.3s var(--ease-out-back);
}

.nav-link:hover .nav-icon {
    transform: scale(1.2) rotate(-5deg);
    color: var(--accent-primary);
}

/* =====================================================
   源码大厅 - 动态代码 Logo
   ===================================================== */

.code-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    position: relative;
    vertical-align: middle;
}

/* 代码窗口框 */
.code-logo-box {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 6px;
    border: 1.5px solid rgba(99, 102, 241, 0.5);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 10px rgba(99, 102, 241, 0.3),
        inset 0 0 10px rgba(99, 102, 241, 0.1);
}

/* 窗口顶部圆点 */
.code-logo-box::before {
    content: '• • •';
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 6px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1;
}

/* 代码行容器 */
.code-lines {
    position: absolute;
    top: 10px;
    left: 4px;
    right: 4px;
    bottom: 3px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* 代码行 */
.code-line {
    height: 2px;
    border-radius: 1px;
    animation: codePulse 2s ease-in-out infinite;
}

.code-line:nth-child(1) {
    width: 80%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    animation-delay: 0s;
}

.code-line:nth-child(2) {
    width: 60%;
    background: linear-gradient(90deg, #22d3ee, #06b6d4);
    animation-delay: 0.3s;
}

.code-line:nth-child(3) {
    width: 90%;
    background: linear-gradient(90deg, #a78bfa, #c084fc);
    animation-delay: 0.6s;
}

.code-line:nth-child(4) {
    width: 50%;
    background: linear-gradient(90deg, #34d399, #10b981);
    animation-delay: 0.9s;
}

@keyframes codePulse {
    0%, 100% {
        opacity: 0.5;
        transform: scaleX(1);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.05);
        filter: drop-shadow(0 0 4px currentColor);
    }
}

/* 光标闪烁 */
.code-cursor {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 2px;
    height: 6px;
    background: #fff;
    animation: cursorBlink 0.8s step-end infinite;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* 边框旋转光效 */
.code-logo-glow {
    position: absolute;
    inset: -2px;
    border-radius: 8px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--accent-primary) 60deg,
        var(--accent-secondary) 120deg,
        transparent 180deg
    );
    animation: glowRotate 3s linear infinite;
    opacity: 0.6;
    z-index: -1;
}

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

/* Hover 增强 */
.nav-link:hover .code-logo-box {
    border-color: var(--accent-primary);
    box-shadow: 
        0 0 20px rgba(99, 102, 241, 0.5),
        inset 0 0 15px rgba(99, 102, 241, 0.2);
}

.nav-link:hover .code-logo-glow {
    opacity: 1;
    animation-duration: 1.5s;
}

.nav-link:hover .code-line {
    animation-duration: 1s;
}

/* =====================================================
   下拉菜单 - 分类动态Logo
   ===================================================== */

.dropdown-item {
    position: relative;
}

/* 分类小图标盒子 */
.category-mini-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    position: relative;
    vertical-align: middle;
}

.category-mini-box {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 1.5px solid rgba(99, 102, 241, 0.4);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-mini-box i {
    font-size: 14px;
    color: var(--accent-primary);
    z-index: 1;
    transition: all 0.3s ease;
}

/* 扫光动画 */
.category-mini-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.dropdown-item:hover .category-mini-box::before {
    left: 100%;
}

/* 悬停效果 */
.dropdown-item:hover .category-mini-box {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    transform: scale(1.1) rotate(-5deg);
}

.dropdown-item:hover .category-mini-box i {
    color: #fff;
    transform: scale(1.1);
}

/* 脉冲光环 */
.category-mini-glow {
    position: absolute;
    inset: -3px;
    border-radius: 8px;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(99, 102, 241, 0.5),
        transparent 120deg
    );
    opacity: 0;
    animation: miniGlowSpin 2s linear infinite paused;
}

.dropdown-item:hover .category-mini-glow {
    opacity: 1;
    animation-play-state: running;
}

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

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform var(--duration-fast);
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 12px;
    min-width: 220px;
    transition: all var(--duration-normal) var(--ease-out-expo);
    z-index: var(--z-dropdown);
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--dark-text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast);
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--dark-text-primary);
    transform: translateX(5px);
}

.dropdown-item i {
    font-size: 20px;
    color: var(--accent-primary);
    transition: transform var(--duration-fast);
}

.dropdown-item:hover i {
    transform: scale(1.2);
}

/* 导航栏操作区 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 搜索按钮 */
.nav-search-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--dark-bg-card);
    color: var(--dark-text-secondary);
    transition: all var(--duration-fast);
}

.nav-search-btn:hover {
    background: var(--dark-bg-card-hover);
    color: var(--dark-text-primary);
}

.nav-search-btn i {
    font-size: 20px;
}

/* ==========================================================================
   7. Hero 区域
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    background: var(--dark-bg-primary);
    overflow: hidden;
}

/* 粒子背景容器 */
#particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-particles);
}

/* =====================================================
   Hero 动态交互背景 - Lusion 风格
   ===================================================== */

/* 噪点纹理层 - 增加质感 */
.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 1;
}

/* 渐变网格背景 */
.hero-mesh {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 102, 241, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(139, 92, 246, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(6, 182, 212, 0.06), transparent);
    pointer-events: none;
    z-index: 0;
}

/* 浮动光球 - 深色风格 */
.hero-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(99, 102, 241, 0.35);
    top: -10%;
    right: 10%;
    animation: orbDrift1 25s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.3);
    bottom: 5%;
    left: 5%;
    animation: orbDrift2 30s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(6, 182, 212, 0.25);
    top: 40%;
    left: 30%;
    animation: orbDrift3 20s ease-in-out infinite;
}

@keyframes orbDrift1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-30px, 40px); }
    66% { transform: translate(20px, -20px); }
}

@keyframes orbDrift2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(40px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

@keyframes orbDrift3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, -30px); }
}

/* 鼠标跟随光晕 */
.mouse-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: transform;
    filter: blur(40px);
    z-index: 2;
}

.mouse-glow.active {
    opacity: 1;
}

/* 装饰光晕 */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(99, 102, 241, 0.2);
    top: -250px;
    left: -150px;
    animation: glowBreath 10s ease-in-out infinite;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.15);
    bottom: -150px;
    right: -100px;
    animation: glowBreath 10s ease-in-out infinite;
    animation-delay: -5s;
}

@keyframes glowBreath {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .hero-noise {
        opacity: 0.02;
    }
    
    .orb {
        filter: blur(50px);
        opacity: 0.4;
    }
    
    .orb-1 {
        width: 250px;
        height: 250px;
    }
    
    .orb-2 {
        width: 200px;
        height: 200px;
    }
    
    .orb-3 {
        display: none;
    }
    
    .mouse-glow {
        display: none;
    }
    
    .hero-glow-1,
    .hero-glow-2 {
        filter: blur(80px);
    }
}

/* 简单背景（性能降级时使用） */
.hero-simple-bg {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
}

.hero-simple-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: var(--z-content);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hero-title {
    font-size: clamp(36px, 8vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
    position: relative;
}

.hero-title .highlight {
    background: linear-gradient(
        135deg,
        #6366f1 0%,
        #8b5cf6 25%,
        #06b6d4 50%,
        #8b5cf6 75%,
        #6366f1 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s linear infinite;
    position: relative;
}

/* 标题高亮文字发光效果 */
.hero-title .highlight::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    background: inherit;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

@keyframes gradientFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--dark-text-secondary);
    margin-bottom: 40px;
    letter-spacing: 3px;
    opacity: 0.8;
}

/* Hero 搜索框 */
.hero-search {
    position: relative;
    max-width: 560px;
    margin: 0 auto 24px;
}

.hero-search i {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--dark-text-muted);
    transition: color var(--duration-fast);
}

.hero-search input {
    width: 100%;
    height: 60px;
    padding: 0 24px 0 60px;
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-xl);
    color: var(--dark-text-primary);
    font-size: 16px;
    outline: none;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.hero-search input::placeholder {
    color: var(--dark-text-muted);
}

.hero-search input:focus {
    background: var(--dark-bg-card-hover);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.hero-search input:focus + i,
.hero-search:hover i {
    color: var(--accent-primary);
}

/* 热门标签 */
.hot-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    font-size: 14px;
}

.hot-tags span {
    color: var(--dark-text-muted);
}

.hot-tags a {
    padding: 6px 14px;
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-full);
    color: var(--dark-text-secondary);
    transition: all var(--duration-fast);
}

.hot-tags a:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Hero 按钮组 */
.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 60px;
}

/* Hero 统计数据 */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--dark-border);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--dark-text-muted);
    margin-top: 4px;
}

/* ==========================================================================
   8. 按钮样式
   ========================================================================== */

/* 主按钮 */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    border: none;
    border-radius: var(--radius-lg);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* 按钮图标动画 */
.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(3px);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.btn-primary:hover {
    background-position: 100% 50%;
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary i {
    font-size: 20px;
}

/* TG特殊按钮 */
.btn-tg {
    background: linear-gradient(135deg, #0088cc 0%, #00a0dc 100%);
}

.btn-tg:hover {
    box-shadow: 0 0 30px rgba(0, 136, 204, 0.5);
}

/* 边框按钮 */
.btn-outline {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    color: var(--accent-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background-image: 
        linear-gradient(var(--dark-bg-primary), var(--dark-bg-primary)),
        var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.btn-outline:hover {
    color: #fff;
    background-image: 
        var(--gradient-primary),
        var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

/* 浅色版边框按钮 */
.btn-outline-light {
    background-image: 
        linear-gradient(var(--light-bg-secondary), var(--light-bg-secondary)),
        var(--gradient-primary);
}

/* 小按钮 */
.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: var(--radius-md);
}

.btn-sm i {
    font-size: 16px;
}

/* ==========================================================================
   9. 分类区域
   ========================================================================== */

.category-section {
    padding: 80px 0;
    background: var(--light-bg-primary);
    position: relative;
    overflow: hidden;
}

/* 分类区域顶部渐变过渡 */
.category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.02), transparent);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--light-text-primary);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

/* 标题装饰线 */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--light-text-muted);
    margin-top: 16px;
}

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

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

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

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

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 20px;
    background: var(--light-bg-card);
    border: 1px solid var(--light-border);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

/* 分类卡片背景光效 */
.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 50% 0%,
        rgba(99, 102, 241, 0.08) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-item:hover::before {
    opacity: 1;
}

.category-item:hover {
    transform: translateY(-12px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15);
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.3);
}

.category-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal) var(--ease-out-back);
    position: relative;
    overflow: hidden;
}

.category-icon i {
    font-size: 32px;
    color: #fff;
}

/* 分类图标盒子动画 */
.category-icon-box {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    background: linear-gradient(145deg, var(--accent-primary), var(--accent-secondary));
    position: relative;
    overflow: hidden;
}

.category-icon-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent 30%
    );
    animation: iconBoxRotate 3s linear infinite;
}

.category-icon-box::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 21px;
    background: linear-gradient(145deg, var(--accent-primary), var(--accent-secondary));
}

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

.category-icon-inner {
    position: relative;
    z-index: 2;
    font-size: 40px;
    color: #fff;
    animation: iconFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-6px) scale(1.08);
    }
}

.category-item:hover .category-icon-box {
    transform: scale(1.15) rotate(-8deg);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.5);
}

.category-item:hover .category-icon-box::before {
    animation-duration: 0.8s;
}

.category-item:hover .category-icon-inner {
    animation: iconPop 0.4s ease-out forwards;
}

@keyframes iconPop {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.4) rotate(-10deg); }
    100% { transform: scale(1.15) rotate(0deg); }
}

.category-item:hover .category-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--glow-primary);
}

.category-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--light-text-primary);
    text-align: center;
    margin-top: 0.75rem;
}

/* ==========================================================================
   10. 产品卡片
   ========================================================================== */

.products-section {
    padding: 80px 0 100px;
    background: var(--light-bg-primary);
    position: relative;
    overflow: hidden;
}

/* 产品区域背景装饰 */
.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* 浮动装饰形状 */
.section-decor {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.decor-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.decor-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), transparent);
    top: 10%;
    right: -100px;
    animation: floatDecor 15s ease-in-out infinite;
}

.decor-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), transparent);
    bottom: 20%;
    left: -50px;
    animation: floatDecor 20s ease-in-out infinite reverse;
}

.decor-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), transparent);
    top: 50%;
    left: 30%;
    animation: floatDecor 18s ease-in-out infinite;
    animation-delay: -5s;
}

@keyframes floatDecor {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(5deg); }
    50% { transform: translate(-10px, 20px) rotate(-5deg); }
    75% { transform: translate(30px, 10px) rotate(3deg); }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    position: relative;
    background: var(--light-bg-card);
    border: 1px solid var(--light-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 鼠标跟随光效 */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(99, 102, 241, 0.1),
        transparent 40%
    );
    border-radius: var(--radius-xl);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

/* 边框发光效果 */
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0) 0%,
        rgba(99, 102, 241, 0.3) 50%,
        rgba(139, 92, 246, 0) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(99, 102, 241, 0.1);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover::after {
    opacity: 1;
}

.product-card:hover {
    border-color: var(--light-border-hover);
    box-shadow: var(--shadow-card-hover);
}

.product-card .thumb {
    position: relative;
    background-color: var(--light-bg-tertiary);
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.product-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.product-card:hover .thumb img {
    transform: scale(1.05);
}

/* 卡片标签 */
.product-card .tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: var(--success);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

.product-card .tag.hot {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
}

.product-card .tag.new {
    background: var(--gradient-primary);
}

.product-card .info {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.product-card .title {
    font-size: 16px;
    font-weight: 600;
    color: var(--light-text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    transition: color var(--duration-fast);
}

.product-card:hover .title {
    color: var(--accent-primary);
}

.product-card .desc {
    font-size: 14px;
    color: var(--light-text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.product-card .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-card .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--price);
}

.product-card .price small {
    font-size: 12px;
    font-weight: 400;
    color: var(--light-text-muted);
}

.product-card .btn-view {
    padding: 8px 16px;
    background: var(--light-bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--light-text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--duration-fast);
}

.product-card:hover .btn-view {
    background: var(--accent-primary);
    color: #fff;
}

/* 移动端卡片样式 */
@media (max-width: 640px) {
    .product-card {
        display: flex;
        flex-direction: row;
        padding: 12px;
        gap: 12px;
    }

    .product-card .thumb {
        width: 100px;
        height: 100px;
        aspect-ratio: 1 / 1;
        flex-shrink: 0;
        border-radius: var(--radius-lg);
    }

    .product-card .info {
        flex: 1;
        min-width: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .product-card .title {
        font-size: 15px;
    }

    .product-card .desc {
        display: none;
    }

    .product-card .meta {
        margin-top: auto;
    }

    .product-card .btn-view {
        display: none;
    }
}

/* ==========================================================================
   11. 底部区域
   ========================================================================== */

.site-footer {
    background: var(--dark-bg-primary);
    color: var(--dark-text-secondary);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

/* CTA横幅 */
.footer-cta {
    text-align: center;
    padding: 60px 0;
    border-bottom: 1px solid var(--dark-border);
}

.footer-cta h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-text-primary);
    margin-bottom: 16px;
}

.footer-cta p {
    font-size: 16px;
    color: var(--dark-text-secondary);
    margin-bottom: 32px;
}

/* 底部信息 */
.footer-main {
    padding: 48px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.footer-logo .logo-main {
    font-size: 20px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-link {
    color: var(--dark-text-secondary);
    transition: color var(--duration-fast);
}

.footer-link:hover {
    color: var(--dark-text-primary);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-full);
    color: var(--dark-text-secondary);
    font-size: 20px;
    transition: all var(--duration-fast);
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* 底部版权 */
.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid var(--dark-border);
    text-align: center;
    font-size: 14px;
    color: var(--dark-text-muted);
}

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==========================================================================
   12. 移动端底部固定栏
   ========================================================================== */

.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--light-border);
    display: none;
    align-items: center;
    justify-content: space-around;
    padding: 0 16px;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: var(--z-bottom-bar);
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
    }

    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }
}

.mobile-bottom-bar .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--light-text-muted);
    font-size: 12px;
    text-decoration: none;
    transition: color var(--duration-fast);
}

.mobile-bottom-bar .nav-item i {
    font-size: 22px;
}

.mobile-bottom-bar .nav-item.active,
.mobile-bottom-bar .nav-item:hover {
    color: var(--accent-primary);
}

.mobile-bottom-bar .btn-tg {
    flex: 2;
    max-width: 180px;
    height: 48px;
    padding: 0 24px;
    border-radius: var(--radius-lg);
    font-size: 14px;
}

/* ==========================================================================
   13. 自定义光标 - 精准小点
   ========================================================================== */

.custom-cursor {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-cursor);
    will-change: transform;
}

/* 光标精准点 */
.cursor-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: -3px;
    left: -3px;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.9);
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

/* Hover 状态 - 点变大变亮 */
.cursor-hover .cursor-dot {
    transform: scale(1.8);
    background: var(--accent-primary);
    box-shadow: 
        0 0 12px rgba(99, 102, 241, 1),
        0 0 24px rgba(139, 92, 246, 0.6);
}

/* 点击状态 */
.cursor-click .cursor-dot {
    transform: scale(0.6);
    background: var(--accent-secondary);
}

/* 隐藏默认光标 */
body.custom-cursor-enabled {
    cursor: none !important;
}

body.custom-cursor-enabled * {
    cursor: none !important;
}

@media (max-width: 1024px) {
    .custom-cursor {
        display: none !important;
    }

    body.custom-cursor-enabled,
    body.custom-cursor-enabled * {
        cursor: auto !important;
    }

    body.custom-cursor-enabled a,
    body.custom-cursor-enabled button {
        cursor: pointer !important;
    }
}

/* ==========================================================================
   14. Toast 提示
   ========================================================================== */

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-bg-primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: var(--z-toast);
}

@media (max-width: 768px) {
    .toast {
        bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

/* ==========================================================================
   15. 悬浮按钮
   ========================================================================== */

.float-buttons {
    position: fixed;
    right: 24px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: var(--z-float-btn);
}

@media (max-width: 768px) {
    .float-buttons {
        bottom: calc(80px + env(safe-area-inset-bottom));
        right: 16px;
    }
}

.float-btn {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg-card);
    border: 1px solid var(--light-border);
    border-radius: var(--radius-full);
    color: var(--light-text-secondary);
    font-size: 22px;
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-fast);
}

.float-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.float-btn.btn-tg-float {
    background: linear-gradient(135deg, #0088cc 0%, #00a0dc 100%);
    border-color: transparent;
    color: #fff;
}

.float-btn.btn-tg-float:hover {
    box-shadow: 0 10px 30px rgba(0, 136, 204, 0.4);
    color: #fff;
}

.float-btn.btn-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.float-btn.btn-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================================================
   16. 面包屑导航
   ========================================================================== */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
    font-size: 14px;
    color: var(--light-text-muted);
}

.breadcrumb a {
    color: var(--light-text-secondary);
    transition: color var(--duration-fast);
}

.breadcrumb a:hover {
    color: var(--accent-primary);
}

.breadcrumb span {
    color: var(--light-text-muted);
}

/* ==========================================================================
   17. 分页
   ========================================================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 48px 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--light-bg-card);
    border: 1px solid var(--light-border);
    border-radius: var(--radius-md);
    color: var(--light-text-secondary);
    font-size: 14px;
    transition: all var(--duration-fast);
}

.pagination a:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.pagination .active,
.pagination .current {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

/* ==========================================================================
   18. 搜索页面
   ========================================================================== */

.search-header {
    padding: 120px 0 60px;
    background: var(--dark-bg-primary);
    text-align: center;
}

.search-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-text-primary);
    margin-bottom: 24px;
}

.search-title em {
    color: var(--accent-primary);
    font-style: normal;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   19. 详情页
   ========================================================================== */

.detail-header {
    padding: 100px 0 40px;
    background: var(--light-bg-secondary);
}

.detail-content {
    padding: 40px 0 80px;
}

.detail-main {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
}

@media (max-width: 1024px) {
    .detail-main {
        grid-template-columns: 1fr;
    }
}

.detail-article {
    background: var(--light-bg-card);
    border: 1px solid var(--light-border);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.detail-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--light-text-primary);
    line-height: 1.4;
    margin-bottom: 16px;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--light-border);
    font-size: 14px;
    color: var(--light-text-muted);
}

.detail-meta i {
    margin-right: 6px;
}

.detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--light-text-secondary);
}

.detail-body img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.detail-body h2,
.detail-body h3,
.detail-body h4 {
    color: var(--light-text-primary);
    margin: 32px 0 16px;
}

.detail-body p {
    margin-bottom: 16px;
}

/* 侧边栏 */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--light-bg-card);
    border: 1px solid var(--light-border);
    border-radius: var(--radius-xl);
    padding: 24px;
}

.sidebar-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--light-text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card-title i {
    color: var(--accent-primary);
}

.price-box {
    text-align: center;
    padding: 24px 0;
}

.price-current {
    font-size: 48px;
    font-weight: 800;
    color: var(--price);
}

.price-current small {
    font-size: 20px;
}

.price-box .btn-primary {
    width: 100%;
    margin-top: 24px;
}

/* 相关推荐 */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: all var(--duration-fast);
}

.related-item:hover {
    transform: translateX(5px);
}

.related-item .thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.related-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-item .title {
    font-size: 14px;
    color: var(--light-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item:hover .title {
    color: var(--accent-primary);
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    padding: 6px 12px;
    background: var(--light-bg-tertiary);
    border-radius: var(--radius-full);
    color: var(--light-text-secondary);
    font-size: 13px;
    transition: all var(--duration-fast);
}

.tag-link:hover {
    background: var(--accent-primary);
    color: #fff;
}

/* ==========================================================================
   20. 筛选器
   ========================================================================== */

.filter-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--light-border);
    margin-bottom: 32px;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--light-text-muted);
    min-width: 60px;
    padding-top: 8px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.filter-tag {
    padding: 8px 16px;
    background: var(--light-bg-card);
    border: 1px solid var(--light-border);
    border-radius: var(--radius-full);
    color: var(--light-text-secondary);
    font-size: 14px;
    transition: all var(--duration-fast);
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

/* ==========================================================================
   21. 列表页头部
   ========================================================================== */

.list-header {
    padding: 120px 0 40px;
    background: linear-gradient(180deg, var(--dark-bg-primary) 0%, var(--light-bg-primary) 100%);
    text-align: center;
    position: relative;
}

.list-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: var(--dark-bg-primary);
}

.list-header .container {
    position: relative;
    z-index: 1;
}

.list-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-text-primary);
    margin-bottom: 12px;
}

.list-subtitle {
    font-size: 16px;
    color: var(--dark-text-secondary);
}

/* ==========================================================================
   22. 辅助类
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hidden-desktop {
        display: none !important;
    }
}

/* ==========================================================================
   23. 移动端菜单
   ========================================================================== */

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--dark-bg-card);
    color: var(--dark-text-primary);
    font-size: 24px;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu,
    .nav-actions .nav-search-btn {
        display: none;
    }
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-bg-primary);
    z-index: var(--z-overlay);
    padding: 80px 24px 24px;
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--dark-bg-card);
    color: var(--dark-text-primary);
    font-size: 24px;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--dark-bg-card);
    border-radius: var(--radius-lg);
    color: var(--dark-text-secondary);
    font-size: 16px;
    transition: all var(--duration-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--dark-text-primary);
}

.mobile-nav-link i {
    font-size: 22px;
    color: var(--accent-primary);
}

/* 移动端子菜单 */
.mobile-submenu {
    display: none;
    padding-left: 36px;
    margin-top: 8px;
}

.mobile-nav-item.expanded .mobile-submenu {
    display: block;
}

.mobile-submenu-link {
    display: block;
    padding: 12px 16px;
    color: var(--dark-text-muted);
    font-size: 14px;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast);
}

.mobile-submenu-link:hover {
    background: var(--dark-bg-card);
    color: var(--dark-text-primary);
}

/* ==========================================================================
   24. 遮罩层
   ========================================================================== */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   25. 搜索弹窗
   ========================================================================== */

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    z-index: var(--z-modal);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    width: 100%;
    max-width: 640px;
    padding: 0 24px;
    transform: translateY(20px);
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.search-modal.active .search-modal-content {
    transform: translateY(0);
}

.search-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--dark-bg-card);
    color: var(--dark-text-secondary);
    font-size: 24px;
    transition: all var(--duration-fast);
}

.search-modal-close:hover {
    background: var(--dark-bg-card-hover);
    color: var(--dark-text-primary);
}

.search-modal-input {
    width: 100%;
    height: 72px;
    padding: 0 24px 0 64px;
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-xl);
    color: var(--dark-text-primary);
    font-size: 20px;
    outline: none;
    transition: all var(--duration-fast);
}

.search-modal-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-modal-form {
    position: relative;
}

.search-modal-form i {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--dark-text-muted);
}
