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

body {
    background-color: #6a28b5;
    font-family: 'Arial', sans-serif;
}

/* Banner 容器：负责居中 */
.banner-container {
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    
    /* 【修改】方向改为 -45deg (从右下流向左上) */
    /* 颜色顺序保持不变：起始色(红)在右下，结束色(黄)在左上 */
    background: linear-gradient(-45deg, #D90429 0%, #EF476F 50%, #FFD166 100%);
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.3);
}

/* Logo 图片 */
.banner-logo {
    width: auto;               /* 【关键】宽度设为容器的 50% */
    height: 120px;             /* 【关键】高度自动，保持原始比例不变形 */
    display: block;            /* 消除底部空隙 */
}

/* 店铺导航栏样式 - 强制单行显示 */
.shop-nav {
    background-color: #ffc107;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-bottom: 0px solid #ff9800;
    white-space: nowrap;
}

/* 导航项基础样式 */
.shop-nav-item {
    
    text-decoration: none; 
    color: purple;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
    -webkit-tap-highlight-color: transparent;

    /* 白色描边 
    -webkit-text-stroke: 0.3px white;
    text-shadow: 
        -0.3px -0.3px 0 white,
         0.3px -0.3px 0 white,
        -0.3px  0.3px 0 white,
         0.3px  0.3px 0 white;*/
}

/* 选中状态 */
.shop-nav-item.active {
    color: #ff4081;
    border-bottom: 2px solid #ff4081;
}

/* 🔥 火爆图标 - 紧挨文字的上标样式 */
.fire-icon {
    display: inline-block;
    font-size: 12px; /* 比主文字小一圈 */
    line-height: 1;
    vertical-align: super; /* 关键：上标对齐 */
    margin-left: 2px;      /* 与文字保持微小间距 */
    transform: translateY(-1px); /* 微调垂直位置，更贴合 */
    pointer-events: none;  /* 防止遮挡点击 */
    
    /* 可选：轻微跳动动画 */
    animation: fire-pulse 1.5s infinite ease-in-out;
}

@keyframes fire-pulse {
    0%, 100% { transform: translateY(-1px) scale(1); }
    50% { transform: translateY(-1px) scale(1.2) rotate(10deg); }
}

/* =========================================
   轮播公告栏样式 
   ========================================= */
.notice-bar {
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 10px 0;
    font-size: 13px;
    overflow: hidden;
    white-space: nowrap;
}

.notice-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.notice-label {
    background: #e94560;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.notice-scroll {
    flex: 1;
    overflow: hidden;
}

.notice-text {
    display: inline-block;
    animation: scroll-left 20s linear infinite;
    padding-left: 100%;
}

.notice-text span {
    display: inline-block;
    padding: 0 15px;
}

.notice-text .separator {
    color: #e94560;
    padding: 0 10px !important;
}

.notice-text strong {
    color: #ffeb3b;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.notice-bar:hover .notice-text {
    animation-play-state: paused;
}

/* 商品展示区域样式 */
.products-container {
    padding: 20px;
    max-width: 1200px;
    margin: 10px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 85%;
    height: auto;
    margin: 10px auto;
    display: block;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-name {
    text-align: center;
    margin: 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
}

.price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

/* 价格容器：设为 flex 布局，确保文字和数字在同一行且底部对齐 */
.current-price {
    color: red;       /* 整体红色 */
    font-weight: bold; /* 整体加粗 */
    display: inline-flex; /* 关键：让内部元素横向排列 */
    align-items: baseline; /* 关键：基线对齐，防止大小不一导致错位 */
}

/* 文字部分 ("秒杀价:") */
.current-price .cp-label {
    font-size: 14px;   /* 👈 文字设为 14px */
    margin-right: 2px; /* 可选：加点间距 */
}

/* 数字部分 (价格) */
.current-price .cp-num {
    font-size: 18px;   /* 👈 数字设为 18px (你可以改成 16px) */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-title {
        font-size: 32px;
    }
    .flame-icon {
        width: 16px;
        height: 16px;
        top: -12px;
        right: -8px;
    }
    .url-text {
        font-size: 18px;
    }

    .notice-bar { 
        font-size: 11px; 
        padding: 8px 0; 
    }
    .notice-content { 
        padding: 0 10px; 
    }
    .notice-label { 
        font-size: 10px; 
        padding: 2px 6px; 
        margin-right: 8px; 
    }
    .notice-text span { 
        padding: 0 8px; 
    }
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .banner-container {
        height: 120px;      /* 手机端容器高度稍小一点，避免占屏太多 */
    }

    .shop-nav-item {
        font-size: 14px;
        padding: 6px 4px;
    }
    .fire-icon {
        font-size: 12px;
    }
    .products-container {
        padding: 10px 8px;
        margin: 10px auto;
    }
    .products-grid {
        grid-template-columns: 1fr 1fr; /* 强制两列 */
        gap: 8px;
    }
    .product-card {
        padding: 8px;
    }
    .product-image {
        width: 100%;
        margin: 4px 0;
    }
    .product-name {
        font-size: 14px;
        margin: 6px 0 4px;
        /* 限制最多2行，防卡片高度参差不齐 */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .price-container {
        flex-direction: column;
        gap: 2px;
        margin: 4px 0 6px;
    }
    .original-price { font-size: 14px; }
    /* 价格容器：设为 flex 布局，确保文字和数字在同一行且底部对齐 */
    .current-price {
        color: red;       /* 整体红色 */
        font-weight: bold; /* 整体加粗 */
        display: inline-flex; /* 关键：让内部元素横向排列 */
        align-items: baseline; /* 关键：基线对齐，防止大小不一导致错位 */
    }

    /* 文字部分 ("秒杀价:") */
    .current-price .cp-label {
        font-size: 14px;   /* 👈 文字设为 14px */
        margin-right: 2px; /* 可选：加点间距 */
    }

    /* 数字部分 (价格) */
    .current-price .cp-num {
        font-size: 18px;   /* 👈 数字设为 18px (你可以改成 16px) */
    }
}