/**
 * 核心能力自定义区块样式
 *
 * @package Developer_Portfolio
 */

/* ============================================
   通用区块样式
   ============================================ */

.dp-block {
    padding: 60px 0;
    margin: 0;
}

.dp-block .block-section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1a1a2e;
    position: relative;
    padding-bottom: 15px;
}

.dp-block .block-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ============================================
   1. Hero 横幅
   ============================================ */

.hero-banner {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    overflow: hidden;
}

.hero-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(102, 126, 234, 0.75) 100%);
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hero-banner-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-banner-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   2. 核心优势列表
   ============================================ */

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.advantage-item {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon i {
    font-size: 24px;
    color: #fff;
}

.advantage-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.advantage-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   3. 技术参数表
   ============================================ */

.specs-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table tr:nth-child(even) {
    background: #fafbfc;
}

.spec-label {
    padding: 16px 24px;
    font-weight: 600;
    color: #1a1a2e;
    width: 35%;
    text-align: left;
    border-right: 1px solid #f0f0f0;
}

.spec-value {
    padding: 16px 24px;
    color: #555;
    text-align: left;
}

/* ============================================
   4. 流程步骤
   ============================================ */

.steps-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    left: 29px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.step-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.step-content {
    margin-left: 25px;
    padding-top: 10px;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.step-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   5. 应用场景
   ============================================ */

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.scenario-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.scenario-card:hover {
    transform: translateY(-5px);
}

.scenario-image {
    height: 200px;
    overflow: hidden;
}

.scenario-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.scenario-card:hover .scenario-image img {
    transform: scale(1.05);
}

.scenario-content {
    padding: 24px;
}

.scenario-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.scenario-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   6. 相关能力/产品
   ============================================ */

.related-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    color: #1a1a2e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.related-item-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    transform: translateX(5px);
}

.related-item-title {
    font-size: 15px;
    font-weight: 500;
}

.related-item-arrow {
    font-size: 18px;
    color: #667eea;
    transition: transform 0.3s ease;
}

.related-item-card:hover .related-item-arrow {
    transform: translateX(5px);
}

/* ============================================
   7. 客户证言
   ============================================ */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial-quote {
    margin-bottom: 20px;
}

.testimonial-quote i {
    font-size: 24px;
    color: #667eea;
    opacity: 0.5;
    margin-bottom: 10px;
}

.testimonial-quote p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.author-name {
    display: block;
    font-size: 15px;
    color: #1a1a2e;
    margin-bottom: 3px;
}

.author-info {
    font-size: 13px;
    color: #888;
}

/* ============================================
   8. FAQ 问答
   ============================================ */

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #fafbfc;
}

.faq-question.active {
    background: #f8f9ff;
    color: #667eea;
}

.faq-question-text {
    flex: 1;
}

.faq-toggle-icon {
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   响应式
   ============================================ */

@media (max-width: 768px) {
    .dp-block {
        padding: 40px 0;
    }

    .dp-block .block-section-title {
        font-size: 24px;
    }

    .hero-banner {
        min-height: 300px;
        padding: 60px 0;
    }

    .hero-banner-title {
        font-size: 28px;
    }

    .hero-banner-subtitle {
        font-size: 16px;
    }

    .advantages-grid,
    .scenarios-grid,
    .testimonials-grid,
    .related-items-grid {
        grid-template-columns: 1fr;
    }

    .steps-timeline::before {
        left: 19px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 16px;
    }

    .step-content {
        margin-left: 15px;
    }

    .spec-label,
    .spec-value {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ============================================
   编辑器内预览样式
   ============================================ */

.editor-styles-wrapper .dp-block {
    border: 1px dashed #ddd;
    padding: 20px;
    margin: 20px 0;
}
