/* ===== AI 安装入口页专属样式 ===== */

/* Active nav link */
.nav-active {
    color: #2c8e6c !important;
    font-weight: 700 !important;
}

/* Hero - AI 主题 */
.ai-hero {
    background: linear-gradient(135deg, #1a3a4a 0%, #2c8e6c 40%, #27ae60 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.ai-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.ai-hero h2 {
    font-size: 48px;
    margin-bottom: 16px;
}

.ai-hero-desc {
    font-size: 20px;
    margin-bottom: 36px;
    opacity: 0.9;
    line-height: 1.7;
}

.ai-hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.ai-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.18);
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 15px;
}

.ai-feature-item .ai-feature-icon {
    font-size: 20px;
}

/* Manifest banner */
.manifest-banner {
    background: #fff;
    border: 2px solid #2c8e6c;
    border-radius: 12px;
    padding: 16px 24px;
    max-width: 700px;
    margin: 0 auto 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(44,142,108,0.15);
}

.manifest-banner-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.manifest-banner-text {
    flex: 1;
    min-width: 0;
}

.manifest-banner-text strong {
    display: block;
    color: #2c8e6c;
    font-size: 15px;
    margin-bottom: 4px;
}

.manifest-banner-text p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.manifest-banner-text code {
    background: #f0f9f4;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 12px;
    color: #2c8e6c;
}

.manifest-banner .btn-sm {
    flex-shrink: 0;
}

/* Component cards */
.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.component-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.component-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.component-card.required-card {
    border-left: 4px solid #2c8e6c;
}

.component-card.optional-card {
    border-left: 4px solid #6c8fb3;
}

.component-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.component-card-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.component-card-header h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.component-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.component-badge.required {
    background: #f0f9f4;
    color: #2c8e6c;
}

.component-badge.optional {
    background: #e8f0f8;
    color: #4a7cb5;
}

.component-card-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.component-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

.component-card-meta span {
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

.component-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.component-card-actions .btn-sm {
    font-size: 13px;
    padding: 8px 18px;
}

.btn-sm.outline {
    background: transparent;
    color: #2c8e6c;
    border: 1px solid #2c8e6c;
}

.btn-sm.outline:hover {
    background: #f0f9f4;
}

/* CLI section */
.cli-section {
    max-width: 900px;
    margin: 0 auto;
}

.cli-intro {
    text-align: center;
    color: #666;
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.7;
}

.cli-command-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 12px;
}

.cli-command-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px 18px;
    transition: border-color 0.2s;
}

.cli-command-item:hover {
    border-color: #2c8e6c;
}

.cli-command-item code {
    background: #1e1e1e;
    color: #83d483;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cli-command-item .cli-desc {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

/* MCP section */
.mcp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.mcp-tool-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px 24px;
    transition: box-shadow 0.2s;
}

.mcp-tool-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.mcp-tool-card h4 {
    color: #2c8e6c;
    font-size: 15px;
    margin-bottom: 8px;
    font-family: Consolas, "Courier New", monospace;
}

.mcp-tool-card p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

/* How it works section */
.how-works-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.how-step {
    text-align: center;
    padding: 30px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.how-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #2c8e6c;
    color: #fff;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.how-step h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.how-step p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.how-step code {
    display: inline-block;
    background: #1e1e1e;
    color: #83d483;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    margin-top: 12px;
}

/* Docs section */
.docs-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.doc-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 28px;
    text-align: center;
    transition: box-shadow 0.3s;
}

.doc-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.doc-card-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.doc-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.doc-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Download placeholder page */
.dl-placeholder {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.dl-placeholder-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.dl-placeholder h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 12px;
}

.dl-placeholder p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.dl-placeholder .meta-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.dl-placeholder .meta-table th,
.dl-placeholder .meta-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.dl-placeholder .meta-table th {
    color: #888;
    font-weight: 500;
    width: 120px;
}

.dl-placeholder .meta-table td {
    color: #333;
}

.dl-placeholder .meta-table code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .ai-hero h2 {
        font-size: 30px;
    }

    .ai-hero-desc {
        font-size: 16px;
    }

    .ai-hero-features {
        flex-direction: column;
        align-items: center;
    }

    .component-grid {
        grid-template-columns: 1fr;
    }

    .how-works-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .mcp-grid {
        grid-template-columns: 1fr;
    }

    .docs-cards {
        grid-template-columns: 1fr;
    }

    .manifest-banner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ai-hero h2 {
        font-size: 24px;
    }

    .ai-hero-desc {
        font-size: 14px;
    }

    .component-card-actions {
        flex-direction: column;
    }

    .component-card-actions .btn-sm {
        text-align: center;
    }

    .cli-command-item {
        flex-direction: column;
        gap: 8px;
    }
}
