.page {
    max-width: 540px;
    margin: 0 auto;
    min-height: 100vh;
    background: #eef1f6;
    padding-bottom: 24px;
}

/* ---------- 顶部标题 ---------- */
.page-title {
    padding: 14px 0 4px;
    text-align: center;
    font-size: 17px;
    font-weight: bold;
    color: #222;
    background: #eef1f6;
}

/* ---------- 顶部搜索栏 ---------- */
.search-bar {
    position: sticky;
    top: 0;
    z-index: 99;
    padding: 10px 12px;
    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;
}

/* ---------- 分类主体（左导航 + 右商品） ---------- */
.classify-wrap {
    display: flex;
    align-items: flex-start;
    padding: 0 0 20px;
}

/* 左侧大类导航区 */
.class-nav {
    flex: none;
    width: 96px;
    position: sticky;
    top: 56px;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
    background: #f3f5f9;
    border-radius: 10px 0 0 10px;
}

.class-nav::-webkit-scrollbar {
    display: none;
}

.class-nav-item {
    position: relative;
    padding: 15px 6px;
    text-align: center;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    word-break: break-all;
    background: transparent;
    transition: background .2s, color .2s;
}

.class-nav-item.active {
    background: #fff;
    color: #ff4d2e;
    font-weight: bold;
}

.class-nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    border-radius: 0 4px 4px 0;
    background: #ff4d2e;
}

/* 右侧商品列表区 */
.class-main {
    flex: 1;
    min-width: 0;
    padding: 0 8px 0 10px;
}

.class-panel {
    display: none;
}

.class-panel.active {
    display: block;
}

.class-empty {
    padding: 40px 0;
    text-align: center;
    color: #9aa3b2;
    font-size: 13px;
}

/* 商品卡片（横向一行：图 + 信息 + 购物车） */
.goods-card {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(39, 64, 143, .06);
}

.goods-img {
    flex: none;
    position: relative;
    width: 92px;
    height: 92px;
    border-radius: 8px;
    background-color: #f3f5f9;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.goods-tag {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 2px 8px;
    font-size: 11px;
    color: #fff;
    background: linear-gradient(90deg, #ff7a2e, #ff4d2e);
    border-radius: 0 10px 0 0;
}

.goods-body {
    flex: 1;
    min-width: 0;
    padding: 2px 8px 2px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.goods-name {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.goods-foot {
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.goods-price {
    color: #ff4d2e;
    font-size: 18px;
    font-weight: bold;
}

.goods-price em {
    font-style: normal;
    font-size: 12px;
    margin-right: 1px;
}

.goods-sales {
    margin-left: 10px;
    font-size: 12px;
    color: #9aa3b2;
}

/* 购物车按钮 */
.goods-cart {
    flex: none;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd23e, #ffb400);
    box-shadow: 0 2px 6px rgba(255, 180, 0, .4);
}