/* ============================================
   程序快捷键速查表 - 页面样式
   仅在使用该模板的页面自动加载
   ============================================ */

.shortcuts-page {
    padding: 2rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ---------- 头部区域 ---------- */
.shortcuts-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.shortcuts-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.shortcuts-header p {
    color: #334155;
    font-size: 1rem;
    max-width: 650px;
    margin: 0 auto;
}

.badge-note {
    display: inline-block;
    background: #e2e8f0;
    border-radius: 40px;
    padding: 0.25rem 0.9rem;
    font-size: 0.8rem;
    margin-top: 0.75rem;
    color: #1e293b;
}

.badge-note i {
    margin-right: 6px;
    font-size: 0.75rem;
    color: #3b82f6;
}

/* ---------- 搜索栏 ---------- */
.search-wrapper {
    background: white;
    border-radius: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    max-width: 550px;
    margin: 1.8rem auto 1rem auto;
    padding: 0.2rem 0.2rem 0.2rem 1.2rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.search-wrapper:focus-within {
    box-shadow: 0 6px 14px rgba(59,130,246,0.15);
    border-color: #3b82f6;
}

.search-wrapper i {
    color: #94a3b8;
    font-size: 1.1rem;
}

.search-wrapper input {
    flex: 1;
    border: none;
    padding: 0.85rem 0.8rem;
    font-size: 1rem;
    background: transparent;
    outline: none;
    font-weight: 500;
    color: #0f172a;
}

.search-wrapper input::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

.clear-search {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 12px;
    color: #94a3b8;
    transition: color 0.2s;
}

.clear-search:hover {
    color: #ef4444;
}

/* ---------- 统计信息 ---------- */
.stats {
    text-align: center;
    font-size: 0.85rem;
    color: #475569;
    margin: 0.5rem 0 1.8rem 0;
}

/* ---------- 卡片网格 ---------- */
.shortcut-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ---------- 程序卡片 ---------- */
.program-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.02);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s;
    border: 1px solid #eef2ff;
}

.program-card:hover {
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1);
}

.card-header {
    background: #f8fafc;
    padding: 1.2rem 1.8rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header i {
    font-size: 1.8rem;
    color: #3b82f6;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin: 0;
    color: #0f172a;
}

.card-header .program-sub {
    margin-left: auto;
    font-size: 0.75rem;
    background: #eef2ff;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    color: #2563eb;
}

/* ---------- 表格 ---------- */
.table-responsive {
    overflow-x: auto;
    padding: 0;
}

.shortcuts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 500px;
}

.shortcuts-table th {
    text-align: left;
    padding: 1rem 1.2rem;
    background-color: #ffffff;
    font-weight: 600;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.shortcuts-table td {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: top;
}

.shortcuts-table tr:last-child td {
    border-bottom: none;
}

.shortcuts-table tr:hover td {
    background-color: #fafcff;
}

/* ---------- kbd 键盘样式 ---------- */
kbd {
    display: inline-block;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 1px 0 #b9c3d0;
    font-family: 'SF Mono', 'Segoe UI Mono', 'Cascadia Code', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    margin: 0 2px;
    color: #0f172a;
    white-space: nowrap;
}

.shortcuts-table td kbd {
    background: #eef2ff;
    border-color: #b9d0f0;
    box-shadow: 0 1px 0 #9bb6da;
}

.key-combo {
    white-space: nowrap;
}

.desc-text {
    font-weight: 400;
    line-height: 1.4;
}

.small-note {
    font-size: 0.7rem;
    color: #6c86a3;
    display: inline-block;
    margin-left: 6px;
}

/* ---------- 空状态 / 隐藏 ---------- */
.hidden-section {
    display: none !important;
}

.no-result-message {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 2rem;
    margin: 1rem 0;
    color: #64748b;
}

/* ---------- 页脚 ---------- */
.shortcuts-footer {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.8rem;
    color: #5c6f8c;
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
}

/* ---------- 响应式 ---------- */
@media (max-width: 680px) {
    .shortcuts-page {
        padding: 1.2rem;
    }

    .shortcuts-header h1 {
        font-size: 1.6rem;
    }

    .card-header h2 {
        font-size: 1.2rem;
    }

    .shortcuts-table th,
    .shortcuts-table td {
        padding: 0.75rem 1rem;
    }

    kbd {
        font-size: 0.7rem;
        padding: 0.15rem 0.45rem;
    }
}
