/* 沉香商城 — Dark Luxury（深林绿 + 鎏金） */

.mall-app {
    --mall-bg: #04120e;
    --mall-bg-card: linear-gradient(160deg, rgba(18, 42, 32, 0.95) 0%, rgba(8, 24, 18, 0.98) 100%);
    --mall-border: rgba(252, 213, 53, 0.22);
    --mall-border-active: rgba(252, 213, 53, 0.55);
    --mall-gold: #fcd535;
    --mall-gold-dark: #c9a227;
    --mall-gold-glow: rgba(252, 213, 53, 0.35);
    --mall-green: #2ec4b6;
    --mall-green-dark: #1a7a6e;
    --mall-text-muted: rgba(255, 255, 255, 0.55);
}

.mall-app {
    background: var(--mall-bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(46, 196, 182, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(252, 213, 53, 0.04), transparent);
}

.mall-app .page-content.mall-page {
    background: transparent;
}

.mall-app .navbar-wrapper,
.mall-app .sub-nav,
.mall-app .bottom-nav {
    background: rgba(4, 18, 14, 0.96) !important;
    border-color: rgba(252, 213, 53, 0.12) !important;
}

.mall-app .sub-nav-item.active,
.mall-app .bottom-nav-item.active {
    color: var(--mall-gold) !important;
}

.mall-app .sub-nav-item.active i,
.mall-app .bottom-nav-item.active i {
    color: var(--mall-gold) !important;
}

.mall-app .main-nav-item.active {
    color: var(--mall-gold);
}

.mall-app .btn-connect {
    background: linear-gradient(135deg, #fcd535 0%, #c9a227 100%) !important;
    color: #1a1400 !important;
    font-weight: 600;
    border: none !important;
}

/* 顶栏留白由 common.css body.mall-app .page-content.mall-page 统一控制 */

body.mall-app .page-content.mall-page > .container {
    max-width: 1140px;
}

body.mall-app .page-content.mall-page .row {
    margin-bottom: 0;
}

body.mall-app .page-content.mall-page .row.g-3 {
    --bs-gutter-y: 0.75rem;
}

/* 顶栏资产条 */
.mall-wallet-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    background: var(--mall-bg-card);
    border: 1px solid var(--mall-border);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.mall-wallet-item {
    flex: 1;
    text-align: center;
    padding: 0.35rem 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.mall-wallet-item:last-child {
    border-right: none;
}

.mall-wallet-label {
    font-size: 0.68rem;
    color: var(--mall-text-muted);
    margin-bottom: 0.2rem;
}

.mall-wallet-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--mall-gold);
}

.mall-wallet-value span.unit {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--mall-text-muted);
    margin-left: 0.15rem;
}

/* 分类横滑 */
.mall-cat-scroll {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding: 0.25rem 0 1rem;
    margin-bottom: 0.5rem;
    scrollbar-width: none;
}

.mall-cat-scroll::-webkit-scrollbar {
    display: none;
}

.mall-cat-chip {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.85rem;
    min-width: 72px;
    background: rgba(18, 42, 32, 0.6);
    border: 1px solid var(--mall-border);
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.68rem;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.mall-cat-chip:hover,
.mall-cat-chip.active {
    border-color: var(--mall-border-active);
    background: rgba(252, 213, 53, 0.08);
    color: var(--mall-gold);
}

.mall-cat-chip i {
    font-size: 1.25rem;
    color: var(--mall-gold);
}

/* Banner */
.mall-hero-banner {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--mall-border);
    position: relative;
}

.mall-hero-banner img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 160px;
}

.mall-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 18, 14, 0.85) 0%, transparent 70%);
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    pointer-events: none;
}

.mall-hero-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mall-gold);
    text-shadow: 0 0 20px var(--mall-gold-glow);
}

.mall-hero-sub {
    font-size: 0.75rem;
    color: var(--mall-text-muted);
    margin-top: 0.25rem;
}

/* 区块标题 */
.section-title,
.mall-section-title {
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 1rem 0 0.75rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--mall-gold);
}

.section-title::before,
.mall-section-title::before {
    display: none;
}

.section-title span {
    background: transparent;
    padding: 0;
}

/* 商品网格 */
.product-grid,
.mall-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

@media (min-width: 992px) {
    .product-grid,
    .mall-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .product-grid,
    .mall-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card,
.mall-product-card {
    background: var(--mall-bg-card);
    border: 1px solid var(--mall-border);
    border-radius: 16px;
    padding: 0.65rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.product-card::before,
.mall-product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mall-gold-glow), transparent);
    opacity: 0.6;
}

.product-card:hover,
.mall-product-card:hover {
    border-color: var(--mall-border-active);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 24px var(--mall-gold-glow);
}

.product-pic,
.mall-product-pic {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    background: #0a1a14;
}

.product-title,
.mall-product-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    margin-top: 0.55rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description,
.mall-product-desc {
    font-size: 0.7rem;
    color: var(--mall-text-muted);
    margin-top: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mall-product-footer,
.mall-product-card .mall-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 0.5rem;
    gap: 0.35rem;
}

.mall-price-block {
    flex: 1;
    min-width: 0;
}

.product-price,
.mall-product-price,
.mall-price-xtb {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mall-gold);
    line-height: 1.2;
}

.mall-price-usd {
    font-size: 0.68rem;
    color: var(--mall-text-muted);
    margin-top: 0.1rem;
}

.btn-add-cart,
.mall-btn-cart {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--mall-green) 0%, var(--mall-green-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(46, 196, 182, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-add-cart:hover,
.mall-btn-cart:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(46, 196, 182, 0.5);
}

/* 支付方式条（首页提示 / 购物车） */
.mall-pay-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--mall-bg-card);
    border: 1px solid var(--mall-border);
    border-radius: 14px;
}

.mall-pay-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.65rem;
    font-weight: 600;
}

.mall-pay-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mall-pay-pill {
    flex: 1;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.5rem;
    background: rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.mall-pay-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mall-pay-pill .pay-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.mall-pay-pill .pay-icon.xtb {
    background: linear-gradient(135deg, #fcd535, #daa90c);
    color: #1a1400;
    box-shadow: 0 0 16px var(--mall-gold-glow);
}

.mall-pay-pill .pay-icon.usdt {
    background: linear-gradient(135deg, #26a17b, #1a7a5c);
    color: #fff;
}

.mall-pay-pill .pay-icon.balance {
    background: rgba(46, 196, 182, 0.25);
    color: var(--mall-green);
    border: 1px solid rgba(46, 196, 182, 0.4);
}

.mall-pay-pill .pay-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.mall-pay-pill .pay-bal {
    font-size: 0.62rem;
    color: var(--mall-text-muted);
}

.mall-pay-pill:has(input:checked),
.mall-pay-pill.active {
    border-color: var(--mall-gold);
    background: rgba(252, 213, 53, 0.08);
    box-shadow: 0 0 20px var(--mall-gold-glow);
}

.mall-pay-pill:has(input:checked) .pay-name {
    color: var(--mall-gold);
}

/* 金色主按钮 */
.mall-btn-gold,
.checkout-btn,
.mall-btn-primary,
.add-to-cart-btn,
.btn-go-shopping {
    background: linear-gradient(135deg, #fcd535 0%, #e8b923 50%, #c9a227 100%) !important;
    border: none !important;
    color: #1a1400 !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px var(--mall-gold-glow) !important;
    text-shadow: none !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.mall-btn-gold:hover,
.checkout-btn:hover:not(:disabled),
.mall-btn-primary:hover,
.add-to-cart-btn:hover,
.btn-go-shopping:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px var(--mall-gold-glow) !important;
    color: #1a1400 !important;
}

.checkout-btn:disabled {
    opacity: 0.45;
    transform: none !important;
}

/* 购物车 / 订单卡片 */
.cart-item,
.order-item,
.mall-order-card,
.product-image-container,
.product-info-container,
.cart-summary {
    background: var(--mall-bg-card) !important;
    border: 1px solid var(--mall-border) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

.cart-title,
.orders-title,
.product-detail-page .product-title,
.mall-detail-title {
    color: var(--mall-gold) !important;
    text-shadow: none !important;
}

.cart-item-price,
.order-amount,
.product-detail-page .product-price,
.mall-detail-price,
.summary-row.total {
    color: var(--mall-gold) !important;
    text-shadow: none !important;
}

.cart-header,
.orders-header,
.mall-cart-header {
    border-bottom-color: var(--mall-border) !important;
}

.mall-form-select,
.quantity-input,
.mall-qty-input {
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid var(--mall-border) !important;
    color: #fff !important;
}

.payment-method-option,
.mall-payment-option {
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 0.75rem !important;
    background: rgba(0, 0, 0, 0.2) !important;
    cursor: pointer;
}

.payment-method-option:has(input:checked),
.mall-payment-option:has(input:checked) {
    border-color: var(--mall-gold) !important;
    background: rgba(252, 213, 53, 0.08) !important;
}

/* 分类页 */
.category-page,
.mall-category-page {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 100%;
    min-height: 360px;
    background: var(--mall-bg-card);
    border: 1px solid var(--mall-border);
    border-radius: 16px;
    overflow: hidden;
}

.category-left,
.mall-category-left {
    width: 96px;
    flex-shrink: 0;
    background: rgba(8, 24, 18, 0.95);
    border-right: 1px solid var(--mall-border);
}

.category-item,
.mall-category-item {
    display: block;
    padding: 0.85rem 0.5rem;
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    color: var(--mall-text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s, color 0.2s;
}

.category-item:hover {
    color: var(--mall-gold);
    background: rgba(252, 213, 53, 0.05);
}

.category-item.active {
    background: rgba(252, 213, 53, 0.1);
    color: var(--mall-gold);
    border-left: 3px solid var(--mall-gold);
    font-weight: 600;
}

.category-right,
.mall-category-right {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    min-width: 0;
}

.product-row,
.mall-product-row {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--mall-border);
    border-radius: 14px;
    height: 100%;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.product-row:hover {
    border-color: var(--mall-border-active);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.product-row .product-img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--mall-border);
    flex-shrink: 0;
    background: #0a1a14;
}

.product-row .product-detail {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.product-row .product-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-row .product-desc {
    font-size: 0.72rem;
    color: var(--mall-text-muted);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-row .product-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
}

.product-row .product-price {
    color: var(--mall-gold);
    font-weight: 700;
}

.product-row .product-actions {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

.product-row .product-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mall-green), var(--mall-green-dark));
    color: #fff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-row .product-btn-view {
    background: rgba(252, 213, 53, 0.15);
    color: var(--mall-gold);
    border: 1px solid var(--mall-border);
}

.product-row .product-btn:hover {
    transform: scale(1.06);
}

.mall-wallet-cart-icon {
    color: var(--mall-green) !important;
}

.mall-wallet-cart-icon.active,
.mall-wallet-cart-link.is-active .mall-wallet-cart-icon {
    color: var(--mall-gold) !important;
}

.mall-wallet-cart-link.is-active {
    background: rgba(252, 213, 53, 0.06);
    border-radius: 10px;
}

.mall-empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--mall-text-muted);
    border: 1px dashed var(--mall-border);
    border-radius: 14px;
    background: rgba(252, 213, 53, 0.03);
}

.mall-empty-state i {
    font-size: 2rem;
    color: var(--mall-gold);
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.mall-link-gold {
    color: var(--mall-gold);
    text-decoration: underline;
}

/* 购物车页 */
.cart-page,
.orders-page {
    max-width: 900px;
    margin: 0 auto;
}

.cart-header,
.orders-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--mall-border);
}

.cart-title,
.orders-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.cart-sub,
.orders-sub {
    font-size: 0.75rem;
    color: var(--mall-text-muted);
    margin: 0.25rem 0 0;
}

.clear-cart-btn {
    flex-shrink: 0;
    padding: 0.45rem 0.75rem;
    font-size: 0.75rem;
    color: #ff8a8a;
    background: rgba(255, 77, 79, 0.12);
    border: 1px solid rgba(255, 77, 79, 0.35);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.clear-cart-btn:hover {
    background: rgba(255, 77, 79, 0.2);
}

.cart-empty,
.no-orders {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--mall-bg-card);
    border: 1px dashed var(--mall-border);
    border-radius: 16px;
}

.cart-empty-icon,
.no-orders-icon {
    font-size: 3rem;
    color: var(--mall-gold);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.cart-empty h3,
.no-orders h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.35rem;
}

.cart-empty p,
.no-orders p {
    font-size: 0.85rem;
    color: var(--mall-text-muted);
    margin-bottom: 1rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    gap: 0.85rem;
    padding: 1rem;
    align-items: flex-start;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--mall-border);
    flex-shrink: 0;
    background: #0a1a14;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cart-item-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.cart-item-desc {
    font-size: 0.72rem;
    color: var(--mall-text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--mall-border);
    border-radius: 8px;
    padding: 0.15rem;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(252, 213, 53, 0.12);
    color: var(--mall-gold);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 42px;
    text-align: center;
    border: none !important;
    background: transparent !important;
    padding: 0.2rem !important;
    font-size: 0.85rem;
}

.remove-btn {
    font-size: 0.72rem;
    color: #ff8a8a;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.2rem 0;
}

.cart-summary {
    padding: 1.1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.summary-row.total {
    font-size: 1rem;
    font-weight: 700;
    padding-top: 0.65rem;
    margin-top: 0.35rem;
    border-top: 1px solid var(--mall-border);
}

.summary-row.summary-usd {
    font-size: 0.72rem;
}

.summary-row.summary-address {
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.summary-address-field {
    flex: 1;
    min-width: 0;
}

.mall-address-tip {
    margin-top: 0.5rem;
    font-size: 0.72rem;
    color: var(--mall-text-muted);
}

.checkout-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
}

/* 订单页 */
.orders-page .order-item {
    padding: 1.1rem;
    margin-bottom: 0.85rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(252, 213, 53, 0.12);
}

.order-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.order-date {
    font-size: 0.72rem;
    color: var(--mall-text-muted);
    margin-top: 0.15rem;
}

.order-status {
    flex-shrink: 0;
    padding: 0.25rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 20px;
    background: rgba(252, 213, 53, 0.12);
    color: var(--mall-gold);
    border: 1px solid var(--mall-border);
}

.order-status.status-1 {
    background: rgba(46, 196, 182, 0.15);
    color: var(--mall-green);
    border-color: rgba(46, 196, 182, 0.35);
}

.order-status.status-2 {
    background: rgba(255, 77, 79, 0.12);
    color: #ff8a8a;
    border-color: rgba(255, 77, 79, 0.35);
}

.mall-order-items-wrap {
    margin-bottom: 0.85rem;
}

.mall-order-items-label {
    font-size: 0.72rem;
    color: var(--mall-text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mall-order-line {
    display: flex;
    gap: 0.65rem;
    padding: 0.65rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(252, 213, 53, 0.1);
    border-radius: 10px;
}

.mall-order-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--mall-border);
    flex-shrink: 0;
}

.mall-order-line-title {
    font-size: 0.82rem;
    color: #fff;
    font-weight: 500;
}

.mall-order-line-meta {
    font-size: 0.72rem;
    color: var(--mall-text-muted);
}

.mall-badge {
    flex-shrink: 0;
    padding: 0.15rem 0.45rem;
    font-size: 0.62rem;
    font-weight: 600;
    border-radius: 20px;
    background: rgba(252, 213, 53, 0.12);
    color: var(--mall-gold);
    border: 1px solid var(--mall-border);
}

.mall-badge-service {
    background: rgba(46, 196, 182, 0.12);
    color: var(--mall-green);
    border-color: rgba(46, 196, 182, 0.35);
}

.mall-service-hint {
    font-size: 0.68rem;
    color: var(--mall-green);
    margin-top: 0.35rem;
}

.order-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-top: 1px solid rgba(252, 213, 53, 0.12);
}

.order-amount-label {
    font-size: 0.82rem;
    color: var(--mall-text-muted);
}

.order-amount {
    font-size: 1.05rem;
    font-weight: 700;
}

.order-recipient {
    margin-top: 0.65rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(252, 213, 53, 0.1);
    border-radius: 10px;
}

.order-recipient-label {
    font-size: 0.72rem;
    color: var(--mall-text-muted);
    margin-bottom: 0.35rem;
}

.order-recipient-info {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.btn-go-shopping {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 1.25rem;
    text-decoration: none;
}

@media (max-width: 768px) {
    .category-page {
        flex-direction: column;
        min-height: auto;
    }

    .category-left {
        width: 100%;
        display: flex;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--mall-border);
    }

    .category-item {
        flex-shrink: 0;
        min-width: 72px;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
    }

    .category-item.active {
        border-left: none;
        border-bottom: 3px solid var(--mall-gold);
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .cart-item-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .mall-pay-options {
        flex-direction: column;
    }

    .mall-pay-pill {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
}

/* 商品详情页 */
.mall-detail-back {
    margin-bottom: 1rem;
}

.mall-detail-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--mall-green);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.mall-detail-back a:hover {
    color: var(--mall-gold);
}

.product-detail-page {
    margin-bottom: 1rem;
}

.product-detail-page .product-image-container {
    padding: 1rem;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-page .product-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
    background: #0a1a14;
    border: 1px solid var(--mall-border);
}

.product-detail-page .product-info-container {
    padding: 1.25rem 1.35rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-detail-page .product-title,
.product-detail-page .mall-detail-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff !important;
    margin: 0 0 0.35rem;
    line-height: 1.35;
}

.product-detail-page .product-sku {
    font-size: 0.75rem;
    color: var(--mall-text-muted);
    margin: 0 0 1rem;
}

.product-detail-page .mall-detail-price-block {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(252, 213, 53, 0.12);
}

.product-detail-page .mall-detail-price {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
}

.product-detail-page .mall-detail-price-block .mall-price-usd {
    margin-top: 0.25rem;
    font-size: 0.8rem;
}

.product-detail-page .product-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0 0 1.25rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.product-detail-page .mall-detail-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.product-detail-page .quantity-label {
    color: var(--mall-text-muted);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
}

.product-detail-page .mall-detail-qty-control {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--mall-border);
    border-radius: 10px;
    padding: 0.2rem;
}

.product-detail-page .mall-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(252, 213, 53, 0.12);
    color: var(--mall-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.product-detail-page .mall-qty-btn:hover {
    background: rgba(252, 213, 53, 0.22);
}

.product-detail-page .mall-qty-input,
.product-detail-page .quantity-input {
    width: 56px;
    text-align: center;
    border: none !important;
    background: transparent !important;
    color: #fff !important;
    font-weight: 600;
    padding: 0.35rem !important;
}

.product-detail-page .add-to-cart-btn {
    margin-top: auto;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .product-detail-page .product-image-container {
        min-height: 220px;
    }

    .product-detail-page .product-image {
        max-height: 260px;
    }

    .product-detail-page .product-info-container {
        padding: 1rem;
    }

    .product-detail-page .mall-detail-qty-row {
        flex-direction: column;
        align-items: stretch;
    }

    .product-detail-page .mall-detail-qty-control {
        justify-content: center;
    }
}

.mall-app ::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.mall-app ::-webkit-scrollbar-thumb {
    background: rgba(252, 213, 53, 0.35);
    border-radius: 10px;
}

.mall-product-card .product-link {
    flex: 1;
    display: block;
    text-decoration: none;
    color: inherit;
}

.banner-img {
    border-radius: 0;
    border: none;
    max-height: none;
}

.home-page {
    padding-bottom: 1rem;
}
