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

:root {
    --primary-color: #667eea;
    --primary-color-rgb: 102, 126, 234;
    --secondary-color: #764ba2;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
}

body.word-theme {
    --primary-color: #2b579a;
    --primary-color-rgb: 43, 87, 154;
    --secondary-color: #1e3f6d;
    --gradient-start: #2b579a;
    --gradient-end: #1e3f6d;
}

body.excel-theme {
    --primary-color: #217346;
    --primary-color-rgb: 33, 115, 70;
    --secondary-color: #185a36;
    --gradient-start: #217346;
    --gradient-end: #185a36;
}

body.powerpoint-theme {
    --primary-color: #d24726;
    --primary-color-rgb: 210, 71, 38;
    --secondary-color: #a6381e;
    --gradient-start: #d24726;
    --gradient-end: #a6381e;
}

body.photoshop-theme {
    --primary-color: #31a8ff;
    --primary-color-rgb: 49, 168, 255;
    --secondary-color: #2a8cd9;
    --gradient-start: #31a8ff;
    --gradient-end: #2a8cd9;
}

@font-face {
    font-family: 'AmdoClassic';
    src: url('AmdoClassic4.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'AmdoClassic', 'KaiTi', '楷体', 'STKaiti', 'Microsoft Himalaya', 'Tibetan Machine Uni', 'Tibetan Web', 'Jomolhari', sans-serif;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
    transition: background 0.5s ease;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    transition: background 0.5s ease;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'AmdoClassic', 'Microsoft Himalaya', 'Tibetan Machine Uni', 'Tibetan Web', 'Jomolhari', sans-serif;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    font-weight: 300;
    font-family: 'KaiTi', '楷体', 'STKaiti', 'SimSun', '宋体', serif;
}

.search-box {
    padding: 30px 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
}

.search-box input {
    width: 100%;
    max-width: 600px;
    padding: 15px 25px;
    font-size: 1.1em;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}

.tabs {
    display: flex;
    background: #f8f9fa;
    padding: 0 20px;
    gap: 5px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 18px 20px;
    font-size: 1em;
    font-weight: 600;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    border-bottom: 3px solid transparent;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.tab-btn:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: white;
}

.tab-content {
    padding: 30px 20px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shortcut-table {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.shortcut-table thead {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    transition: background 0.5s ease;
}

.shortcut-table th {
    padding: 15px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1.05em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shortcut-table th:first-child {
    width: 28%;
}

.shortcut-table th:nth-child(2) {
    width: 36%;
    font-family: 'AmdoClassic', 'Microsoft Himalaya', 'Tibetan Machine Uni', 'Tibetan Web', 'Jomolhari', sans-serif;
    font-size: 1.1em;
}

.shortcut-table th:nth-child(3) {
    width: 36%;
    font-family: 'KaiTi', '楷体', 'STKaiti', 'SimSun', '宋体', serif;
    font-size: 1.05em;
}

.shortcut-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
}

.shortcut-table tbody tr:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    transform: scale(1.01);
}

.shortcut-table td {
    padding: 18px 15px;
    font-size: 1em;
    text-align: center;
    vertical-align: middle;
}

.shortcut-table td:first-child {
    padding: 18px 10px;
}

.shortcut-table td:nth-child(2),
.shortcut-table td:nth-child(3) {
    line-height: 1.6;
}

.shortcut-table td:nth-child(2) {
    font-family: 'AmdoClassic', 'Microsoft Himalaya', 'Tibetan Machine Uni', 'Tibetan Web', 'Jomolhari', sans-serif;
    font-size: 1.05em;
}

.shortcut-table td:nth-child(3) {
    font-family: 'KaiTi', '楷体', 'STKaiti', 'SimSun', '宋体', serif;
    font-size: 1em;
}

.shortcut {
    font-family: 'Consolas', 'Monaco', monospace;
    background: linear-gradient(180deg, #ffffff 0%, #e6e6e6 50%, #cccccc 100%);
    color: #333;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    display: inline-block;
    border: 1px solid #999;
    border-bottom: 4px solid #666;
    border-right: 3px solid #888;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.1s ease;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

.shortcut:hover {
    background: linear-gradient(180deg, var(--gradient-start) 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 8px rgba(var(--primary-color-rgb), 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.shortcut:active {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--gradient-start) 100%);
    border-bottom: 2px solid #666;
    border-right: 2px solid #888;
    transform: translateY(2px);
    box-shadow: 
        0 2px 3px rgba(var(--primary-color-rgb), 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.shortcut-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.shortcut-table tbody tr:nth-child(even):hover {
    background: rgba(102, 126, 234, 0.15);
}

footer {
    background: #f8f9fa;
    padding: 25px;
    text-align: center;
    color: #666;
    font-size: 0.95em;
    border-top: 2px solid #e0e0e0;
}

.hidden {
    display: none !important;
}

.no-results {
    text-align: center;
    padding: 50px 20px;
    color: #999;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1em;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-btn {
        padding: 15px 20px;
        text-align: left;
        justify-content: flex-start;
    }

    .shortcut-table {
        width: 95%;
        font-size: 0.9em;
    }

    .shortcut-table th,
    .shortcut-table td {
        padding: 10px 8px;
    }

    .shortcut {
        font-size: 0.85em;
        padding: 8px 14px;
        border-bottom: 3px solid #666;
        border-right: 2px solid #888;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    header {
        padding: 30px 15px;
    }

    header h1 {
        font-size: 1.5em;
    }

    .shortcut-table {
        width: 98%;
        font-size: 0.8em;
    }

    .shortcut-table th,
    .shortcut-table td {
        padding: 8px 6px;
    }

    .shortcut {
        font-size: 0.75em;
        padding: 6px 12px;
        border-bottom: 2px solid #666;
        border-right: 2px solid #888;
    }
}