
.page {
    max-width: 540px;
    margin: 0 auto;
    min-height: 100vh;
    background: #eef1f6;
    padding-bottom: 24px;
}

/* ---------- 顶部搜索栏 ---------- */
.search-bar {
    position: sticky;
    top: 0;
    z-index: 99;
    padding: 10px 12px;
    /*background: linear-gradient(135deg, #1b2a5e 0%, #27408f 100%);*/
    background: #eef1f6;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
}

.search-ico {
    flex: none;
    margin-right: 6px;
}

.search-input {
    flex: 1;
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
}

.search-input::placeholder {
    color: #9aa3b2;
}

.search-btn {
    flex: none;
    margin-left: 10px;
    height: 36px;
    padding: 0 20px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(90deg, #3d8bff, #2f7cf6);
    color: #fff;
    font-size: 14px;
}

/* ---------- 幻灯片 ---------- */
.slide-swiper {
    margin: 0 12px ;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(39, 64, 143, .18);
}

.slide-swiper .swiper-slide {
    height: 220px;
}

.slide-link {
    height: 100%;
    background: linear-gradient(135deg, #2b3a75, #141d3f);
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-swiper .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, .55);
    opacity: 1;
    border-radius: 3px;
    transition: width .2s;
}

.slide-swiper .swiper-pagination-bullet-active {
    width: 16px;
    background: #fff;
}

/* ---------- 公告栏 ---------- */
.notice-bar {
    display: flex;
    align-items: center;
    margin: 10px 12px 0;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    background: linear-gradient(90deg, #e3efff, #f2f8ff);
    overflow: hidden;
}

.notice-ico {
    flex: none;
    margin-right: 8px;
}

.notice-scroll {
    flex: 1;
    overflow: hidden;
}

.notice-track {
    display: inline-flex;
    white-space: nowrap;
    animation: noticeMove 18s linear infinite;
}

.notice-group {
    display: inline-flex;
    flex: none;
}

.notice-item {
    margin-right: 60px;
    font-size: 13px;
    color: #2f7cf6;
}

@keyframes noticeMove {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ---------- 商品专区栏（横向滑动，显示滑动条） ---------- */
.zone-wrap {
    margin: 12px 0 0;
    padding: 0 12px;
}

.zone-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

/* 显示滑动条 */
.zone-scroll::-webkit-scrollbar {
    display: block;
    height: 4px;
}

.zone-scroll::-webkit-scrollbar-track {
    background: rgba(27, 42, 94, .08);
    border-radius: 2px;
}

.zone-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #3d8bff, #2f7cf6);
    border-radius: 2px;
}

.zone-card {
    position: relative;
    flex: none;
    width: 92px;
    margin-right: 10px;
    padding: 8px 6px 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(27, 42, 94, .08);
    text-align: center;
}

.zone-img {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 10px;
    background-color: #ffd9b0;
    background-image: linear-gradient(135deg, #ff9d3c, #ff4d2e);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.zone-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    padding: 2px 6px;
    border-radius: 8px 8px 8px 2px;
    background: linear-gradient(90deg, #ff4d2e, #ff9500);
    color: #fff;
    font-size: 10px;
    line-height: 1;
}

.zone-name {
    margin-top: 6px;
    font-size: 12px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- 横幅广告栏 ---------- */
.ad-section {
    margin: 14px 12px 0;
}

.ad-title {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #1b2a5e;
}

.ad-link {
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #2b3a75, #141d3f);
    box-shadow: 0 4px 12px rgba(27, 42, 94, .12);
}

.ad-img {
    width: 100%;
    height: 215px;
    object-fit: cover;
}

/* ---------- 限时活动专区 ---------- */
.activity-section {
    margin: 14px 12px 0;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(27, 42, 94, .06);
}

.sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sec-title {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: #1b2a5e;
}

.sec-ico {
    margin-right: 6px;
}

.sec-more {
    font-size: 12px;
    color: #8a93a6;
}

/* 一行最多3个，超过换行 */
.goods-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-right: -8px;
}

.goods-card {
    width: calc((100% - 24px) / 2);
    margin: 0 8px 10px 0;
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 10px;
    overflow: hidden;
}

.goods-img {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background-color: #cfe3cd;
    background-image: linear-gradient(135deg, #6f8f6a, #2f4a33);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.goods-tag {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 6px;
    border-radius: 0 0 0 10px;
    background: linear-gradient(90deg, #ff4d2e, #ff7a1a);
    color: #fff;
    font-size: 10px;
    line-height: 1.2;
}

.goods-body {
    padding: 8px;
}

.goods-name {
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.goods-desc {
    margin-top: 3px;
    font-size: 11px;
    color: #9aa3b2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.goods-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.goods-price {
    display: flex;
    align-items: center;
    color: #ff3b30;
    font-size: 15px;
    font-weight: bold;
}

.goods-price em {
    font-style: normal;
    font-size: 11px;
    margin-right: 1px;
}

.goods-cate {
    margin-right: 4px;
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(82, 196, 26, .12);
    color: #52c41a;
    font-size: 10px;
    font-weight: normal;
    white-space: nowrap;
}

.goods-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc53d, #ff9500);
    box-shadow: 0 2px 4px rgba(255, 149, 0, .4);
}

/* ---------- 底部 ---------- */
.page-footer {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    color: #b6bdc9;
}

/* ---------- 搜索结果 / 详情共用 ---------- */
.result-bar {
    padding: 12px;
    font-size: 13px;
    color: #666;
}

.result-bar b {
    color: #ff3b30;
}

.empty-tip {
    padding: 60px 12px;
    text-align: center;
    color: #9aa3b2;
    font-size: 13px;
}

.goods-panel {
    margin: 12px;
    padding: 14px;
    background: #fff;
    border-radius: 12px;
}

.detail-img {
    width: 100%;
    padding-top: 62%;
    border-radius: 10px;
    background-color: #2b3a75;
    background-image: linear-gradient(135deg, #2b3a75, #141d3f);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.detail-name {
    margin-top: 10px;
    font-size: 17px;
    font-weight: bold;
    color: #1b2a5e;
}

.detail-desc {
    margin-top: 6px;
    font-size: 13px;
    color: #8a93a6;
}

.spec-list {
    margin-top: 12px;
}

.spec-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f2f3f7;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-title {
    font-size: 14px;
    color: #333;
}

.spec-price {
    color: #ff3b30;
    font-weight: bold;
}

.detail-memo {
    margin-top: 12px;
    font-size: 13px;
    color: #555;
    word-break: break-all;
}

.detail-memo img {
    width: 100%;
}

.detail-btn {
    margin: 16px 12px 0;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: 22px;
    background: linear-gradient(90deg, #3d8bff, #2f7cf6);
    color: #fff;
    font-size: 16px;
}