/* ==========================================================
   心意礼集 · 前台样式
   ========================================================== */

/* ---------------- Hero 区 ---------------- */
.hero {
    position: relative;
    padding: 70px 0 64px;
    background:
        radial-gradient(circle at 12% 20%, rgba(232, 168, 124, .22), transparent 45%),
        radial-gradient(circle at 88% 12%, rgba(217, 164, 65, .16), transparent 42%),
        linear-gradient(160deg, #fff9f4 0%, #fdf3ee 55%, #f8ece3 100%);
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    right: -60px; bottom: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 111, 74, .12), transparent 68%);
    pointer-events: none;
}
.hero .inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 50px;
}
.hero-text { flex: 1; min-width: 0; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 15px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .82);
    color: var(--c-primary);
    font-size: 12.5px;
    font-weight: 500;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}
.hero h1 {
    font-size: 40px;
    line-height: 1.24;
    margin-bottom: 16px;
    letter-spacing: -.5px;
    color: var(--c-text);
}
.hero h1 .hl {
    background: linear-gradient(120deg, var(--c-primary), var(--c-berry));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p.lead {
    font-size: 16px;
    color: var(--c-text-2);
    max-width: 460px;
    margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
    flex: 0 0 400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.hero-card {
    border-radius: var(--radius-lg);
    background: var(--c-white);
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .9);
}
.hero-card:nth-child(1) { transform: translateY(-12px); }
.hero-card:nth-child(3) { transform: translateY(-12px); }
.hero-card .emoji { font-size: 34px; line-height: 1; }
.hero-card .t { font-weight: 600; font-size: 14px; }
.hero-card .d { font-size: 12.5px; color: var(--c-text-3); line-height: 1.5; }

/* 统计条 */
.hero-stats {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 44px;
    margin-top: 44px;
    padding-top: 26px;
    border-top: 1px solid rgba(201, 111, 74, .16);
    flex-wrap: wrap;
}
.hero-stats .item .num {
    font-size: 25px;
    font-weight: 700;
    color: var(--c-primary);
    line-height: 1.2;
}
.hero-stats .item .lbl { font-size: 13px; color: var(--c-text-3); }

/* ---------------- 区块标题 ---------------- */
.section { margin: 52px 0; }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.section-head h2 {
    font-size: 23px;
    margin: 0;
    position: relative;
    padding-left: 14px;
}
.section-head h2::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 21px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--c-primary-light), var(--c-primary));
}
.section-head .sub {
    font-size: 13.5px;
    color: var(--c-text-3);
    margin-top: 5px;
    padding-left: 14px;
}
.section-head .more {
    font-size: 13.5px;
    color: var(--c-text-3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.section-head .more:hover { color: var(--c-primary); }

/* ---------------- 分类导航 ---------------- */
.cat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 14px;
}
.cat-item {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 20px 10px 16px;
    text-align: center;
    transition: all .24s;
    color: var(--c-text);
}
.cat-item:hover {
    border-color: var(--c-primary-light);
    background: var(--c-primary-soft);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: var(--c-primary-dark);
}
.cat-item .ico { font-size: 27px; margin-bottom: 8px; line-height: 1; }
.cat-item .nm { font-size: 13.5px; font-weight: 500; }
.cat-item .ct { font-size: 11.5px; color: var(--c-text-3); margin-top: 2px; }

/* ---------------- 商品卡片 ---------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all .26s ease;
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(232, 168, 124, .5);
}

.product-card .thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #fdf6f1, #f9ebe2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card .thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .thumb img { transform: scale(1.06); }

.product-card .thumb .ph-emoji { font-size: 54px; opacity: .8; }

.product-card .corner {
    position: absolute;
    top: 10px; left: 10px;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 500;
    background: linear-gradient(135deg, var(--c-gold), #c9902f);
    color: #fff;
    box-shadow: 0 2px 8px rgba(217, 164, 65, .35);
}
.product-card .corner.hot {
    background: linear-gradient(135deg, #e07a6b, var(--c-danger));
    box-shadow: 0 2px 8px rgba(200, 84, 79, .35);
}

.product-card .body {
    padding: 14px 15px 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-card .nm {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 5px;
    color: var(--c-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}
.product-card:hover .nm { color: var(--c-primary-dark); }
.product-card .sub {
    font-size: 12.5px;
    color: var(--c-text-3);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .shop {
    font-size: 12px;
    color: var(--c-text-3);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.product-card .foot {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}
.product-card .price {
    color: var(--c-danger);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
}
.product-card .price .cur { font-size: 12.5px; margin-right: 1px; }
.product-card .price-old {
    font-size: 12px;
    color: var(--c-text-3);
    text-decoration: line-through;
    margin-left: 5px;
}
.product-card .sales { font-size: 12px; color: var(--c-text-3); }
.product-card .add-cart {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    flex-shrink: 0;
}
.product-card .add-cart:hover {
    background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
    color: #fff;
    transform: scale(1.08);
}

/* ---------------- 筛选栏 ---------------- */
.filter-bar {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
}
.filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 7px 0;
}
.filter-row + .filter-row { border-top: 1px dashed var(--c-border); }
.filter-row .lbl {
    font-size: 13px;
    color: var(--c-text-3);
    flex-shrink: 0;
    min-width: 52px;
}
.filter-row .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-row .opt {
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: var(--c-text-2);
    transition: all .2s;
}
.filter-row .opt:hover { background: var(--c-primary-soft); color: var(--c-primary); }
.filter-row .opt.active {
    background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
    color: #fff;
    box-shadow: 0 3px 10px rgba(201, 111, 74, .25);
}

/* ---------------- 商品详情 ---------------- */
.pd-wrap {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 40px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 30px;
}
.pd-gallery .main-img {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, #fdf6f1, #f9ebe2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 92px;
}
.pd-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }

.pd-info h1 { font-size: 25px; margin-bottom: 10px; line-height: 1.35; }
.pd-info .pd-sub { font-size: 14px; color: var(--c-text-2); margin-bottom: 18px; }

.pd-price-box {
    background: linear-gradient(135deg, #fdf3ee, #fdf6f1);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.pd-price-box .now {
    color: var(--c-danger);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}
.pd-price-box .now .cur { font-size: 17px; }
.pd-price-box .old {
    color: var(--c-text-3);
    text-decoration: line-through;
    font-size: 14px;
}
.pd-price-box .save {
    font-size: 12.5px;
    background: var(--c-danger);
    color: #fff;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
}

.pd-meta { margin-bottom: 22px; }
.pd-meta .line {
    display: flex;
    gap: 14px;
    padding: 9px 0;
    font-size: 13.5px;
    border-bottom: 1px dashed var(--c-border);
}
.pd-meta .line:last-child { border-bottom: none; }
.pd-meta .k { color: var(--c-text-3); width: 62px; flex-shrink: 0; }
.pd-meta .v { color: var(--c-text-2); flex: 1; }

.qty-picker {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--c-white);
}
.qty-picker button {
    width: 38px; height: 40px;
    border: none;
    background: var(--c-bg-2);
    color: var(--c-text-2);
    font-size: 17px;
    cursor: pointer;
    transition: all .18s;
    line-height: 1;
}
.qty-picker button:hover:not(:disabled) { background: var(--c-primary-soft); color: var(--c-primary); }
.qty-picker button:disabled { opacity: .4; cursor: not-allowed; }
.qty-picker input {
    width: 58px; height: 40px;
    border: none;
    text-align: center;
    font-size: 14.5px;
    font-weight: 600;
    outline: none;
    color: var(--c-text);
}

.pd-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.pd-actions .btn { flex: 1; min-width: 140px; }

.pd-detail {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
}
.pd-detail .pd-detail-head {
    display: flex;
    gap: 26px;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 22px;
}
.pd-detail .pd-detail-head span {
    padding: 10px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--c-primary);
    border-bottom: 2.5px solid var(--c-primary);
    margin-bottom: -1px;
}
.pd-detail .content { font-size: 14.5px; line-height: 1.9; color: var(--c-text-2); }
.pd-detail .content img { border-radius: var(--radius-sm); margin: 12px 0; }
/* 结构化详情排版（亮点/规格参数/售后等区块） */
.pd-detail .content h3 {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--c-text);
    margin: 28px 0 12px;
    padding-left: 10px;
    border-left: 3.5px solid var(--c-primary);
    line-height: 1.4;
}
.pd-detail .content h3:first-child { margin-top: 0; }
.pd-detail .content ul { padding-left: 20px; margin: 0 0 8px; }
.pd-detail .content li { margin: 7px 0; }
.pd-detail .content li::marker { color: var(--c-primary); }
.pd-detail .content p { margin: 8px 0; }
.pd-detail .content table {
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0 10px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.pd-detail .content th, .pd-detail .content td {
    padding: 10px 14px;
    font-size: 13.5px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--c-border);
}
.pd-detail .content tr:last-child th, .pd-detail .content tr:last-child td { border-bottom: none; }
.pd-detail .content th {
    width: 110px;
    font-weight: 600;
    color: var(--c-text);
    white-space: nowrap;
    background: var(--c-primary-soft);
}

/* ---------------- 购物车 ---------------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    padding: 13px 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-2);
    background: var(--c-bg-2);
    border-bottom: 1px solid var(--c-border);
}
.cart-table td {
    padding: 16px 14px;
    border-bottom: 1px solid var(--c-border);
    vertical-align: middle;
}
.cart-table tbody tr:last-child td { border-bottom: none; }

.cart-prod { display: flex; align-items: center; gap: 14px; min-width: 280px; }
.cart-prod .thumb {
    width: 76px; height: 76px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: linear-gradient(135deg, #fdf6f1, #f9ebe2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}
.cart-prod .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-prod .nm { font-size: 14px; font-weight: 500; line-height: 1.45; }
.cart-prod .nm:hover { color: var(--c-primary); }
.cart-prod .sh { font-size: 12px; color: var(--c-text-3); margin-top: 3px; }

.cart-foot {
    position: sticky;
    bottom: 0;
    background: var(--c-white);
    border-top: 1px solid var(--c-border);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-radius: 0 0 var(--radius) var(--radius);
}
.cart-foot .total { font-size: 14px; color: var(--c-text-2); }
.cart-foot .total .amt {
    color: var(--c-danger);
    font-size: 24px;
    font-weight: 700;
    margin-left: 6px;
}

/* ---------------- 结算页 ---------------- */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
.addr-option {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius);
    margin-bottom: 11px;
    cursor: pointer;
    transition: all .2s;
    background: var(--c-white);
}
.addr-option:hover { border-color: var(--c-primary-light); background: #fffaf7; }
.addr-option.selected {
    border-color: var(--c-primary);
    background: var(--c-primary-soft);
    box-shadow: 0 0 0 3px rgba(232, 168, 124, .14);
}
.addr-option input[type=radio] { margin-top: 3px; accent-color: var(--c-primary); }
.addr-option .who { font-weight: 600; font-size: 14px; margin-bottom: 3px; }
.addr-option .who .mob { font-weight: 400; color: var(--c-text-2); margin-left: 10px; font-size: 13px; }
.addr-option .where { font-size: 13px; color: var(--c-text-2); line-height: 1.55; }

.order-summary {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: 86px;
}
.order-summary h3 { font-size: 15.5px; margin-bottom: 16px; }
.sum-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13.5px;
    color: var(--c-text-2);
}
.sum-line.total {
    border-top: 1px solid var(--c-border);
    margin-top: 10px;
    padding-top: 14px;
    font-size: 15px;
    color: var(--c-text);
    font-weight: 600;
}
.sum-line.total .amt { color: var(--c-danger); font-size: 21px; }

.checkout-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--c-border);
}
.checkout-item:last-child { border-bottom: none; }
.checkout-item .thumb {
    width: 58px; height: 58px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: linear-gradient(135deg, #fdf6f1, #f9ebe2);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.checkout-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item .info { flex: 1; min-width: 0; }
.checkout-item .nm { font-size: 13px; line-height: 1.45; }
.checkout-item .pr { font-size: 12.5px; color: var(--c-text-3); margin-top: 3px; }

/* ---------------- 订单列表 ---------------- */
.order-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}
.order-card .oc-head {
    padding: 12px 18px;
    background: var(--c-bg-2);
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    flex-wrap: wrap;
}
.order-card .oc-head .no { color: var(--c-text-2); }
.order-card .oc-head .no b { color: var(--c-text); font-weight: 600; }
.order-card .oc-body { padding: 4px 18px; }
.order-card .oc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px dashed var(--c-border);
}
.order-card .oc-item:last-child { border-bottom: none; }
.order-card .oc-item .thumb {
    width: 66px; height: 66px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: linear-gradient(135deg, #fdf6f1, #f9ebe2);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}
.order-card .oc-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-card .oc-item .info { flex: 1; min-width: 0; }
.order-card .oc-item .nm { font-size: 13.5px; font-weight: 500; }
.order-card .oc-item .meta { font-size: 12.5px; color: var(--c-text-3); margin-top: 4px; }
.order-card .oc-foot {
    padding: 14px 18px;
    border-top: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #fffdfc;
}
.order-card .oc-foot .amt { font-size: 15px; }
.order-card .oc-foot .amt b { color: var(--c-danger); font-size: 19px; }
.order-card .oc-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* 订单状态 Tab */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 6px;
    margin-bottom: 20px;
    overflow-x: auto;
}
.tabs a {
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    color: var(--c-text-2);
    white-space: nowrap;
    transition: all .2s;
}
.tabs a:hover { background: var(--c-bg-2); color: var(--c-primary); }
.tabs a.active {
    background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
    color: #fff;
    box-shadow: 0 3px 10px rgba(201, 111, 74, .25);
}

/* ---------------- 订单流程条 ---------------- */
.steps {
    display: flex;
    align-items: flex-start;
    margin: 24px 0 28px;
    padding: 0 10px;
}
.steps .step {
    flex: 1;
    text-align: center;
    position: relative;
    font-size: 13px;
    color: var(--c-text-3);
}
.steps .step .dot {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--c-bg-2);
    color: var(--c-text-3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 9px;
    font-size: 15px;
    position: relative;
    z-index: 1;
    border: 2px solid var(--c-white);
    box-shadow: 0 0 0 1px var(--c-border-2);
}
.steps .step::before {
    content: '';
    position: absolute;
    top: 17px; left: -50%;
    width: 100%; height: 2px;
    background: var(--c-border-2);
    z-index: 0;
}
.steps .step:first-child::before { display: none; }
.steps .step.done .dot {
    background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
    color: #fff;
    box-shadow: 0 0 0 1px var(--c-primary-light), 0 3px 10px rgba(201, 111, 74, .28);
}
.steps .step.done { color: var(--c-primary); font-weight: 500; }
.steps .step.done::before { background: var(--c-primary-light); }

/* ---------------- 认证页 ---------------- */
.auth-wrap {
    min-height: calc(100vh - 66px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 20px;
    background:
        radial-gradient(circle at 18% 22%, rgba(232, 168, 124, .18), transparent 42%),
        radial-gradient(circle at 82% 78%, rgba(217, 164, 65, .13), transparent 40%),
        linear-gradient(150deg, #fffaf6, #fdf1e9);
}
.auth-card {
    width: 100%;
    max-width: 430px;
    background: var(--c-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 38px 36px 32px;
    border: 1px solid rgba(255, 255, 255, .8);
}
.auth-card.wide { max-width: 660px; }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head .ico {
    width: 54px; height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 14px;
    box-shadow: 0 6px 18px rgba(201, 111, 74, .3);
}
.auth-head h1 { font-size: 22px; margin-bottom: 6px; }
.auth-head p { font-size: 13.5px; color: var(--c-text-3); margin: 0; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--c-text-3);
    font-size: 12.5px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--c-border);
}

.auth-foot { text-align: center; margin-top: 22px; font-size: 13.5px; color: var(--c-text-3); }

/* 角色选择卡 */
.role-pick { display: flex; gap: 12px; margin-bottom: 22px; }
.role-pick label {
    flex: 1;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
}
.role-pick label:hover { border-color: var(--c-primary-light); background: #fffaf7; }
.role-pick input { display: none; }
.role-pick input:checked + .rp-inner { color: var(--c-primary); }
.role-pick label:has(input:checked) {
    border-color: var(--c-primary);
    background: var(--c-primary-soft);
    box-shadow: 0 0 0 3px rgba(232, 168, 124, .14);
}
.role-pick .rp-ico { font-size: 24px; margin-bottom: 5px; }
.role-pick .rp-nm { font-size: 13.5px; font-weight: 600; }
.role-pick .rp-ds { font-size: 11.5px; color: var(--c-text-3); margin-top: 2px; }

/* ---------------- 个人中心 ---------------- */
.profile-grid {
    display: grid;
    grid-template-columns: 216px 1fr;
    gap: 22px;
    align-items: start;
}
.side-menu {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    position: sticky;
    top: 86px;
}
.side-menu .sm-user {
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #fdf3ee, #fdf8f4);
    border-bottom: 1px solid var(--c-border);
}
.side-menu .sm-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    font-weight: 600;
    margin: 0 auto 10px;
    box-shadow: 0 4px 12px rgba(201, 111, 74, .28);
}
.side-menu .sm-name { font-size: 15px; font-weight: 600; }
.side-menu .sm-sub { font-size: 12.5px; color: var(--c-text-3); margin-top: 3px; }
.side-menu nav { padding: 8px; }
.side-menu nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--c-text-2);
    font-size: 13.5px;
    transition: all .2s;
}
.side-menu nav a:hover { background: var(--c-bg-2); color: var(--c-primary); }
.side-menu nav a.active {
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-weight: 600;
}
.side-menu nav a .ico { font-size: 15px; width: 18px; text-align: center; }

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stat-mini {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: all .22s;
}
.stat-mini:hover { border-color: var(--c-primary-light); box-shadow: var(--shadow-sm); }
.stat-mini .n {
    font-size: 23px;
    font-weight: 700;
    color: var(--c-primary);
    line-height: 1.2;
}
.stat-mini .l { font-size: 12.5px; color: var(--c-text-3); margin-top: 3px; }

/* 商品详情页图片集 */
.gallery-thumbs {
    display: flex;
    gap: 9px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.gallery-thumbs .gt {
    width: 62px; height: 62px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    background: linear-gradient(135deg, #fdf6f1, #f9ebe2);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    transition: all .2s;
}
.gallery-thumbs .gt:hover, .gallery-thumbs .gt.active { border-color: var(--c-primary); }
.gallery-thumbs .gt img { width: 100%; height: 100%; object-fit: cover; }

/* 面包屑 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--c-text-3);
    margin: 20px 0 18px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--c-text-3); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb .sep { color: var(--c-border-2); }

/* 商家列表（前台） */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 18px;
}
.shop-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 22px;
    transition: all .24s;
}
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--c-primary-light); }
.shop-card .sc-head { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; }
.shop-card .sc-logo {
    width: 50px; height: 50px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 21px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}
/* 店铺 Logo 图片模式：铺满容器、保持圆角（.has-img 由 shop_logo_html() 输出） */
.sc-logo.has-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}
.shop-card .sc-nm { font-size: 15px; font-weight: 600; }
.shop-card .sc-meta { font-size: 12.5px; color: var(--c-text-3); margin-top: 2px; }
.shop-card .sc-desc {
    font-size: 13px;
    color: var(--c-text-2);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

@media (max-width: 980px) {
    .hero .inner { flex-direction: column; gap: 34px; }
    .hero-visual { flex: none; width: 100%; }
    .hero h1 { font-size: 31px; }
    .pd-wrap { grid-template-columns: 1fr; gap: 26px; padding: 22px; }
    .checkout-grid { grid-template-columns: 1fr; }
    .order-summary { position: static; }
    .profile-grid { grid-template-columns: 1fr; }
    .side-menu { position: static; }
    .side-menu nav { display: flex; overflow-x: auto; gap: 4px; }
    .side-menu nav a { white-space: nowrap; }
}
@media (max-width: 600px) {
    .hero { padding: 44px 0 40px; }
    .hero h1 { font-size: 26px; }
    .hero p.lead { font-size: 14.5px; }
    .hero-stats { gap: 26px; }
    .hero-stats .item .num { font-size: 21px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
    .product-card .nm { font-size: 13.5px; min-height: 39px; }
    .product-card .price { font-size: 16px; }
    .auth-card { padding: 28px 22px 24px; }
    .pd-detail { padding: 20px; }
    .cart-table thead { display: none; }
}
