/* Card Shop Plugin Styles */
.duoduo-card-shop-description {
    line-height: 1.8;
    color: #495057;
}

.duoduo-card-shop-description p {
    margin-bottom: 1rem;
}

/* ===== 商品卡片（仿 bbs.xiuno.org/store 商品卡片） ===== */
.dcl-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dcl-card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-4px);
    border-color: rgba(0, 0, 0, 0.12);
}

.dcl-card-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f3f5;
    color: #c9cdd4;
}

.dcl-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.dcl-card:hover .dcl-card-media img {
    transform: scale(1.05);
}

.dcl-card-label {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.4;
    color: #fff;
    background: rgba(79, 107, 255, 0.9);
}

.dcl-card-body {
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dcl-card-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.dcl-card-title a {
    color: #1f2329;
    text-decoration: none;
}

.dcl-card-title a:hover {
    color: #4f6bff;
}

.dcl-card-desc {
    margin: 0 0 10px;
    color: #86909c;
    font-size: 13px;
    line-height: 1.5;
    height: 2.9em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dcl-card-price {
    margin: auto 0 8px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.dcl-card-price .dcl-price-num {
    font-size: 20px;
    font-weight: 700;
    color: #e53935;
    line-height: 1;
}

.dcl-card-price .dcl-price-unit {
    font-size: 13px;
    color: #86909c;
}

.dcl-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #c0c4cc;
    font-size: 12px;
    margin-bottom: 10px;
    border-top: 1px dashed #f0f1f3;
    padding-top: 8px;
}

.dcl-card-meta .ti {
    margin-right: 3px;
    vertical-align: -1px;
}

.dcl-card-footer {
    margin-top: auto;
}

/* 商品详情大图 */
.dcl-detail-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9cdd4;
}

.dcl-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 后台商品图片预览 */
.dcl-goods-img-preview {
    width: 120px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f3f5;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.dcl-goods-img-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== 商城首页 Hero Banner ===== */
.dcl-store-hero {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #4f6bff 0%, #5b7bff 45%, #6f8bff 100%);
    color: #fff;
    padding: 40px 32px;
    box-shadow: 0 10px 30px -12px rgba(0, 102, 255, 0.45);
}
.dcl-store-hero__content {
    position: relative;
    z-index: 2;
}
.dcl-store-hero__title {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
}
.dcl-store-hero__sub {
    font-size: 1rem;
    opacity: 0.92;
    margin: 0 0 20px;
}
.dcl-store-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    border-radius: 999px;
    background: #fff;
    color: #4f6bff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.dcl-store-hero__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -6px rgba(255, 255, 255, 0.6);
    color: #4f6bff;
}
.dcl-store-hero__deco {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 14px;
    z-index: 1;
}
.dcl-store-hero__deco-item {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(4px);
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.92);
    animation: dclFloat 3.6s ease-in-out infinite;
}
.dcl-store-hero__deco-item--coin { animation-delay: 0s; }
.dcl-store-hero__deco-item--card { animation-delay: 0.45s; }
.dcl-store-hero__deco-item--bag  { animation-delay: 0.9s; }
@keyframes dclFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@media (max-width: 768px) {
    .dcl-store-hero__deco { display: none; }
    .dcl-store-hero { padding: 30px 22px; }
    .dcl-store-hero__title { font-size: 1.5rem; }
}

/* ===== 区块标题 ===== */
.dcl-store-section-title-sm { font-weight: 600; }
.dcl-store-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    border-left: 4px solid #4f6bff;
    padding-left: 12px;
}
.dcl-store-section-head--goods { margin-top: 8px; }
.dcl-store-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    display: inline-flex;
    align-items: center;
}
.dcl-store-section-title-grp { display: flex; align-items: baseline; gap: 10px; }
.dcl-store-section-count {
    font-size: 0.85rem;
    color: #8a919c;
    font-weight: 400;
}

/* ===== 商城公告 ===== */
.dcl-store-notice {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 16px 18px;
}
.dcl-store-notice__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dcl-store-notice__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}
.dcl-store-notice__item:last-child { border-bottom: none; }
.dcl-store-notice__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff4d4f;
    flex-shrink: 0;
}
.dcl-store-notice__txt {
    font-size: 0.92rem;
    color: #3a3f45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== 服务保障横条 ===== */
.dcl-store-guarantee {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 20px 16px;
}
.dcl-store-guarantee__item {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}
.dcl-store-guarantee__ico {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: #4f6bff;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.dcl-store-guarantee__text { display: flex; flex-direction: column; }
.dcl-store-guarantee__title { font-size: 0.92rem; color: #2b2f36; }
.dcl-store-guarantee__desc { font-size: 0.78rem; color: #9aa1ab; }
@media (max-width: 992px) {
    .dcl-store-guarantee { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .dcl-store-guarantee { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 商品卡片增强：hover 上浮 + 入场动画 + 红色价格 ===== */
.dcl-store-grid .dcl-card {
    animation: dclCardIn 0.4s ease both;
    animation-delay: var(--dcl-delay, 0ms);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.dcl-store-grid .dcl-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.22);
}
@keyframes dclCardIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.dcl-card-media__ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2.6rem;
    color: #c9cdd4;
    background: #f1f3f5;
}
.dcl-card-price .dcl-price-num { color: #e9352c; }
.dcl-card-footer .btn-buy {
    font-weight: 600;
    border-radius: 8px;
}

/* ===== 移动端商品卡片一行两个 ===== */
@media (max-width: 575px) {
    .dcl-store-grid {
        --dcl-gap: 10px;
        margin-left: calc(var(--dcl-gap) * -1);
        margin-right: calc(var(--dcl-gap) * -1);
        --bs-gutter-x: 10px;
    }
    .dcl-store-grid > [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }
    .dcl-card-body { padding: 10px 10px 10px; }
    .dcl-card-title { font-size: 13px; margin-bottom: 4px; }
    .dcl-card-desc { display: none; }
    .dcl-card-price .dcl-price-num { font-size: 17px; }
    .dcl-card-price .dcl-price-unit { font-size: 12px; }
    .dcl-card-meta { font-size: 11px; margin-bottom: 8px; padding-top: 6px; }
    .dcl-card-meta .ti { margin-right: 1px; }
    .dcl-card-footer .btn-buy { font-size: 13px; padding-top: 6px; padding-bottom: 6px; }
    .dcl-card-media { aspect-ratio: 4 / 3; }
    .dcl-card-label { top: 6px; left: 6px; font-size: 11px; padding: 2px 8px; }
}