:root {
            --bg-color: #121212;
            --key-base: #2a2a2a;
            --key-border: #444;
            --highlight: #00ff88;
            --accent-red: #ff4444;
            --active-color: #ffffff;
            --text-color: #e0e0e0;
            --tested-bg: #00552e; 
            --counter-color: #ffce00; 
            --info-blue: #4fc3f7; 
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            padding: 20px;
            overflow-x: hidden;
            user-select: none;
        }

        h1 { margin: 10px 0; font-weight: 300; letter-spacing: 1px; }
        
        /* 顶部统计栏 */
        .stats-bar {
            display: flex;
            gap: 30px;
            margin-bottom: 30px;
            font-family: monospace;
            background: #1e1e1e;
            padding: 10px 25px;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.4);
            align-items: center;
            border: 1px solid #333;
        }
        
        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }
        
        .stat-label { font-size: 0.7rem; color: #888; text-transform: uppercase; }
        .stat-value { color: var(--highlight); font-weight: bold; font-size: 1.2rem; }

        /* 重置按钮 */
        .btn-reset {
            background-color: var(--accent-red);
            color: white;
            border: none;
            padding: 8px 24px;
            border-radius: 6px;
            font-family: inherit;
            font-weight: bold;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
            letter-spacing: 1px;
            display: flex;
            align-items: center;
            height: 40px;
        }

        .btn-reset:hover {
            background-color: #ff6666;
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(255, 68, 68, 0.6);
        }

        .btn-reset:active { transform: scale(0.95); }

        /* --- 键盘容器 --- */
        .keyboard-container {
            display: flex;
            gap: 15px;
            background: #181818;
            padding: 20px;
            border-radius: 15px;
            border: 1px solid #333;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            max-width: 1200px;
            transform-origin: top center;
        }
        
        .main-section { display: flex; flex-direction: column; gap: 6px; }
        .row { display: flex; gap: 6px; }
        .control-section { display: flex; flex-direction: column; gap: 6px; justify-content: space-between; }
        .control-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
        .numpad-section { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }

        /* 按键样式 */
        .key {
            width: 50px;
            height: 50px;
            background: var(--key-base);
            border: 1px solid var(--key-border);
            border-radius: 6px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            font-size: 0.8rem;
            transition: all 0.05s; 
            color: #aaa;
            position: relative; 
        }

        .key small { font-size: 0.6rem; opacity: 0.6; margin-top: 2px; }

        .key.active {
            background: var(--active-color) !important;
            color: #000 !important;
            transform: translateY(2px);
            box-shadow: 0 0 15px rgba(255,255,255,0.5);
            border-color: #fff;
        }

        .key.tested {
            background: var(--tested-bg);
            color: var(--highlight);
            border-color: var(--highlight);
        }

        .key-counter {
            position: absolute;
            top: 2px;
            right: 4px;
            font-size: 0.6rem;
            color: var(--counter-color);
            font-weight: bold;
            font-family: monospace;
            opacity: 0; 
        }
        .key.tested .key-counter { opacity: 1; }

        /* 宽度辅助类 */
        .w-1-5 { width: 78px; } 
        .w-1-75 { width: 92px; } 
        .w-2 { width: 106px; } 
        .w-2-25 { width: 120px; } 
        .w-2-75 { width: 148px; } 
        .w-6-25 { width: 346px; } 
        .h-2 { height: 106px; grid-row: span 2; } 

        /* --- 底部信息面板 (修改为4列) --- */
        .info-panel {
            margin-top: 30px;
            width: 700px; 
            background: #1e1e1e;
            padding: 15px;
            border-radius: 8px;
            font-family: monospace;
            display: grid;
            grid-template-columns: repeat(4, 1fr); 
            gap: 10px;
            text-align: center;
        }
        .info-box {
            position: relative;
        }
        /* 给右边加个分隔线，除了最后一个 */
        .info-box:not(:last-child)::after {
            content: '';
            position: absolute;
            right: -5px;
            top: 10%;
            height: 80%;
            width: 1px;
            background: #333;
        }

        .info-box div:first-child { color: #777; font-size: 0.8rem; margin-bottom: 5px; }
        .info-box div:last-child { color: var(--highlight); font-size: 1.2rem; }
        
        /* 单独给时间数据显示蓝色 */
        #info-time { color: var(--info-blue) !important; }

        @media (max-width: 1000px) {
            .keyboard-container { transform: scale(0.7); margin-top: -50px; }
        }
       
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

     /* style.css 或新创建的 seo-optimizations.css */

/* 引导性内容样式 */
.intro-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 5px solid #4CAF50;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.intro-section p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.intro-section strong {
    color: #4CAF50;
    font-weight: 600;
}

.keyboard-types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.keyboard-type-tag {
    display: inline-block;
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    padding: 8px 16px;
    margin: 5px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.keyboard-type-tag:hover {
    background: rgba(76, 175, 80, 0.25);
    transform: translateY(-2px);
}

/* 相关工具样式 */
.related-tools {
    margin: 50px 0 30px;
    padding: 35px;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border-radius: 15px;
    border: 1px solid #333;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.related-tools h2 {
    color: #fff;
    font-size: 1.8em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-tools h2 i {
    color: #4CAF50;
    font-size: 1.2em;
}

.related-tools > p {
    color: #aaa;
    font-size: 1.05em;
    margin-bottom: 25px;
    max-width: 800px;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.related-tool-card {
    background: #2a2a2a;
    padding: 25px;
    border-radius: 10px;
    text-decoration: none;
    color: #ddd;
    transition: all 0.3s ease;
    display: block;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.related-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #2196F3);
}

.related-tool-card:hover {
    transform: translateY(-8px);
    background: #303030;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: #444;
}

.related-tool-card i {
    font-size: 2.5em;
    color: #4CAF50;
    margin-bottom: 15px;
    display: block;
}

.related-tool-card h3 {
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: 600;
}

.related-tool-card p {
    color: #aaa;
    font-size: 0.95em;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .intro-section {
        padding: 20px;
    }
    
    .keyboard-types {
        justify-content: center;
    }
    
    .keyboard-type-tag {
        padding: 6px 12px;
        font-size: 0.85em;
    }
    
    .related-tools {
        padding: 25px 20px;
        margin: 40px 0 20px;
    }
    
    .related-tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-tool-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .intro-section {
        padding: 15px;
    }
    
    .keyboard-type-tag {
        padding: 5px 10px;
        font-size: 0.8em;
    }
    
    .related-tools {
        padding: 20px 15px;
    }
}