/* ===== CTA 组件样式 ===== */

/* 文中横幅CTA */
.iaap-cta-inline {
    margin: 2rem 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
    border: 1px solid rgba(37, 99, 235, 0.12);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.iaap-cta-inline:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
}

.iaap-cta-inline-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.iaap-cta-inline-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.iaap-cta-inline-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.iaap-cta-inline-hook {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
}

.iaap-cta-inline-sub {
    font-size: 0.8rem;
    color: #64748b;
}

.iaap-cta-inline-btn {
    flex-shrink: 0;
    padding: 0.5rem 1.25rem;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.iaap-cta-inline-btn:hover {
    background: #1d4ed8;
}

/* 文末卡片CTA */
.iaap-cta-end {
    margin: 3rem auto 1rem;
    max-width: 800px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.iaap-cta-end-main {
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.iaap-cta-end-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.iaap-cta-end-icon {
    font-size: 2.5rem;
}

.iaap-cta-end-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: #fff;
}

.iaap-cta-end-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.iaap-cta-end-btn {
    flex-shrink: 0;
    padding: 0.75rem 2rem;
    background: #2563eb;
    color: #fff;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.iaap-cta-end-btn:hover {
    background: #3b82f6;
    transform: scale(1.03);
}

.iaap-cta-end-services {
    padding: 1.25rem 2rem;
    border-top: 1px solid #e2e8f0;
}

.iaap-cta-end-services-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem;
}

.iaap-cta-end-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.iaap-cta-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
    gap: 0.25rem;
}

.iaap-cta-service-item:hover {
    background: #f8fafc;
}

.iaap-cta-service-icon {
    font-size: 1.5rem;
}

.iaap-cta-service-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a2e;
}

.iaap-cta-service-desc {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ===== CSS动态封面卡片 ===== */

/* 分类色彩配置 */
.article-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* 分类渐变背景 */
.article-cover[data-category="cost"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-cover[data-category="efficiency"] {
    background: linear-gradient(135deg, #17ead9 0%, #6078ea 100%);
}

.article-cover[data-category="conversion"] {
    background: linear-gradient(135deg, #f83600 0%, #f9d423 100%);
}

.article-cover[data-category="foreign-trade"] {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
}

/* 默认 */
.article-cover:not([data-category]) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* 装饰图案 */
.article-cover::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.article-cover::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

/* 封面内的分类图标 */
.article-cover-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 封面内的标题预览 */
.article-cover-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* 封面分类标签 */
.article-cover-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    z-index: 1;
    letter-spacing: 0.03em;
}

/* 有封面时的卡片样式调整 */
.article-card.has-cover {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid #e2e8f0;
}

.article-card.has-cover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.article-card.has-cover .article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card.has-cover .article-card-content {
    padding: 1.25rem;
}

.article-card.has-cover .article-title {
    font-size: 1rem;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.article-card.has-cover .article-excerpt {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

@media (max-width: 768px) {
    .iaap-cta-inline-content {
        flex-direction: column;
        text-align: center;
    }

    .iaap-cta-end-main {
        flex-direction: column;
        text-align: center;
    }

    .iaap-cta-end-header {
        flex-direction: column;
    }

    .iaap-cta-end-services-grid {
        grid-template-columns: 1fr;
    }

    .article-cover {
        aspect-ratio: 2 / 1;
    }
}