﻿:root {
    --primary: #ffda44;
    --primary-dark: #f5c800;
    --accent: #ff6f3d;
    --text: #222;
    --text-muted: #888;
    --bg: #f5f5f5;
    --card: #fff;
    --border: #eee;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #dfe1e6;
    color: var(--text);
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

/* —— 手机壳布局（PC 居中显示） —— */
.app-body {
    min-height: 100vh;
    min-height: 100dvh;
}

.app-frame {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 8px 40px rgba(0,0,0,.12);
    position: relative;
}

.app-topbar {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 48px;
    padding: 0 12px;
    padding-top: env(safe-area-inset-top, 0);
    background: linear-gradient(180deg, #ffe566 0%, var(--primary) 100%);
    border-bottom: 1px solid rgba(0,0,0,.06);
    position: sticky;
    top: 0;
    z-index: 200;
}

.app-topbar-side { min-width: 0; }

.app-topbar-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.app-brand {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-brand a { color: var(--text); }

.app-top-link {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    padding: 4px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.45);
}

/* 我的 — 余额与 VIP */
.my-head {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.my-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.my-head-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-sizing: border-box;
    vertical-align: middle;
}

.my-head-avatar,
.user-avatar.my-head-avatar {
    background: linear-gradient(135deg, var(--primary), #ffb800);
}

.user-avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

.user-avatar-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
}

.user-avatar.is-fallback .user-avatar-img { display: none; }
.user-avatar.is-fallback .user-avatar-fallback { display: flex; }

.my-head-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.my-head-name {
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-head-handle {
    font-size: .78rem;
    color: var(--text-muted);
}

.my-head-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.my-head-address,
.my-head-logout {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 18px;
    font-size: .82rem;
    font-weight: 600;
    border: 1px solid var(--border);
}

.my-head-address {
    color: #8a5200;
    background: #fff6d8;
    border-color: #ffe39a;
}

.my-head-logout {
    color: #666;
    background: #f0f0f0;
}

.my-head-wallet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.my-head-balance {
    min-width: 0;
}

.my-wallet-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 138px;
    flex-shrink: 0;
}

.my-wallet-btn {
    width: 100%;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: none;
    border-radius: 999px;
    text-align: center;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

.my-wallet-btn-recharge {
    background: #fff3cd;
    color: #8a5a00;
    box-shadow: inset 0 0 0 1px #ffe39a;
}

.my-wallet-btn-vip {
    background: linear-gradient(135deg, #ff8f5a, var(--accent));
    color: #fff;
    box-shadow: 0 6px 14px rgba(255,111,61,.22);
}

@media (max-width: 420px) {
    .my-head-wallet {
        align-items: stretch;
    }

    .my-wallet-actions {
        width: 126px;
    }

    .my-wallet-btn {
        min-height: 34px;
        font-size: .74rem;
        padding-inline: 8px;
    }
}

.my-head-label {
    display: block;
    font-size: .75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.my-head-balance strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent);
}

.my-head-vip-badge {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffda44, #ffb800);
    color: #5c3d00;
    font-size: .8rem;
    font-weight: 800;
}

.my-head-vip-btn {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff8f5a, var(--accent));
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

.my-stats-2 {
    grid-template-columns: repeat(2, 1fr);
}

.my-logout {
    text-align: center;
    margin-top: 24px;
}

.my-logout a { color: #999; font-size: .85rem; }

.order-meta {
    font-size: .85rem;
    color: #888;
    margin-top: 2px;
}

.order-item-with-cover {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.order-cover {
    width: 54px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f4f4f4;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #aaa;
    font-size: .72rem;
    font-weight: 700;
}

.order-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.order-item-main {
    min-width: 0;
}

.order-item-main strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-main {
    flex: 1;
    padding: 12px 14px 16px;
    min-height: 0;
}

/* 有底部 Tab：手机壳固定高度，仅中间内容滚动，Tab 始终可见 */
body.app-body.has-tabbar {
    overflow: hidden;
}

body.app-body.has-tabbar .app-frame {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

body.app-body.has-tabbar .app-main {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
}

body.app-body.has-tabbar.page-create .app-main.main-create {
    overflow: hidden;
    padding-bottom: 0;
}

.app-tabbar {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    min-height: 58px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: rgba(255,255,255,.98);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 500;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .06);
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px 8px;
    color: #999;
    font-size: .68rem;
    transition: color .2s;
    -webkit-tap-highlight-color: transparent;
}

.tab-item.is-active { color: var(--text); font-weight: 600; }

.tab-icon {
    display: block;
    width: 24px;
    height: 24px;
    background-color: currentColor;
    opacity: .75;
    transition: opacity .2s, transform .2s;
}

.tab-item.is-active .tab-icon { opacity: 1; }

.tab-icon-home {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 3l9 8h-2v9h-5v-6H10v6H5v-9H3z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 3l9 8h-2v9h-5v-6H10v6H5v-9H3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tab-icon-my {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 12a5 5 0 100-10 5 5 0 000 10zm-7 9a7 7 0 0114 0H5z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 12a5 5 0 100-10 5 5 0 000 10zm-7 9a7 7 0 0114 0H5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tab-item-sell {
    position: relative;
    padding-top: 0;
    margin-top: -14px;
}

.tab-item-sell .tab-label {
    color: var(--accent);
    font-weight: 700;
}

.tab-item-sell.is-active .tab-label { color: var(--accent); }

.tab-icon-sell {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff8f5a 0%, var(--accent) 55%, #ff5722 100%) !important;
    opacity: 1 !important;
    box-shadow: 0 6px 18px rgba(255, 111, 61, .45);
    mask: none !important;
    -webkit-mask: none !important;
    position: relative;
}

.tab-icon-sell::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    background: #fff;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 5h2v14h-2zm-7 7h14v2H4z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 5h2v14h-2zm-7 7h14v2H4z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.search-bar {
    margin-bottom: 14px;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 24px;
    background: var(--card);
    box-shadow: var(--shadow);
    font-size: .92rem;
}

.search-bar input:focus {
    outline: 2px solid var(--primary);
}

.page-auth .app-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 52px);
    min-height: calc(100dvh - 52px);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

.post-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .15s;
}

.post-card:hover { transform: translateY(-2px); }

.post-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eee;
    flex-shrink: 0;
}

.post-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.post-card-seller-avatar {
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,.95);
    box-shadow: 0 3px 10px rgba(0,0,0,.14);
    background: linear-gradient(135deg, var(--primary), #ffb800);
}

.post-card-seller-avatar .user-avatar-fallback {
    font-size: .85rem;
}

.post-card .info { padding: 10px; }

.post-card .title {
    font-size: .85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.post-card .price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
}

.card-member-price {
    margin-top: 2px;
    color: #8a5a00;
    font-size: .72rem;
    font-weight: 700;
}

/* 商品详情轮播 */
.product-carousel {
    position: relative;
    margin: 0 -14px 16px;
    background: #111;
    border-radius: 0;
}

.carousel-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: min(72vh, 100vw);
    margin: 0 auto;
    cursor: pointer;
    touch-action: pan-y;
    background: #1a1a1a;
}

.carousel-track {
    position: absolute;
    inset: 0;
    display: flex;
    height: 100%;
    transition: transform .28s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    background: #1a1a1a;
}

.carousel-slide img:not([src]) {
    visibility: hidden;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-dots {
    position: absolute;
    bottom: 36px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255,255,255,.45);
    cursor: pointer;
}

.carousel-dot.active {
    background: #fff;
    width: 18px;
    border-radius: 4px;
}

.carousel-counter {
    position: absolute;
    right: 12px;
    bottom: 10px;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: .75rem;
    padding: 3px 8px;
    border-radius: 10px;
    z-index: 2;
}

.carousel-zoom-hint {
    display: block;
    text-align: center;
    font-size: .72rem;
    color: #999;
    padding: 6px 0 10px;
    background: var(--card);
}

/* 全屏预览 */
body.lb-open {
    overflow: hidden;
}

.lightbox {
    display: none;
    pointer-events: none;
    visibility: hidden;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2147483646 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lightbox.open {
    display: block !important;
    pointer-events: auto;
    visibility: visible;
}

.lightbox-backdrop {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.92);
    z-index: 1;
}

.lightbox-panel {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px 32px;
    box-sizing: border-box;
    pointer-events: none;
}

.lightbox-frame {
    pointer-events: auto;
    max-width: min(92vw, 520px);
    max-height: min(72vh, 640px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-frame {
    position: relative;
}

.lightbox-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 3px solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: publish-spin .75s linear infinite;
    z-index: 2;
}

.lightbox-spinner[hidden] {
    display: none !important;
}

.lightbox-img {
    display: block;
    max-width: min(92vw, 520px);
    max-height: min(72vh, 640px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    transition: opacity .2s;
}

.lightbox-img.is-loading {
    opacity: 0.15;
}

.lightbox-panel > .lightbox-nav,
.lightbox-panel > .lightbox-close,
.lightbox-panel > .lightbox-counter {
    pointer-events: auto;
}

.lightbox-close {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

.lightbox-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: #fff;
    font-size: .85rem;
    background: rgba(0,0,0,.5);
    padding: 4px 12px;
    border-radius: 12px;
}

.detail-box {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.detail-box .price-lg {
    color: var(--accent);
    font-size: 1.75rem;
    font-weight: 800;
    margin: 8px 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.member-price-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff3cd;
    color: #8a5a00;
    font-size: .78rem;
    font-weight: 800;
}

.buyer-fee-hint {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: .82rem;
}

.admin-preview-banner {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff3cd;
    color: #856404;
    font-size: .86rem;
    font-weight: 700;
    text-align: center;
}

.detail-box .desc {
    color: #555;
    white-space: pre-wrap;
    margin: 16px 0;
}

.seller-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    margin-top: 12px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    width: 100%;
}

.btn-primary:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.btn-block { display: block; width: 100%; }

.my-recharge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 7px 12px;
    border: none;
    border-radius: 999px;
    background: #fff3cd;
    color: #8a5a00;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
}

.recharge-page {
    max-width: 560px;
    margin: 0 auto;
}

.recharge-panel {
    width: min(420px, calc(100vw - 32px));
}

.recharge-hero-modal {
    margin: 0 0 16px;
    box-shadow: none;
}

.recharge-card-modal .form-group {
    margin-bottom: 12px;
}

.recharge-hero {
    margin-bottom: 16px;
    padding: 24px 20px;
    border-radius: 22px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #1b1f2a, #ff6f3d);
    box-shadow: var(--shadow);
}

.recharge-hero span {
    color: rgba(255,255,255,.72);
    font-size: .86rem;
}

.recharge-hero strong {
    display: block;
    margin: 6px 0;
    font-size: 2rem;
}

.recharge-hero p {
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: .88rem;
}

.recharge-methods {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.recharge-amount-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.recharge-amount-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 76px;
    padding: 12px 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.recharge-amount-option input {
    display: none;
}

.recharge-amount-option:has(input:checked) {
    border-color: var(--accent);
    background: #fff7f2;
    box-shadow: 0 0 0 3px rgba(255,111,61,.12);
}

.recharge-amount-option span {
    color: var(--accent);
    font-size: 1.15rem;
    font-weight: 900;
}

.recharge-amount-option em,
.recharge-fee-tip {
    color: var(--text-muted);
    font-size: .76rem;
    font-style: normal;
}

.recharge-fee-tip {
    margin: 0 0 12px;
    line-height: 1.45;
    text-align: center;
}

.recharge-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.recharge-method span {
    flex: 1;
    font-weight: 800;
}

.recharge-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    color: #fff;
    font-size: .82rem;
    font-style: normal;
    font-weight: 900;
}

.recharge-icon-wx {
    background: linear-gradient(135deg, #19c25f, #05a84f);
}

.recharge-icon-ali {
    background: linear-gradient(135deg, #2a9cff, #1677ff);
}

.recharge-icon-manual {
    background: linear-gradient(135deg, #ff9f43, #ff6f3d);
}

.recharge-method em {
    color: var(--text-muted);
    font-size: .78rem;
    font-style: normal;
}

.recharge-method.disabled {
    opacity: .45;
}

.recharge-submit {
    border-radius: 14px;
}

.btn-ghost {
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 12px 16px;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.form-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: .9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

.form-group textarea { min-height: 120px; resize: vertical; }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: .9rem;
}

.alert-error { background: #ffe8e8; color: #c00; }
.alert-success { background: #e8ffe8; color: #060; }

/* 操作提示弹窗 */
.app-toast {
    position: fixed;
    inset: 0;
    z-index: 2147483640;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    box-sizing: border-box;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}

.app-toast.is-show {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.app-toast-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .48);
}

.app-toast-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 300px;
    padding: 26px 22px 20px;
    background: #fff;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .22);
    transform: scale(.9) translateY(8px);
    transition: transform .25s ease;
}

.app-toast.is-show .app-toast-card {
    transform: scale(1) translateY(0);
}

.app-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.app-toast-success .app-toast-icon {
    background: #e8f5e9;
    color: #2e7d32;
}

.app-toast-error .app-toast-icon {
    background: #ffebee;
    color: #c62828;
}

.app-toast-info .app-toast-icon {
    background: #fff8e1;
    color: #f57c00;
}

.app-toast-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
}

.app-toast-msg {
    margin: 0 0 18px;
    font-size: .92rem;
    line-height: 1.55;
    color: #666;
    word-break: break-word;
}

.app-toast-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffda44, #ffb800);
    color: #5c3d00;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
}

.app-toast-error .app-toast-btn {
    background: linear-gradient(135deg, #ff8a80, #e53935);
    color: #fff;
}
.alert-info { background: #fff8e0; color: #886600; }

.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

.login-box {
    background: var(--card);
    padding: 40px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 400px;
}

.login-box .tg-icon { font-size: 3rem; margin-bottom: 16px; }

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.tabs a {
    padding: 10px 16px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
}

.tabs a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.my-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card);
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card .num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-card .label { font-size: .8rem; color: var(--text-muted); }

.order-list .order-item {
    background: var(--card);
    padding: 14px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 600;
}

.badge-pending { background: #fff3cd; color: #856404; }
.badge-shipped { background: #d4edda; color: #155724; }
.badge-paid { background: #d4edda; color: #155724; }
.badge-cancelled { background: #f8d7da; color: #721c24; }
.badge-completed { background: #cce5ff; color: #004085; }

.order-list .order-item-link {
    text-decoration: none;
    color: inherit;
    transition: transform .15s, box-shadow .15s;
}
.order-list .order-item-link:active {
    transform: scale(.98);
}
.order-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.order-amount {
    font-weight: 700;
    color: var(--accent);
}

.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.search-bar {
    margin-bottom: 16px;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 24px;
    box-shadow: var(--shadow);
    font-size: 1rem;
}

.form-group-photos { margin-bottom: 20px; }

.upload-section {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.upload-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.upload-label {
    font-weight: 700;
    font-size: 1rem;
    color: #222;
}

.upload-counter {
    font-size: .78rem;
    color: #b8860b;
    font-weight: 700;
    background: linear-gradient(135deg, #fff9e6, #fff3cc);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #ffe08a;
}

.upload-counter.is-full {
    color: #2e7d32;
    background: #e8f5e9;
    border-color: #a5d6a7;
}

.upload-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
    border: 1px solid #ffe082;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.upload-notice-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.upload-notice-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: .8rem;
    color: #6d5a00;
    line-height: 1.45;
}

.upload-notice-text strong {
    font-size: .88rem;
    color: #e65100;
}

/* 三张固定卡片上传区 */
.photo-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    min-height: 160px;
    width: 100%;
}

.photo-card {
    position: relative;
    width: 100%;
    min-height: 150px;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    box-sizing: border-box;
}

.photo-card-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    background: #fafafa;
    border: 2px dashed #e0e0e0;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
    -webkit-tap-highlight-color: transparent;
}

/* 透明文件层铺满卡片，点击即选图（兼容手机/微信） */
.photo-file-in {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
    font-size: 0;
}

.photo-file-global {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.photo-card-empty:hover {
    border-color: #ffc107;
    background: #fffdf5;
    box-shadow: 0 4px 12px rgba(255,193,7,.2);
}

.photo-card-primary.photo-card-empty {
    border-color: #ffe082;
    background: linear-gradient(160deg, #fffef7 0%, #fff8e0 100%);
}

.photo-card-num {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: .65rem;
    font-weight: 700;
    color: #bbb;
    background: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.photo-card-icon {
    width: 40px;
    height: 32px;
    border: 2px solid #ddd;
    border-radius: 8px;
    position: relative;
    margin-top: 4px;
}

.photo-card-icon::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-radius: 50%;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
}

.photo-card-icon::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid #ccc;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.photo-card-primary .photo-card-icon {
    border-color: #ffc107;
}

.photo-card-primary .photo-card-icon::before { border-color: #ffb300; }
.photo-card-primary .photo-card-icon::after { border-bottom-color: #ffb300; }

.photo-card-title {
    font-size: .78rem;
    font-weight: 700;
    color: #444;
    text-align: center;
}

.photo-card-sub {
    font-size: .65rem;
    color: #aaa;
    text-align: center;
}

.photo-card-primary .photo-card-title { color: #e65100; }

.photo-card-filled {
    cursor: zoom-in;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    border: 2px solid #fff;
}

.photo-card-filled.photo-card-primary {
    border-color: #ffc107;
    box-shadow: 0 4px 16px rgba(255,152,0,.25);
}

.photo-card-filled.is-dragging { opacity: .55; cursor: grabbing; }
.photo-card-filled.drag-over { outline: 2px solid var(--accent); outline-offset: 2px; }

.photo-card-filled img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.photo-card-tag {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 12;
    font-size: .65rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0,0,0,.5);
    padding: 3px 8px;
    border-radius: 6px;
}

.photo-card-primary .photo-card-tag {
    background: linear-gradient(135deg, #ff6f3d, #ff9800);
    font-size: .7rem;
}

.photo-card-del {
    position: absolute;
    right: 6px;
    top: 6px;
    z-index: 15;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 1.1rem;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.photo-card-del:active { background: #e53935; }

.upload-tips {
    margin: 14px 0 0;
    padding: 0 0 0 18px;
    font-size: .75rem;
    color: #999;
    line-height: 1.7;
}

.upload-tips em {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

.hidden-file-inputs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.btn-publish {
    margin-top: 8px;
    font-size: 1.05rem;
    padding: 14px;
}

.btn-publish.is-loading {
    opacity: .85;
    pointer-events: none;
}

.publish-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(2px);
}

.publish-overlay[hidden] {
    display: none !important;
}

.publish-overlay-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    min-width: 140px;
    padding: 28px 36px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}

.publish-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: publish-spin .75s linear infinite;
}

.publish-overlay-text {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    letter-spacing: .05em;
}

.publish-cancel-btn {
    margin-top: 4px;
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #666;
    font-size: .88rem;
    cursor: pointer;
}

.publish-cancel-btn:active {
    background: #f5f5f5;
}

body.is-publishing {
    overflow: hidden;
}

body.is-publishing .publish-overlay {
    pointer-events: auto;
}

body.is-publishing .app-tabbar,
body.is-publishing .app-main {
    pointer-events: none;
}

@keyframes publish-spin {
    to { transform: rotate(360deg); }
}

/* 发布闲置 — 内部区域滚动 */
body.page-create {
    overflow: hidden;
}

body.page-create .app-main.main-create {
    flex: 1;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.create-screen {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.form-create {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.create-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 12px 8px;
    -webkit-overflow-scrolling: touch;
}

.create-alert {
    flex-shrink: 0;
    margin: 8px 12px 0;
    padding: 8px 12px;
    font-size: .82rem;
}

.create-publish-inline {
    margin-top: 12px;
    padding-bottom: 4px;
}

.create-publish-inline .btn-publish {
    width: 100%;
    margin: 0;
}

body.page-create .form-group-compact {
    margin-bottom: 10px;
}

body.page-create .form-group-compact label {
    margin-bottom: 4px;
    font-size: .85rem;
}

body.page-create .form-group input,
body.page-create .form-group textarea {
    padding: 8px 10px;
    font-size: .95rem;
}

body.page-create .form-group textarea {
    min-height: 56px;
    max-height: 72px;
    resize: none;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.create-photo-hint {
    margin: 4px 0 0;
    font-size: .72rem;
    color: var(--text-muted);
}

.create-commission-card {
    margin: 0 0 10px;
    padding: 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff8e8 0%, #fffdf7 100%);
    border: 1px solid #ffe0ad;
    box-shadow: 0 4px 14px rgba(255, 152, 0, .08);
}

.commission-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.commission-card-head span {
    font-size: .76rem;
    font-weight: 700;
    color: #7a3b00;
}

.commission-card-head b {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ffefcf;
    color: #b85b00;
    font-size: .68rem;
    font-weight: 700;
}

.commission-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.15fr);
    align-items: center;
    gap: 6px;
}

.commission-flow i {
    color: #c58a3a;
    font-style: normal;
    font-size: .9rem;
    font-weight: 800;
}

.commission-item {
    min-width: 0;
    padding: 8px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 224, 173, .85);
    text-align: center;
}

.commission-item em {
    display: block;
    margin-bottom: 3px;
    font-size: .62rem;
    line-height: 1;
    color: #a16a25;
    font-style: normal;
}

.commission-item strong {
    display: block;
    font-size: .8rem;
    line-height: 1.1;
    color: #7a3b00;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.commission-net {
    background: linear-gradient(135deg, #fff1d5, #ffe7bd);
}

.commission-net strong {
    color: #e65100;
}

body.page-create .upload-section-compact {
    padding: 10px;
    border-radius: 12px;
}

body.page-create .photo-cards {
    gap: 8px;
}

body.page-create .photo-card-empty {
    min-height: 88px;
    padding: 8px 4px;
}

body.page-create .photo-card-title {
    font-size: .65rem;
}

body.page-create .photo-card-sub {
    font-size: .6rem;
}

body.page-create .photo-card-icon {
    width: 28px;
    height: 22px;
}

.upload-tips-inline {
    margin: 8px 0 0;
    font-size: .7rem;
    color: var(--text-muted);
    text-align: center;
}

body.page-create .create-scroll {
    padding-bottom: 12px;
}

body.page-create .photo-card-filled {
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

body.page-create .photo-card-filled.is-dragging {
    touch-action: none;
}

body.page-create .photo-card-filled.is-dragging {
    z-index: 20;
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

.sheet-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sheet-modal[hidden] { display: none; }

.sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .48);
}

.sheet-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: var(--card);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}

.sheet-panel-center { text-align: center; }

.sheet-title {
    margin: 0 0 14px;
    font-size: 1.1rem;
    font-weight: 800;
}

.order-confirm-summary {
    margin: 14px 0;
    text-align: left;
    background: #fafafa;
    border-radius: 12px;
    padding: 12px;
}

.order-confirm-summary p {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid #eee;
    font-size: .9rem;
}

.order-confirm-summary p:last-child { border-bottom: none; }
.order-confirm-summary strong { text-align: right; word-break: break-word; }
.order-confirm-tip { margin: 12px 0 16px; color: #666; font-size: .9rem; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
.sheet-actions .btn { width: 100%; padding-left: 12px; padding-right: 12px; }

/* VIP 开通弹窗 */
.my-vip-upgrade {
    flex-shrink: 0;
    padding: 8px 12px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff8f5a, var(--accent));
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.vip-inline-modal,
.vip-upgrade-panel {
    max-width: 320px;
}

.vip-upgrade-panel {
    padding: 22px;
    border-radius: 18px;
    overflow: visible;
}

.vip-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #f5f5f5;
    color: #888;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.vip-upgrade-hero {
    text-align: center;
}

.vip-modal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 26px;
    margin-bottom: 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffda44, #ffb800);
    color: #5c3d00;
    font-size: .76rem;
    font-weight: 800;
}

.vip-upgrade-price,
.vip-modal-price {
    margin: 0 0 14px;
    padding: 14px;
    border-radius: 14px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    text-align: center;
}

.vip-upgrade-price span,
.vip-upgrade-price em,
.vip-modal-price span,
.vip-modal-price em {
    display: block;
    color: #8a6a00;
    font-size: .76rem;
    font-style: normal;
}

.vip-upgrade-price strong,
.vip-modal-price strong {
    display: block;
    margin: 4px 0 2px;
    color: var(--accent);
    font-size: 1.55rem;
    line-height: 1.1;
}

.vip-modal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.vip-modal-list div {
    padding: 10px 12px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid var(--border);
}

.vip-modal-list strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text);
    font-size: .86rem;
}

.vip-modal-list span {
    display: block;
    color: #666;
    font-size: .76rem;
    line-height: 1.35;
}

.vip-modal-wallet {
    margin: 0 0 14px;
    padding: 12px;
    border-radius: 14px;
    background: #fafafa;
    border: 1px solid var(--border);
}

.vip-modal-wallet-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
    color: var(--text-muted);
    font-size: .82rem;
}

.vip-modal-wallet-line strong {
    color: var(--accent);
    font-size: 1rem;
}

.vip-wallet-bar {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #eee;
}

.vip-wallet-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffda44, var(--accent));
}

.vip-modal-wallet p {
    margin: 8px 0 0;
    color: #777;
    font-size: .76rem;
    line-height: 1.45;
}

.vip-upgrade-actions {
    margin: 0;
}

.vip-form {
    margin: 0;
}

.vip-back-btn {
    margin-top: 10px;
}



/* 订单详情 */
.order-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-detail-status,
.order-detail-goods,
.order-detail-section,
.order-confirm-form {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.order-detail-status {
    text-align: center;
}

.order-detail-status .badge {
    border-radius: 999px;
    padding: 5px 12px;
}

.order-detail-hint {
    margin: 8px 0 0;
    color: #666;
    font-size: .86rem;
    line-height: 1.5;
}

.order-detail-hint.muted {
    color: var(--text-muted);
    font-size: .78rem;
}

.order-detail-goods {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.order-detail-thumb {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;
    background: #eee;
}

.order-detail-goods > div {
    min-width: 0;
    flex: 1;
}

.order-detail-goods h2 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.35;
    word-break: break-word;
}

.order-detail-price {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 800;
}

.order-detail-no,
.order-detail-meta {
    margin: 0;
    color: var(--text-muted);
    font-size: .78rem;
    line-height: 1.45;
}

.order-detail-section h3 {
    margin: 0 0 12px;
    font-size: .98rem;
    font-weight: 800;
}

.order-detail-dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px 10px;
    margin: 0;
    font-size: .9rem;
}

.order-detail-dl dt {
    color: var(--text-muted);
    font-weight: 600;
}

.order-detail-dl dd {
    margin: 0;
    min-width: 0;
    color: #333;
    word-break: break-word;
    text-align: right;
}

.order-tracking-no {
    margin: 0;
    color: #555;
    font-size: .9rem;
    word-break: break-all;
}

.order-tracking-no strong {
    color: var(--text);
}

.order-ship-form-wrap .form-group {
    margin-bottom: 12px;
}

.order-confirm-form {
    padding: 0;
    box-shadow: none;
    background: transparent;
}

.order-detail-back {
    display: block;
    padding: 12px 16px;
    border-radius: 24px;
    background: #f0f0f0;
    color: #666;
    text-align: center;
    font-size: .92rem;
    font-weight: 700;
}

.order-list .order-item {
    gap: 12px;
}

.order-list .order-item > div:first-child {
    min-width: 0;
}

.order-list .order-item strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.35;
}

.order-item-right {
    flex-shrink: 0;
}

@media (max-width: 360px) {
    .order-detail-goods {
        align-items: stretch;
    }

    .order-detail-thumb {
        width: 68px;
        height: 68px;
    }

    .order-detail-dl {
        grid-template-columns: 64px minmax(0, 1fr);
        font-size: .86rem;
    }
}
