:root { --component-height: 300px; --footer-height: 56px; }

/* 轮播图样式 */

.banner-swiper{position:relative;width:100%;overflow:hidden}
.banner-swiper .bs-viewport{width:100%;overflow:hidden}
.banner-swiper .bs-track{display:flex;width:100%;height:100%;overflow-x:scroll;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;-ms-overflow-style:none;scrollbar-width:none}
.banner-swiper .bs-track::-webkit-scrollbar{display:none}
.banner-swiper .bs-slide{flex:0 0 100%;height:100%;scroll-snap-align:start;position:relative}
.banner-swiper .bs-link{display:block;width:100%;height:100%}
.banner-swiper .bs-image{width:100%;height:100%;object-fit:cover}
.banner-swiper .bs-overlay{position:absolute;left:0;right:0;bottom:0;padding:10px 12px;color:#fff;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.55) 100%);word-break:break-word;white-space:normal;pointer-events:none}
.banner-swiper .bs-indicator{display:flex;gap:6px;justify-content:center;align-items:center;height:20px;margin-top:8px}
.banner-swiper .bs-dot{width:6px;height:6px;border-radius:50%;background:#ccc;transition:background .2s}
.banner-swiper .bs-dot.active{background:#333}


.grid-container {
    width: 100%;
    max-width: none;
    margin: 0;
}

/* 公告条容器样式 */
.notice-bar {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffd166 0%, #ffb347 100%);
    color: #8a6d3b;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0 16px 0;
    border-left: 4px solid #ff9f1c;
}

.notice-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* 公告图标 */
.notice-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    filter: brightness(0.8);
}

/* 公告内容区域 */
.notice-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* 公告文字 */
.notice-text {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
}

/* 滚动动画 */
.notice-text.scrolling {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText linear infinite;
}

/* 右侧箭头 */
.notice-arrow {
    margin-left: 8px;
    font-size: 14px;
    opacity: 0.8;
    flex-shrink: 0;
    color: #8a6d3b;
}

/* 滚动动画定义 */
@keyframes scrollText {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* 响应式设计 - 移动优先 */

/* 小屏幕手机 (小于576px) */
.notice-bar {
    padding: 10px 12px;
    margin: 0 0 12px 0;
}

.notice-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.notice-text {
    font-size: 12px;
}

.notice-arrow {
    font-size: 12px;
}

/* 中等屏幕手机 (576px 到 768px) */
@media (min-width: 576px) {
    .notice-bar {
        padding: 12px 16px;
    }

    .notice-text {
        font-size: 14px;
    }
}

/* 平板电脑 (768px 到 992px) */
@media (min-width: 768px) {
    .notice-bar {
        padding: 14px 20px;
    }

    .notice-icon {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }

    .notice-text {
        font-size: 15px;
    }
}

/* 桌面电脑 (992px 到 1200px) */
@media (min-width: 992px) {
    .notice-bar {
        padding: 16px 24px;
    }

    .notice-text {
        font-size: 16px;
    }
}

/* 横屏手机特殊处理 */
@media (max-height: 500px) and (orientation: landscape) {
    .notice-bar {
        padding: 8px 16px;
    }
}

/* 暗色模式支持 */


/* 减少动画（针对偏好减少动画的用户） */
@media (prefers-reduced-motion: reduce) {
    .notice-text.scrolling {
        animation: none;
        white-space: normal;
        padding-left: 0;
    }

    .notice-bar:hover {
        transform: none;
    }
}


.demo-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

@media (prefers-color-scheme: dark) {
    .demo-title {
        color: #f0f0f0;
    }
}


/* 网格容器样式 */
.grid-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    max-width: none;
    min-width: 0;
}

/* 网格布局 */
.grid-layout {
    display: grid;
    gap: 12px;
    padding: 16px;
}

/* GridCategory 专用移动布局 */
.grid-category .grid-layout {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(var(--grid-rows, 2), auto);
    grid-auto-columns: max-content;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: unset;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.grid-category .grid-layout::-webkit-scrollbar {
    display: none;
}

.grid-category .grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    padding: 8px 6px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

.grid-category .grid-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 6px;
    border-radius: 8px;
    overflow: hidden;
}

.grid-category .grid-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.grid-category .grid-text {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.4em;
}

/* 网格项样式 */
.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.grid-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.grid-item:active {
    transform: translateY(0);
}

/* 图标样式 */
.grid-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

/* 文本样式 */
.grid-text {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* 响应式设计 */
/* 默认5列布局 */
@media (min-width: 768px) {
    .grid-layout {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* 平板布局 - 4列 */
@media (max-width: 767px) {
    .grid-layout {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .grid-text {
        font-size: 13px;
    }
}

/* 小屏平板布局 - 3列 */
@media (max-width: 600px) {
    .grid-layout {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 手机布局 - 2列 */
@media (max-width: 480px) {
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .grid-item {
        padding: 10px 6px;
    }

    .grid-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .grid-text {
        font-size: 12px;
    }
}

/* 超小屏手机布局 */
@media (max-width: 360px) {
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .grid-item {
        padding: 8px 4px;
    }
}

/* 组件标题样式 */
.component-title {
    padding: 16px 16px 8px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 1px solid #f0f0f0;
}

/* 模拟图标样式 */
.icon-placeholder {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}


.demo-title {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}


.code-preview {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.hot-products-scroll {
    width: 100%;
    max-width: none;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #ff3b30;
    margin-right: 10px;
    border-radius: 2px;
}

.scroll-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: auto;
}

.scroll-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 5px;
    gap: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.scroll-wrapper:active {
    cursor: grabbing;
}

.product-card {
    flex: 0 0 25%;
    min-width: 160px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.product-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 12px;
}

.product-title {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 14px;
    font-weight: 600;
    color: #ff3b30;
}

.product-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff3b30;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.scroll-indicator {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 6px;
}

.indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: #ff3b30;
    width: 18px;
    border-radius: 4px;
}

.swipe-hint {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.swipe-icon {
    width: 16px;
    height: 16px;
    fill: #999;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-card {
        flex: 0 0 33.33%;
    }
}

@media (max-width: 480px) {
    .product-card {
        flex: 0 0 50%;
        min-width: 140px;
    }

}



.section-title-seckill {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    max-width: none;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.title-container:hover {
    background: #f8f9fa;
}

.title-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.title-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.title-icon svg {
    width: 100%;
    height: 100%;
    fill: #ff3b30;
}

.title-content {
    display: flex;
    flex-direction: column;
}

.main-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.sub-title {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.title-right {
    display: flex;
    align-items: center;
}

.more-text {
    font-size: 14px;
    color: #999;
    margin-right: 8px;
}

.arrow-icon {
    width: 16px;
    height: 16px;
    fill: #ccc;
    transition: transform 0.3s ease;
}

.title-container:hover .arrow-icon {
    transform: translateX(3px);
    fill: #ff3b30;
}

.seckill-countdown {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    max-width: none;
    cursor: pointer;
    transition: all 0.3s ease;
    height: var(--component-height);
}

.seckill-countdown:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.countdown-banner {
    position: relative;
    overflow: hidden;
}

.countdown-banner .banner-image {
    position: relative;
    z-index: 0;
    display: block;
}

.countdown-banner .countdown-title,
.countdown-banner .countdown-units {
    position: absolute;
    left: 16px;
    right: 16px;
    color: #fff;
    z-index: 1;
}

.countdown-banner .countdown-title {
    bottom: 56px;
}

.countdown-banner .countdown-units {
    bottom: 16px;
}

.countdown-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 16px;
    color: white;
}

.countdown-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.countdown-timer {
    display: flex;
    align-items: center;
}

.countdown-label {
    font-size: 14px;
    margin-right: 8px;
}

.countdown-units {
    display: flex;
    gap: 4px;
}

.time-unit {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 14px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.time-separator {
    margin: 0 2px;
    font-weight: bold;
}


.divider-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.page-divider {
    background-color: #f0f0f0;
    height: 8px;
    margin: 32px 16px;
    border-radius: 4px;
    width: 80%;
}

/* 单图横幅 */
.single-banner {
    width: 100%;
    height: var(--component-height);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.single-banner-image {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
    display: block;
    background-color: #ffffff;
}
.single-banner-image.img-fit-cover { object-fit: cover !important; }
.single-banner-image.img-fit-contain { object-fit: contain !important; }
.single-banner-image.img-fit-scale-down { object-fit: scale-down !important; }
.single-banner-image.img-fit-fill { object-fit: fill !important; }

.single-banner-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    pointer-events: none;
}

.single-banner-title {
    font-size: 14px;
    font-weight: 600;
}

/* 横向分类 */
.tab-category {
    width: 100%;
    height: var(--component-height);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tab-list {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-list::-webkit-scrollbar { display: none; }

.tab-item {
    flex: 0 0 auto;
    padding: 8px 14px;
    border: none;
    border-radius: 16px;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-item.active {
    background: #ff3b30;
    color: #fff;
}

.tab-content {
    flex: 1;
    padding: 16px;
    overflow: auto;
}

.tab-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .tab-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .tab-grid { grid-template-columns: repeat(2, 1fr); }
}

.tab-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.tab-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tab-card-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 10px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.3em * 2);
}

/* 商品卡片列表 */
.item-card-list {
    width: 100%;
    height: var(--component-height);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.item-list-header {
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

.item-list-content {
    flex: 1;
    padding: 16px 0;
    overflow: auto;
}

.item-list-grid { }

.item-card {
    position: relative;
    display: block;
    width: 100%;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.item-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.item-card-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 12px 14px;
    color: #fff;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
}

.item-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.3em * 2);
}

.item-card-price {
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* 双列内容块 */
.two-column {
    width: 100%;
    height: var(--component-height);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.two-col-header {
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

.two-col-content { flex: 1; padding: 16px 0; overflow: hidden; }

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

.two-col-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    width: 100%;
    height: 100%;
    display: block;
}

.two-col-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 图文卡片 */
.image-card {
    width: 100%;
    height: var(--component-height);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    
}

.image-card-link { display: block; width: 100%; height: 100%; position: relative; }

.image-card-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center;
    z-index: 0;
}

.image-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px 16px;
    color: #fff;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.image-card-title { font-size: 14px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.image-card-desc { font-size: 11px; font-weight: 500; opacity: 0.95; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }

/* 优惠券组件 */
.coupon-card {
    width: 100%;
    height: var(--component-height);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.coupon-header {
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

.coupon-content { flex: 1; padding: 16px 0; overflow: auto; }

.coupon-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
}

@media (max-width: 480px) { .coupon-list { grid-template-columns: 1fr; } }

.coupon-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    height: 100px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.coupon-left {
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff3b30 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}

.coupon-right { padding: 10px 12px; }
.coupon-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.coupon-cond { font-size: 13px; color: #666; }
.coupon-exp { font-size: 12px; color: #999; margin-top: 6px; }

/* 促销区块 */
.promotion-block {
    width: 100%;
    height: var(--component-height);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.promotion-header {
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

.promotion-content { flex: 1; padding: 8px 0; overflow: auto; }

.promotion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
    height: 100%;
    grid-auto-rows: 1fr;
}

@media (max-width: 480px) { .promotion-grid { grid-template-columns: 1fr; } }

.promotion-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.promotion-card-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.promotion-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 16px 12px;
    color: #fff;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
}

.promotion-card-title { font-size: 12px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.promotion-card-price { font-size: 12px; font-weight: 700; color: #ffdd55; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }

/* 备案信息 */
.beian-info {
    width: 100%;
    height: calc(var(--component-height) / 8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.beian-content { display: flex; flex-direction: column; gap: 6px; }
.beian-company { font-size: 14px; font-weight: 600; color: #666; }
.beian-lines { font-size: 12px; color: #999; }
.beian-links { font-size: 12px; color: #999; }
.beian-link { color: inherit; text-decoration: none; }
.beian-link:hover { text-decoration: underline; }
.beian-sep { margin: 0 6px; }

/* 弹窗广告 */
.popup-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
}

.popup-ad { z-index: 2000; }

.popup-content {
    width: 100%;
    height: var(--component-height);
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

.popup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

/* 底部导航 */
.footer-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    width: 100%;
    height: var(--footer-height);
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

.footer-nav-list {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
}

.footer-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
}

.footer-nav-item.active { color: #ff3b30; }

.footer-nav-icon {
    width: 24px;
    height: 24px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    margin-bottom: 6px;
}

.footer-nav-text { font-size: 12px; }

@media (min-width: 768px) {
    .footer-nav { height: 64px; }
    .footer-nav-icon { width: 28px; height: 28px; }
    .footer-nav-text { font-size: 13px; }
}
