:root {
    --brand-main: #6c5ce7;
    --brand-secondary: #a29bfe;
    --accent: #00cec9;
    --danger: #ff7675;
    --success: #55efc4;
    --info: #0984e3;
    --bg-dark: #0f172a;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "Nunito Sans";
    src: url("../fonts/nunito-sans-v19-latin-regular.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
}

body {
    background-color: #f8fafc;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: Nunito Sans, 'Helvetica Neue', Arial, sans-serif;
}
.container-width{
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.sponsored-promotions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; /* 强制不换行 */
    justify-content: space-around; /* 或者 space-between */
    align-items: stretch;
    gap: 12px;
    padding: 2px;
    background-color: #fdfdfd;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden; /* 保证内容不溢出 */
}
.sponsored-promotions > * {
    flex: 1 1 0; /* 关键：允许放大和缩小，初始宽度为 0 */
    min-width: 0;
}
/* 单个推广项卡片 */
.sponsored-promotions .promo-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}
/* 鼠标悬浮效果：提升推广感 */
.sponsored-promotions .promo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #ff4400; /* 悬浮时边框变色 */
}
/* 图片处理：强制比例对齐 */
.sponsored-promotions .promo-item img {
    width: 100%;
    aspect-ratio: 1 / 1; /* 强制正方形，电商经典比例 */
    object-fit: contain;
    display: block;
    border-bottom: 1px solid #f5f5f5;
    max-height: 150px;
}
/* 文字内容区域 */
.sponsored-promotions .promo-item p {
    margin: 12px 10px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 强制两行省略号 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
    word-break: break-all;
}
/* 核心：伪元素增加“推广”和“按钮”视觉感 */
/* 1. 在左上角增加“广告”或“赞助”角标 */
.sponsored-promotions .promo-item::before {
    content: "Sponsored";
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.2);
    color: #e2e2e2;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 2;
    backdrop-filter: blur(2px);
}
/* 适配移动端：如果宽度太窄，改成两列 */
@media (max-width: 480px) {
    .sponsored-promotions {
        gap: 8px;
    }
}