/* Git 命令页面整体样式 */
.git-commands-page {
    background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 100%);
}

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

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

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

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

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

/* 全宽布局 */
.git-commands-page .tool-content.full-width {
    max-width: 1200px;
    margin: 0 auto;
}

/* 工具介绍卡片样式 */
.git-commands-page .weather-info-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.git-commands-page .weather-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.git-commands-page .weather-info-card.info-card {
    text-align: left;
    color: white;
    border: none;
}

/* 为不同卡片设置不同的渐变背景色 */
.git-commands-page .weather-info-card.info-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.git-commands-page .weather-info-card.info-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.git-commands-page .weather-info-card.info-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.git-commands-page .weather-info-card.info-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.git-commands-page .weather-info-card.info-card:nth-child(5) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.git-commands-page .weather-info-card.info-card:nth-child(6) {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.git-commands-page .weather-info-card.info-card:nth-child(7) {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.git-commands-page .weather-info-card.info-card:nth-child(8) {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d3 100%);
}

.git-commands-page .weather-info-card.info-card:nth-child(9) {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.git-commands-page .weather-info-card.info-card:nth-child(10) {
    background: linear-gradient(135deg, #08aeea 0%, #2af598 100%);
}

.git-commands-page .weather-info-card.info-card h3 {
    text-align: center;
    color: white;
    font-size: 1.4em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.git-commands-page .weather-info-card.info-card h3 span {
    font-size: 1.2em;
}

.git-commands-page .weather-info-card.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.git-commands-page .weather-info-card.info-card li {
    background: rgba(255,255,255,0.1);
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 4px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.git-commands-page .weather-info-card.info-card li:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

.git-commands-page .weather-info-card.info-card li strong {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.git-commands-page .weather-info-card.info-card p {
    background: rgba(255,255,255,0.1);
    padding: 16px;
    border-radius: 8px;
    line-height: 1.6;
    margin: 0;
    backdrop-filter: blur(10px);
}

.git-commands-page .weather-info-card h3 {
    margin-top: 0;
    color: #555;
}

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

/* 移除原来的侧边栏布局样式 */
/* .git-commands-page .tool-layout {...} */
/* .git-commands-page .tool-main {...} */
/* .git-commands-page .tool-sidebar > div {...} */

.git-commands-page .git-search-section {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 24px 48px rgba(37, 99, 235, 0.28);
    margin-bottom: 36px;
}

.git-commands-page .git-search-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.git-commands-page .git-search-subtitle {
    opacity: 0.9;
    margin-top: 8px;
    line-height: 1.5;
}

.git-commands-page .git-search-stats {
    display: flex;
    align-items: flex-start;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.git-commands-page .git-search-controls {
    margin-bottom: 20px;
}

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

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

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

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

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

.git-commands-page .git-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.git-commands-page .git-filter-chip:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.22);
}

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

.git-commands-page .git-no-result {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.15);
    font-size: 0.95rem;
}

.git-commands-page .git-section {
    margin-bottom: 40px;
}

.git-commands-page .git-section.is-collapsed {
    display: none;
}

.git-commands-page .git-section-header h2 {
    font-size: 1.6rem;
    color: #1f2937;
    margin-bottom: 8px;
}

.git-commands-page .git-section-header p {
    color: #4b5563;
    margin-bottom: 24px;
    line-height: 1.6;
}

.git-commands-page .git-command-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.git-commands-page .git-command-card {
    background: #f9fafb;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.git-commands-page .git-command-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    border-color: rgba(37, 99, 235, 0.2);
}

.git-commands-page .git-command-card .git-command-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.git-commands-page .git-command-card .git-command-text {
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-weight: 600;
    color: #1d4ed8;
    font-size: 1rem;
    word-break: break-all;
}

.git-commands-page .git-command-card .git-command-description {
    margin: 0;
    color: #374151;
    line-height: 1.6;
    font-size: 0.95rem;
}

.git-commands-page .git-workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.git-commands-page .git-workflow-step {
    position: relative;
    background: linear-gradient(120deg, #f9fafb 0%, #eef2ff 100%);
    border-radius: 18px;
    padding: 18px 20px 18px 64px;
    border: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: 0 16px 32px rgba(99, 102, 241, 0.12);
}

.git-commands-page .git-workflow-order {
    position: absolute;
    left: 24px;
    top: 20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #4338ca;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(67, 56, 202, 0.25);
}

.git-commands-page .git-workflow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.git-commands-page .git-workflow-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1f2937;
}

.git-commands-page .git-workflow-body p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.git-commands-page .git-workflow-body code {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.92rem;
}

.git-commands-page .git-notes {
    background: #f8fafc;
    border-radius: 18px;
    padding: 26px 24px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.05);
}

.git-commands-page .git-notes h2 {
    margin-bottom: 18px;
    font-size: 1.5rem;
    color: #1f2937;
}

.git-commands-page .git-notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.git-commands-page .git-note-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 12px 28px rgba(148, 163, 184, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.git-commands-page .git-note-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(148, 163, 184, 0.26);
}

.git-commands-page .git-note-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #1f2937;
}

.git-commands-page .git-note-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.git-commands-page .btn {
    font-weight: 600;
    border-radius: 12px;
    padding: 10px 16px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.git-commands-page .btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.git-commands-page .btn.ghost-btn {
    background: rgba(255, 255, 255, 0.24);
    color: #1f2937;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.25);
}

.git-commands-page .btn.ghost-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.4);
}

.git-commands-page .btn.tertiary-btn {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
}

.git-commands-page .btn.tertiary-btn:hover {
    transform: translateY(-1px);
    background: rgba(37, 99, 235, 0.16);
}

.git-commands-page .git-command-card.is-hidden,
.git-commands-page .git-workflow-step.is-hidden {
    display: none !important;
}

/* 响应式布局优化 */
@media (max-width: 1200px) {
    .git-commands-page .tool-content.full-width {
        max-width: 100%;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .git-commands-page .tool-content {
        padding: 24px 20px;
    }

    .git-commands-page .weather-info-card {
        padding: 20px;
        margin: 20px 0;
    }

    .git-commands-page .git-search-section {
        padding: 24px;
    }

    .git-commands-page .git-command-list {
        grid-template-columns: 1fr;
    }

    .git-commands-page .git-workflow-step {
        padding-left: 56px;
    }

    .git-commands-page .git-workflow-order {
        left: 18px;
    }
}
