/* ============================================================
   Affiliate / Sponsored Ad Slots — CorporateCodes
   ============================================================ */

/* ── Slot container ── */
.cc-affiliate-slot {
    margin: 24px 0;
    padding: 0;
}

.cc-slot-heading {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8e8e8;
}

/* ── Grid layouts ── */
.cc-slot-grid {
    display: grid;
    gap: 16px;
}

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

.cc-slot-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 自适应宽度：数量不定时铺满容器，最多3个 */
.cc-slot-grid-auto.cc-slot-cols-1 {
    grid-template-columns: 1fr;
}
.cc-slot-grid-auto.cc-slot-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}
.cc-slot-grid-auto.cc-slot-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 960px) {
    .cc-slot-grid-auto.cc-slot-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cc-slot-grid-auto.cc-slot-cols-2,
    .cc-slot-grid-auto.cc-slot-cols-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .cc-slot-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .cc-slot-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cc-slot-grid-3,
    .cc-slot-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ── Ad label badge ── */
.cc-ad-label {
    display: inline-block;
    font-size: 10px;
    color: #999;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1.4;
    letter-spacing: .04em;
}

/* ── Base ad card ── */
.cc-ad {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4e4e4;
    transition: box-shadow .2s, transform .2s;
}

.cc-ad:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

/* ── Travelpayouts widget ──
   widget-clean：无标题、无边框、无背景色，纯展示小组件内容 */
.cc-ad-widget {
    padding: 0;
    background: transparent;
    border: none;
}

.cc-ad-widget-clean {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    overflow: visible;
}

/* ── Travelpayouts link card ── */
.cc-ad-link-inner {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    gap: 12px;
}

.cc-ad-link-inner:hover {
    text-decoration: none;
    color: inherit;
}

.cc-ad-text {
    flex: 1;
    min-width: 0;
}

.cc-ad-text strong {
    display: block;
    font-size: 14px;
    color: #1a73e8;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cc-ad-desc {
    display: block;
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

.cc-ad-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #1a73e8;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}

.cc-ad-link .cc-ad-label {
    position: absolute;
    bottom: 4px;
    right: 8px;
}

/* ── Amazon product card ── */
.cc-amz-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.cc-amz-link:hover {
    text-decoration: none;
    color: inherit;
}

.cc-amz-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cc-amz-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cc-amz-body {
    padding: 10px 12px 12px;
    flex: 1;
}

.cc-amz-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f1111;
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cc-amz-desc {
    font-size: 11px;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

.cc-ad-amazon .cc-ad-label {
    position: absolute;
    top: 4px;
    right: 6px;
}

/* ── Footer strip ── */
.cc-slot-global_footer_strip {
    margin: 0;
    padding: 0;
    background: #1d2130;
    border-top: 3px solid #1a73e8;
}

.cc-footer-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.cc-slot-global_footer_strip .cc-ad {
    border-color: transparent;
    background: transparent;
    min-width: 240px;
    flex: 1;
}

.cc-slot-global_footer_strip .cc-ad-text strong {
    color: #7eb8ff;
}

.cc-slot-global_footer_strip .cc-ad-desc {
    color: #aaa;
}

/* ── Top banner single ── */
.cc-slot-top_banner {
    margin: 0 0 20px 0;
}

.cc-slot-top_banner .cc-ad {
    background: #f0f7ff;
    border-radius:0;
}

/* ── Between brands (index) ── */
.cc-slot-index_between_brands {
    margin: 0 0 70px;
}

/* ── Index bottom products ── */
.cc-slot-index_bottom_products {
    margin: 24px 0;
}

/* ── List below table ── */
.cc-slot-list_below_table {
    margin: 20px 0;
}

/* ── List after slogan ── */
.cc-slot-list_after_slogan {
    margin: 0 0 20px;
}

/* ── Detail after code ── */
.cc-slot-detail_after_code {
    margin: 0 0 50px!important;
    padding: 20px;
    background: #f7f9fc;
    border: 1px solid #dde5ef;
    border-radius: 10px;
}

/* ── Detail before related ── */
.cc-slot-detail_before_related {
    margin: 20px 0;
}

/* ── Detail after more ── */
.cc-slot-detail_after_more {
    margin: 20px 0;
}

/* ── Blog content bottom ── */
.cc-slot-blog_content_bottom {
    margin: 28px 0 16px;
    padding: 16px;
    background: #fafafa;
    border-top: 2px dashed #ddd;
}

/* ── AdSense fallback / standalone units ── */
.cc-adsense-unit {
    margin: 20px 0;
    text-align: center;
}
.cc-adsense-unit ins.adsbygoogle {
    display: block !important;
    background: transparent !important;
}

/* ── AdSense 类型广告单元（通过广告位管理）──
   注意：不继承 .cc-ad 类，避免以下 AdSense 政策冲突：
   1. overflow:hidden 会裁剪响应式广告
   2. hover transform/box-shadow 可能诱导用户点击（违反政策）
   3. border/background 装饰性样式可能与广告混淆
── */
.cc-ad-adsense {
    overflow: visible;
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
        margin-top: 20px;
}
.cc-ad-adsense .cc-adsense-unit {
    margin: 0;
}
.cc-ad-adsense-label {
    font-size: 11px;
    color: #999;
    margin: 0 0 4px;
    text-align: left;
}

/* ── iframe 广告嵌入（Trip.com iframe 类型）──
   不继承 .cc-ad，避免 overflow:hidden 裁剪 iframe 内容
── */
.cc-ad-iframe {
    overflow: visible;
    text-align: center;
    margin: 8px 0;
}
.cc-ad-iframe-label {
    font-size: 11px;
    color: #999;
    margin: 0 0 4px;
    text-align: left;
}
.cc-ad-tripcom-iframe iframe {
    max-width: 100%;
    border: none;
    display: block;
    margin: 0 auto;
}

/* ── 图片广告（Trip.com 图片类型）──
   不使用 cc-ad 包裹，无边框无背景色，直接展示图片 */
.cc-ad-image {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    overflow: visible;
}
.cc-ad-tripcom-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: opacity .15s;
}
.cc-ad-tripcom-image a:hover img {
    opacity: .88;
}


.cc-slot-clean{
    background: transparent;
    border:0;
    padding:0;

}