/*
 * 智能思考工具箱 - Cyberpunk Tech Noir 主题样式
 * 现代化深色主题，霓虹渐变，玻璃态效果，动态视觉元素
 */

/* 导入现代化字体 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* CSS变量定义 - Cyberpunk Tech Noir 配色方案 */
:root {
    /* 霓虹主色调 */
    --neon-cyan: #00D4FF;
    --neon-magenta: #FF00E5;
    --neon-purple: #7B2FF7;
    --neon-green: #00FF88;
    --neon-orange: #FF6B35;
    --neon-pink: #FF1493;

    /* 渐变定义 */
    --gradient-primary: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-magenta) 50%, var(--neon-purple) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--neon-orange) 0%, var(--neon-pink) 100%);
    --gradient-accent: linear-gradient(135deg, var(--neon-green) 0%, var(--neon-cyan) 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e27 0%, #151935 50%, #0a0e27 100%);

    /* 背景色系统 */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f1a;
    --bg-tertiary: #1a1a2e;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    --bg-overlay: rgba(0, 0, 0, 0.7);

    /* 文字颜色 */
    --text-primary: #f0f0f0;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --text-dimmed: #6b7280;
    --text-neon: var(--neon-cyan);

    /* 边框和阴影 */
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-neon: var(--neon-cyan);
    --border-hover: rgba(0, 212, 255, 0.3);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --shadow-magenta: 0 0 20px rgba(255, 0, 229, 0.3);
    --shadow-purple: 0 0 20px rgba(123, 47, 247, 0.3);

    /* 间距系统 */
    --space-xs: 0.25rem;    /* 4px */
    --space-sm: 0.5rem;     /* 8px */
    --space-md: 1rem;       /* 16px */
    --space-lg: 1.5rem;     /* 24px */
    --space-xl: 2rem;       /* 32px */
    --space-2xl: 3rem;      /* 48px */
    --space-3xl: 4rem;      /* 64px */
    --space-4xl: 6rem;      /* 96px */

    /* 圆角系统 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* 字体系统 */
    --font-display: 'Orbitron', monospace;
    --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

    /* 字体大小 */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 4rem;
    --text-7xl: 5rem;

    /* 动画时长 */
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;
    --duration-epic: 2s;

    /* 缓动函数 */
    --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 重置和基础样式 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* 背景效果系统 */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bg-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(0,0,0,.03) 35px, rgba(0,0,0,.03) 70px);
    animation: noise-move 20s linear infinite;
}

@keyframes noise-move {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    animation: grid-move 30s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.bg-gradient-orb {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(100px);
    opacity: 0.15;
    animation: orb-float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-secondary);
    bottom: -100px;
    right: -100px;
    animation-delay: 7s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: var(--gradient-accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes orb-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
        opacity: 0.2;
    }
    66% {
        transform: translate(-20px, 30px) scale(0.9);
        opacity: 0.1;
    }
}

/* 主容器 */
.app-container {
    position: relative;
    z-index: 2;
}

/* 顶部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    transition: all var(--duration-normal) var(--ease-out-cubic);
    padding: var(--space-md) 0;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Logo设计 */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--duration-normal) var(--ease-out-cubic);
    position: relative;
}

.logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    transition: all var(--duration-normal) var(--ease-out-cubic);
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    opacity: 0;
    filter: blur(20px);
    transition: all var(--duration-normal) var(--ease-out-cubic);
    z-index: 1;
}

.logo:hover .logo-glow {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.2);
}

.logo:hover .logo-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
}

.logo-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
    position: relative;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-sm);
    font-family: var(--font-display);
    letter-spacing: 0.05em;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-out-cubic);
    overflow: hidden;
}

.nav-text {
    position: relative;
    z-index: 2;
    transition: all var(--duration-normal) var(--ease-out-cubic);
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-out-cubic);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    opacity: 0.1;
    transition: all var(--duration-normal) var(--ease-out-cubic);
    z-index: 1;
}

.nav-link:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.nav-link:hover .nav-indicator {
    width: 80%;
}

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

.nav-link.active .nav-indicator {
    width: 100%;
    box-shadow: var(--shadow-glow);
}

/* 英雄区域 */
.hero {
    padding: calc(120px + var(--space-4xl)) 0 var(--space-4xl);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, var(--neon-cyan), transparent),
        radial-gradient(2px 2px at 40% 70%, var(--neon-magenta), transparent),
        radial-gradient(1px 1px at 50% 50%, var(--neon-purple), transparent),
        radial-gradient(1px 1px at 80% 10%, var(--neon-green), transparent),
        radial-gradient(2px 2px at 90% 60%, var(--neon-cyan), transparent);
    background-size: 400px 400px;
    background-position: 0 0, 200px 200px, 300px 100px, 100px 300px, 250px 250px;
    opacity: 0.15;
    animation: particles-move 60s linear infinite;
}

@keyframes particles-move {
    0% { background-position: 0 0, 200px 200px, 300px 100px, 100px 300px, 250px 250px; }
    100% { background-position: 400px 400px, 600px 600px, 700px 500px, 500px 700px, 650px 650px; }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    z-index: 3;
}

/* Hero徽章 */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: var(--space-sm) var(--space-lg);
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left var(--duration-slow) var(--ease-out-cubic);
    opacity: 0.1;
}

.hero-badge:hover::before {
    left: 0;
}

.badge-text {
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--font-display);
    color: var(--text-neon);
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.badge-glow {
    width: 8px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-glow);
    animation: pulse-glow 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* Hero标题 */
.hero-title {
    font-family: var(--font-display);
    margin-bottom: var(--space-xl);
    line-height: 1;
    position: relative;
}

.title-main {
    display: block;
    font-size: var(--text-7xl);
    font-weight: 900;
    line-height: 1;
    margin-bottom: var(--space-md);
}

.title-word {
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: title-word-float 4s ease-in-out infinite;
}

.title-word:nth-child(2) {
    animation-delay: 2s;
}

@keyframes title-word-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-subtitle {
    display: block;
    font-size: var(--text-2xl);
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.2;
    font-family: var(--font-body);
    opacity: 0.9;
}

/* Hero描述 */
.hero-description {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-3xl);
    max-width: 600px;
}

.description-line {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    opacity: 0.9;
}

.description-highlight {
    font-size: var(--text-xl);
    color: var(--text-neon);
    font-weight: 500;
    position: relative;
    padding-left: var(--space-lg);
}

.description-highlight::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-glow);
}

/* Hero统计 */
.hero-stats {
    display: flex;
    gap: var(--space-xl);
}

.stat {
    flex: 1;
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    min-width: 120px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal) var(--ease-out-cubic);
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--duration-normal) var(--ease-out-cubic);
}

.stat:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.stat:hover::before {
    transform: scaleX(1);
}

.stat-number-wrapper {
    position: relative;
    display: block;
    margin-bottom: var(--space-sm);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.stat-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.2;
    filter: blur(15px);
    z-index: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    font-family: var(--font-display);
    opacity: 0.9;
    white-space: nowrap;
}

/* 统计链接样式 */
.stat-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all var(--duration-normal) var(--ease-out-cubic);
    position: relative;
    overflow: hidden;
}

.stat-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out-cubic);
    z-index: 0;
    border-radius: var(--radius-xl);
}

.stat-link:hover {
    transform: translateY(-12px) scale(1.02);
    border-radius: var(--radius-xl);
}

.stat-link:hover::before {
    opacity: 0.1;
}

.stat-link:hover .stat {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.stat-link:hover .stat::before {
    transform: scaleX(1);
}

/* Hero视觉元素 */
.hero-visual {
    position: relative;
    height: 500px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3D立方体 */
.hero-cube-container {
    position: relative;
    width: 200px;
    height: 200px;
    perspective: 1000px;
}

.hero-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: cube-rotate 20s linear infinite;
}

@keyframes cube-rotate {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-weight: 500;
    transition: all var(--duration-normal) var(--ease-out-cubic);
    overflow: hidden;
}

.cube-face::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out-cubic);
}

.cube-face:hover {
    border-color: var(--border-neon);
    box-shadow: var(--shadow-glow);
}

.cube-face:hover::before {
    opacity: 0.1;
}

.cube-icon {
    font-size: var(--text-4xl);
    line-height: 1;
    position: relative;
    z-index: 2;
}

.cube-face span {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-neon);
    position: relative;
    z-index: 2;
}

.cube-front { transform: translateZ(100px); }
.cube-back { transform: rotateY(180deg) translateZ(100px); }
.cube-left { transform: rotateY(-90deg) translateZ(100px); }
.cube-right { transform: rotateY(90deg) translateZ(100px); }
.cube-top { transform: rotateX(90deg) translateZ(100px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(100px); }

/* 环形装饰 */
.hero-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ring {
    position: absolute;
    border: 2px solid;
    border-radius: var(--radius-full);
    opacity: 0.3;
}

.ring-1 {
    width: 300px;
    height: 300px;
    border-color: var(--neon-cyan);
    animation: ring-expand 4s ease-out infinite;
}

.ring-2 {
    width: 250px;
    height: 250px;
    border-color: var(--neon-magenta);
    animation: ring-expand 4s ease-out infinite 1.3s;
}

.ring-3 {
    width: 350px;
    height: 350px;
    border-color: var(--neon-purple);
    animation: ring-expand 4s ease-out infinite 2.6s;
}

@keyframes ring-expand {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.6;
    }
}

/* 工具分类区域 */
.tools-section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.category-section {
    margin-bottom: var(--space-4xl);
    position: relative;
}

/* 区域装饰 */
.section-decoration {
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 300px;
    pointer-events: none;
    overflow: hidden;
}

.section-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image:
        linear-gradient(45deg, var(--neon-cyan) 1px, transparent 1px),
        linear-gradient(-45deg, var(--neon-magenta) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: lines-move 30s linear infinite;
}

@keyframes lines-move {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.section-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 200px;
    background: radial-gradient(ellipse at center, var(--neon-cyan) 0%, transparent 70%);
    opacity: 0.05;
    filter: blur(50px);
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.1; }
}

/* 区域标题 */
.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
    position: relative;
    z-index: 2;
}

.section-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: var(--space-lg);
}

.title-icon {
    font-size: var(--text-4xl);
    line-height: 1;
    position: relative;
    z-index: 2;
}

.icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    opacity: 0.2;
    filter: blur(20px);
    animation: pulse-glow 2s ease-in-out infinite;
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    letter-spacing: 0.05em;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    margin: var(--space-lg) auto 0;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-glow);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0.9;
}

/* 工具网格 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* 工具卡片 */
.tool-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    transition: all var(--duration-normal) var(--ease-out-cubic);
    position: relative;
    overflow: hidden;
    animation: card-entrance 0.8s ease-out forwards;
    animation-delay: calc(0.1s + var(--card-index) * 0.1s);
    opacity: 0;
}

@keyframes card-entrance {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 卡片背景效果 */
.card-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out-cubic);
}

.tool-card:hover .card-bg-effect {
    opacity: 1;
}

.card-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.05;
    transition: opacity var(--duration-normal) var(--ease-out-cubic);
}

.card-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--duration-normal) var(--ease-out-cubic);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tool-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--border-hover);
    box-shadow:
        0 25px 50px rgba(0, 212, 255, 0.15),
        0 0 0 1px rgba(0, 212, 255, 0.1);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

/* 卡片头部 */
.tool-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 2;
}

.tool-icon-wrapper {
    position: relative;
}

.tool-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-glow);
    transition: all var(--duration-normal) var(--ease-out-cubic);
}

.tool-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.icon-sparkle {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-full);
    opacity: 0;
    transform: scale(0);
    transition: all var(--duration-normal) var(--ease-out-cubic);
    z-index: 3;
}

.tool-card:hover .icon-sparkle {
    opacity: 1;
    transform: scale(1);
    animation: sparkle-rotate 2s linear infinite;
}

@keyframes sparkle-rotate {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow), var(--shadow-magenta);
}

.tool-title-wrapper {
    flex: 1;
    margin-left: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-sm);
}

.tool-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.tool-badge {
    background: var(--gradient-secondary);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    box-shadow: 0 0 20px rgba(255, 0, 229, 0.3);
}

/* 卡片描述 */
.tool-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
    font-size: var(--text-base);
    position: relative;
    z-index: 2;
}

/* 特性标签 */
.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 2;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(0, 212, 255, 0.1);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all var(--duration-normal) var(--ease-out-cubic);
    position: relative;
    overflow: hidden;
}

.tag-dot {
    width: 6px;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    flex-shrink: 0;
    position: relative;
}

.feature-tag:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
}

/* 卡片链接 */
.tool-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    letter-spacing: 0.05em;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    transition: all var(--duration-normal) var(--ease-out-cubic);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.tool-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left var(--duration-normal) var(--ease-out-cubic);
    z-index: -1;
}

.link-text {
    position: relative;
    z-index: 2;
    transition: color var(--duration-normal) var(--ease-out-cubic);
}

.link-icon-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-arrow {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    transition: all var(--duration-normal) var(--ease-out-cubic);
    position: relative;
    z-index: 2;
}

.link-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    opacity: 0;
    filter: blur(10px);
    transition: all var(--duration-normal) var(--ease-out-cubic);
    z-index: 1;
}

.tool-link:hover {
    transform: translateX(8px);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.tool-link:hover::before {
    left: 0;
}

.tool-link:hover .link-glow {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.2);
}

.tool-link:hover .link-arrow {
    transform: translateX(4px);
    stroke: white;
}

/* 页脚 */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    padding: var(--space-4xl) 0 var(--space-xl);
    margin-top: var(--space-4xl);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-section h4 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out-cubic);
    position: relative;
}

.footer-section a:hover {
    color: var(--text-neon);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.tech-tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all var(--duration-normal) var(--ease-out-cubic);
}

.tech-tag:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-glass);
    max-width: 1400px;
    margin: 0 auto;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-family: var(--font-display);
    letter-spacing: 0.05em;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
        text-align: center;
    }

    .hero-visual {
        height: 400px;
        order: -1;
    }

    .hero-stats {
        justify-content: center;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
    }

    .hero {
        padding: calc(100px + var(--space-3xl)) 0 var(--space-3xl);
    }

    .title-main {
        font-size: var(--text-5xl);
    }

    .hero-subtitle {
        font-size: var(--text-xl);
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .hero-visual {
        height: 300px;
    }

    .hero-cube-container {
        width: 150px;
        height: 150px;
    }

    .cube-face {
        width: 150px;
        height: 150px;
    }

    .cube-front { transform: translateZ(75px); }
    .cube-back { transform: rotateY(180deg) translateZ(75px); }
    .cube-left { transform: rotateY(-90deg) translateZ(75px); }
    .cube-right { transform: rotateY(90deg) translateZ(75px); }
    .cube-top { transform: rotateX(90deg) translateZ(75px); }
    .cube-bottom { transform: rotateX(-90deg) translateZ(75px); }

    .section-title {
        font-size: var(--text-3xl);
    }

    .tools-grid {
        grid-template-columns: 1fr;
        padding: 0 var(--space-lg);
    }

    .tool-card {
        padding: var(--space-xl);
    }

    .tool-header {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
        text-align: center;
    }

    .tool-title-wrapper {
        margin-left: 0;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
    }

    .title-main {
        font-size: var(--text-4xl);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    .section-description {
        font-size: var(--text-base);
    }

    .tool-card {
        padding: var(--space-lg);
    }

    .tools-grid {
        padding: 0 var(--space-md);
    }

    .hero-visual {
        height: 250px;
    }

    .hero-cube-container {
        width: 120px;
        height: 120px;
    }

    .cube-face {
        width: 120px;
        height: 120px;
    }

    .cube-front { transform: translateZ(60px); }
    .cube-back { transform: rotateY(180deg) translateZ(60px); }
    .cube-left { transform: rotateY(-90deg) translateZ(60px); }
    .cube-right { transform: rotateY(90deg) translateZ(60px); }
    .cube-top { transform: rotateX(90deg) translateZ(60px); }
    .cube-bottom { transform: rotateX(-90deg) translateZ(60px); }
}

/* 增强文字对比度 */
body {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-title,
.tool-title,
.section-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.description-highlight,
.stat-label {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 性能优化 */
.tool-card,
.hero-cube,
.floating-element {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #ffffff;
        --text-muted: #cccccc;
        --border-glass: rgba(255, 255, 255, 0.3);
        --bg-glass: rgba(255, 255, 255, 0.1);
    }
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-cube {
        animation: none !important;
        transform: rotateX(45deg) rotateY(45deg);
    }

    .tool-card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* 打印样式 */
@media print {
    .header,
    .hero-visual,
    .hero-rings,
    .hero-particles,
    .bg-effects,
    .footer {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
        font-size: 12pt !important;
    }

    .hero-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }

    .tool-card {
        background: white !important;
        border: 1px solid black !important;
        color: black !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .tool-link {
        display: none !important;
    }
}

/* 无障碍改进 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 焦点样式 */
.tool-link:focus,
.nav-link:focus {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 4px;
    border-radius: var(--radius-md);
}

/* 选择文本样式 */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(0, 212, 255, 0.3);
    color: white;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* 自定义光标（可选功能） */
/* .tool-card:hover,
.nav-link:hover,
.stat:hover {
    cursor: none;
}

.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-cyan);
    border-radius: var(--radius-full);
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    mix-blend-mode: difference;
}

.custom-cursor.active {
    transform: scale(1.5);
    background: rgba(0, 212, 255, 0.1);
} */