/**
 * 行业应用详情页前台样式
 * 
 * @package Developer_Portfolio
 */

/* ============================================================
 *  整体布局
 * ============================================================ */

.industry-sections {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.industry-section {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
}

.industry-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3b82f6;
}

/* ============================================================
 *  行业概览
 * ============================================================ */

.industry-section--overview {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
}

.industry-overview-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
}

.industry-overview-content p {
    margin: 0 0 1rem 0;
}

.industry-market-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.industry-stat-item {
    flex: 1;
    text-align: center;
}

.industry-stat-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.industry-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
}

/* ============================================================
 *  驱动因素/挑战/趋势
 * ============================================================ */

.industry-section--analysis {
    background: #fff;
    border: 1px solid #e5e7eb;
}

.industry-analysis-block {
    margin-bottom: 1.5rem;
}

.industry-analysis-block:last-child {
    margin-bottom: 0;
}

.industry-analysis-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1rem 0;
}

.industry-analysis-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.industry-analysis-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: #f3f4f6;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.industry-analysis-list li strong {
    display: block;
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.industry-analysis-list li span {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
}

/* ============================================================
 *  视频展示
 * ============================================================ */

.industry-section--video {
    background: #000;
    padding: 0;
    overflow: hidden;
}

.industry-section--video .industry-section-title {
    padding: 1.5rem;
    margin: 0;
    border-bottom: none;
    color: #fff;
    border-bottom: 2px solid #3b82f6;
}

.industry-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.industry-video-wrapper video,
.industry-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================================
 *  结构化卡片（痛点/方案/功能）
 * ============================================================ */

.industry-structured-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.industry-structured-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.industry-structured-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.industry-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 8px;
    color: #fff;
}

.industry-card-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.industry-card-content {
    flex: 1;
    min-width: 0;
}

.industry-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.industry-card-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

/* ============================================================
 *  关联文章网格
 * ============================================================ */

.industry-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.industry-related-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.industry-related-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.industry-related-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.industry-related-body {
    padding: 1rem;
}

.industry-related-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.industry-related-excerpt {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6b7280;
    margin: 0;
}

/* ============================================================
 *  产品角色说明
 * ============================================================ */

.industry-product-role {
    margin-top: 1rem;
    padding: 1rem;
    background: #fef3c7;
    border-radius: 6px;
    border-left: 3px solid #f59e0b;
}

.industry-product-role p {
    margin: 0;
    color: #78350f;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================================
 *  成功案例
 * ============================================================ */

.industry-success-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.industry-success-list li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #fff;
    border-radius: 6px;
    border-left: 3px solid #10b981;
}

.industry-success-list li strong {
    display: block;
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.industry-success-list li span {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
}

/* ============================================================
 *  认证与资质
 * ============================================================ */

.industry-cert-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.industry-cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    text-align: center;
}

.industry-cert-image {
    max-width: 80px;
    max-height: 80px;
    margin-bottom: 0.75rem;
    object-fit: contain;
}

.industry-cert-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.industry-cert-name {
    font-size: 0.9375rem;
    color: #1f2937;
}

.industry-cert-desc {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* ============================================================
 *  资料下载
 * ============================================================ */

.industry-download-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.industry-download-item {
    margin-bottom: 0.5rem;
}

.industry-download-item a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.industry-download-item a:hover {
    background: #f3f4f6;
}

.industry-download-item a::before {
    content: "\f346";
    font-family: dashicons;
    font-size: 1.25rem;
    color: #3b82f6;
    margin-right: 0.75rem;
}

.industry-download-title {
    font-size: 0.9375rem;
    color: #1f2937;
}

/* ============================================================
 *  响应式适配
 * ============================================================ */

@media (max-width: 768px) {
    .industry-section {
        padding: 1rem;
    }
    
    .industry-section-title {
        font-size: 1.25rem;
    }
    
    .industry-market-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .industry-structured-cards {
        grid-template-columns: 1fr;
    }
    
    .industry-related-grid {
        grid-template-columns: 1fr;
    }
    
    .industry-cert-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .industry-section {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .industry-structured-card {
        flex-direction: column;
        text-align: center;
    }
    
    .industry-card-icon {
        margin: 0 auto;
    }
    
    .industry-cert-list {
        grid-template-columns: 1fr;
    }
}
