/* ==========================================
   CSS 变量定义 - Cyber Grid主题
   ========================================== */
:root {
    /* 霓虹色系 - 科技感配色 */
    --neon-cyan: #00F5FF;
    --neon-cyan-glow: rgba(0, 245, 255, 0.5);
    --neon-purple: #7B2FBE;
    --neon-pink: #FF1B6D;
    --neon-green: #00FF9F;

    /* 主色调 */
    --primary-color: var(--neon-cyan);
    --primary-hover: #00E0EB;
    --secondary-color: var(--neon-purple);
    --accent-color: var(--neon-pink);

    /* 浅色主题背景 */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F7FA;
    --bg-card: #FFFFFF;
    --bg-hover: #F0F4F8;

    /* 浅色主题文字 */
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --text-muted: #A0AEC0;

    /* 边框 */
    --border-color: #E2E8F0;
    --border-hover: #CBD5E0;
    --border-neon: var(--neon-cyan);

    /* 阴影和光晕 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-neon: 0 0 20px var(--neon-cyan-glow), 0 0 40px rgba(0, 245, 255, 0.3);
    --shadow-neon-pink: 0 0 20px rgba(255, 27, 109, 0.5), 0 0 40px rgba(255, 27, 109, 0.3);

    /* 间距 */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* 布局尺寸 */
    --header-height: 70px;
    --sidebar-width: 260px;

    /* 过渡效果 */
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 暗色主题 - Cyber风格 */
[data-theme="dark"] {
    /* 深色赛博朋克背景 */
    --bg-primary: #0A0E27;
    --bg-secondary: #0F1439;
    --bg-card: rgba(21, 27, 59, 0.6);
    --bg-hover: rgba(31, 41, 79, 0.8);

    /* 暗色文字 */
    --text-primary: #F0F4F8;
    --text-secondary: #CBD5E0;
    --text-muted: #718096;

    /* 暗色边框 */
    --border-color: rgba(0, 245, 255, 0.1);
    --border-hover: rgba(0, 245, 255, 0.3);

    /* 暗色阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* ==========================================
   基础样式重置
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-base), color var(--transition-base);
    position: relative;
    overflow-x: hidden;
}

/* 网格背景动画 (暗色主题) */
[data-theme="dark"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    animation: gridMove 20s linear infinite;
}

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

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

input {
    font-family: inherit;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================
   顶部导航栏 - 玻璃态效果
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: all var(--transition-base);
}

/* 暗色主题玻璃态导航栏 */
[data-theme="dark"] .header {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

/* Logo */
.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.menu-toggle:hover {
    background-color: var(--bg-hover);
}

.menu-icon {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    position: relative;
    transition: background-color var(--transition-fast);
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform var(--transition-base);
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    bottom: -6px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

/* 搜索框 */
.header-center {
    flex: 1;
    max-width: 600px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 48px;
    padding: 0 48px;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: all var(--transition-base);
}

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

.search-input:focus {
    background-color: var(--bg-primary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.15);
    transform: translateY(-1px);
}

/* 暗色主题搜索框霓虹效果 */
[data-theme="dark"] .search-input {
    background: rgba(21, 27, 59, 0.5);
    border: 2px solid rgba(0, 245, 255, 0.2);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .search-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-neon);
    background: rgba(21, 27, 59, 0.8);
}

.search-clear {
    position: absolute;
    right: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.search-clear.visible {
    opacity: 1;
    pointer-events: auto;
}

.search-clear:hover {
    color: var(--text-secondary);
}

/* 右侧按钮 */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.theme-toggle:hover {
    background-color: var(--bg-hover);
}

.theme-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: block;
}

/* ==========================================
   主容器布局
   ========================================== */
.container {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* ==========================================
   左侧导航栏 - 玻璃态浮动面板
   ========================================== */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    padding: var(--spacing-md);
    overflow-y: auto;
    position: fixed;
    left: 0;
    top: var(--header-height);
    bottom: 0;
    transition: all var(--transition-base);
}

/* 暗色主题玻璃态侧边栏 */
[data-theme="dark"] .sidebar {
    background: rgba(10, 14, 39, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 245, 255, 0.15);
}

.nav-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm);
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px var(--spacing-sm);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.nav-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-item.active {
    background-color: rgba(0, 245, 255, 0.1);
    color: var(--primary-color);
}

.nav-item.active::before {
    transform: scaleY(1);
}

/* 暗色主题导航项霓虹效果 */
[data-theme="dark"] .nav-item:hover {
    background: rgba(0, 245, 255, 0.05);
    box-shadow: inset 0 0 20px rgba(0, 245, 255, 0.1);
}

[data-theme="dark"] .nav-item.active {
    background: rgba(0, 245, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.nav-count {
    font-size: 12px;
    color: var(--text-muted);
    background-color: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

.nav-item.active .nav-count {
    background-color: var(--primary-color);
    color: white;
}

/* ==========================================
   主内容区
   ========================================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: var(--spacing-lg);
    max-width: 100%;
}

/* ==========================================
   统计信息卡片
   ========================================== */
.stats-card {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.stats-card:hover {
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .stats-card {
    background: rgba(21, 27, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 245, 255, 0.15);
}

[data-theme="dark"] .stats-card:hover {
    border-color: rgba(0, 245, 255, 0.25);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.15);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
    justify-content: center;
}

.stat-icon {
    font-size: 32px;
    line-height: 1;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, var(--border-color), transparent);
}

[data-theme="dark"] .stat-divider {
    background: linear-gradient(180deg, transparent, rgba(0, 245, 255, 0.2), transparent);
}

.content-header {
    margin-bottom: var(--spacing-lg);
}

.content-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.content-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.tools-count {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==========================================
   工具卡片网格
   ========================================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

/* 大屏幕优化: 4列布局 */
@media (min-width: 1440px) {
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 中等屏幕: 3列布局 */
@media (min-width: 1024px) and (max-width: 1439px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 平板: 2列布局 */
@media (min-width: 640px) and (max-width: 1023px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 工具卡片 - 玻璃态 + 霓虹边框 */
.tool-card {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: all var(--transition-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    /* 卡片渐入动画 */
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.6s ease forwards;
}

/* 卡片渐入动画 - 交错延迟 */
.tool-card:nth-child(1) { animation-delay: 0.05s; }
.tool-card:nth-child(2) { animation-delay: 0.1s; }
.tool-card:nth-child(3) { animation-delay: 0.15s; }
.tool-card:nth-child(4) { animation-delay: 0.2s; }
.tool-card:nth-child(5) { animation-delay: 0.25s; }
.tool-card:nth-child(6) { animation-delay: 0.3s; }
.tool-card:nth-child(7) { animation-delay: 0.35s; }
.tool-card:nth-child(8) { animation-delay: 0.4s; }
.tool-card:nth-child(n+9) { animation-delay: 0.45s; }

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.1), transparent);
    transition: left 0.6s;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 暗色主题卡片霓虹效果 - 降低强度 */
[data-theme="dark"] .tool-card {
    background: rgba(21, 27, 59, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 245, 255, 0.15);
}

[data-theme="dark"] .tool-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.2), 0 8px 30px rgba(0, 0, 0, 0.5);
    background: rgba(21, 27, 59, 0.8);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin-bottom: var(--spacing-sm);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
    transition: all var(--transition-base);
}

.tool-card:hover .card-icon {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 6px 20px rgba(0, 245, 255, 0.4);
}

/* 暗色主题图标霓虹效果 - 降低强度 */
[data-theme="dark"] .card-icon {
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

[data-theme="dark"] .tool-card:hover .card-icon {
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.5), 0 0 35px rgba(0, 245, 255, 0.25);
}

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

.original-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    color: white;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 10px rgba(255, 27, 109, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(255, 27, 109, 0.4);
    }
    50% {
        box-shadow: 0 2px 20px rgba(255, 27, 109, 0.6);
    }
}

/* 暗色主题徽章 */
[data-theme="dark"] .original-badge {
    box-shadow: var(--shadow-neon-pink);
}

.card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    flex: 1;
    /* 限制描述为2行,超出显示省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px; /* 2行的固定高度,保持卡片统一 */
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.card-tag {
    font-size: 12px;
    color: var(--primary-color);
    background-color: rgba(0, 245, 255, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 245, 255, 0.15);
    transition: all var(--transition-fast);
}

.card-tag:hover {
    background-color: rgba(0, 245, 255, 0.15);
    border-color: rgba(0, 245, 255, 0.3);
}

.card-action {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: white;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
}

.card-action::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.card-action:hover::before {
    width: 300px;
    height: 300px;
}

.card-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 245, 255, 0.5);
}

/* 暗色主题按钮 - 降低霓虹强度 */
[data-theme="dark"] .card-action {
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

[data-theme="dark"] .card-action:hover {
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.5), 0 6px 25px rgba(0, 245, 255, 0.3);
}

/* 骨架屏加载动画 */
.skeleton-card {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    height: 300px;
    position: relative;
    overflow: hidden;
}

.skeleton-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 245, 255, 0.1),
        transparent
    );
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    to {
        left: 100%;
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    grid-column: 1 / -1;
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin: 0 auto var(--spacing-md);
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.empty-description {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 侧边栏遮罩 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.sidebar-overlay.active {
    opacity: 1;
}

/* ==========================================
   响应式设计
   ========================================== */

/* 大屏幕优化 */
@media (min-width: 1400px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

/* 平板端 */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
        padding: var(--spacing-md);
    }

    .sidebar {
        transform: translateX(-100%);
        z-index: 95;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* 移动端 */
@media (max-width: 768px) {
    .stats-card {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm);
    }

    .stat-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    }

    .stat-item {
        width: 100%;
        justify-content: flex-start;
        padding: var(--spacing-xs) 0;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-icon {
        font-size: 28px;
    }

    .header-content {
        padding: 0 var(--spacing-sm);
    }

    .logo-text {
        display: none;
    }

    .header-center {
        max-width: none;
    }

    .search-input {
        height: 40px;
        font-size: 14px;
    }

    .main-content {
        padding: var(--spacing-sm);
    }

    .content-title {
        font-size: 24px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .sidebar {
        width: 80%;
        max-width: 280px;
    }
}

/* 小屏幕手机 */
@media (max-width: 480px) {
    :root {
        --header-height: 56px;
    }

    .content-header {
        margin-bottom: var(--spacing-md);
    }

    .tool-card {
        padding: var(--spacing-sm);
    }
}

/* 滚动条样式 - 霓虹风格 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 10px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-pink), var(--neon-cyan));
}

/* 深色模式滚动条霓虹效果 */
[data-theme="dark"]::-webkit-scrollbar-track {
    background-color: var(--bg-primary);
}

[data-theme="dark"]::-webkit-scrollbar-thumb {
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

[data-theme="dark"]::-webkit-scrollbar-thumb:hover {
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.8);
}

/* ==========================================
   额外视觉增强效果
   ========================================== */

/* 页面内容区域增加层级 */
.container {
    position: relative;
    z-index: 1;
}

/* Logo 霓虹效果 */
[data-theme="dark"] .logo-icon {
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.6));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.9));
    }
}

/* 主题切换按钮霓虹效果 */
[data-theme="dark"] .theme-toggle:hover {
    background: rgba(0, 245, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

/* 标签霓虹效果 */
[data-theme="dark"] .card-tag {
    background: rgba(0, 245, 255, 0.15);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 245, 255, 0.3);
}

/* 数量徽章霓虹效果 */
[data-theme="dark"] .nav-item.active .nav-count {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
    font-weight: 700;
}

/* 标题霓虹下划线效果 */
[data-theme="dark"] .content-title {
    position: relative;
    display: inline-block;
}

[data-theme="dark"] .content-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.8);
}
