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

/* 现代配色方案 */
:root {
    --primary-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-sidebar: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-sidebar: #475569;
    --text-sidebar-active: #667eea;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* 赛博朋克风格背景 - 霓虹渐变 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(10, 10, 30, 0.95) 100%),
        radial-gradient(circle at 20% 50%, rgba(255, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 0, 0.15) 0%, transparent 50%);
    z-index: -1;
    animation: cyberGradientShift 15s ease infinite;
    background-size: 200% 200%;
}

/* 赛博朋克渐变动画 */
@keyframes cyberGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 赛博朋克网格效果 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: cyberGridMove 20s linear infinite;
    opacity: 0.7;
}

/* 网格移动动画 */
@keyframes cyberGridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* 赛博朋克扫描线效果 */
body {
    background-image: 
        linear-gradient(to bottom, 
            transparent 0%, 
            rgba(0, 255, 255, 0.05) 50%, 
            transparent 100%);
    background-size: 100% 4px;
    animation: cyberScanLines 0.1s linear infinite;
}

/* 扫描线动画 */
@keyframes cyberScanLines {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100%;
    }
}

/* 赛博朋克故障效果 */
@keyframes cyberGlitch {
    0%, 98%, 100% {
        transform: translate(0);
    }
    98.5% {
        transform: translate(-2px, 2px);
    }
    99% {
        transform: translate(2px, -2px);
    }
    99.5% {
        transform: translate(-2px, -2px);
    }
}

header {
    background: var(--primary-gradient);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: gradientShift 15s ease infinite;
    background-size: 400% 400%;
}

/* 动态渐变背景动画 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 动态粒子效果 */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%23ffffff" fill-opacity="0.1" fill-rule="evenodd"/></svg>');
    opacity: 0.1;
    animation: particleFloat 20s linear infinite;
}

/* 粒子浮动动画 */
@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-10px) translateX(10px);
    }
    50% {
        transform: translateY(-20px) translateX(0);
    }
    75% {
        transform: translateY(-10px) translateX(-10px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* 动态光效 */
header::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    transform: translate(-50%, -50%);
    animation: lightPulse 4s ease-in-out infinite;
    z-index: 0;
}

/* 光效脉冲动画 */
@keyframes lightPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    font-weight: 900;
    position: relative;
    z-index: 1;
    letter-spacing: 0.05em;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #ff6b6b 50%, #4ecdc4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                 0 0 40px rgba(255, 107, 107, 0.6),
                 0 0 60px rgba(78, 205, 196, 0.4);
    animation: textGlow 3s ease-in-out infinite alternate;
    transform: perspective(500px) rotateX(5deg);
    display: inline-block;
}

/* 文字发光动画 */
@keyframes textGlow {
    from {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                     0 0 40px rgba(255, 107, 107, 0.6),
                     0 0 60px rgba(78, 205, 196, 0.4);
        transform: perspective(500px) rotateX(5deg) scale(1);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 255, 255, 1),
                     0 0 60px rgba(255, 107, 107, 0.8),
                     0 0 90px rgba(78, 205, 196, 0.6);
        transform: perspective(500px) rotateX(5deg) scale(1.02);
    }
}

header p {
    font-size: 1.25rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

/* 主容器布局 */
.app-container {
    display: flex;
    min-height: calc(100vh - 200px);
    max-width: 1600px;
    margin: 0 auto;
    gap: 2rem;
    padding: 2rem;
}

/* 左侧导航栏 */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    overflow-y: auto;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
    height: fit-content;
    max-height: calc(100vh - 4rem);
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: var(--transition);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.sidebar-section {
    margin-bottom: 1.5rem;
    transform-style: preserve-3d;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

/* 可收缩侧边栏标题 */
.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--border-color);
    user-select: none;
}

.section-title:hover {
    color: var(--text-sidebar-active);
    transform: translateX(4px);
}

.section-toggle {
    font-size: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    color: var(--text-secondary);
}

.section-title.collapsed .section-toggle {
    transform: rotate(-90deg);
    color: var(--text-sidebar-active);
}

.section-content {
    list-style: none;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 1;
    margin-bottom: 0.75rem;
}

.section-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 确保默认收缩样式正确应用 */
.sidebar-section .section-content {
    max-height: 500px;
    opacity: 1;
    margin-bottom: 0.75rem;
}

.sidebar-section .section-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-content li {
    margin-bottom: 0.5rem;
    transform-style: preserve-3d;
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-sidebar);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: var(--transition);
    transform-origin: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transform: translateZ(-10px);
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.05);
    color: var(--text-sidebar-active);
    transform: translateX(4px) translateZ(5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(102, 126, 234, 0.2);
}

.nav-link:hover::before {
    transform: scaleY(1);
}

.nav-link:hover::after {
    opacity: 0.05;
    transform: translateZ(-5px);
}

.nav-link.active {
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-sidebar-active);
    font-weight: 600;
    transform: translateX(4px) translateZ(10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(102, 126, 234, 0.3);
}

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

.nav-link.active::after {
    opacity: 0.1;
    transform: translateZ(-5px);
}

/* 右侧主内容区 */
.main-content {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-height: 600px;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: var(--transition);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.main-content:hover::before {
    transform: scaleX(1);
}

.main-content:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* 工具面板 */
.tool-panel {
    display: none;
    padding: 0;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tool-panel.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) translateZ(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

.tool-header {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tool-header .tool-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transform-style: preserve-3d;
    transition: var(--transition);
}

.tool-header .tool-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    transform: translateZ(-1px);
}

.tool-header .tool-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0.1;
    mix-blend-mode: overlay;
    transform: translateZ(-1px);
}

.tool-header:hover .tool-image {
    transform: scale(1.02) translateZ(5px);
}

.tool-header h2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    margin: 0;
    color: white;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transform: translateZ(10px);
    transition: var(--transition);
}

.tool-header:hover h2 {
    transform: translateZ(20px);
}

.tool-content {
    padding: 3rem;
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
}

.tool-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    transform: translateZ(-1px);
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

/* 表单元素样式 */
textarea, input[type="text"], input[type="number"], input[type="url"], select {
    width: 100%;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-primary);
    color: var(--text-primary);
}

textarea:focus, input[type="text"]:focus, input[type="number"]:focus, input[type="url"]:focus, select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: var(--bg-secondary);
}

textarea {
    resize: vertical;
    min-height: 140px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', Courier, monospace;
    line-height: 1.5;
}

button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.025em;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

button:hover::before {
    left: 100%;
}

button:active {
    transform: translateY(-1px);
}

/* 按钮变体 */
button.secondary {
    background: var(--secondary-gradient);
}

button.accent {
    background: var(--accent-gradient);
}

/* 选项样式 */
.option {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.option label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 120px;
    font-size: 0.95rem;
}

.option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #667eea;
    transition: var(--transition);
}

.option input[type="checkbox"]:hover {
    transform: scale(1.1);
}

/* 对比容器 */
.compare-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* 图片预览 */
#image-preview {
    width: 100%;
    height: 200px;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition);
    background: var(--bg-primary);
}

#image-preview:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

#image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

#image-preview:hover img {
    transform: scale(1.05);
}

/* 结果区域 */
.base-results, .timestamp-results, .loan-results, .color-results, .crontab-result {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.base-results:hover, .timestamp-results:hover, .loan-results:hover, .color-results:hover, .crontab-result:hover {
    border-color: #667eea;
    box-shadow: var(--shadow-sm);
}

.base-results div, .timestamp-results div, .loan-results div, .color-results div {
    margin-bottom: 0.75rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.base-results div:last-child, .timestamp-results div:last-child, .loan-results div:last-child, .color-results div:last-child {
    margin-bottom: 0;
}

/* 颜色预览 */
.color-preview {
    width: 100%;
    height: 120px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    background: #FF5733;
}

.color-preview:hover {
    border-color: #667eea;
    box-shadow: var(--shadow-sm);
}

/* Crontab选项 */
.crontab-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.crontab-result input {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

#crontab-description {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid #667eea;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* 网页性能检测结果 */
.perf-results {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.perf-results p {
    color: var(--text-secondary);
    text-align: center;
}

.perf-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.perf-metric:last-child {
    margin-bottom: 0;
}

.perf-metric .label {
    font-weight: 600;
    color: var(--text-primary);
}

.perf-metric .value {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', Courier, monospace;
    font-weight: 600;
    color: #667eea;
}

/* 网页截屏工具样式 */
.screenshot-preview {
    width: 100%;
    min-height: 200px;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-primary);
    transition: var(--transition);
}

.screenshot-preview:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.screenshot-preview img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: var(--transition);
}

.screenshot-preview:hover img {
    transform: scale(1.02);
}

/* 网页油猴工具样式 */
.tampermonkey-result {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid #667eea;
    font-size: 0.95rem;
    color: var(--text-secondary);
    min-height: 80px;
}

/* 思维导图样式 */
.mind-map-controls {
    margin-bottom: 1.5rem;
}

.mind-map-container {
    width: 100%;
    min-height: 400px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-primary);
    padding: 2rem;
    overflow: auto;
    transition: var(--transition);
}

.mind-map-container:hover {
    border-color: #667eea;
    box-shadow: var(--shadow-sm);
}

.mind-map-node {
    position: relative;
    margin-bottom: 1rem;
}

.mind-map-node .node-content {
    background: var(--bg-secondary);
    border: 2px solid #667eea;
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    min-width: 120px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
}

.mind-map-node .node-content:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: rgba(102, 126, 234, 0.1);
}

.mind-map-node .node-content.selected {
    background: rgba(102, 126, 234, 0.2);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.mind-map-node .node-children {
    margin-left: 2rem;
    margin-top: 0.75rem;
    position: relative;
}

.mind-map-node .node-children::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.mind-map-node .node-children > .mind-map-node::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.25rem;
    width: 1rem;
    height: 2px;
    background: var(--border-color);
    transform: translateX(-100%);
}

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

.root-node .node-children {
    margin-left: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.root-node .node-children::before {
    display: none;
}

.root-node .node-children > .mind-map-node::before {
    display: none;
}

.root-node .node-content {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.root-node .node-content:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* 对比和正则结果 */
#compare-result, #regex-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    background: var(--bg-primary);
    min-height: 120px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

#compare-result:hover, #regex-result:hover {
    border-color: #667eea;
    box-shadow: var(--shadow-sm);
}

/* 页脚 */
footer {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
}

footer::before {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .app-container {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        max-height: none;
        overflow: visible;
    }
    
    .sidebar-section {
        margin-bottom: 1.5rem;
    }
    
    .sidebar-section ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .sidebar-section li {
        margin-bottom: 0;
    }
    
    .nav-link {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
    
    .tool-header .tool-image {
        height: 200px;
    }
    
    .tool-header h2 {
        font-size: 1.75rem;
        padding: 1.5rem;
    }
    
    .tool-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 95%;
    }
    
    .compare-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .crontab-options {
        grid-template-columns: 1fr;
    }
    
    header {
        padding: 2.5rem 1rem;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    button {
        width: 100%;
        margin-right: 0;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .tool-header .tool-image {
        height: 180px;
    }
    
    .tool-header h2 {
        font-size: 1.5rem;
        padding: 1.25rem;
    }
    
    .tool-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 90%;
    }
    
    header h1 {
        font-size: 2.25rem;
    }
    
    .app-container {
        padding: 1rem;
        gap: 1rem;
    }
    
    .sidebar {
        padding: 1rem;
    }
    
    .sidebar-section ul {
        gap: 0.375rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .tool-header .tool-image {
        height: 160px;
    }
    
    .tool-header h2 {
        font-size: 1.375rem;
        padding: 1rem;
    }
    
    .tool-content {
        padding: 1.25rem;
    }
}

/* 世界时钟样式 */
.world-clock-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.world-clock-item {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.world-clock-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #667eea;
}

.world-clock-item h3 {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
}

.world-clock-time {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', Courier, monospace;
}

/* BMI、卡路里、健康年龄、育儿补贴结果样式 */
.bmi-results, .calorie-results, .health-age-results, .subsidy-results, .speed-results {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.bmi-results:hover, .calorie-results:hover, .health-age-results:hover, .subsidy-results:hover, .speed-results:hover {
    border-color: #667eea;
    box-shadow: var(--shadow-sm);
}

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

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}