/*
Theme Name: AIStart Nav
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: An AI tool navigation WordPress theme with modern dark design
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aistart-nav
Tags: ai, navigation, dark-mode, modern
*/

/* ============================================
   1. CSS 变量
   ============================================ */
:root {
    --transition-bg: 0.6s ease;
    --transition-content: 0.5s ease;
    --transition-text: 0.4s ease;
    --transition-decor: 0.3s ease;
    --transition-fast: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-theme: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 64px;
    --tw-backdrop-blur: 20px;
    --tw-backdrop-saturate: 180%;
    --bg-primary: #0a0a0b;
    --bg-secondary: #18181b;
    --bg-card: #18181b;
    --bg-card-hover: #27272a;
    --bg-input: rgba(24, 24, 27, 0.6);
    --border-color: rgba(39, 39, 42, 0.5);
    --border-hover: rgba(63, 63, 70, 0.6);
    --border-active: rgba(82, 82, 91, 0.8);
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-dim: #52525b;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-max: 999px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ============================================
   2. 主题配色
   ============================================ */
html:not(.light-mode) {
    --bg-primary: #0a0a0b;
    --bg-secondary: #18181b;
    --bg-card: #18181b;
    --bg-card-hover: #1f1f23;
    --bg-input: #1a1a1e;
    --border-color: #27272a;
    --border-hover: #3f3f46;
    --border-active: #52525b;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-dim: #52525b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
}

html.light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f1f1f3;
    --bg-card: #ffffff;
    --bg-card-hover: #f9f9fa;
    --bg-input: #ffffff;
    --border-color: #e4e4e7;
    --border-hover: #d4d4d8;
    --border-active: #a1a1aa;
    --text-primary: #09090b;
    --text-secondary: #52525b;
    --text-muted: #71717a;
    --text-dim: #a1a1aa;
}

/* ============================================
   3. 基础重置与通用样式
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.theme-transition-enabled {
    transition: background-color var(--transition-theme),
                color var(--transition-theme),
                border-color var(--transition-theme);
}

a {
    color: var(--text-primary);
    text-decoration: none;
}

::selection {
    background: rgba(34, 197, 94, 0.25);
    color: var(--text-primary);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.category-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 48px;
    border-bottom: 1px solid var(--border-color);
}
/* ============================================
   4. 背景动画
   ============================================ */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity var(--transition-theme);
}

.bg-mesh::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse 600px 500px at 30% 30%, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
    animation: float1 15s ease-in-out infinite;
}

.bg-mesh::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse 500px 400px at 70% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    animation: float2 18s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -15px) scale(1.02); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-15px, 10px) scale(1.01); }
}

main {
    position: relative;
    min-height: 100vh;
    padding-top: 64px;
}

main::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(238, 53, 241, 0.1);
    filter: blur(100px);
    left: 20%;
    top: 15%;
    pointer-events: none;
    animation: floatGlow 10s ease-in-out infinite;
}

main::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    filter: blur(100px);
    right: 10%;
    top: 20%;
    pointer-events: none;
    animation: floatGlow2 12s ease-in-out infinite;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(-50%, -50%) translate(0, 0) scale(1.13); }
    25% { transform: translate(-50%, -50%) translate(50px, -80px) scale(1.2); }
    50% { transform: translate(-50%, -50%) translate(-60px, 50px) scale(1); }
    75% { transform: translate(-50%, -50%) translate(80px, 30px) scale(1.15); }
}

@keyframes floatGlow2 {
    0%, 100% { transform: translate(-50%, -50%) translate(0, 0) scale(1); }
    33% { transform: translate(-50%, -50%) translate(-80px, 100px) scale(1.1); }
    66% { transform: translate(-50%, -50%) translate(50px, -50px) scale(0.9); }
}

/* ============================================
   5. 启动台模块
   ============================================ */
.launchpad {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    margin-bottom: 32px;
}

.launchpad-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-max);
    position: relative;
    transition: background-color var(--transition-bg) ease,
                border-color var(--transition-bg) ease,
                box-shadow var(--transition-bg) ease;
}

html.light-mode .launchpad-header {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

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

.launchpad-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.launchpad-news {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    height: 24px;
}

.news-icon {
    font-size: 14px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.news-icon span {
    display: inline-block;
    transform: translateY(-1px);
}

.news-text {
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 20px;
    display: flex;
    align-items: center;
    line-height: 20px;
}

.news-close {
    background: rgba(255, 255, 255, 0.01);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 50%;
    transition: background-color var(--transition-content) ease 0.05s,
                color var(--transition-text) ease 0.1s,
                transform var(--transition-fast);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-close svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    transition: color var(--transition-text) ease 0.1s;
}

.news-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: scale(1.1);
}

html.light-mode .news-close {
    background: rgba(0, 0, 0, 0.01);
}

html.light-mode .news-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
}

.launchpad-edit {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-content) ease 0.05s,
                border-color var(--transition-content) ease 0.05s,
                color var(--transition-text) ease 0.1s,
                transform var(--transition-fast);
}

.launchpad-edit:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

html.light-mode .launchpad-edit {
    background: rgba(0, 0, 0, 0.02);
    border-color: #e4e4e7;
}

html.light-mode .launchpad-edit:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: #d4d4d8;
    color: var(--text-primary);
}

.launchpad-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100px;
    justify-content: flex-end;
}

.launchpad-edit,
.launchpad-done {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.launchpad-done {
    padding: 6px 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-content) ease 0.05s,
                color var(--transition-text) ease 0.1s,
                box-shadow var(--transition-content) ease 0.05s,
                transform var(--transition-fast);
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3);
}

.launchpad-done:hover {
    transform: translateY(calc(-50% - 1px));
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.launchpad-item-wrapper {
    position: relative;
}

.launchpad-hidden-init {
    display: none;
}

.launchpad-delete {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-content) ease 0.05s,
                transform var(--transition-fast),
                opacity var(--transition-fast);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    opacity: 0;
    pointer-events: none;
}

.launchpad-editing .launchpad-delete {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.launchpad-delete:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.launchpad-add-wrapper {
    display: none;
}

.launchpad-editing .launchpad-add-wrapper {
    display: block;
}

.launchpad-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 8px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--border-color);
    cursor: pointer;
    transition: background-color var(--transition-content) ease 0.05s,
                border-color var(--transition-content) ease 0.05s,
                color var(--transition-text) ease 0.1s,
                transform var(--transition-fast);
    color: var(--text-muted);
    width: 100%;
}

.launchpad-add:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateY(-2px);
}

html.light-mode .launchpad-add {
    background: rgba(0, 0, 0, 0.02);
    border-color: #d4d4d8;
}

html.light-mode .launchpad-add:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--accent-green);
}

.launchpad-add-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    transition: background-color var(--transition-content) ease 0.05s;
}

html.light-mode .launchpad-add-icon {
    background: rgba(0, 0, 0, 0.04);
}

.launchpad-add-text {
    font-size: 12px;
}

.launchpad-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}

.launchpad-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 8px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background-color var(--transition-content) ease 0.05s,
                border-color var(--transition-content) ease 0.05s,
                transform var(--transition-fast),
                box-shadow var(--transition-content) ease 0.05s;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.launchpad-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

html.light-mode .launchpad-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

html.light-mode .launchpad-item:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.launchpad-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: box-shadow var(--transition-content) ease 0.05s;
}

html.light-mode .launchpad-icon {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.launchpad-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.launchpad-icon span {
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.launchpad-name {
    font-size: 14px;
    color: var(--text-primary);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    transition: color var(--transition-text) ease 0.1s;
    font-weight: 600;
    line-height: 1.3;
    padding: 0 4px;
}

.launchpad-item:hover .launchpad-name {
    color: #2563eb;
}

@media (max-width: 800px) {
    .launchpad-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .launchpad-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
    .launchpad-news {
        display: none;
    }
    
    .launchpad-item,
    .launchpad-add {
        padding: 16px 6px;
        gap: 6px;
    }
    
    .launchpad-icon,
    .launchpad-add-icon {
        width: 40px;
        height: 40px;
    }
    
    .launchpad-icon span {
        font-size: 12px;
    }
    
    .launchpad-name {
        font-size: 12px;
    }
}

/* ============================================
   6. 通用按钮
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 50%);
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

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

/* ============================================
   6. 首页 - 导航栏
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 64px;
    background: rgba(12, 12, 14, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(39, 39, 42, 0.5);
    transition: transform var(--transition-theme),
                background-color var(--transition-theme),
                border-color var(--transition-theme),
                box-shadow var(--transition-theme);
    will-change: transform;
}

.navbar.scrolling-up {
    opacity: 0;
    transform: translateY(-100%);
}

.navbar.hidden {
    opacity: 0 !important;
    transform: translateY(-100%) !important;
    pointer-events: none;
}

.navbar.scrolled {
    background: rgba(12, 12, 14, 0.92);
    border-bottom-color: rgba(39, 39, 42, 0.8);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

html.light-mode .navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom-color: rgba(228, 228, 231, 0.8);
}

html.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(228, 228, 231, 0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.85;
}

.custom-logo {
    width: auto;
    height: 36px;
    display: block;
    border-radius: var(--radius-sm);
}

.logo-icon-wrap {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
}

.logo-icon-wrap svg {
    width: 22px;
    height: 22px;
    fill: white;
    position: relative;
    z-index: 1;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--text-primary);
}

.logo-text span {
    color: var(--accent-green);
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

button.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    transition: background-color var(--transition-theme),
                border-color var(--transition-theme),
                color var(--transition-theme);
}

button.theme-toggle svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity var(--transition-theme),
                transform var(--transition-theme);
}

button.theme-toggle .icon-sun {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg) scale(0.5);
}

button.theme-toggle .icon-moon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0) scale(1);
}

html.light-mode button.theme-toggle .icon-sun,
body.light-mode button.theme-toggle .icon-sun {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0) scale(1);
}

html.light-mode button.theme-toggle .icon-moon,
body.light-mode button.theme-toggle .icon-moon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scale(0.5);
}

button.theme-toggle:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

html.light-mode button.theme-toggle:hover,
body.light-mode button.theme-toggle:hover {
    background: rgba(0,0,0,0.04);
}

/* ============================================
   7. 首页 - Hero 区域
   ============================================ */
.hero {
    position: relative;
    z-index: 1;
    padding: 40px 24px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.text-diag-bi {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
    animation: fadeInUp 0.7s ease 0.08s both, diag-bi 5s ease-in-out infinite;
    display: inline-block;
    background: linear-gradient(45deg, #003C8B 0%, #0E9DEC 20%, #108EE9 40%, #5AB8F7 60%, #A8D8FF 80%, #FFFFFF 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

html.light-mode .text-diag-bi {
    background: linear-gradient(45deg, #0066ff, #0099ff, #00ccff, #00e5ff, #00ddff, #0099ff, #0066ff, #0055dd);
    background-size: 300% 300%;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes diag-bi {
    0% { background-position: 0% 0%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

.hero-desc {
    font-size: clamp(15px, 2.2vw, 18px);
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 800px;
    margin: 24px auto 36px;
    animation: fadeInUp 0.7s ease 0.16s both;
}

/* ============================================
   8. 首页 - 搜索框
   ============================================ */
.search-wrap {
    position: relative;
    max-width: 600px;
    margin: 0 auto 20px;
    animation: fadeInUp 0.7s ease 0.24s both;
}

.search-box {
    width: 100%;
    padding: 14px 60px 14px 20px;
    background: var(--bg-input);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all var(--transition-theme);
}

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

.search-box:hover {
    background: var(--bg-card-hover);
}

.search-box:focus {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), var(--shadow);
}

html:not(.light-mode) .search-box,
body:not(.light-mode) .search-box {
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(39, 39, 42, 0.5);
}

html:not(.light-mode) .search-box:hover,
body:not(.light-mode) .search-box:hover {
    background: rgba(31, 31, 35, 0.6);
}

html:not(.light-mode) .search-box:focus,
body:not(.light-mode) .search-box:focus {
    background: rgba(31, 31, 35, 0.6);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), var(--shadow);
}

html.light-mode .search-box,
body.light-mode .search-box {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    color: #09090b;
}

html.light-mode .search-box::placeholder,
body.light-mode .search-box::placeholder {
    color: #a1a1aa;
}

html.light-mode .search-box:hover,
body.light-mode .search-box:hover {
    border-color: #d4d4d8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

html.light-mode .search-box:focus,
body.light-mode .search-box:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
    outline: none;
}

.search-clear-btn {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-secondary);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background-color var(--transition-theme),
                color var(--transition-theme);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

html.light-mode .search-clear-btn {
    background: #f3f4f6;
}

html.light-mode .search-clear-btn:hover {
    background: #e5e7eb;
}

.search-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
}

.search-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: var(--bg-secondary);
}

html.light-mode .search-tooltip {
    background: #ffffff;
    color: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html.light-mode .search-tooltip::before {
    border-bottom-color: #ffffff;
}

.search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-theme);
}

.search-btn:hover {
    background: var(--bg-secondary);
    color: var(--accent-blue);
}

/* ============================================
   9. 首页 - 分类导航
   ============================================ */
.categories {
    position: sticky;
    top: 64px;
    max-width: 1200px;
    z-index: 100;
    padding: 14px 0;
    margin: 0 auto;
    will-change: transform, top;
}

html:not(.light-mode) .categories {
    background: rgba(12, 12, 14, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(39, 39, 42, 0.5);
}

html.light-mode .categories {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(228, 228, 231, 0.8);
}

.cat-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2px 24px;
}

.cat-tab {
    padding: 10px 18px;
    background: rgba(12, 12, 14, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-content) ease 0.05s,
                border-color var(--transition-content) ease 0.05s,
                color var(--transition-text) ease 0.1s,
                transform var(--transition-fast) ease;
    white-space: nowrap;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
}

.cat-tab:hover {
    background: rgba(12, 12, 14, 0.9);
    border-color: rgba(39, 39, 42, 0.9);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.cat-tab.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    color: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2), 0 4px 12px rgba(59, 130, 246, 0.15);
}

.cat-tab.active:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
}

html.light-mode .cat-tab {
    background: rgba(249, 250, 251, 0.2);
    border-color: rgba(229, 231, 235, 0.8);
}

html.light-mode .cat-tab:hover {
    background: rgba(249, 250, 251, 0.9);
    border-color: rgba(209, 213, 219, 0.9);
}

html.light-mode .cat-tab.active {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.7), rgba(245, 243, 255, 0.7));
    color: #2563eb;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15), 0 2px 8px rgba(59, 130, 246, 0.08);
}

html.light-mode .cat-tab.active:hover {
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.8), rgba(237, 233, 254, 0.8));
}

.cat-icon {
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1;
}

.cat-text {
    white-space: nowrap;
    line-height: 1.2;
}

/* ============================================
   10. 首页 - 工具卡片
   ============================================ */
.tools-area {
    position: relative;
    z-index: 1;
    padding: 32px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.tools-count {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 500;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.tool-card-link {
    display: block;
    min-width: 0;
}

.tools-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 16px;
}

.tools-empty .empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.tools-empty .empty-text {
    color: var(--text-muted);
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background-color var(--transition-theme),
                transform var(--transition-theme),
                box-shadow var(--transition-theme);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card.hidden {
    display: none;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: conic-gradient(
        from 270deg,
        transparent 0%,
        transparent 40%,
        var(--accent-green) 50%,
        var(--accent-blue) 60%,
        var(--accent-purple) 70%,
        transparent 80%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity var(--transition-theme);
    z-index: 1;
    pointer-events: none;
}

html.light-mode .tool-card::before {
    background: conic-gradient(
        from 270deg,
        transparent 0%,
        transparent 40%,
        #22c55e 50%,
        #2563eb 60%,
        #7c3aed 70%,
        transparent 80%,
        transparent 100%
    );
}

.tool-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--bg-card);
    border-radius: calc(var(--radius-lg) - 1px);
    z-index: 2;
    pointer-events: none;
}

.tool-card:hover {
    background: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tool-card:hover::before {
    opacity: 1;
    animation: borderFlowRotate 3s linear infinite;
}

@keyframes borderFlowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tool-cover {
    position: relative;
    height: calc(120px - 2px);
    background: transparent;
    overflow: visible;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 3;
    padding: 1px;
}

.tool-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}



.tool-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: transform var(--transition-fast);
    z-index: 3;
}

.tool-card:hover .tool-cover-placeholder {
    transform: scale(1.05);
}

.tool-cover-text {
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-align: center;
    padding: 0 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-avatar {
    position: absolute;
    bottom: -18px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.tool-avatar-image {
    padding: 0;
    overflow: hidden;
    background: var(--bg-card);
}

.tool-avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: none;
}

.tool-info {
    padding: 28px 16px 16px;
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 10px;
}

.tool-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition-fast);
}

html:not(.light-mode) .tool-card:hover .tool-name,
body:not(.light-mode) .tool-card:hover .tool-name {
    color: #3b82f6;
}

html.light-mode .tool-card:hover .tool-name,
body.light-mode .tool-card:hover .tool-name {
    color: #2563eb;
}

.tool-cat-tag {
    padding: 3px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

.tool-cat-tag:hover {
    color: var(--text-foreground);
}

.tool-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 12px;
    min-height: 2.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 0 1 auto;
}

.tool-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tool-tag,
.detail-tag {
    padding: 3px 6px;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border-color);
    font-family: inherit;
    line-height: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.tool-tag:hover,
.detail-tag:hover {
    color: var(--text-foreground);
}

.tool-tag::before,
.detail-tag::before {
    content: '#';
    margin-right: 1px;
}

html.light-mode .tool-tag,
html.light-mode .detail-tag {
    background: var(--bg-card);
    border-color: #e4e4e7;
    color: #71717a;
}

html.light-mode .tool-tag:hover,
html.light-mode .detail-tag:hover {
    background: rgba(243, 244, 246, 0.9);
    color: #09090b;
}

.tool-tags-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.tool-external-link {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: color var(--transition-fast),
                background-color var(--transition-fast),
                opacity var(--transition-fast);
    background: transparent;
    border: none;
    padding: 0;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.tool-card:hover .tool-external-link {
    opacity: 1;
    pointer-events: auto;
}

.tool-external-link:hover {
    color: var(--text-primary);
}

html.light-mode .tool-external-link:hover {
    color: #09090b;
}

.tool-featured {
    padding: 2px 8px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border-radius: 100px;
    font-size: 10px;
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid #3b82f6;
}

html.light-mode .tool-featured {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2), 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* ============================================
   11. 首页 - 特色区域
   ============================================ */
.features {
    position: relative;
    z-index: 1;
    padding: 50px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.feature-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-fast),
                background-color var(--transition-theme),
                border-color var(--transition-theme);
}

.feature-item:hover {
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.08);
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
    position: relative;
}

.feature-icon-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   12. 首页 - 加载更多
   ============================================ */
.load-more-container {
    padding: 32px 0;
    text-align: center;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.load-more-btn:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
    color: var(--text-primary);
}

html.light-mode .load-more-btn {
    background: rgba(249, 250, 251, 0.8);
    border: 1px solid #e4e4e7;
    color: var(--text-secondary);
}

html.light-mode .load-more-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #2563eb;
}

.load-more-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 20px;
}

/* ============================================
   13. 友链
   ============================================ */
.friend-links-section {
    position: relative;
    z-index: 1;
    padding: 40px 24px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.friend-links-inner {
    border-top: 1px solid rgba(39, 39, 42, 0.5);
    padding-top: 32px;
}

html.light-mode .friend-links-inner,
body.light-mode .friend-links-inner {
    border-top-color: rgba(228, 228, 231, 0.8);
}

html:not(.light-mode) .friend-links-inner,
body:not(.light-mode) .friend-links-inner {
    border-top-color: rgba(39, 39, 42, 0.5);
}

.friend-links-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.friend-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.friend-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color var(--transition-content) ease 0.05s,
                border-color var(--transition-content) ease 0.05s,
                color var(--transition-text) ease 0.1s;
    line-height: 1.5;
}

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

html.light-mode .friend-link {
    background: rgba(249, 250, 251, 0.8);
    border-color: #e4e4e7;
    color: var(--text-secondary);
}

html.light-mode .friend-link:hover {
    background: rgba(243, 244, 246, 0.9);
    border-color: rgba(209, 213, 219, 0.9);
    color: #09090b;
}

/* ============================================
   14. 页脚
   ============================================ */
.footer {
    position: relative;
    z-index: 1;
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links-section {
    width: 100%;
    text-align: center;
}

.footer-links-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.footer-link {
    padding: 6px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.footer-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-foreground);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

/* ============================================
   15. 滚动条
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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

/* ============================================
   16. 工具详情页 - 通用布局
   ============================================ */
.container-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   17. 工具详情页 - Hero 区域
   ============================================ */
.tool-detail-hero {
    position: relative;
    z-index: 1;
    padding: 24px 0 32px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.breadcrumb-separator {
    color: var(--text-dim);
    font-size: 12px;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

.tool-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.tool-info-card::before {
    content: '';
    position: absolute;
    inset: -48px;
    background:
        radial-gradient(520px circle at 0% 100%, rgba(59, 130, 246, 0.18), transparent 60%),
        radial-gradient(520px circle at 100% 0%, rgba(59, 130, 246, 0.16), transparent 60%);
    filter: blur(18px);
    opacity: 0.75;
    pointer-events: none;
    z-index: 0;
}

.tool-info-card > * {
    position: relative;
    z-index: 1;
}

html.light-mode .tool-info-card {
    border-color: #e4e4e7;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

html.light-mode .tool-info-card::before {
    opacity: 1;
    background:
        radial-gradient(520px circle at 0% 100%, rgba(37, 99, 235, 0.35), transparent 40%),
        radial-gradient(520px circle at 100% 0%, rgba(59, 130, 246, 0.3), transparent 40%);
    filter: blur(14px);
}

.tool-info-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

.tool-info-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tool-header-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tool-detail-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.tool-detail-icon-image {
    padding: 0;
    overflow: hidden;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
}

.tool-detail-icon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tool-detail-name {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.tool-detail-featured {
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid #3b82f6;
    border-radius: 100px;
    font-size: 12px;
    color: white;
    font-weight: 600;
}

html.light-mode .tool-detail-featured,
body.light-mode .tool-detail-featured {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.tool-detail-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.tool-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.btn-open-site {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.btn-open-site:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-open-site svg {
    transition: transform var(--transition-fast);
}

.btn-open-site:hover svg {
    transform: translate(2px, -2px);
}

.btn-share,
.btn-favorite {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn-favorite:hover svg {
    fill: rgba(245, 158, 11, 0.2);
    stroke: #f59e0b;
}

.btn-favorite.active svg {
    fill: #f59e0b;
    stroke: #f59e0b;
}

.tool-cover-section {
    position: relative;
}

.tool-detail-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.tool-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.tool-detail-cover:hover img {
    transform: scale(1.02);
}

.tool-detail-cover-empty {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-xl);
}

/* ============================================
   18. 工具详情页 - 内容区域
   ============================================ */
.tool-detail-content {
    position: relative;
    z-index: 1;
    padding: 0 0 60px;
}

.content-nav {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 24px;
    padding: 0 32px;
    height: 64px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    position: sticky;
    top: 63px;
    z-index: 99;
}

html:not(.light-mode) .content-nav {
    background: rgba(12, 12, 14, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(39, 39, 42, 0.5);
    border-bottom: 1px solid rgba(39, 39, 42, 0.5);
}

html.light-mode .content-nav {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(228, 228, 231, 0.8);
    border-bottom: 1px solid rgba(228, 228, 231, 0.8);
}

.content-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    text-decoration: none;
    position: relative;
}

.content-nav-link:hover {
    color: var(--text-primary);
}

.content-nav-link.active {
    color: var(--text-primary);
    border-bottom-color: #ffffff;
}

html.light-mode .content-nav-link.active {
    border-bottom-color: var(--text-primary);
}

.content-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.content-section {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.content-section:last-child {
    grid-template-columns: 1fr;
}

.overview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
}

html.light-mode .overview-card {
    border-color: #e4e4e7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.overview-full-content {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.overview-full-content h1,
.overview-full-content h2,
.overview-full-content h3,
.overview-full-content h4,
.overview-full-content h5,
.overview-full-content h6 {
    color: var(--text-primary);
    margin: 24px 0 12px;
    font-weight: 600;
}

.overview-full-content h1 { font-size: 24px; margin-top: 0; }
.overview-full-content h2 { font-size: 20px; }
.overview-full-content h3 { font-size: 18px; }

.overview-full-content p {
    margin: 0 0 16px;
}

.overview-full-content p:last-child {
    margin-bottom: 0;
}

.overview-full-content ul,
.overview-full-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.overview-full-content li {
    margin: 0 0 8px;
}

.overview-full-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 16px 0;
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 20px;
    min-width: 0;
}

html.light-mode .sidebar-card {
    border-color: #e4e4e7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sidebar-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px;
}

.sidebar-tools-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-tool-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
    min-width: 0;
}

.sidebar-tool-item:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
}

.sidebar-tool-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.sidebar-tool-icon-image {
    padding: 0;
    overflow: hidden;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
}

.sidebar-tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.sidebar-tool-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.sidebar-tool-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition-fast);
}

.sidebar-tool-item:hover .sidebar-tool-name {
    color: var(--accent-blue);
}

.sidebar-tool-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 39px;
}

.alternatives-card {
    grid-column: 1 / -1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
}

html.light-mode .alternatives-card {
    border-color: #e4e4e7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.alternatives-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 24px;
}

.alternatives-card .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 0;
}

.alternatives-card .tool-card-link {
    display: block;
    min-width: 0;
}

.alternatives-card .tool-card {
    height: 100%;
}

.alternative-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.alternative-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.alt-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    background: var(--bg-input);
}

.alt-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.alt-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.alt-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}

/* ============================================
   19. 404 页面
   ============================================ */
.not-found {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 24px 80px;
}

.not-found-inner {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.not-found-code {
    font-size: clamp(84px, 14vw, 160px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    color: var(--accent-blue);
    opacity: 0.9;
    margin-bottom: 18px;
}

.not-found-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.not-found-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 24px;
}

.not-found-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.not-found-actions .btn {
    padding: 12px 22px;
    border-radius: 10px;
}

.not-found-actions .btn svg {
    margin-right: 2px;
}

.not-found-actions .btn-primary.not-found-home {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.not-found-actions .btn-primary.not-found-home:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.3);
}

.not-found-actions .btn-ghost.not-found-back {
    background: rgba(255, 255, 255, 0.4);
}

html:not(.light-mode) .not-found-actions .btn-ghost.not-found-back {
    background: rgba(255, 255, 255, 0.04);
}

.not-found-dashes {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 42px;
}

.not-found-dashes span {
    width: 82px;
    height: 6px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.16);
}

html:not(.light-mode) .not-found-dashes span {
    background: rgba(59, 130, 246, 0.22);
}

/* ============================================
   20. 响应式
   ============================================ */
@media (max-width: 968px) {
    .tool-info-section {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tool-info-main {
        order: -1;
    }

    .tool-detail-cover,
    .tool-detail-cover-empty {
        aspect-ratio: 16 / 9;
        max-width: 600px;
        margin: 0 auto;
    }

    .tool-detail-name {
        font-size: 28px;
    }

    .content-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 20px 50px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .cat-list {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .cat-list::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 640px) {
    .not-found {
        padding: 48px 16px 60px;
    }

    .tool-detail-name {
        font-size: 24px;
    }

    .tool-detail-icon {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .tool-detail-actions {
        flex-wrap: wrap;
    }

    .btn-open-site {
        flex: 1;
        min-width: 140px;
    }

    .tool-info-card {
        padding: 24px;
    }

    .content-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .overview-card,
    .alternatives-card,
    .sidebar-card {
        padding: 20px;
    }
}

/* ============================================
   21. 主题过渡动画
   ============================================ */
body.theme-transition-enabled .navbar {
    transition: background-color var(--transition-theme),
                border-color var(--transition-theme),
                box-shadow var(--transition-theme),
                backdrop-filter var(--transition-theme);
}

body.theme-transition-enabled .tool-card {
    transition: background-color var(--transition-theme),
                border-color var(--transition-theme),
                box-shadow var(--transition-theme),
                transform var(--transition-theme);
}

body.theme-transition-enabled .tool-card::before {
    transition: opacity var(--transition-theme);
}

body.theme-transition-enabled .feature-item {
    transition: background-color var(--transition-theme),
                border-color var(--transition-theme),
                box-shadow var(--transition-theme),
                transform var(--transition-theme);
}

/* ============================================
   22. 弹窗样式
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-color);
}

.modal-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
}

.modal-body {
    padding: 20px 24px;
}

.modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

.url-suggestions {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.url-suggestion {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.url-suggestion:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.url-suggestion .url-protocol {
    font-size: 11px;
    color: var(--text-muted);
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

html.light-mode .modal-container {
    background: #ffffff;
    border-color: #e4e4e7;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

html.light-mode .modal-close {
    background: rgba(0, 0, 0, 0.06);
}

html.light-mode .modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

html.light-mode .form-group input {
    background: #f9fafb;
    border-color: #e4e4e7;
    color: #1f2937;
}

html.light-mode .form-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

html.light-mode .url-suggestion {
    background: #f3f4f6;
    border-color: #e4e4e7;
}

html.light-mode .url-suggestion:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

body.theme-transition-enabled .btn {
    transition: background-color var(--transition-theme),
                border-color var(--transition-theme),
                box-shadow var(--transition-theme),
                transform var(--transition-theme);
}

body.theme-transition-enabled .bg-mesh,
body.light-mode .bg-mesh {
    display: none;
    opacity: 0;
}

/* 分层过渡 - 背景层 */
body.theme-transition-enabled,
body.theme-transition-enabled .navbar,
body.theme-transition-enabled .categories {
    transition: background-color var(--transition-bg) ease,
                border-color var(--transition-bg) ease,
                backdrop-filter var(--transition-bg) ease,
                -webkit-backdrop-filter var(--transition-bg) ease,
                box-shadow var(--transition-bg) ease;
}

/* 分层过渡 - 内容层 */
body.theme-transition-enabled .tool-card,
body.theme-transition-enabled .feature-item,
body.theme-transition-enabled .hero,
body.theme-transition-enabled .search-box {
    transition: background-color var(--transition-content) ease 0.05s,
                border-color var(--transition-content) ease 0.05s,
                box-shadow var(--transition-content) ease 0.05s,
                transform var(--transition-content) ease 0.05s;
}

/* 分层过渡 - 文字层 */
body.theme-transition-enabled .tool-name,
body.theme-transition-enabled .tool-desc,
body.theme-transition-enabled .hero-desc,
body.theme-transition-enabled .logo-text,
body.theme-transition-enabled .nav-link,
body.theme-transition-enabled .cat-text,
body.theme-transition-enabled .tool-tag,
body.theme-transition-enabled .detail-tag {
    transition: color var(--transition-text) ease 0.1s;
}

body.theme-transition-enabled .search-box::placeholder {
    transition: color var(--transition-text) ease 0.1s;
}

/* 分层过渡 - 装饰层 */
body.theme-transition-enabled .text-diag-bi,
body.theme-transition-enabled .tool-cover-placeholder,
body.theme-transition-enabled .bg-mesh {
    transition: opacity var(--transition-decor) ease;
}

body.theme-transition-enabled .theme-toggle svg {
    transition: opacity var(--transition-decor) ease,
                transform var(--transition-decor) ease;
}

/* 详情页过渡 */
body.theme-transition-enabled .tool-info-card,
body.theme-transition-enabled .overview-card,
body.theme-transition-enabled .sidebar-card,
body.theme-transition-enabled .alternatives-card,
body.theme-transition-enabled .content-nav,
body.theme-transition-enabled .tool-detail-cover,
body.theme-transition-enabled .tool-detail-icon,
body.theme-transition-enabled .tool-detail-icon-image,
body.theme-transition-enabled .sidebar-tool-icon,
body.theme-transition-enabled .sidebar-tool-icon-image,
body.theme-transition-enabled .sidebar-tool-item,
body.theme-transition-enabled .btn-open-site,
body.theme-transition-enabled .btn-share,
body.theme-transition-enabled .btn-favorite {
    transition: background-color var(--transition-content) ease 0.05s,
                border-color var(--transition-content) ease 0.05s,
                box-shadow var(--transition-content) ease 0.05s;
}

body.theme-transition-enabled .tool-detail-name,
body.theme-transition-enabled .tool-detail-desc,
body.theme-transition-enabled .tool-detail-featured,
body.theme-transition-enabled .sidebar-card-title,
body.theme-transition-enabled .sidebar-tool-name,
body.theme-transition-enabled .sidebar-tool-desc,
body.theme-transition-enabled .alternatives-title,
body.theme-transition-enabled .breadcrumb,
body.theme-transition-enabled .breadcrumb-separator,
body.theme-transition-enabled .breadcrumb-current,
body.theme-transition-enabled .content-nav-link,
body.theme-transition-enabled .overview-full-content,
body.theme-transition-enabled .overview-full-content h1,
body.theme-transition-enabled .overview-full-content h2,
body.theme-transition-enabled .overview-full-content h3,
body.theme-transition-enabled .overview-full-content h4,
body.theme-transition-enabled .overview-full-content h5,
body.theme-transition-enabled .overview-full-content h6,
body.theme-transition-enabled .overview-full-content p,
body.theme-transition-enabled .overview-full-content li {
    transition: color var(--transition-text) ease 0.1s;
}

body.theme-transition-enabled .breadcrumb a {
    transition: color var(--transition-text) ease 0.1s;
}

/* 浅色模式阴影降级 */
html.light-mode .tool-detail-icon,
html.light-mode .sidebar-tool-icon {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

html.light-mode .tool-detail-icon.tool-detail-icon-image,
html.light-mode .sidebar-tool-icon.sidebar-tool-icon-image {
    border: 2px solid #e4e4e7;
}

html.light-mode .tool-detail-cover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 按钮过渡细化 */
body.theme-transition-enabled .btn-ghost,
body.theme-transition-enabled .btn.btn-ghost {
    transition: background-color var(--transition-content) ease 0.05s,
                border-color var(--transition-content) ease 0.05s,
                color var(--transition-text) ease 0.1s,
                box-shadow var(--transition-content) ease 0.05s,
                transform var(--transition-fast);
}

body.theme-transition-enabled .btn-primary,
body.theme-transition-enabled .btn.btn-primary {
    transition: background-color var(--transition-content) ease 0.05s,
                border-color var(--transition-content) ease 0.05s,
                color var(--transition-text) ease 0.1s,
                box-shadow var(--transition-content) ease 0.05s,
                transform var(--transition-fast);
}

body.theme-transition-enabled .theme-toggle {
    transition: background-color var(--transition-content) ease 0.05s,
                border-color var(--transition-content) ease 0.05s,
                color var(--transition-text) ease 0.1s;
}

body.theme-transition-enabled .search-btn {
    transition: background-color var(--transition-content) ease 0.05s,
                color var(--transition-text) ease 0.1s;
}

body.theme-transition-enabled .search-clear-btn {
    transition: background-color var(--transition-content) ease 0.05s,
                color var(--transition-text) ease 0.1s;
}

body.theme-transition-enabled .load-more-btn {
    transition: background-color var(--transition-content) ease 0.05s,
                border-color var(--transition-content) ease 0.05s,
                color var(--transition-text) ease 0.1s,
                box-shadow var(--transition-content) ease 0.05s,
                transform var(--transition-fast);
}

body.theme-transition-enabled .pagination a,
body.theme-transition-enabled .pagination .current {
    transition: background-color var(--transition-content) ease 0.05s,
                border-color var(--transition-content) ease 0.05s,
                color var(--transition-text) ease 0.1s,
                box-shadow var(--transition-content) ease 0.05s,
                transform var(--transition-fast);
}

body.theme-transition-enabled .pagination .dots {
    transition: color var(--transition-text) ease 0.1s;
}

body.theme-transition-enabled .cat-tab.active {
    transition: background-color var(--transition-content) ease 0.05s,
                border-color var(--transition-content) ease 0.05s,
                color var(--transition-text) ease 0.1s,
                box-shadow var(--transition-content) ease 0.05s;
}

body.theme-transition-enabled .tool-external-link {
    transition: color var(--transition-text) ease 0.1s,
                background-color var(--transition-content) ease 0.05s,
                opacity var(--transition-fast);
}

body.theme-transition-enabled .btn-open-site {
    transition: background var(--transition-content) ease 0.05s,
                color var(--transition-text) ease 0.1s,
                box-shadow var(--transition-content) ease 0.05s,
                transform var(--transition-fast);
}



.btn-ghost:hover,
.theme-toggle:hover {
    background: var(--bg-card-hover);
}

html.light-mode .btn-ghost:hover,
body.light-mode .btn-ghost:hover,
html.light-mode .theme-toggle:hover,
body.light-mode .theme-toggle:hover {
    background: var(--bg-card-hover);
}

/* 为背景添加过渡 */
html.light-mode .bg-mesh {
    display: none;
    opacity: 0;
}

/* 浅色模式工具卡片 */
html.light-mode .tool-card {
    border: 1px solid #e4e4e7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

html.light-mode .tool-card:hover {
    border-color: #d4d4d8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

html.light-mode .tool-card:hover::before {
    opacity: 0.75;
}

/* ============================================
   23. 传统分页样式
   ============================================ */
.pagination-container {
    padding: 40px 0 20px;
    display: flex;
    justify-content: center;
    /* 分层过渡 - 背景层 */
    transition: background-color var(--transition-bg) ease,
                border-color var(--transition-bg) ease,
                backdrop-filter var(--transition-bg) ease,
                -webkit-backdrop-filter var(--transition-bg) ease;
}

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

.pagination a,
.pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    /* 分层过渡 - 内容层 */
    transition: background-color var(--transition-content) ease 0.05s,
                border-color var(--transition-content) ease 0.05s,
                color var(--transition-text) ease 0.1s,
                box-shadow var(--transition-content) ease 0.05s,
                transform var(--transition-fast);
}

.pagination a:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.pagination .current {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border-color: #3b82f6;
    color: #3b82f6;
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2), 0 4px 12px rgba(59, 130, 246, 0.15);
}

.pagination .dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--text-muted);
    font-size: 14px;
    /* 分层过渡 - 文字层 */
    transition: color var(--transition-text) ease 0.1s;
}

html.light-mode .pagination a,
html.light-mode .pagination .current {
    background: rgba(255, 255, 255, 0.9);
    border-color: #e4e4e7;
}

html.light-mode .pagination a:hover {
    background: rgba(239, 246, 255, 0.8);
    border-color: #3b82f6;
    color: #2563eb;
}

html.light-mode .pagination .current {
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    border-color: #3b82f6;
    color: #2563eb;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15), 0 2px 8px rgba(59, 130, 246, 0.08);
}

/* 深色模式特定样式 */
html:not(.light-mode) .pagination a,
html:not(.light-mode) .pagination .current {
    background: rgba(12, 12, 14, 0.6);
    border-color: rgba(39, 39, 42, 0.5);
}

html:not(.light-mode) .pagination a:hover {
    background: rgba(12, 12, 14, 0.9);
    border-color: rgba(39, 39, 42, 0.9);
}

html:not(.light-mode) .pagination .current {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2), 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* 按钮点击效果 */
.pagination a:active {
    transform: translateY(0);
}

/* 浅色模式阴影优化 */
html.light-mode .pagination a,
html.light-mode .pagination .current {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

html.light-mode .pagination a:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 深色模式阴影优化 */
html:not(.light-mode) .pagination a,
html:not(.light-mode) .pagination .current {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

html:not(.light-mode) .pagination a:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 640px) {
    .pagination a,
    .pagination .current {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .pagination .dots {
        min-width: 36px;
        height: 36px;
    }
}
