/* ============================================
   佛珠缘商城 - 公共样式
   ============================================ */

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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

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

img {
    max-width: 100%;
    display: block;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: 14px;
    outline: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    width: 100%;
}

input:focus, textarea:focus, select:focus {
    border-color: #07c160;
}

/* 页面容器 */
.page {
    min-height: 100vh;
    padding-bottom: 60px;
    background: #f5f5f5;
}

.page-content {
    padding: 10px;
}

/* 底部导航 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #999;
    font-size: 11px;
    position: relative;
}

.tab-item.active {
    color: #07c160;
}

.tab-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

.tab-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 18px);
    background: #ff4d4f;
    color: #fff;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    transition: opacity 0.2s;
}

.btn:active {
    opacity: 0.8;
}

.btn-primary {
    background: #07c160;
    color: #fff;
}

.btn-danger {
    background: #ff4d4f;
    color: #fff;
}

.btn-warning {
    background: #faad14;
    color: #fff;
}

.btn-default {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

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

.btn-large {
    padding: 14px 20px;
    font-size: 16px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.card-header {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 15px;
}

.card-footer {
    padding: 12px 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 列表 */
.list-item {
    background: #fff;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

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

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 14px;
}

/* 加载中 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #999;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f0f0f0;
    border-top-color: #07c160;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

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

/* 顶部导航栏 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 99;
    background: #07c160;
    color: #fff;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
}

.navbar-back {
    position: absolute;
    left: 15px;
    font-size: 20px;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: #fff;
}

.search-input-wrap {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    box-sizing: border-box;
    background: #f5f5f5;
    border: none;
    border-radius: 16px;
    padding: 8px 36px 8px 35px;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 12px;
    color: #999;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
}

.search-clear:active {
    background: #bbb;
    color: #fff;
}

/* 价格 */
.price {
    color: #ff4d4f;
    font-weight: bold;
}

.price::before {
    font-size: 0.8em;
    margin-right: 1px;
}

.price-original {
    color: #999;
    text-decoration: line-through;
    font-size: 12px;
    font-weight: normal;
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.tag-primary {
    background: #e6f7e6;
    color: #07c160;
}

.tag-danger {
    background: #fff1f0;
    color: #ff4d4f;
}

.tag-warning {
    background: #fff7e6;
    color: #faad14;
}

/* 状态文本 */
.status-text {
    font-size: 13px;
}

.status-pending { color: #faad14; }
.status-paid { color: #07c160; }
.status-shipped { color: #1890ff; }
.status-received { color: #52c41a; }
.status-completed { color: #999; }
.status-cancelled { color: #999; }
.status-refunding { color: #ff4d4f; }

/* 数量选择器 */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    font-size: 16px;
    color: #666;
}

.quantity-input {
    width: 40px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding: 0;
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: none;
}

.overlay.show {
    display: block;
}

/* 弹窗 */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    width: 80%;
    max-width: 300px;
    z-index: 201;
    display: none;
}

.modal.show {
    display: block;
}

.modal-header {
    padding: 20px 20px 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.modal-body {
    padding: 10px 20px 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.modal-footer {
    display: flex;
    border-top: 1px solid #f0f0f0;
}

.modal-btn {
    flex: 1;
    padding: 14px;
    text-align: center;
    font-size: 14px;
    background: none;
    border: none;
}

.modal-btn-cancel {
    color: #666;
    border-right: 1px solid #f0f0f0;
}

.modal-btn-confirm {
    color: #07c160;
}

/* Toast提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 9999;
    display: none;
}

.toast.show {
    display: block;
}

/* 图片预览弹窗 */
.img-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,0.9);
}

.img-preview-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
}

.img-preview-container {
    position: relative;
    width: 100%;
    flex: 1;
    overflow: hidden;
    touch-action: pan-y;
    z-index: 1;
}

.img-preview-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease-out;
}

.img-preview-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-preview-img {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.img-preview-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.img-preview-arrow:active {
    background: rgba(255,255,255,0.3);
}

.img-preview-arrow-left {
    left: 12px;
}

.img-preview-arrow-right {
    right: 12px;
}

.img-preview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    line-height: 34px;
    text-align: center;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.img-preview-close:active {
    background: rgba(255,255,255,0.3);
}

.img-preview-bottom-bar {
    background: rgba(0,0,0,0.8);
    padding: 15px 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.img-preview-action-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.img-preview-label {
    color: #fff;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
}

.img-preview-counter {
    color: #fff;
    font-size: 14px;
}

.img-preview-qty-bar {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 5px;
}

.img-preview-qty-btn {
    width: 36px;
    height: 32px;
    line-height: 30px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.img-preview-qty-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.img-preview-qty-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.img-preview-qty-btn:active {
    background: rgba(255,255,255,0.2);
}

.img-preview-qty-input {
    width: 50px;
    height: 32px;
    line-height: 32px;
    border-top: 1px solid rgba(255,255,255,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 14px;
    color: #fff;
    background: rgba(255,255,255,0.05);
    outline: none;
}

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

.img-preview-confirm-btn {
    width: 100%;
    max-width: 300px;
    height: 40px;
    line-height: 40px;
    background: #07c160;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 5px;
    transition: background 0.2s;
}

.img-preview-confirm-btn:active {
    background: #06ad56;
}

/* 隐藏 */
.hidden {
    display: none !important;
}

/* 安全区域 */
.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* 询价相关样式 */
.inquiry-list {
    padding: 0;
}

/* 表格样式 */
.inquiry-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.inquiry-table th {
    background: #f8f9fa;
    padding: 10px 6px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-align: left;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

.inquiry-table th:first-child {
    width: 40px;
    text-align: center;
}

.inquiry-table th:nth-child(2) {
    width: 120px;
}

.inquiry-table th:nth-child(3) {
    width: 80px;
}

.inquiry-table th:nth-child(4) {
    width: 60px;
}

.inquiry-table th:nth-child(3),
.inquiry-table th:nth-child(4) {
    text-align: center;
}

.inquiry-table td:nth-child(3),
.inquiry-table td:nth-child(4) {
    text-align: center;
}

.inquiry-table th:nth-child(5) {
    width: 110px;
}

.inquiry-table th:last-child {
    text-align: center;
    width: auto;
}

.inquiry-table td {
    padding: 10px 6px;
    font-size: 12px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    white-space: nowrap;
}

.inquiry-table td:first-child {
    text-align: center;
}

.inquiry-table td:last-child {
    text-align: center;
}

.inquiry-table tr.expanded td {
    background: #fafafa;
}

.inquiry-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s;
}

.inquiry-table tbody tr:hover {
    background: #f5f5f5;
}

.inquiry-table tbody tr.expanded {
    background: #f0f7ff;
}

.inquiry-table tbody tr.expanded:hover {
    background: #e8f4ff;
}

/* 展开收起按钮 */
.expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #666;
}

.expand-btn:hover {
    background: #07c160;
    color: #fff;
}

.expand-btn.expanded {
    transform: rotate(90deg);
    background: #07c160;
    color: #fff;
}

/* 序号列 */
.inquiry-no {
    font-family: monospace;
    color: #666;
    font-size: 12px;
}

/* 状态标签 */
.inquiry-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.inquiry-status.status--1 { background: #fff1f0; color: #ff4d4f; }
.inquiry-status.status-0 { background: #fff7e6; color: #fa8c16; }
.inquiry-status.status-1 { background: #f6ffed; color: #07c160; }
.inquiry-status.status-2 { background: #f5f5f5; color: #999; }
.inquiry-status.status-3 { background: #e6f7ff; color: #1890ff; }

/* 图片预览已添加提醒 */
.img-preview-added-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastFadeIn 0.2s ease-out;
}

.img-preview-added-toast .toast-icon {
    width: 20px;
    height: 20px;
    background: #07c160;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.img-preview-added-toast.fade-out {
    animation: toastFadeOut 0.3s ease-out forwards;
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* 价格显示 */
.inquiry-price {
    font-weight: 600;
    color: #ff4d4f;
}

.inquiry-price.has-discount {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.inquiry-price .original {
    font-size: 11px;
    color: #bbb;
    text-decoration: line-through;
    font-weight: normal;
}

.inquiry-price .reply {
    font-size: 14px;
    color: #ff6b00;
}

.inquiry-price .discount {
    font-size: 11px;
    color: #07c160;
    font-weight: normal;
}

/* 展开的详情行 */
.inquiry-detail-row {
    display: none;
}

.inquiry-detail-row.expanded {
    display: table-row;
}

.inquiry-detail-row td {
    padding: 0;
    background: #fafafa;
    border-bottom: 2px solid #07c160;
}

.inquiry-detail-content {
    padding: 16px 20px;
}

.inquiry-detail-content .detail-section {
    margin-bottom: 16px;
}

.inquiry-detail-content .detail-section:last-child {
    margin-bottom: 0;
}

.inquiry-detail-content .section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
}

.inquiry-detail-content .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}

.inquiry-detail-content .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.inquiry-detail-content .info-row .label {
    color: #999;
    font-size: 12px;
    margin-right: 8px;
    flex-shrink: 0;
}

.inquiry-detail-content .info-row .value {
    font-size: 13px;
    color: #333;
    text-align: right;
    flex: 1;
    word-break: break-all;
}

.inquiry-detail-content .info-row.has-long-text {
    align-items: flex-start;
}

.inquiry-detail-content .info-row.has-long-text .value {
    text-align: left;
}

.inquiry-detail-content .remark-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
}

.inquiry-detail-content .remark-input:focus {
    outline: none;
    border-color: #07c160;
}

.inquiry-detail-content .long-text-wrapper {
    position: relative;
    max-height: 48px;
    overflow: hidden;
    cursor: pointer;
    display: inline-block;
}

.inquiry-detail-content .long-text-wrapper.expanded {
    max-height: none;
}

.inquiry-detail-content .long-text-wrapper::after {
    content: ' 展开';
    color: #1890ff;
    font-size: 12px;
    cursor: pointer;
    display: inline-block;
    margin-left: 4px;
}

.inquiry-detail-content .long-text-wrapper.expanded::after {
    content: ' 收起';
}

/* 商品列表 */
.inquiry-goods-list {
    margin-top: 10px;
}

.inquiry-goods-container {
    margin-top: 10px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
}

.inquiry-goods-container.scrollable {
    max-height: 300px;
    overflow-y: auto;
}

.inquiry-goods-container.scrollable table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.inquiry-goods-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.inquiry-goods-table th {
    background: #f8f9fa;
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.inquiry-goods-table th:nth-child(3),
.inquiry-goods-table th:nth-child(4),
.inquiry-goods-table th:nth-child(5) {
    text-align: center;
}

.inquiry-goods-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.inquiry-goods-table tr:last-child td {
    border-bottom: none;
}

.inquiry-goods-table .goods-image-cell {
    width: 50px;
    text-align: center;
}

.inquiry-goods-table .goods-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.inquiry-goods-table .goods-image-placeholder {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 4px;
    display: inline-block;
}

.inquiry-goods-table .goods-name-cell {
    text-align: left;
}

.inquiry-goods-table .goods-name-cell .goods-name {
    font-size: 13px;
    color: #333;
}

.inquiry-goods-table .goods-name-cell .goods-spec {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.inquiry-goods-table .goods-price-cell {
    text-align: center;
    width: 80px;
}

.inquiry-goods-table .goods-price-cell .price-reply {
    font-size: 13px;
    color: #ff5722;
    font-weight: 600;
}

.inquiry-goods-table .goods-price-cell .price-original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-top: 2px;
}

.inquiry-goods-table .goods-subtotal-cell {
    width: 80px;
    color: #ff5722;
    font-weight: 600;
}

.inquiry-goods-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 15px;
}

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

.inquiry-goods-info {
    flex: 1;
    min-width: 0;
}

.inquiry-goods-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.inquiry-goods-spec {
    font-size: 12px;
    color: #999;
}

.inquiry-goods-price {
    text-align: right;
}

.inquiry-goods-original {
    font-size: 12px;
    color: #bbb;
    text-decoration: line-through;
}

.inquiry-goods-reply {
    font-size: 14px;
    font-weight: 600;
    color: #ff6b00;
}

/* 报价信息 */
.inquiry-quote-info {
    background: #fff7e6;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 12px;
}

.inquiry-quote-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.inquiry-quote-row .label {
    color: #666;
    font-size: 13px;
}

.inquiry-quote-row .amount {
    font-size: 16px;
    font-weight: bold;
    color: #ff6b00;
}

.inquiry-quote-row .saving {
    font-size: 12px;
    color: #07c160;
}

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

.quote-actions {
    display: flex;
    gap: 8px;
}

.quote-actions .btn-accept {
    padding: 5px 12px;
    background: linear-gradient(135deg, #07c160, #06ad56);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.quote-actions .btn-accept:active {
    opacity: 0.8;
}

.quote-actions .btn-requote {
    padding: 5px 12px;
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.quote-actions .btn-requote:active {
    background: #f5f5f5;
}

/* 关联订单 */
.inquiry-order-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #e6f7ff;
    color: #1890ff;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 12px;
    cursor: pointer;
}

.inquiry-order-link:hover {
    background: #bae7ff;
}

/* 本地购物车卡片 */
.inquiry-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin: 10px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.inquiry-card.local-cart-card {
    background: linear-gradient(135deg, #fff7e6 0%, #ffe7ba 100%);
    border: 1px dashed #faad14;
}

.status-tip {
    background: #fff7e6;
    color: #fa8c16;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 6px;
    margin: 10px;
    margin-bottom: 0;
}

.inquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.inquiry-remark {
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}

.inquiry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.inquiry-date {
    font-size: 12px;
    color: #bbb;
}

.inquiry-total {
    font-size: 18px;
    font-weight: bold;
    color: #ff4d4f;
}

.inquiry-detail {
    padding: 10px;
}

.detail-section {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.info-row .label {
    color: #999;
    font-size: 14px;
}

.info-row .value {
    font-size: 14px;
    color: #333;
}

.info-row .value.price {
    font-size: 18px;
    font-weight: bold;
    color: #ff4d4f;
}

.goods-list {
    margin-top: 10px;
}

.goods-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    gap: 15px;
}

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

.goods-info {
    flex: 1;
    min-width: 0;
}

.goods-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goods-spec {
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
}

.goods-unit {
    font-size: 12px;
    color: #bbb;
}

.goods-pricing {
    text-align: right;
}

.original-price {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 13px;
    color: #bbb;
    margin-bottom: 8px;
}

.original-price .label {
    font-size: 12px;
}

.original-price .price,
.original-price .subtotal {
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
}

.reply-price-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 14px;
}

.reply-price-section .label {
    font-size: 12px;
    color: #07c160;
    font-weight: 500;
}

.reply-price-section .price,
.reply-price-section .subtotal {
    font-size: 16px;
    font-weight: 600;
    color: #ff6b00;
}

.reply-price-section .discount {
    margin-left: 8px;
    padding: 2px 6px;
    background: #fff7e6;
    color: #fa8c16;
    font-size: 11px;
    border-radius: 4px;
}

.expected-price-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #f0f0f0;
}

.expected-price-section .label {
    font-size: 12px;
    color: #1890ff;
    font-weight: 500;
}

.expected-price-input {
    width: 100px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: right;
}

.expected-price-input:focus {
    border-color: #1890ff;
    outline: none;
}

/* 总价区域 */
.total-section {
    background: #fafafa;
}

.total-section .info-row {
    padding: 12px 0;
}

.total-section .label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.total-section .value.price {
    font-size: 20px;
    color: #ff4d4f;
}

/* 操作按钮区域 */
.action-section {
    padding: 16px 10px 20px;
    display: flex;
    gap: 12px;
}

.action-section .btn {
    flex: 1;
}

/* ==================== 用户中心 ==================== */

.user-info-card {
    background: linear-gradient(135deg, #07c160 0%, #00a854 100%);
    padding: 30px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.user-name {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 6px;
}

.user-phone {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}

.order-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.order-entry-header span:first-child {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.order-entry-more {
    color: #999;
    font-size: 13px;
}

.order-entry-grid {
    display: flex;
    padding: 15px 0;
}

.order-entry-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.order-entry-icon {
    font-size: 24px;
}

.order-entry-text {
    font-size: 13px;
    color: #666;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

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

.menu-item-icon {
    font-size: 18px;
    margin-right: 12px;
}

.menu-item-text {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.menu-item-arrow {
    color: #999;
    font-size: 18px;
}

.menu-item-danger .menu-item-text {
    color: #ff4d4f;
}

/* ==================== 用户中心 - 资产卡片 ==================== */
.user-assets-card {
    margin: -15px 10px 10px;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.assets-grid {
    display: flex;
}

.assets-item {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    position: relative;
}

.assets-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: #f0f0f0;
}

.assets-value {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.assets-value.points {
    color: #faad14;
}

.assets-value.balance {
    color: #07c160;
}

.assets-label {
    font-size: 12px;
    color: #999;
}

/* ==================== 用户中心 - 功能入口网格 ==================== */
.user-functions-card {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px 0;
}

.functions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.function-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 0;
}

.function-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    position: relative;
}

.function-icon.has-badge::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -2px;
    width: 10px;
    height: 10px;
    background: #ff4d4f;
    border-radius: 50%;
}

.function-name {
    font-size: 12px;
    color: #666;
}

/* ==================== 地址管理 ==================== */

.address-list {
    padding: 10px;
}

.address-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

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

.address-name-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.address-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.address-phone {
    font-size: 14px;
    color: #666;
}

.address-detail {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.address-tag-default {
    display: inline-block;
    background: #e6f7ff;
    color: #1890ff;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
}

.address-actions {
    display: flex;
    gap: 10px;
}

.address-btn-edit,
.address-btn-delete {
    background: none;
    border: none;
    font-size: 13px;
    padding: 4px 10px;
    cursor: pointer;
}

.address-btn-edit {
    color: #1890ff;
}

.address-btn-delete {
    color: #ff4d4f;
}

.address-add-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

/* ==================== 表单相关 ==================== */

.form-group {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.form-group:last-child {
    border-bottom: none;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    transition: border-color 0.2s;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: #07c160;
    outline: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.region-select {
    display: flex;
    gap: 10px;
}

.region-select select {
    flex: 1;
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-upload img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-upload button {
    padding: 8px 20px;
}

.total-section {
    background: #fff7e6;
}

.total-section .price {
    font-size: 20px;
}

.action-section {
    padding: 10px;
}

.btn-outline {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.inquiry-cart {
    padding: 10px;
}

.cart-list {
    margin-bottom: 10px;
}

.item-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    background: #f5f5f5;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inquiry-cart-page .cart-item {
    display: flex;
    align-items: center;
}

.inquiry-cart-page .item-info {
    flex: 1;
    min-width: 0;
}

.cart-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-info {
    flex: 1;
}

.item-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}

.item-spec {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.item-price {
    font-size: 14px;
    color: #ff4d4f;
    font-weight: bold;
}

.item-control {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    font-size: 16px;
    color: #666;
}

.qty-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding: 0;
}

.remove-btn {
    font-size: 12px;
    color: #ff4d4f;
    background: none;
    padding: 0;
}

.cart-footer {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
}

.footer-left {
    display: flex;
    gap: 10px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.total-info {
    font-size: 14px;
}

.total-amount {
    font-size: 18px;
    font-weight: bold;
    color: #ff4d4f;
}

.inquiry-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: none;
    align-items: flex-end;
}

.inquiry-form-modal.show {
    display: flex;
}

.inquiry-form-modal .modal-content {
    background: #fff;
    width: 100%;
    border-radius: 12px 12px 0 0;
    padding: 20px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.inquiry-form-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.inquiry-form-modal .modal-header h2 {
    font-size: 16px;
    font-weight: 500;
}

.inquiry-form-modal .close-modal {
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

.inquiry-form-modal .form-group {
    margin-bottom: 15px;
}

.inquiry-form-modal .form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.inquiry-form-modal .form-group label .required {
    color: #ff4d4f;
    margin-left: 2px;
}

.inquiry-form-modal textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
}

.inquiry-form-modal .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.inquiry-form-modal .form-actions .btn {
    flex: 1;
}

.badge {
    background: #ff4d4f;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

/* ==================== 推荐页面样式 ==================== */
.recommend-header {
    background: linear-gradient(135deg, #07c160 0%, #00a854 100%);
    padding: 20px 15px;
    color: #fff;
}

.recommend-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.recommend-desc {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.recommend-count {
    font-size: 13px;
    opacity: 0.8;
}

.recommend-products {
    padding: 10px;
}

.recommend-product-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
    cursor: pointer;
}

.recommend-product-card:active {
    background: #f9f9f9;
}

.product-image-wrap {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image-wrap .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.product-info .product-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-info .product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product-info .product-price .price {
    font-size: 18px;
    font-weight: 600;
    color: #ff4d4f;
}

.product-info .product-price .price-original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.product-info .product-sales {
    font-size: 12px;
    color: #999;
}

.product-action {
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-cart-btn {
    padding: 8px 15px;
    font-size: 13px;
    border-radius: 20px;
}

.recommend-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.footer-summary {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.summary-label {
    font-size: 14px;
    color: #666;
}

.summary-price {
    font-size: 20px;
    font-weight: 600;
    color: #ff4d4f;
}

.footer-btn {
    padding: 12px 30px;
    font-size: 15px;
    border-radius: 25px;
}

/* 隐藏数字输入框的上下箭头 */
.qty-input,
.quantity-input,
.confirm-qty-input {
    -moz-appearance: textfield;
}

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

/* ==================== 询价筛选 ==================== */
.inquiry-filter-bar {
    background: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.inquiry-filter-select {
    padding: 8px 30px 8px 12px;
    font-size: 13px;
    color: #333;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    min-width: 120px;
}

.inquiry-filter-select:focus {
    border-color: #07c160;
    background-color: #fff;
}

@media (max-width: 768px) {
    .inquiry-goods-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .inquiry-goods-table {
        min-width: 600px;
    }
    
    .inquiry-goods-table th,
    .inquiry-goods-table td {
        padding: 6px 4px;
        font-size: 11px;
        white-space: nowrap;
    }
    
    .inquiry-goods-table .goods-image-cell {
        width: 50px;
        text-align: center;
        padding: 4px;
    }
    
    .inquiry-goods-table .goods-image {
        width: 36px;
        height: 36px;
    }
    
    .inquiry-goods-table .goods-name-cell {
        min-width: 150px;
        max-width: 200px;
        white-space: normal;
        word-break: break-all;
    }
    
    .inquiry-goods-table .goods-name-cell .goods-name {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .inquiry-goods-table .goods-name-cell .goods-spec {
        font-size: 10px;
        color: #999;
        margin-top: 2px;
    }
    
    .inquiry-goods-table .goods-qty-cell,
    .inquiry-goods-table .goods-price-cell,
    .inquiry-goods-table .goods-subtotal-cell {
        width: 60px;
        text-align: center;
    }
    
    .inquiry-goods-table .goods-action-cell {
        width: 50px;
        text-align: center;
    }

    .inquiry-goods-table .goods-action-cell .btn-delete {
        padding: 3px 8px;
        font-size: 11px;
    }
}

/* 物流轨迹样式 */
.logistics-timeline {
    padding: 10px 0;
}

.logistics-timeline .timeline-item {
    display: flex;
    padding: 12px 0;
    position: relative;
}

.logistics-timeline .timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 36px;
    bottom: -12px;
    width: 2px;
    background: #e5e5e5;
}

.logistics-timeline .timeline-item:last-child::after {
    display: none;
}

.logistics-timeline .timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #cccccc;
    margin-right: 16px;
    margin-top: 4px;
    flex-shrink: 0;
}

.logistics-timeline .timeline-item.latest .timeline-dot {
    background: #07c160;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.logistics-timeline .timeline-content {
    flex: 1;
}

.logistics-timeline .timeline-time {
    display: block;
    font-size: 12px;
    color: #999999;
    margin-bottom: 6px;
}

.logistics-timeline .timeline-item.latest .timeline-time {
    color: #07c160;
    font-weight: 600;
}

.logistics-timeline .timeline-desc {
    display: block;
    font-size: 14px;
    color: #333333;
    line-height: 1.4;
}

.logistics-timeline .timeline-item.latest .timeline-desc {
    font-weight: 600;
}

.logistics-timeline .timeline-location {
    display: block;
    font-size: 12px;
    color: #666666;
    margin-top: 4px;
}

/* ============================================
   购物车样式
   ============================================ */

.cart-page { padding-bottom: 100px; }
.cart-list { padding: 10px; }
.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.cart-select input { width: 18px; height: 18px; margin-top: 8px; }
.cart-image { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.cart-info { flex: 1; min-width: 0; }
.cart-name-row { display: flex; justify-content: space-between; align-items: flex-start; }
.cart-name { font-size: 14px; color: #333; flex: 1; }
.cart-price-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.cart-price { color: #ff4d4f; font-weight: bold; }
.cart-delete { color: #999; font-size: 12px; background: none; border: none; cursor: pointer; }
.cart-footer {
    position: fixed;
    bottom: 56px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    z-index: 99;
}
.cart-footer-row {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 15px;
    gap: 15px;
}
.cart-select-all { display: flex; align-items: center; gap: 5px; }
.cart-total { flex: 1; text-align: right; }
.cart-submit { padding: 8px 20px; border-radius: 20px; }

/* ============================================
   订单样式
   ============================================ */

.order-page { padding-bottom: 60px; }
.order-tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    overflow-x: auto;
}
.order-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.order-tab.active {
    color: #07c160;
    border-bottom-color: #07c160;
}
.order-list { padding: 10px; }
.order-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}
.order-header {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
}
.order-no { font-size: 12px; color: #999; }
.order-status { font-size: 13px; }
.order-products { padding: 10px 15px; }
.order-product {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}
.order-product img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}
.order-product-info { flex: 1; }
.order-product-name { font-size: 13px; }
.order-product-price { color: #ff4d4f; font-size: 12px; margin-top: 4px; }
.order-footer {
    padding: 10px 15px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.order-total { font-size: 13px; }
.order-actions { display: flex; gap: 8px; }

/* ============================================
   产品详情样式
   ============================================ */

.product-detail-page { padding-bottom: 70px; }

/* 分享卡片样式 */
.share-card { margin: 10px; }
.share-content {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 12px;
}
.share-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.share-info { flex: 1; min-width: 0; }
.share-title {
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.share-price {
    font-size: 16px;
    color: #ff4d4f;
    font-weight: bold;
    margin-top: 4px;
}
.share-desc { font-size: 12px; color: #999; margin-top: 4px; }
.share-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.share-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 12px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}
.share-action-btn span:first-child { font-size: 18px; margin-bottom: 2px; }
.share-action-btn:active { background: #e8e8e8; }

/* 规格型号选项样式 */
.spec-options-container {
    background: #fff;
    padding: 10px 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.spec-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}
.spec-arrow:active { background: #f5f5f5; }
.spec-arrow-left { margin-left: 8px; }
.spec-arrow-right { margin-right: 8px; }
.spec-scroll-wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 0 8px;
    scroll-behavior: smooth;
}
.spec-scroll-wrapper::-webkit-scrollbar { display: none; }
.spec-options { display: inline-flex; gap: 12px; padding-bottom: 5px; }
.spec-option {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    min-width: 70px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.spec-option:hover, .spec-option:active { border-color: #07c160; }
.spec-option.selected { border-color: #07c160; background: #f0f9ff; }
.spec-option-image { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.spec-option-name {
    font-size: 12px;
    color: #333;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
}

/* 产品操作栏 */
.product-action-bar {
    position: fixed; bottom: 0; left: 0; right: 0; height: 60px;
    background: #fff; border-top: 1px solid #eee;
    display: flex; align-items: center; padding: 0 10px; gap: 10px;
    z-index: 99; box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.action-icons { display: flex; gap: 12px; padding: 0 8px; }
.action-icon { display: flex; flex-direction: column; align-items: center; color: #666; text-decoration: none; min-width: 50px; }
.action-icon .icon { font-size: 18px; margin-bottom: 2px; }
.action-icon .text { font-size: 10px; color: #666; }
.action-buttons { flex: 1; display: flex; gap: 8px; }
.action-btn {
    flex: 1; height: 32px; border: 1px solid #ddd; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 500; cursor: pointer;
    background: #fff; color: #333;
}
.action-btn:active { background: #f5f5f5; }

/* SKU选项 */
.sku-option-group { margin-bottom: 15px; }
.sku-option-label { display: block; font-size: 13px; color: #666; margin-bottom: 8px; }
.sku-option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sku-option { 
    padding: 6px 12px; border: 1px solid #ddd; border-radius: 4px; 
    font-size: 13px; cursor: pointer; background: #fff;
}
.sku-option.selected { border-color: #07c160; color: #07c160; }
.sku-option:active { opacity: 0.8; }

.sku-list { margin-top: 15px; border-top: 1px solid #eee; padding-top: 15px; }
.sku-item { 
    display: flex; align-items: center; gap: 10px; padding: 10px; 
    border: 1px solid #eee; border-radius: 8px; margin-bottom: 8px;
    cursor: pointer; background: #fff;
}
.sku-item.selected { border-color: #07c160; background: #f0f9ff; }
.sku-item-image { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
.sku-item-info { flex: 1; }
.sku-item-name { font-size: 14px; color: #333; }
.sku-item-price { font-size: 16px; color: #ff4d4f; font-weight: bold; margin-top: 4px; }
.sku-item-stock { font-size: 12px; color: #999; margin-top: 2px; }
.sku-detail-card { display: none; }

/* ============================================
   产品轮播图样式
   ============================================ */

.product-gallery {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f5f5f5;
}
.gallery-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
    touch-action: pan-x;
}
.gallery-slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.gallery-arrow:hover { background: rgba(255,255,255,0.95); }
.gallery-arrow-left { left: 10px; }
.gallery-arrow-right { right: 10px; }
.gallery-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.gallery-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s;
}
.gallery-indicator.active { background: #fff; transform: scale(1.2); }
.gallery-indicator:hover { background: rgba(255,255,255,0.8); }

/* ============================================
   确认订单样式
   ============================================ */

.confirm-order-page { padding-bottom: 130px; }
.confirm-footer {
    position: fixed;
    bottom: 56px;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 15px;
    z-index: 99;
}
.confirm-total { flex: 1; text-align: right; }
.confirm-submit { padding: 10px 25px; border-radius: 20px; }
.confirm-order-page input[type="number"]::-webkit-outer-spin-button,
.confirm-order-page input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.confirm-order-page input[type="number"] {
    -moz-appearance: textfield;
}
