/* ============================================================
   home-page.css - 首页（Home）专属样式
   继承主站色彩体系，独立管理快捷键布局与卡片细节
   ============================================================ */

/* --- 首页 Hero 微调 --- */
.home-hero .toolkit-hero-icon {
    font-size: 4.2rem;
}

/* --- 快捷键区域容器 --- */
.shortcut-section {
    margin: 10px 0 20px;
}

.shortcut-grid-container {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

/* --- 左侧：信息卡片 --- */
.shortcut-info-card {
    flex: 0 0 200px;
    min-height: 240px;
    background: linear-gradient(145deg, #1a2a3a, #2a4a5a);
    border-radius: 16px;
    padding: 24px 18px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}

.shortcut-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.shortcut-info-card .card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.shortcut-info-card:hover .card-glow {
    opacity: 1;
}

.shortcut-info-card .info-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #e0e0e0;
}

.shortcut-info-card .info-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.shortcut-info-card h3 {
    font-size: 1.4rem;
    margin: 0 0 8px 0;
    color: #64b5f6;
}

.shortcut-info-card p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0 0 14px 0;
    line-height: 1.6;
}

.shortcut-info-card .info-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 30px;
    background: rgba(100, 181, 246, 0.15);
    border: 1px solid rgba(100, 181, 246, 0.15);
    color: #8bc4f0;
    letter-spacing: 0.5px;
}

/* --- 右侧：快捷键网格 --- */
.shortcut-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    min-width: 0;
}

/* --- 快捷键分组 --- */
.shortcut-group {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    padding: 16px 18px 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.shortcut-group:hover {
    border-color: rgba(52, 152, 219, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.shortcut-group.special-group {
    grid-column: 1 / -1;  /* 特殊快捷键占满整行 */
}

.group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #b0d4f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 10px;
}

.group-title .group-icon {
    font-size: 1.2rem;
}

.perm-badge {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 30px;
    background: rgba(139, 195, 74, 0.15);
    color: #8bc34a;
    border: 1px solid rgba(139, 195, 74, 0.1);
    margin-left: auto;
    letter-spacing: 0.3px;
}

.perm-badge.system {
    background: rgba(241, 196, 15, 0.12);
    color: #f0c27a;
    border-color: rgba(241, 196, 15, 0.08);
}

/* --- 快捷键列表 --- */
.shortcut-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shortcut-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.2s ease;
    color: #c8d8e8;
}

.shortcut-list li:hover {
    background: rgba(255, 255, 255, 0.04);
}

.shortcut-list kbd {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: monospace;
    color: #8bc4f0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 72px;
    text-align: center;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.shortcut-list .empty-placeholder {
    color: #666;
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.6;
}

.shortcut-list .recall-badge {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 1px 12px;
    border-radius: 30px;
    background: rgba(52, 152, 219, 0.15);
    color: #64b5f6;
    border: 1px solid rgba(52, 152, 219, 0.08);
    margin-left: auto;
}

.shortcut-list strong {
    color: #f0c27a;
}

/* --- 法律说明微调 --- */
.home-legal {
    margin-top: 12px;
    padding: 14px 24px;
}

.home-legal kbd {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: monospace;
    color: #8bc4f0;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- 八大核心中的首页高亮 --- */
.feature-card.active-card {
    border-color: rgba(52, 152, 219, 0.3);
    background: rgba(52, 152, 219, 0.06);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.05);
}

.feature-card.active-card::before {
    opacity: 1;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
}

body.light-theme .feature-card.active-card {
    border-color: rgba(41, 128, 185, 0.2);
    background: rgba(41, 128, 185, 0.04);
    box-shadow: 0 0 20px rgba(41, 128, 185, 0.06);
}

/* ============================================================
   亮色主题适配
   ============================================================ */
body.light-theme .shortcut-info-card {
    background: linear-gradient(145deg, #e8f0f8, #d0e0ec);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

body.light-theme .shortcut-info-card .info-content {
    color: #2c3e50;
}

body.light-theme .shortcut-info-card h3 {
    color: #2980b9;
}

body.light-theme .shortcut-info-card .info-tag {
    background: rgba(41, 128, 185, 0.06);
    border-color: rgba(41, 128, 185, 0.08);
    color: #2980b9;
}

body.light-theme .shortcut-group {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .shortcut-group:hover {
    border-color: rgba(41, 128, 185, 0.1);
    background: rgba(0, 0, 0, 0.03);
}

body.light-theme .group-title {
    color: #2c3e50;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .perm-badge {
    background: rgba(139, 195, 74, 0.08);
    color: #558b2f;
}

body.light-theme .perm-badge.system {
    background: rgba(241, 196, 15, 0.08);
    color: #b7950b;
}

body.light-theme .shortcut-list li {
    color: #333;
}

body.light-theme .shortcut-list li:hover {
    background: rgba(0, 0, 0, 0.03);
}

body.light-theme .shortcut-list kbd {
    background: rgba(0, 0, 0, 0.06);
    color: #2980b9;
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .shortcut-list .empty-placeholder {
    color: #999;
}

body.light-theme .shortcut-list .recall-badge {
    background: rgba(41, 128, 185, 0.06);
    color: #2980b9;
    border-color: rgba(41, 128, 185, 0.06);
}

body.light-theme .shortcut-list strong {
    color: #b7950b;
}

body.light-theme .home-legal kbd {
    background: rgba(0, 0, 0, 0.06);
    color: #2980b9;
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .feature-card.active-card {
    border-color: rgba(41, 128, 185, 0.2);
    background: rgba(41, 128, 185, 0.04);
}

/* ============================================================
   响应式适配
   ============================================================ */
@media (max-width: 820px) {
    .shortcut-grid-container {
        flex-direction: column;
        gap: 18px;
    }

    .shortcut-info-card {
        flex: 1 1 auto;
        min-height: 140px;
        padding: 20px;
    }

    .shortcut-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

@media (max-width: 600px) {
    .shortcut-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .shortcut-group.special-group {
        grid-column: 1;
    }

    .shortcut-group {
        padding: 14px 14px 12px;
    }

    .group-title {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .perm-badge {
        font-size: 0.55rem;
        padding: 1px 10px;
    }

    .shortcut-list li {
        font-size: 0.82rem;
        flex-wrap: wrap;
        gap: 6px;
    }

    .shortcut-list kbd {
        min-width: 60px;
        font-size: 0.7rem;
        padding: 1px 8px;
    }

    .shortcut-info-card {
        min-height: 120px;
        padding: 16px;
    }

    .shortcut-info-card .info-icon {
        font-size: 2.4rem;
    }

    .shortcut-info-card h3 {
        font-size: 1.2rem;
    }

    .shortcut-info-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .shortcut-list li {
        font-size: 0.75rem;
    }

    .shortcut-list kbd {
        min-width: 52px;
        font-size: 0.65rem;
        padding: 0 6px;
    }

    .shortcut-info-card p {
        font-size: 0.8rem;
    }

    .home-legal {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}