/*
 * OpenClaw 一键部署页面样式
 * OpenClaw One-Click Deployment Page Styles
 */

/* 引入主样式文件中的变量 */
@import url('./style.css');

/* ==================
   核心特性区域
   ================== */
.features-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2f54eb, #5b7ff7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: linear-gradient(135deg, #2f54eb 0%, #5b7ff7 100%);
    transform: scale(1.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: #2f54eb;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    color: #ffffff;
    transform: rotateY(360deg);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.feature-description {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ==================
   模型展示区域
   ================== */
.model-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.model-card {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 2px solid #e8e8e8;
    transition: all 0.3s ease;
    position: relative;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #2f54eb;
}

.model-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #2f54eb;
}

.model-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.model-desc {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.model-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.model-badge.hot {
    background: #fef2f2;
    color: #ef4444;
}

.model-badge.recommend {
    background: #eff6ff;
    color: #2f54eb;
}

/* ==================
   使用步骤区域
   ================== */
.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.step-card {
    flex: 1;
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 2px solid #e8e8e8;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #2f54eb;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2f54eb, #5b7ff7);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(47, 84, 235, 0.3);
}

.step-icon {
    font-size: 3rem;
    color: #2f54eb;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.step-desc {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

.step-arrow {
    font-size: 2rem;
    color: #d1d5db;
    flex-shrink: 0;
}

/* ==================
   CTA区域
   ================== */
.cta-box {
    background: linear-gradient(135deg, #2f54eb 0%, #5b7ff7 100%);
    padding: 4rem 3rem;
    border-radius: 1.5rem;
    color: #ffffff;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: #ffffff;
    color: #2f54eb;
    border-color: #ffffff;
}

.cta-buttons .btn-primary:hover {
    background: #f3f4f6;
    border-color: #f3f4f6;
}

.cta-buttons .btn-outline-primary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.cta-buttons .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==================
   功能特性网格
   ================== */
.features-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* ==================
   响应式设计
   ================== */
@media (max-width: 1200px) {
    .features-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .model-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid-4,
    .features-grid-3,
    .model-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .steps-container {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .cta-box {
        padding: 3rem 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-desc {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .feature-card,
    .model-card,
    .step-card {
        padding: 1.5rem 1rem;
    }

    .feature-icon-wrapper {
        width: 64px;
        height: 64px;
    }

    .feature-icon {
        font-size: 2rem;
    }
}
