.linux-commands-page {
    background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 100%);
}

.linux-commands-page .tool-header {
    text-align: center;
    margin-bottom: 32px;
}

.linux-commands-page .tool-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.linux-commands-page .tool-subtitle {
    max-width: 720px;
    margin: 0 auto 16px;
    color: #4b5563;
    line-height: 1.6;
}

.linux-commands-page .tool-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.linux-commands-page .tool-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.95rem;
}

.linux-commands-page .tool-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.command-search {
    background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 36px;
    box-shadow: 0 24px 48px rgba(30, 64, 175, 0.3);
}

.command-search-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}

.command-search-subtitle {
    margin-top: 8px;
    max-width: 640px;
    opacity: 0.92;
    line-height: 1.55;
}

.command-search-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.command-search-controls {
    margin-bottom: 20px;
}

.command-search-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    opacity: 0.85;
}

.command-search-input {
    display: flex;
    gap: 12px;
    align-items: center;
}

.command-search-input input {
    flex: 1;
    border-radius: 12px;
    border: none;
    padding: 14px 18px;
    font-size: 1rem;
    color: #111827;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 1px 4px rgba(15, 23, 42, 0.12);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.command-search-input input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.command-search-input .ghost-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.command-search-input .ghost-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.command-search-help {
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.command-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.command-filter-chip {
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.command-filter-chip:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.24);
}

.command-filter-chip.is-active {
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.command-table-section {
    margin-bottom: 40px;
}

.command-table-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.command-table-header h2 {
    font-size: 1.8rem;
    color: #1f2937;
}

.command-table-header p {
    color: #4b5563;
    font-size: 0.95rem;
}

.command-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.command-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    table-layout: fixed;
}

.command-table thead {
    background: #f3f4f6;
}

.command-table th,
.command-table td {
    padding: 16px 20px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e5e7eb;
}

.command-table th {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.command-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
}

.command-name {
    width: 200px;
}

.command-description {
    width: 32%;
}

.command-syntax {
    width: 28%;
}

.command-actions {
    width: 120px;
    min-width: 120px;
}

.command-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #1d4ed8;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1.05rem;
}

.command-toggle .toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.command-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(90deg);
}

.command-name-text {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.05rem;
}

.command-name-plain {
    padding-left: 6px;
}

.command-category {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.command-syntax code {
    display: inline-block;
    background: #111827;
    color: #f9fafb;
    padding: 8px 12px;
    border-radius: 10px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    white-space: nowrap;
}

.command-actions .command-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    min-width: 88px;
    white-space: nowrap;
    z-index: 1;
    position: relative;
}

.command-actions .command-copy:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.23);
}

.command-actions .command-copy.is-copied {
    background: #10b981;
    border-color: #059669;
}

.command-details-row {
    background: #f9fafb;
}

.command-details-row td {
    border-bottom: 1px solid #e5e7eb;
}

.command-details {
    display: grid;
    gap: 18px;
    padding: 10px 4px 6px;
}

.command-parameter-group h4 {
    font-size: 0.95rem;
    color: #1f2937;
    margin-bottom: 8px;
}

.command-parameter-group ul {
    margin: 0;
    padding-left: 16px;
    color: #4b5563;
    line-height: 1.55;
    display: grid;
    gap: 6px;
}

.command-parameter-group li {
    position: relative;
}

.command-parameter-group li::marker {
    color: #2563eb;
}

.command-empty-row td {
    text-align: center;
    padding: 28px 16px;
    color: #6b7280;
    font-size: 0.95rem;
}

.command-faq {
    margin-top: 40px;
}

.command-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.command-faq-card {
    background: #f9fafb;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.command-faq-card h3 {
    margin-bottom: 12px;
    color: #1f2937;
    font-size: 1.1rem;
}

.command-faq-card p {
    color: #4b5563;
    line-height: 1.6;
}

/* 底部推荐工具样式 */
.bottom-recommendations {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #e5e7eb;
    clear: both;
}

.bottom-recommendations .sidebar-compact {
    margin-bottom: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
}

@media (max-width: 1024px) {
    .linux-commands-page .tool-content {
        padding: 24px;
    }

    .command-table {
        min-width: 580px;
    }
}

@media (max-width: 768px) {
    .linux-commands-page .tool-header h1 {
        font-size: 2rem;
    }

    .command-search {
        padding: 24px;
    }

    .command-search-input {
        flex-direction: column;
        align-items: stretch;
    }

    .command-search-input .ghost-btn {
        width: 100%;
        justify-content: center;
    }

    .command-filter-chips {
        gap: 8px;
    }

    .command-filter-chip {
        padding: 8px 14px;
        font-size: 0.9rem;
    }

    .command-table-wrapper {
        border-radius: 12px;
    }

    .command-syntax code {
        white-space: normal;
        word-break: break-all;
    }
}

@media (max-width: 480px) {
    .linux-commands-page .tool-content {
        padding: 20px;
    }

    .command-table {
        min-width: 520px;
    }

    .command-faq-grid {
        grid-template-columns: 1fr;
    }
}
