/* ============================================================
   臻彩UVDTF商城 前台样式（响应式）
   移动优先，>=768px 时切换为桌面布局
   ============================================================ */
:root {
    --primary: #e6456a;
    --primary-dark: #d13359;
    --bg: #f5f6f8;
    --card: #ffffff;
    --text: #222;
    --text-2: #666;
    --text-3: #999;
    --border: #eee;
    --radius: 10px;
    --topbar-h: 56px;
    --tabbar-h: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }
[v-cloak] { display: none; }

/* ---------------- 顶部栏 ---------------- */
.topbar {
    position: sticky; top: 0; z-index: 100;
    background: #fff; border-bottom: 1px solid var(--border);
    height: var(--topbar-h);
}
.topbar-inner {
    max-width: 1100px; margin: 0 auto; height: 100%;
    display: flex; align-items: center; gap: 12px;
    padding: 0 12px;
}
.logo {
    font-size: 18px; font-weight: 800; color: var(--primary);
    white-space: nowrap; cursor: pointer;
    display: flex; align-items: center;
}
.logo span { color: #333; }
.logo .logo-text { color: var(--primary); }
.logo-img { height: 30px; max-width: 150px; object-fit: contain; display: block; }
.search-box {
    flex: 1; min-width: 0; display: flex; align-items: center; height: 36px;
    background: var(--bg); border-radius: 18px; padding: 0 14px;
    cursor: text; gap: 6px; max-width: 460px; margin: 0 auto;
}
.search-icon { font-size: 14px; opacity: .5; }
.search-input { flex: 1; border: none; outline: none; background: transparent; font-size: 13px; }
.search-btn {
    background: var(--primary); color: #fff; border-radius: 14px;
    padding: 4px 12px; font-size: 12px;
}
.topbar-actions { display: none; gap: 6px; }
.lang-btn {
    flex: 0 0 auto; height: 32px; padding: 0 12px;
    background: #fdf0f3; color: var(--primary); border-radius: 16px;
    font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.lang-btn:active { background: #fbe1e8; }
.topbar-link {
    position: relative; display: flex; align-items: center; gap: 4px;
    font-size: 13px; color: var(--text-2); padding: 6px 10px; border-radius: 6px;
}
.topbar-link.active { color: var(--primary); font-weight: 600; }
.badge {
    position: absolute; top: -2px; right: -4px; min-width: 16px; height: 16px;
    background: var(--primary); color: #fff; border-radius: 8px; font-size: 10px;
    display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ---------------- 页面容器 ---------------- */
.page {
    max-width: 1100px; margin: 0 auto;
    padding: 12px 12px calc(var(--tabbar-h) + 20px);
}
@media (min-width: 768px) {
    .page { padding: 16px 20px 40px; }
    .topbar-actions { display: flex; }
    .search-box { margin: 0; }
}

/* ---------------- 分类下拉导航 ---------------- */
.cate-menu {
    position: relative; background: #fff; border-radius: var(--radius);
    margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.cate-menu-bar {
    display: flex; align-items: center; flex-wrap: wrap; gap: 2px;
    padding: 6px 10px;
}
.cate-menu-item {
    position: relative; padding: 8px 14px; font-size: 14px; color: var(--text-2);
    cursor: pointer; border-radius: 6px; white-space: nowrap; user-select: none;
}
.cate-menu-item.all { font-weight: 700; color: var(--text); }
.cate-menu-item:hover { color: var(--primary); background: #fdf0f3; }
.cate-menu-item.active { color: var(--primary); font-weight: 700; }
.cate-menu-item.open { color: var(--primary); background: #fdf0f3; }
.cate-caret { font-size: 10px; margin-left: 3px; color: var(--text-3); }

/* 分类面板（桌面 hover 展开下拉；移动端点击一级分类直接跳转分类页，不再用抽屉） */
.cate-panel {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 210;
    background: #fff; border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 12px 32px rgba(0,0,0,.14); overflow: hidden;
}

.cate-panel-body { display: flex; height: 360px; }

/* 左侧：二级分类列表（纵向滚动） */
.cate-panel-side {
    width: 190px; flex: 0 0 190px; overflow-y: auto;
    background: #f7f8fa; padding: 8px 0;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.cate-side-item {
    padding: 12px 20px; font-size: 13px; color: var(--text-2); cursor: pointer;
    border-left: 3px solid transparent; line-height: 1.4;
}
.cate-side-item:hover { color: var(--primary); }
.cate-side-item.active {
    color: var(--primary); background: #fff; font-weight: 700;
    border-left-color: var(--primary);
}
.cate-side-empty { padding: 24px 16px; font-size: 12px; color: var(--text-3); text-align: center; }

/* 右侧：三级分类网格（纵向滚动，完整平铺） */
.cate-panel-main {
    flex: 1; overflow-y: auto; padding: 16px 20px;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.cate-leaf-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.cate-leaf {
    padding: 8px 18px; background: var(--bg); border-radius: 18px;
    font-size: 13px; color: var(--text-2); cursor: pointer; line-height: 1.4;
}
.cate-leaf:hover { color: var(--primary); background: #fdf0f3; }
.cate-leaf.active { color: #fff; background: var(--primary); }

/* ---------------- 移动端 ---------------- */
@media (max-width: 767px) {
    /* 顶部栏：logo 允许收缩、搜索按钮隐藏，避免横向溢出 */
    .topbar-inner { gap: 8px; padding: 0 10px; }
    .logo { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .search-box { padding: 0 10px; margin: 0; }
    .search-btn { display: none; }
    .lang-btn { padding: 0 10px; height: 30px; font-size: 11px; }

    .cate-menu-bar {
        overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .cate-menu-bar::-webkit-scrollbar { display: none; }
    /* 一级分类项不收缩，超出容器时左右滑动 */
    .cate-menu-bar .cate-menu-item { flex: 0 0 auto; }
    /* 移动端一级分类点击即跳转分类页，面板不展开，无需抽屉 */
    .cate-panel { display: none; }
}

/* ---------------- 分类面包屑 ---------------- */
.cate-crumb { font-size: 13px; color: var(--text-3); margin: 4px 0 12px; line-height: 1.8; }
.cate-crumb .crumb-item { color: var(--text-2); cursor: pointer; }
.cate-crumb .crumb-link:hover { color: var(--primary); }
.cate-crumb .crumb-link.cur { color: var(--primary); font-weight: 700; }

/* ---------------- 子分类下钻 chips ---------------- */
.cate-subbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    padding: 10px 12px; margin-bottom: 14px; background: #fff;
    border-radius: var(--radius); box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.subbar-label { font-size: 12px; color: var(--text-3); flex: 0 0 auto; }
.subbar-chip {
    padding: 6px 14px; background: var(--bg); border-radius: 16px;
    font-size: 13px; color: var(--text-2); cursor: pointer; line-height: 1.4;
}
.subbar-chip:hover { color: var(--primary); background: #fdf0f3; }
.subbar-chip.active { color: #fff; background: var(--primary); }

/* ---------------- 热门推荐区块 ---------------- */
.hot-block { margin-bottom: 20px; }
.hot-head {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 4px 2px 10px;
}
.hot-title {
    font-size: 16px; font-weight: 800; color: var(--text);
    position: relative; padding-left: 10px;
}
.hot-title::before {
    content: ''; position: absolute; left: 0; top: 3px; bottom: 3px;
    width: 4px; border-radius: 2px; background: var(--primary);
}
.hot-more { font-size: 12px; color: var(--text-3); cursor: pointer; }
.hot-more:hover { color: var(--primary); }

/* ---------------- 商品平铺（横向一行5个，可换行） ---------------- */
.plaza {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
@media (max-width: 767px) { .plaza { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (max-width: 400px) { .plaza { grid-template-columns: repeat(3, 1fr); gap: 6px; } }

.plaza-item {
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: transform .15s;
}
.plaza-item:active { transform: scale(.96); }
.plaza-thumb {
    position: relative; width: 100%; aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
}
.plaza-code {
    color: rgba(255,255,255,.95); font-weight: 800; font-size: 13px;
    text-align: center; padding: 6px; text-shadow: 0 1px 2px rgba(0,0,0,.3);
    word-break: break-all;
}
.plaza-name {
    font-size: 12px; color: var(--text); padding: 8px 8px 4px; text-align: center;
    line-height: 1.35; height: 36px; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    word-break: break-all;
}
.plaza-cart-btn {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    width: calc(100% - 16px); margin: 0 8px 8px; height: 30px;
    background: var(--primary); color: #fff; border-radius: 15px;
    font-size: 12px; font-weight: 600;
}
.plaza-cart-btn:active { background: var(--primary-dark); }
.plaza-cart-ico { font-size: 13px; line-height: 1; }

/* ---------------- 区块标题 ---------------- */
.section-title { font-size: 15px; font-weight: 700; margin: 8px 0 12px; }

/* ---------------- 空状态 ---------------- */
.empty { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty .empty-icon { font-size: 44px; margin-bottom: 10px; }

/* ---------------- 商品详情 ---------------- */
.detail-card { background: #fff; border-radius: var(--radius); overflow: hidden; }
.detail-thumb { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.detail-thumb .thumb-text { color: #fff; font-size: 26px; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.detail-body { padding: 16px; }
.detail-price-row { display: flex; align-items: baseline; gap: 8px; }
.detail-price { color: var(--primary); font-size: 26px; font-weight: 800; }
.detail-price::before { content: '¥'; font-size: 15px; }
.detail-sales { color: var(--text-3); font-size: 12px; }
.detail-name { font-size: 17px; font-weight: 700; margin: 10px 0 6px; line-height: 1.4; }
.detail-cat { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.qty-row .qty-label { font-size: 13px; color: var(--text-2); }
.qty-ctrl { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.qty-ctrl button { width: 34px; height: 34px; font-size: 16px; background: #fafafa; }
.qty-ctrl .qty-num { width: 44px; text-align: center; font-size: 14px; }

.detail-actions { display: flex; gap: 10px; position: sticky; bottom: 0; background: #fff; padding: 12px 0; }
.detail-actions button { flex: 1; height: 44px; border-radius: 22px; font-size: 15px; }
.btn-cart { background: #fff2f5; color: var(--primary); border: 1px solid var(--primary); }
.btn-buy { background: var(--primary); color: #fff; }

/* ---------------- 购物车 ---------------- */
.cart-item {
    display: flex; gap: 10px; background: #fff; border-radius: var(--radius);
    padding: 10px; margin-bottom: 10px; align-items: center;
}
.cart-check { flex: 0 0 auto; display: flex; align-items: center; }
.cart-check input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }
.cart-thumb { width: 64px; height: 64px; border-radius: 8px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center; }
.cart-thumb .thumb-text { color: #fff; font-size: 11px; font-weight: 700; padding: 2px; text-align: center; }
.cart-info { flex: 1; min-width: 0; }
.cart-name { font-size: 13px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-del {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; background: var(--primary);
}
.cart-del:hover { background: var(--primary-dark); }
.cart-del:active { transform: scale(.92); }

.cart-footer {
    position: fixed; left: 0; right: 0; bottom: var(--tabbar-h); background: #fff;
    border-top: 1px solid var(--border); padding: 10px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px; z-index: 90;
}
@media (min-width: 768px) { .cart-footer { bottom: 0; max-width: 1100px; margin: 0 auto; border-radius: 12px 12px 0 0; } }
.cart-footer-left { display: flex; align-items: center; gap: 10px; }
.cart-footer-right { display: flex; align-items: center; gap: 12px; }
.cart-select-all { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; white-space: nowrap; }
.cart-select-all input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }
.cart-continue {
    height: 34px; padding: 0 14px; border-radius: 17px; white-space: nowrap;
    border: 1px solid var(--border); color: var(--text-2); font-size: 13px; background: #fff;
}
.cart-continue:hover { color: var(--primary); border-color: var(--primary); }
.cart-total { font-size: 14px; white-space: nowrap; }
.checkout-btn { background: var(--primary); color: #fff; height: 40px; padding: 0 24px; border-radius: 20px; font-size: 15px; white-space: nowrap; }
@media (max-width: 767px) {
    .cart-footer { padding: 8px 10px; gap: 8px; }
    .cart-footer-right { gap: 8px; }
    .cart-continue { padding: 0 10px; font-size: 12px; }
    .checkout-btn { padding: 0 16px; }
}

/* ---------------- 下单页 ---------------- */
.checkout-card { background: #fff; border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.checkout-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.checkout-item { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: var(--text-2); }
.checkout-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.checkout-total { font-size: 15px; font-weight: 700; }
.checkout-total b { color: var(--primary); font-size: 22px; }

/* ---------------- 订单列表 ---------------- */
.order-card { background: #fff; border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
.order-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-3); padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
.order-no { color: var(--text); font-weight: 600; }
.order-status { font-weight: 700; }
.order-status.paid { color: #2e7d32; }
.order-status.cancelled { color: var(--text-3); }
.order-status.pending { color: #f57f17; }
.order-goods { display: flex; gap: 8px; padding: 10px 0; flex-wrap: wrap; }
.order-goods-item {
    width: 52px; height: 52px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
}
.order-goods-item .thumb-text { color: #fff; font-size: 10px; font-weight: 700; text-align: center; padding: 2px; }
.order-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; }
.order-amount { font-size: 12px; color: var(--text-2); }
.order-amount b { color: var(--text); font-size: 16px; }
.order-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.order-btn {
    font-size: 12px; padding: 6px 12px; border-radius: 15px; border: 1px solid var(--border); color: var(--text-2);
}
.order-btn.primary { border-color: var(--primary); color: var(--primary); }
.order-btn.danger { border-color: #f3b4c0; color: var(--primary-dark); }

/* ---------------- 订单详情 ---------------- */
.detail-line { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; color: var(--text-2); }
.detail-line b { color: var(--text); }
.detail-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12px; }
.detail-table th, .detail-table td { border: 1px solid var(--border); padding: 6px; text-align: center; }
.detail-table th { background: #fafafa; }

/* ---------------- 底部 tab ---------------- */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; height: var(--tabbar-h);
    background: #fff; border-top: 1px solid var(--border); display: flex; z-index: 100;
}
@media (min-width: 768px) { .tabbar { display: none; } }
.tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; font-size: 11px; color: var(--text-3);
}
.tab.active { color: var(--primary); }
.tab-icon { font-size: 20px; position: relative; }
.tab-badge {
    position: absolute; top: -6px; right: -12px; min-width: 15px; height: 15px; background: var(--primary);
    color: #fff; border-radius: 8px; font-size: 10px; font-style: normal;
    display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* ---------------- 搜索弹层 ---------------- */
.search-mask { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 200; }
.search-pop { position: fixed; top: 0; left: 0; right: 0; background: #fff; z-index: 201; padding: 12px; }
.search-pop-head { display: flex; gap: 8px; align-items: center; }
.search-pop-input { flex: 1; height: 36px; border: 1px solid var(--border); border-radius: 18px; padding: 0 14px; outline: none; font-size: 13px; }
.search-pop-btn { background: var(--primary); color: #fff; border-radius: 18px; padding: 8px 16px; font-size: 13px; }
.search-pop-cancel { color: var(--text-2); font-size: 13px; padding: 8px 4px; }

/* ---------------- 顶部购物车图标 ---------------- */
.topbar-cart-ico { font-size: 15px; line-height: 1; }

/* ---------------- 右下角浮动按钮 ---------------- */
.float-btns {
    position: fixed; right: 14px; bottom: calc(var(--tabbar-h) + 16px);
    display: flex; flex-direction: column; gap: 12px; z-index: 120;
}
@media (min-width: 768px) { .float-btns { right: 22px; bottom: 28px; } }
.float-btn {
    position: relative; width: 46px; height: 46px; border-radius: 50%;
    background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.16);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-2); cursor: pointer; transition: transform .15s;
}
.float-btn:active { transform: scale(.92); }
.float-btn.cart { color: var(--primary); }
.float-btn.top { color: var(--primary); }
.float-ico { font-size: 20px; line-height: 1; }
.float-badge {
    position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px;
    background: var(--primary); color: #fff; border-radius: 9px; font-size: 11px;
    font-style: normal; display: flex; align-items: center; justify-content: center;
    padding: 0 4px; border: 2px solid #fff;
}
/* 移动端：只保留「回到顶部」，购物车与回首页与底部 tab 重复，隐藏 */
@media (max-width: 767px) {
    .float-btn.cart, .float-btn.home { display: none; }
}

/* ---------------- toast ---------------- */
.toast {
    position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
    background: rgba(0,0,0,.75); color: #fff; padding: 12px 20px; border-radius: 8px;
    font-size: 14px; z-index: 300; max-width: 80%; text-align: center;
}
/* 加载型提示：左侧带旋转 loading 圈，用于导出等耗时操作 */
.toast.loading { display: inline-flex; align-items: center; gap: 8px; }
.toast-spinner {
    flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
    animation: toast-spin .7s linear infinite;
}
@keyframes toast-spin { to { transform: rotate(360deg); } }
.fade-enter-active, .fade-leave-active { transition: opacity .25s; }
.fade-enter, .fade-leave-to { opacity: 0; }

/* ============================================================
   订单确认页 / 订单列表（后端化改版）
   ============================================================ */

/* ---------------- 下单确认页 ---------------- */
.confirm-list { display: flex; flex-direction: column; gap: 8px; }
.confirm-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px; background: var(--bg); border-radius: 8px;
}
.confirm-thumb { width: 44px; height: 44px; border-radius: 6px; flex: 0 0 auto; }
.confirm-name { flex: 1; min-width: 0; font-size: 13px; line-height: 1.4; word-break: break-all; }
.confirm-qty { flex: 0 0 auto; font-size: 13px; color: var(--text-2); font-weight: 600; }
.checkout-label { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.checkout-note {
    width: 100%; border: 1px solid var(--border); border-radius: 8px;
    padding: 10px 12px; font-size: 13px; line-height: 1.5; resize: vertical;
    outline: none; background: var(--bg); color: var(--text); font-family: inherit;
}
.checkout-note:focus { border-color: var(--primary); background: #fff; }
.checkout-count-row { margin: 12px 0; font-size: 14px; color: var(--text-2); }
.checkout-count-row b { color: var(--primary); font-size: 16px; }
.checkout-actions { display: flex; gap: 10px; }
.checkout-back {
    flex: 1; height: 42px; border-radius: 21px; font-size: 14px;
    border: 1px solid var(--border); color: var(--text-2); background: #fff;
}
.checkout-back:hover { color: var(--primary); border-color: var(--primary); }
.checkout-submit {
    flex: 1; height: 42px; border-radius: 21px; font-size: 15px; font-weight: 600;
    background: var(--primary); color: #fff;
}
.checkout-submit:disabled { opacity: .5; cursor: not-allowed; }
.checkout-submit:active { background: var(--primary-dark); }

/* ---------------- 订单列表 ---------------- */
.orders-toolbar { display: flex; align-items: center; margin: 4px 2px 10px; }
.orders-count { font-size: 13px; color: var(--text-3); }
.order-card { background: #fff; border-radius: var(--radius); padding: 12px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.order-card.highlight { box-shadow: 0 0 0 2px var(--primary); }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.order-head-left { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.order-no { font-size: 13px; font-weight: 700; color: var(--text); }
.order-time { font-size: 12px; color: var(--text-3); }
.order-status { flex: 0 0 auto; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 10px; white-space: nowrap; }
.order-status.pending { color: #f57f17; background: #fff8e1; }
.order-status.cancelled { color: var(--text-3); background: var(--bg); }

.order-prod-list { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; }
.order-prod {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px; background: var(--bg); border-radius: 8px;
}
.order-prod-thumb { width: 44px; height: 44px; border-radius: 6px; flex: 0 0 auto; }
.order-prod-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.order-prod-name { font-size: 13px; line-height: 1.4; word-break: break-all; }
.order-prod-qty { font-size: 12px; color: var(--text-3); }
.order-prod-cart {
    flex: 0 0 auto; margin-left: auto;
    font-size: 11px; color: var(--primary); background: #fff;
    border: 1px solid var(--primary); border-radius: 13px; padding: 4px 10px;
    white-space: nowrap;
}
.order-prod-cart:active { background: #fff2f5; }

.order-foot { display: block; padding-top: 10px; border-top: 1px dashed var(--border); }
.order-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.order-btn {
    font-size: 12px; padding: 6px 14px; border-radius: 15px; border: 1px solid var(--border);
    color: var(--text-2); background: #fff;
}
.order-btn:active { transform: scale(.95); }
.order-btn.primary { border-color: var(--primary); color: var(--primary); }
.order-btn.danger { border-color: #f3b4c0; color: var(--primary-dark); }
.order-btn:disabled { opacity: .4; cursor: not-allowed; }

/* 订单内联详情 */
.order-detail-panel { margin-top: 10px; padding: 12px; background: var(--bg); border-radius: 8px; }
.order-detail-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 5px 0; color: var(--text-2); }
.order-detail-row b { color: var(--text); text-align: right; word-break: break-all; }

/* ---------------- 分页 ---------------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 0 20px; }
.page-btn {
    min-width: 72px; height: 34px; padding: 0 14px; border-radius: 17px;
    border: 1px solid var(--border); color: var(--text-2); background: #fff; font-size: 13px;
}
.page-btn:disabled { opacity: .4; cursor: not-allowed; }
.page-btn:not(:disabled):active { color: var(--primary); border-color: var(--primary); }
.page-info { font-size: 13px; color: var(--text-2); }

/* ---------------- 商品/订单真实图片 ---------------- */
.plaza-thumb img.plaza-img,
.detail-thumb img.detail-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-thumb { overflow: hidden; }
.cart-thumb img.cart-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.confirm-thumb { overflow: hidden; }
.confirm-thumb img.confirm-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-prod-thumb { overflow: hidden; }
.order-prod-thumb img.order-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-goods-item { overflow: hidden; }
.order-goods-item img.order-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------- 订单详情商品列表（含图片） ---------------- */
.order-detail-goods { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.order-detail-goods .order-prod-thumb { width: 60px; height: 60px; }
.order-detail-goods .order-prod-name { font-size: 14px; }
.order-detail-empty { padding: 16px; text-align: center; color: var(--text-3); font-size: 13px; }
