:root {
    --primary: #e02e24;
    --primary-dark: #c62828;
    --primary-light: #fff5f4;
    --text: #1f2329;
    --text-secondary: #646a73;
    --text-muted: #8f959e;
    --border: #e5e6eb;
    --bg: #f2f3f5;
    --card: #ffffff;
    --shadow: 0 2px 8px rgba(31, 35, 41, 0.06);
    --shadow-hover: 0 8px 24px rgba(31, 35, 41, 0.1);
    --radius: 12px;
    --header-h: 60px;
    --tabbar-h: 56px;
}

html,
body.shop-body {
    margin: 0;
    padding: 0;
    height: 100%;
}

.shop-body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    padding-bottom: var(--tabbar-h);
    min-height: 100vh;
    overflow-x: hidden;
}

.shop-body *,
.shop-body *::before,
.shop-body *::after {
    box-sizing: border-box;
}

.shop-body a {
    text-decoration: none;
    color: inherit;
}

/* ========== 顶部导航 ========== */
.shop-header {
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--header-h);
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.shop-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    gap: 12px;
}

@media (min-width: 768px) {
    .shop-header-inner {
        max-width: 1440px;
    }
}

@media (min-width: 1400px) {
    .shop-header-inner {
        max-width: 1680px;
    }
}

.shop-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.btn-logout-header {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
    background: var(--card);
    transition: all 0.2s;
}

.btn-logout-header:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.shop-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.shop-brand-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.shop-nav-desktop {
    display: none;
    align-items: center;
    gap: 4px;
}

.shop-nav-desktop .nav-link {
    position: relative;
    padding: 8px 18px;
    color: var(--text-secondary);
    font-size: 15px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.shop-nav-desktop .nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.shop-nav-desktop .nav-link.active {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-light);
}

/* ========== 主内容区 ========== */
.shop-page {
    width: 100%;
    min-height: calc(100vh - var(--header-h) - var(--tabbar-h));
    min-width: 0;
    overflow-x: hidden;
}

.shop-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    min-width: 0;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .shop-container {
        max-width: 1440px;
        padding: 20px 32px;
    }
}

@media (min-width: 1400px) {
    .shop-container {
        max-width: 1680px;
        padding: 24px 40px;
    }
}

.toolbar-card,
.content-card,
.profile-card,
.stats-card,
.order-list,
.detail-header,
.detail-list {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.toolbar-card {
    padding: 16px;
    margin-bottom: 16px;
    overflow: visible;
}

.content-card {
    padding: 16px;
}

/* ========== 底部 Tab（手机） ========== */
.shop-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--tabbar-h);
    background: var(--card);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 200;
    box-shadow: 0 -2px 10px rgba(31, 35, 41, 0.05);
}

.shop-tabbar .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 11px;
    transition: color 0.2s;
}

.shop-tabbar .tab-item.active {
    color: var(--primary);
}

.shop-tabbar .tab-icon {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 3px;
}

/* ========== 搜索 ========== */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    overflow: visible;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    width: auto;
}

.search-quick-chars {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    max-width: 55%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.search-quick-chars::-webkit-scrollbar {
    display: none;
}

.search-quick-char {
    flex-shrink: 0;
    min-width: 44px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.search-quick-char:hover,
.search-quick-char.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(224, 46, 36, 0.1);
}

.search-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.search-title-label {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.search-title-select {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fafbfc;
    color: var(--text);
    font-size: 14px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238c8c8c' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.search-title-select:focus {
    border-color: var(--primary);
    background-color: var(--card);
    box-shadow: 0 0 0 3px rgba(224, 46, 36, 0.12);
}

.search-keyword-row {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.search-keyword-label {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.search-keyword-select {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fafbfc;
    color: var(--text);
    font-size: 14px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238c8c8c' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.search-keyword-select:focus {
    border-color: var(--primary);
    background-color: var(--card);
    box-shadow: 0 0 0 3px rgba(224, 46, 36, 0.12);
}

.show-mobile {
    display: none;
}

.hide-mobile {
    display: flex;
}

@media (max-width: 767px) {
    .show-mobile {
        display: flex;
    }

    .hide-mobile {
        display: none !important;
    }
}

.search-clear-btn {
    flex-shrink: 0;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--card);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.search-clear-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.product-sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.sort-label {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.sort-btn {
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.sort-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.sort-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(224, 46, 36, 0.1);
}

.empty-search-tip {
    margin-top: 16px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 0 16px 0 38px;
    font-size: 14px;
    background: #fafbfc;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    border-color: var(--primary);
    background: var(--card);
    box-shadow: 0 0 0 3px rgba(224, 46, 36, 0.12);
}

.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 360px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: var(--shadow-hover);
    z-index: 300;
}

.search-dropdown.show {
    display: block;
}

.search-dropdown li.search-dropdown-header {
    display: block;
    cursor: default;
    padding: 10px 14px 8px;
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: #fafbfc;
    position: sticky;
    top: 0;
}

.search-dropdown li.search-dropdown-header:hover {
    background: #fafbfc;
}

.search-dropdown li.search-dropdown-header strong {
    color: var(--primary);
    font-weight: 600;
}

.search-dropdown li {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.search-dropdown li[data-id]:hover {
    background: var(--primary-light);
}

.search-dropdown li.empty {
    justify-content: center;
    color: var(--text-muted);
    cursor: default;
}

.search-dropdown li.empty:hover {
    background: transparent;
}

.search-dropdown li img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    margin-right: 12px;
    background: #fafbfc;
    border: 1px solid var(--border);
}

.search-dropdown li .name {
    flex: 1;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-dropdown li .price {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-left: 8px;
}

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

.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.product-card:hover {
    border-color: #d0d3d9;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.product-card.highlight {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(224, 46, 36, 0.2);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    background: #fafbfc;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    cursor: zoom-in;
}

.product-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    pointer-events: none;
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    min-height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    margin-top: 8px;
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
}

.product-price small {
    font-size: 12px;
    font-weight: 600;
    margin-right: 1px;
}

.btn-copy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fafbfc;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-copy-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.report-info .btn-copy-link {
    margin-top: 6px;
}

/* ========== 商品图片预览 ========== */
body.shop-preview-open {
    overflow: hidden;
}

.shop-image-preview {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.shop-image-preview.show {
    display: block;
}

.shop-image-preview-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.shop-image-preview-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 720px);
    max-height: 90vh;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

.shop-image-preview-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.shop-image-preview-close:hover {
    background: rgba(0, 0, 0, 0.65);
}

.shop-image-preview-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    max-height: calc(90vh - 56px);
    padding: 16px;
    background: #fafbfc;
}

.shop-image-preview-body img,
.shop-image-preview-body video {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 88px);
    margin: 0 auto;
    object-fit: contain;
}

.shop-image-preview-title {
    margin: 0;
    padding: 12px 16px 16px;
    font-size: 14px;
    color: var(--text);
    text-align: center;
    border-top: 1px solid var(--border);
}

/* ========== 报帐页 ========== */
.report-page {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    min-width: 0;
    box-sizing: border-box;
}

.report-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 88px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.report-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}

.report-item:hover {
    box-shadow: var(--shadow-hover);
}

.report-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fafbfc;
    border: 1px solid var(--border);
    cursor: zoom-in;
}

.report-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.report-info {
    min-width: 0;
    overflow: hidden;
}

.report-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

.report-price {
    margin-top: 4px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
}

.report-qty {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.qty-btn {
    width: 37px;
    height: 37px;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 8px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: var(--text);
    transition: all 0.15s;
    padding: 0;
}

.qty-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.qty-input {
    width: 37px;
    height: 37px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: var(--card);
    color: var(--text);
    padding: 0;
    -moz-appearance: textfield;
}

.qty-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(224, 46, 36, 0.12);
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.report-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--tabbar-h);
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    z-index: 150;
    box-shadow: 0 -4px 16px rgba(31, 35, 41, 0.08);
}

.report-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.report-total {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.report-total-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.report-total .label {
    font-size: 14px;
    color: var(--text-secondary);
}

.report-total .qty {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.report-total .amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.btn-submit {
    background: linear-gradient(135deg, #e8463c, var(--primary));
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 11px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}

.btn-submit:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ========== 个人中心 ========== */
.profile-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.profile-card {
    padding: 4px 20px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f1f2;
    font-size: 14px;
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-row .label {
    color: var(--text-muted);
}

.profile-row .value {
    font-weight: 600;
    color: var(--text);
}

.stats-card {
    display: flex;
    padding: 24px 12px;
}

.stats-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.stats-item + .stats-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--border);
}

.stats-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stats-value {
    font-size: 20px;
    font-weight: 700;
}

.stats-value.total { color: var(--text); }
.stats-value.pending { color: #f5a623; }
.stats-value.approved { color: #34a853; }

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px 4px;
}

.order-list {
    overflow: hidden;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f1f2;
    color: inherit;
    transition: background 0.15s;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item:hover {
    background: #fafbfc;
}

.order-time {
    font-size: 15px;
    font-weight: 500;
}

.order-meta {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.order-status {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.order-status.status-0 { background: #fff8e6; color: #d48806; }
.order-status.status-1 { background: #e8f8ef; color: #389e0d; }
.order-status.status-2 { background: #fff1f0; color: #cf1322; }
.order-status.status-3 { background: #e6f4ff; color: #096dd9; }
.order-status.status-待审核 { background: #fff8e6; color: #d48806; }
.order-status.status-已通过 { background: #e8f8ef; color: #389e0d; }
.order-status.status-已拒绝 { background: #fff1f0; color: #cf1322; }

/* ========== 报帐凭证上传 ========== */
.report-upload-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.report-upload-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.report-upload-title .required {
    color: var(--primary);
}

.report-upload-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.report-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: #fafbfc;
    color: var(--text-secondary);
    cursor: pointer;
    box-sizing: border-box;
}

.report-upload-btn .upload-icon {
    font-size: 20px;
    line-height: 1;
}

.report-upload-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.report-voucher-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.report-voucher-item {
    position: relative;
    flex-shrink: 0;
}

.report-voucher-item-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 2;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}

.report-upload-thumb-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.report-voucher-thumb {
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
    border-radius: 8px;
    border: 1px solid var(--border);
    object-fit: cover;
    background: #fafbfc;
    cursor: zoom-in;
}

.report-voucher-thumb-video {
    object-fit: cover;
    background: #000;
    pointer-events: none;
}

.report-upload-thumb-wrap .report-voucher-thumb-video {
    pointer-events: auto;
}

.report-upload-zoom-tip {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.report-upload-remove {
    border: none;
    background: none;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.detail-voucher {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 16px;
}

.detail-voucher-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-voucher-list .detail-voucher-img,
.detail-voucher-list .detail-voucher-video {
    width: calc(50% - 5px);
    max-width: calc(50% - 5px);
}

.detail-voucher-img {
    display: block;
    max-width: 100%;
    max-height: 320px;
    margin: 0 auto;
    object-fit: contain;
    cursor: zoom-in;
    border-radius: 8px;
}

.detail-voucher-video {
    display: block;
    width: 100%;
    max-height: 320px;
    margin: 0 auto;
    border-radius: 8px;
    background: #000;
}

.btn-back {
    display: inline-block;
    padding: 10px 36px;
    border: 1px solid var(--border);
    border-radius: 22px;
    color: var(--text-secondary);
    font-size: 14px;
    background: var(--card);
    transition: all 0.2s;
}

.btn-back:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ========== 详情页 ========== */
.detail-header {
    padding: 4px 20px;
    margin-bottom: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f0f1f2;
    font-size: 14px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    color: var(--text-muted);
}

.detail-row .amount {
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
}

.detail-list {
    overflow: hidden;
}

.detail-item {
    display: flex;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f1f2;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fafbfc;
    border: 1px solid var(--border);
}

.detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.detail-info {
    flex: 1;
    margin-left: 16px;
    min-width: 0;
}

.detail-name {
    font-size: 15px;
    font-weight: 500;
}

.detail-meta {
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-muted);
}

.detail-amount {
    margin-top: 6px;
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
}

.detail-status {
    margin-top: 8px;
}

.audit-remark {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.detail-back {
    margin-top: 24px;
    text-align: center;
}

.empty-tip {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ========== 平板 ========== */
@media (min-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .toolbar-card,
    .content-card {
        padding: 20px;
    }
}

/* ========== 桌面 ========== */
@media (min-width: 768px) {
    .shop-body {
        padding-bottom: 0;
    }

    .shop-page {
        min-height: calc(100vh - var(--header-h));
    }

    .shop-header-inner {
        padding: 0 24px;
    }

    .shop-header-right {
        gap: 12px;
    }

    .btn-logout-header {
        padding: 8px 18px;
        font-size: 14px;
    }

    .shop-nav-desktop {
        display: flex;
    }

    .shop-tabbar {
        display: none;
    }

    .search-input-wrap {
        max-width: 560px;
    }

    .product-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }

    .report-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
        gap: 10px;
        padding-bottom: 100px;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .report-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        justify-items: center;
        gap: 6px;
        padding: 10px 8px;
        text-align: center;
    }

    .report-thumb {
        width: 52px;
        height: 52px;
    }

    .report-thumb img {
        padding: 2px;
    }

    .report-info {
        width: 100%;
    }

    .report-name {
        font-size: 12px;
        line-height: 1.35;
        -webkit-line-clamp: 2;
    }

    .report-price {
        margin-top: 2px;
        font-size: 13px;
    }

    .report-qty {
        justify-content: center;
        width: 100%;
        gap: 1px;
    }

    .report-item .qty-btn {
        width: 31px;
        height: 31px;
        font-size: 14px;
        border-radius: 6px;
    }

    .report-item .qty-input {
        width: 29px;
        height: 31px;
        font-size: 14px;
    }

    .report-page {
        max-width: 100%;
    }

    .report-upload-card {
        margin-bottom: 10px;
    }

    .report-footer-inner {
        max-width: 1440px;
    }

    .report-footer {
        bottom: 0;
        padding: 16px 24px;
    }

    .profile-top {
        flex-direction: row;
    }

    .profile-top .profile-card {
        flex: 1;
    }

    .profile-top .stats-card {
        flex: 2;
    }

    .detail-header {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 40px;
        padding: 8px 24px;
    }

    .detail-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .detail-item {
        border-bottom: none;
        border-right: 1px solid #f0f1f2;
    }

    .detail-item:nth-child(2n) {
        border-right: none;
    }
}

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

    .report-list {
        grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
        gap: 10px;
    }

    .search-input-wrap {
        max-width: 640px;
    }
}

@media (min-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 24px;
    }

    .toolbar-card,
    .content-card {
        padding: 24px 28px;
    }

    .report-list {
        grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    }

    .report-footer-inner {
        max-width: 1680px;
    }
}

/* 报帐页桌面：紧凑卡片 + 自适应多列 */

@media (max-width: 767px) {
    .shop-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .report-page {
        max-width: 100%;
    }

    .report-footer {
        padding-left: 12px;
        padding-right: 12px;
    }

    .report-footer-inner {
        gap: 10px;
    }

    .report-total .amount {
        font-size: 20px;
    }

    .btn-submit {
        padding: 10px 18px;
        font-size: 14px;
        flex-shrink: 0;
    }

    .report-upload-card {
        padding: 14px 12px;
    }

    .report-upload-desc {
        line-height: 1.5;
    }
}

/* ========== 登录 / 注册 ========== */
.shop-body-guest {
    padding-bottom: 0;
}

.shop-body-guest .shop-page {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.shop-container-auth {
    width: 100%;
    max-width: 440px;
    padding: 24px 16px 40px;
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 24px 24px;
}

.auth-head {
    text-align: center;
    margin-bottom: 16px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.auth-tabs a {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 15px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}

.auth-tabs a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.auth-tabs a:hover:not(.active) {
    color: var(--text);
}

.auth-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.auth-desc {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-form {
    margin: 0;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.auth-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: #fafbfc;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: none;
}

.auth-input:focus {
    border-color: var(--primary);
    background: var(--card);
    box-shadow: 0 0 0 3px rgba(224, 46, 36, 0.12);
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 400;
}

.auth-check input {
    margin: 0;
}

.auth-link {
    color: var(--primary);
    font-size: 13px;
}

.auth-link:hover {
    opacity: 0.85;
}

.auth-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 23px;
    background: linear-gradient(135deg, #e8463c, var(--primary));
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.auth-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.auth-switch {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-captcha .input-group {
    display: flex;
    width: 100%;
}

.auth-captcha .form-control {
    flex: 1;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px 0 0 8px;
    background: #fafbfc;
}

.auth-captcha .input-group-btn,
.auth-captcha .input-group-addon {
    display: flex;
}

.auth-captcha .btn,
.auth-captcha img {
    height: 44px;
    border-radius: 0 8px 8px 0;
}

/* ========== 操作手册 ========== */
.manual-list {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.manual-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f0f1f2;
    color: inherit;
    text-decoration: none;
    transition: background 0.15s;
}

.manual-item:last-child {
    border-bottom: none;
}

.manual-item:hover,
.manual-item:active {
    background: #fafbfc;
}

.manual-item-title {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
}

.manual-item-meta {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.manual-item-arrow {
    flex-shrink: 0;
    font-size: 18px;
    color: #c0c4cc;
    line-height: 1;
}

.manual-detail-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    margin-bottom: 16px;
}

.manual-detail-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
}

.manual-detail-meta {
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.manual-detail-content {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
    word-break: break-word;
}

.manual-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.manual-detail-content p {
    margin: 0 0 12px;
}

.manual-detail-content p:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .shop-container-auth {
        padding-top: 48px;
    }

    .auth-card {
        padding: 32px 32px 28px;
    }
}
