/* ==========================================================
   醇啡集咖啡商城 · 前台样式（深焙咖棕 + 奶油质感）
   说明：全站基础变量在 app.css 里，为了不影响商家端 / 平台端后台，
   前台只在这里做变量覆盖，后台配色保持不变。
   ========================================================== */

:root {
    /* 主色：深焙咖棕 */
    --c-primary:        #6f4e37;
    --c-primary-dark:   #4f3524;
    --c-primary-light:  #a97b52;
    --c-primary-soft:   #f4ece1;

    /* 辅助：焦糖金 / 奶泡白 / 抹茶绿 */
    --c-gold:      #c99a45;
    --c-gold-soft: #f8f0e0;
    --c-green:     #5c8a5e;
    --c-berry:     #a3715c;
    --c-pink:      #a3715c;
    --c-pink-soft: #f2e7dc;
    --c-blue:      #7d95a1;
    --c-blue-soft: #eaf0f2;
    --c-purple:    #8a6a4a;
    --c-purple-soft: #f0e8dd;

    /* 中性：奶油色系 */
    --c-text:      #33251b;
    --c-text-2:    #6d5c4d;
    --c-text-3:    #9b8878;
    --c-border:    #ecdfd1;
    --c-border-2:  #dccbb8;
    --c-bg:        #fbf7f1;
    --c-bg-2:      #f5eee5;
    --c-white:     #ffffff;

    /* 状态 */
    --c-warn:    #c0803a;
    --c-success: #4f7d52;
    --c-danger:  #bd4a3c;
    --c-info:    #7d95a1;

    /* 阴影 & 圆角：浅咖投影，弱化童趣厚描边 */
    --shadow-sm: 0 1px 2px rgba(90, 62, 43, .05), 0 2px 10px rgba(90, 62, 43, .06);
    --shadow:    0 2px 4px rgba(90, 62, 43, .06), 0 12px 26px rgba(90, 62, 43, .1);
    --shadow-lg: 0 4px 8px rgba(90, 62, 43, .07), 0 22px 46px rgba(90, 62, 43, .14);
    --radius-sm: 12px;
    --radius:    18px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --line: 1.5px solid var(--c-border);
    --line-strong: 1.5px solid var(--c-border-2);
}

/* 前台整体背景：奶咖晕染 */
body {
    background: var(--c-bg);
    background-image:
        radial-gradient(circle at 10% 4%, rgba(201, 154, 69, .1), transparent 30%),
        radial-gradient(circle at 92% 12%, rgba(169, 123, 82, .08), transparent 32%);
    background-attachment: fixed;
}

/* 标题用衬线体，做咖啡馆的质感 */
h1, h2, h3, .hero h1, .section-head h2 {
    font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", serif;
    letter-spacing: 0;
}

/* app.css 里按钮主色写死了糖果渐变，后台要用原配色，所以只在前台覆盖 */
.btn { border-width: 1.5px; }
.btn-primary {
    background: linear-gradient(135deg, #a97b52, #6f4e37 65%, #4f3524);
    box-shadow: 0 4px 12px rgba(90, 62, 43, .26);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #b98a5e, #7c573e 65%, #54381f);
    box-shadow: 0 6px 16px rgba(90, 62, 43, .3);
}
.btn-danger  { box-shadow: 0 4px 12px rgba(150, 55, 40, .24); }
.btn-success { box-shadow: 0 4px 12px rgba(60, 120, 70, .24); }
.btn-soft { border-color: var(--c-border-2); }
.btn-soft:hover { background: #f0e2cf; color: var(--c-primary-dark); }

/* ---------------- Hero 区 ---------------- */
.hero {
    position: relative;
    padding: 74px 0 68px;
    background:
        radial-gradient(circle at 12% 20%, rgba(200, 160, 90, .3), transparent 42%),
        radial-gradient(circle at 88% 14%, rgba(140, 165, 180, .26), transparent 42%),
        radial-gradient(circle at 70% 88%, rgba(175, 125, 100, .2), transparent 40%),
        linear-gradient(160deg, #f8f2e9 0%, #f5ece3 55%, #f2ebe1 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(111, 78, 55, .16) 2.5px, transparent 2.5px),
        radial-gradient(circle, rgba(140, 165, 180, .14) 2.5px, transparent 2.5px);
    background-size: 46px 46px, 46px 46px;
    background-position: 0 0, 23px 23px;
    pointer-events: none;
}
.hero::after {
    content: '☕';
    position: absolute;
    right: 3%; bottom: -18px;
    font-size: 130px;
    opacity: .12;
    transform: rotate(-6deg);
    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: 6px 17px;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1.5px solid #e6d5bd;
    color: var(--c-primary);
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(111, 78, 55, .12);
}
.hero h1 {
    font-size: 42px;
    line-height: 1.22;
    margin-bottom: 16px;
    letter-spacing: -.3px;
    color: var(--c-text);
}
.hero h1 .hl {
    background: linear-gradient(110deg, #b07a3c, #8a5a2b 55%, #6f4e37 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}
.hero p.lead {
    font-size: 16px;
    color: var(--c-text-2);
    max-width: 480px;
    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);
    background: var(--c-white);
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1.5px solid #e9dccb;
    transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.hero-card:nth-child(1) { transform: translateY(-14px); }
.hero-card:nth-child(2) { transform: translateY(0); }
.hero-card:nth-child(3) { transform: translateY(0); }
.hero-card:nth-child(4) { transform: translateY(-14px); }
.hero-card:nth-child(1):hover { transform: translateY(-16px) rotate(0); }
.hero-card:nth-child(2):hover { transform: translateY(-2px) rotate(0); }
.hero-card:nth-child(3):hover { transform: translateY(-2px) rotate(0); }
.hero-card:nth-child(4):hover { transform: translateY(-16px) rotate(0); }
.hero-card:nth-child(2) { border-color: #d8cdbe; }
.hero-card:nth-child(3) { border-color: #ddcbb8; }
.hero-card:nth-child(4) { border-color: #d3c6b4; }
.hero-card .emoji { font-size: 36px; line-height: 1; }
.hero-card .t { font-weight: 800; font-size: 14.5px; color: var(--c-text); }
.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: 46px;
    padding-top: 26px;
    border-top: 1.5px dashed rgba(111, 78, 55, .22);
    flex-wrap: wrap;
}
.hero-stats .item .num {
    font-size: 27px;
    font-weight: 800;
    color: var(--c-primary);
    line-height: 1.2;
}
.hero-stats .item .lbl { font-size: 13px; color: var(--c-text-3); font-weight: 600; }

/* ---------------- 区块标题 ---------------- */
.section { margin: 56px 0; }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}
.section-head h2 {
    font-size: 24px;
    margin: 0;
    position: relative;
    padding-left: 44px;
    color: var(--c-text);
}
.section-head h2::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 32px; height: 32px;
    border-radius: 11px;
    background: linear-gradient(135deg, #c99a45, #a3703f 60%, #a3715c);
    border: 1.5px solid #fff;
    box-shadow: 0 4px 12px rgba(111, 78, 55, .2);
}
.section-head .sub {
    font-size: 13.5px;
    color: var(--c-text-3);
    margin-top: 5px;
    padding-left: 44px;
}
.section-head .more {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--c-text-3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1.5px solid var(--c-border);
    transition: all .2s;
}
.section-head .more:hover {
    color: var(--c-primary);
    border-color: var(--c-primary-light);
    background: var(--c-primary-soft);
    transform: translateY(-2px);
}

/* ---------------- 分类导航 ---------------- */
.cat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
    gap: 16px;
}
.cat-item {
    background: var(--c-white);
    border: 1.5px solid #e9dccb;
    border-radius: var(--radius);
    padding: 22px 10px 18px;
    text-align: center;
    transition: all .26s cubic-bezier(.22, .61, .36, 1);
    color: var(--c-text);
    box-shadow: var(--shadow-sm);
}
.cat-item:nth-child(4n+2) { border-color: #d8cdbe; }
.cat-item:nth-child(4n+3) { border-color: #ddcbb8; }
.cat-item:nth-child(4n+4) { border-color: #d3c6b4; }
.cat-item:nth-child(4n+1) { border-color: #e2d0a6; }
.cat-item:hover {
    background: linear-gradient(160deg, #fbf7f1, #f7f0e6);
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    color: var(--c-primary-dark);
}
.cat-item .ico {
    font-size: 30px;
    margin-bottom: 8px;
    line-height: 1;
    display: inline-block;
    transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.cat-item:hover .ico { transform: scale(1.14); }
.cat-item .nm { font-size: 14px; font-weight: 700; }
.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(236px, 1fr));
    gap: 22px;
}

.product-card {
    background: var(--c-white);
    border: 1.5px solid #e9dccb;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all .28s cubic-bezier(.22, .61, .36, 1);
    position: relative;
    box-shadow: var(--shadow-sm);
}
.product-card:nth-child(4n+2) { border-color: #d8cdbe; }
.product-card:nth-child(4n+3) { border-color: #ddcbb8; }
.product-card:nth-child(4n+4) { border-color: #d3c6b4; }
.product-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.product-card .thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #f7f0e6, #efe7dc);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card .thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}
.product-card:hover .thumb img { transform: scale(1.07); }

.product-card .thumb .ph-emoji { font-size: 58px; opacity: .85; }

.product-card .corner {
    position: absolute;
    top: 12px; left: 12px;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 800;
    background: linear-gradient(135deg, #c99a45, #c0803a);
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(150, 110, 45, .24);
}
.product-card .corner.hot {
    background: linear-gradient(135deg, #a3703f, #bd4a3c);
    box-shadow: 0 4px 10px rgba(150, 55, 40, .22);
}

.product-card .body {
    padding: 15px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-card .nm {
    font-size: 14.5px;
    font-weight: 700;
    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: 19px;
    font-weight: 800;
    line-height: 1.1;
}
.product-card .price .cur { font-size: 13px; 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: 36px; height: 36px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .24s cubic-bezier(.22, .61, .36, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(90, 62, 43, .24);
    line-height: 1;
}
.product-card .add-cart:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 0 rgba(90, 62, 43, .32);
}

/* ---------------- 筛选栏 ---------------- */
.filter-bar {
    background: var(--c-white);
    border: var(--line);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 0;
}
.filter-row + .filter-row { border-top: 2px dashed var(--c-border); }
.filter-row .lbl {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-text-3);
    flex-shrink: 0;
    min-width: 52px;
}
.filter-row .opts { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-row .opt {
    padding: 5px 15px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-2);
    transition: all .2s;
    border: 2px solid transparent;
}
.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;
    border-color: #fff;
    box-shadow: 0 4px 12px rgba(90, 62, 43, .2);
}

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

.pd-info h1 { font-size: 26px; 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, #f7f0e6, #f4ece2);
    border: 1.5px solid #e6d5bd;
    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: 34px;
    font-weight: 800;
    line-height: 1;
}
.pd-price-box .now .cur { font-size: 18px; }
.pd-price-box .old {
    color: var(--c-text-3);
    text-decoration: line-through;
    font-size: 14px;
}
.pd-price-box .save {
    font-size: 12.5px;
    font-weight: 700;
    background: linear-gradient(135deg, #c0604c, #bd4a3c);
    color: #fff;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    border: 2px solid #fff;
}

.pd-meta { margin-bottom: 22px; }
.pd-meta .line {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    font-size: 13.5px;
    border-bottom: 2px 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; font-weight: 600; }
.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-2);
    border-radius: var(--radius-pill);
    overflow: hidden;
    background: var(--c-white);
}
.qty-picker button {
    width: 40px; height: 42px;
    border: none;
    background: var(--c-bg-2);
    color: var(--c-text-2);
    font-size: 19px;
    font-weight: 700;
    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: .35; cursor: not-allowed; }
.qty-picker input {
    width: 58px; height: 42px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    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: var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
}
.pd-detail .pd-detail-head {
    display: flex;
    gap: 26px;
    border-bottom: var(--line);
    margin-bottom: 22px;
}
.pd-detail .pd-detail-head span {
    padding: 10px 0;
    font-size: 15.5px;
    font-weight: 800;
    color: var(--c-primary);
    border-bottom: 2px solid var(--c-primary);
    margin-bottom: -2.5px;
}
.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: 16px;
    font-weight: 800;
    color: var(--c-text);
    margin: 28px 0 12px;
    padding-left: 12px;
    border-left: 5px solid var(--c-primary);
    border-radius: 3px;
    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: var(--line);
    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: 700;
    color: var(--c-text);
    white-space: nowrap;
    background: var(--c-primary-soft);
}

/* ---------------- 购物车 ---------------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    padding: 14px 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--c-text-2);
    background: linear-gradient(135deg, #fbf7f1, #f6efe7);
    border-bottom: var(--line);
}
.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: 78px; height: 78px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: linear-gradient(135deg, #f7f0e6, #efe7dc);
    border: var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}
.cart-prod .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-prod .nm { font-size: 14px; font-weight: 700; 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: var(--line);
    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);
    box-shadow: 0 -6px 20px rgba(111, 78, 55, .1);
}
.cart-foot .total { font-size: 14px; color: var(--c-text-2); }
.cart-foot .total .amt {
    color: var(--c-danger);
    font-size: 26px;
    font-weight: 800;
    margin-left: 6px;
}

/* ---------------- 结算页 ---------------- */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
.addr-option {
    display: flex;
    gap: 12px;
    padding: 15px 17px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all .2s;
    background: var(--c-white);
}
.addr-option:hover { border-color: var(--c-primary-light); background: #fbf6ef; }
.addr-option.selected {
    border-color: var(--c-primary);
    background: var(--c-primary-soft);
    box-shadow: 0 0 0 4px rgba(168, 130, 92, .16);
}
.addr-option input[type=radio] { margin-top: 3px; accent-color: var(--c-primary); }
.addr-option .who { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.addr-option .who .mob { font-weight: 500; 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: 1.5px solid #e9dccb;
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: 92px;
    box-shadow: var(--shadow);
}
.order-summary h3 { font-size: 16.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: 2px dashed var(--c-border-2);
    margin-top: 10px;
    padding-top: 14px;
    font-size: 15px;
    color: var(--c-text);
    font-weight: 700;
}
.sum-line.total .amt { color: var(--c-danger); font-size: 23px; font-weight: 800; }

.checkout-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 2px dashed var(--c-border);
}
.checkout-item:last-child { border-bottom: none; }
.checkout-item .thumb {
    width: 60px; height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: linear-gradient(135deg, #f7f0e6, #efe7dc);
    border: 2px solid var(--c-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    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: var(--line);
    border-radius: var(--radius);
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.order-card .oc-head {
    padding: 13px 18px;
    background: linear-gradient(135deg, #fbf7f1, #f6efe7);
    border-bottom: var(--line);
    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: 700; }
.order-card .oc-body { padding: 4px 18px; }
.order-card .oc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 2px dashed var(--c-border);
}
.order-card .oc-item:last-child { border-bottom: none; }
.order-card .oc-item .thumb {
    width: 68px; height: 68px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: linear-gradient(135deg, #f7f0e6, #efe7dc);
    border: 2px solid var(--c-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    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: 700; }
.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: var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #fdfaf6;
}
.order-card .oc-foot .amt { font-size: 15px; }
.order-card .oc-foot .amt b { color: var(--c-danger); font-size: 20px; }
.order-card .oc-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* 订单状态 Tab */
.tabs {
    display: flex;
    gap: 5px;
    background: var(--c-white);
    border: var(--line);
    border-radius: var(--radius);
    padding: 7px;
    margin-bottom: 20px;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}
.tabs a {
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 600;
    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 4px 12px rgba(90, 62, 43, .2);
}

/* ---------------- 订单流程条 ---------------- */
.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);
    font-weight: 600;
}
.steps .step .dot {
    width: 38px; height: 38px;
    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: 16px;
    position: relative;
    z-index: 1;
    border: 1.5px solid #fff;
    box-shadow: 0 0 0 2px var(--c-border-2);
}
.steps .step::before {
    content: '';
    position: absolute;
    top: 19px; left: -50%;
    width: 100%; height: 3px;
    background: var(--c-border-2);
    z-index: 0;
    border-radius: 2px;
}
.steps .step:first-child::before { display: none; }
.steps .step.done .dot {
    background: linear-gradient(135deg, #c99a45, #a3703f);
    color: #fff;
    box-shadow: 0 0 0 2px #e5d3b5, 0 4px 0 rgba(90, 62, 43, .28);
}
.steps .step.done { color: var(--c-primary); font-weight: 700; }
.steps .step.done::before { background: var(--c-primary-light); }

/* ---------------- 认证页 ---------------- */
.auth-wrap {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 20px;
    background:
        radial-gradient(circle at 16% 20%, rgba(200, 160, 90, .28), transparent 42%),
        radial-gradient(circle at 84% 76%, rgba(140, 165, 180, .22), transparent 42%),
        radial-gradient(circle at 60% 10%, rgba(175, 125, 100, .16), transparent 38%),
        linear-gradient(150deg, #faf5ee, #f7f1e9);
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--c-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 38px 36px 32px;
    border: 1.5px solid #e9dccb;
    position: relative;
}
.auth-card::before {
    content: '☕';
    position: absolute;
    top: -20px; right: -14px;
    font-size: 40px;
    transform: rotate(8deg);
}
.auth-card.wide { max-width: 660px; }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head .ico {
    width: 58px; height: 58px;
    border-radius: 19px;
    background: linear-gradient(135deg, #c99a45, #a3703f 60%, #a3715c);
    border: 1.5px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 14px;
    box-shadow: 0 6px 16px rgba(111, 78, 55, .22);
    transform: none;
}
.auth-head h1 { font-size: 23px; 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: 2px;
    background: var(--c-border);
    border-radius: 2px;
}

.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: #fbf6ef; }
.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 4px rgba(168, 130, 92, .16);
}
.role-pick .rp-ico { font-size: 26px; margin-bottom: 5px; }
.role-pick .rp-nm { font-size: 13.5px; font-weight: 700; }
.role-pick .rp-ds { font-size: 11.5px; color: var(--c-text-3); margin-top: 2px; }

/* ---------------- 个人中心 ---------------- */
.profile-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    align-items: start;
}
.side-menu {
    background: var(--c-white);
    border: var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    position: sticky;
    top: 92px;
    box-shadow: var(--shadow-sm);
}
.side-menu .sm-user {
    padding: 22px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f7f0e6, #f5eee5);
    border-bottom: var(--line);
}
.side-menu .sm-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c99a45, #a3703f 60%, #a3715c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: 800;
    margin: 0 auto 10px;
    border: 1.5px solid #fff;
    box-shadow: 0 4px 12px rgba(111, 78, 55, .2);
}
.side-menu .sm-name { font-size: 15.5px; font-weight: 800; }
.side-menu .sm-sub { font-size: 12.5px; color: var(--c-text-3); margin-top: 3px; }
.side-menu nav { padding: 9px; }
.side-menu nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    color: var(--c-text-2);
    font-size: 13.5px;
    font-weight: 600;
    transition: all .2s;
}
.side-menu nav a:hover { background: var(--c-bg-2); color: var(--c-primary); }
.side-menu nav a.active {
    background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(90, 62, 43, .18);
}
.side-menu nav a.active .cnt { background: rgba(255, 255, 255, .3); color: #fff; }
.side-menu nav a .ico { font-size: 16px; width: 19px; text-align: center; }
.side-menu nav a .cnt {
    margin-left: auto;
    background: var(--c-danger);
    color: #fff;
    font-size: 10.5px;
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    min-width: 18px;
    text-align: center;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.stat-mini {
    background: var(--c-white);
    border: 1.5px solid #e9dccb;
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: all .24s cubic-bezier(.22, .61, .36, 1);
    box-shadow: var(--shadow-sm);
}
.stat-mini:nth-child(3n+2) { border-color: #d8cdbe; }
.stat-mini:nth-child(3n+3) { border-color: #ddcbb8; }
.stat-mini:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-mini .n {
    font-size: 24px;
    font-weight: 800;
    color: var(--c-primary);
    line-height: 1.2;
}
.stat-mini .l { font-size: 12.5px; color: var(--c-text-3); margin-top: 3px; font-weight: 600; }

/* 商品详情页图片集 */
.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.gallery-thumbs .gt {
    width: 66px; height: 66px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1.5px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f7f0e6, #efe7dc);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    transition: all .2s;
}
.gallery-thumbs .gt:hover, .gallery-thumbs .gt.active {
    border-color: var(--c-primary);
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(111, 78, 55, .16);
}
.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: 22px 0 18px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--c-text-3); font-weight: 600; }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb .sep { color: var(--c-primary-light); font-weight: 700; }
.breadcrumb > span:last-child { color: var(--c-text-2); font-weight: 700; }

/* 商家列表（前台） */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
    gap: 20px;
}
.shop-card {
    background: var(--c-white);
    border: 1.5px solid #e9dccb;
    border-radius: var(--radius);
    padding: 22px;
    transition: all .26s cubic-bezier(.22, .61, .36, 1);
    box-shadow: var(--shadow-sm);
}
.shop-card:nth-child(3n+2) { border-color: #d8cdbe; }
.shop-card:nth-child(3n+3) { border-color: #ddcbb8; }
.shop-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}
.shop-card .sc-head { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; }
.shop-card .sc-logo {
    width: 54px; height: 54px;
    border-radius: 17px;
    background: linear-gradient(135deg, #c99a45, #a3703f 60%, #a3715c);
    color: #fff;
    border: 1.5px solid #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 23px;
    font-weight: 800;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(111, 78, 55, .18);
}
/* 店铺 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: 15.5px; font-weight: 800; }
.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: 32px; }
    .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: 5px; }
    .side-menu nav a { white-space: nowrap; }
}
@media (max-width: 600px) {
    .hero { padding: 46px 0 42px; }
    .hero h1 { font-size: 27px; }
    .hero p.lead { font-size: 14.5px; }
    .hero-stats { gap: 26px; }
    .hero-stats .item .num { font-size: 22px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 13px; }
    .product-card .nm { font-size: 13.5px; min-height: 39px; }
    .product-card .price { font-size: 17px; }
    .auth-card { padding: 28px 22px 24px; }
    .auth-card::before { display: none; }
    .pd-detail { padding: 20px; }
    .cart-table thead { display: none; }
}

/* ==========================================================
   咖啡商城新增组件（时效 / 发货地 / 承诺条）
   ========================================================== */

/* 顶部物流承诺条 */
.promise-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
    gap: 14px;
    margin-top: -34px;
    position: relative;
    z-index: 2;
}
.promise-item {
    background: var(--c-white);
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: var(--shadow-sm);
    transition: all .24s cubic-bezier(.22, .61, .36, 1);
    color: var(--c-text);
}
.promise-item:hover {
    transform: translateY(-4px);
    border-color: var(--c-primary-light);
    box-shadow: var(--shadow);
    color: var(--c-text);
}
.promise-item .pi-ico {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 6px;
}
.promise-item .pi-t {
    font-family: Georgia, "Songti SC", serif;
    font-size: 15.5px;
    font-weight: 800;
}
.promise-item .pi-d { font-size: 12.5px; color: var(--c-text-3); }

/* 商家入驻 CTA */
.cta-banner {
    background: linear-gradient(120deg, #6f4e37, #8a5a2b 52%, #b07a3c 100%);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; margin-bottom: 10px; font-size: 25px; }
.cta-banner p { color: rgba(255, 255, 255, .88); margin: 0; font-size: 14.5px; max-width: 560px; }
.cta-banner .btn {
    background: #fff;
    color: var(--c-primary);
    border-color: #fff;
    flex-shrink: 0;
}
.cta-banner .btn:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }

/* 商品卡片：承诺时效角标 + 发货地信息行 */
.product-card .ship-time {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--c-primary-dark);
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--c-border);
    backdrop-filter: blur(2px);
}
.product-card .ship-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11.5px;
    color: var(--c-text-3);
    margin-bottom: 8px;
}
.product-card .ship-line .st {
    color: var(--c-primary);
    font-weight: 700;
    background: var(--c-primary-soft);
    border-radius: var(--radius-pill);
    padding: 2px 9px;
}

/* 列表页筛选：发货地 / 到货时间 */
.filter-row-ship .lbl::before { content: '📍 '; }
.filter-row-time .lbl::before { content: '⏱ '; }
.filter-row .opt-cnt {
    display: inline-block;
    margin-left: 5px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    font-size: 10.5px;
    font-weight: 700;
    background: var(--c-bg-2);
    color: var(--c-text-3);
}
.filter-row .opt.active .opt-cnt { background: rgba(255, 255, 255, .28); color: #fff; }

/* 结果区上方的时效摘要条 */
.ship-note {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 18px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    background: linear-gradient(120deg, var(--c-primary-soft), #fff 70%);
    border: 1.5px solid var(--c-border);
    font-size: 13.5px;
    color: var(--c-text-2);
}
.ship-note .ico { font-size: 18px; }
.ship-note .txt { flex: 1; min-width: 220px; }
.ship-note .txt b { color: var(--c-primary); }
.ship-note .reset {
    font-size: 12.5px;
    color: var(--c-text-3);
    border-bottom: 1px dashed var(--c-border-2);
    padding-bottom: 1px;
}

/* 详情页时效标签 */
.pd-ship-time {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    color: var(--c-primary);
    background: var(--c-primary-soft);
    border: 1px solid var(--c-border);
}
.pd-eta { margin-left: 8px; font-size: 12.5px; color: var(--c-text-3); }

@media (max-width: 600px) {
    .promise-bar { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
    .promise-item { padding: 13px 14px; }
    .promise-item .pi-t { font-size: 14px; }
    .promise-item .pi-d { font-size: 11.5px; }
    .cta-banner { padding: 26px 20px; }
    .cta-banner h2 { font-size: 20px; }
}