/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

.product-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: -12px 0 28px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tab,
.page-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-gray);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
}

.category-tab:hover,
.page-btn:hover,
.category-tab.active,
.page-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.product-count {
    color: var(--text-gray);
    white-space: nowrap;
    font-size: 14px;
}

.product-sku {
    color: #94a3b8;
    font-size: 12px;
    margin: 4px 0 10px;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
}

/* ========== 导航栏 ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    height: 70px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-icon {
    font-size: 28px;
    margin-right: 8px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

/* ========== SPA 页面路由 ========== */
[data-route-view] {
    display: none;
}

[data-route-view].route-active {
    display: block;
}

.nav-auth {
    display: flex;
    gap: 12px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-welcome {
    font-size: 14px;
    color: var(--text-gray);
}

.nav-cart {
    position: relative;
}

.nav-tools {
    margin-left: 8px;
}

/* ========== Toast提示消息 ========== */
.toast {
    position: fixed;
    top: 90px;
    right: 20px;
    padding: 14px 24px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-success .toast-icon {
    color: #10b981;
    font-size: 18px;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error .toast-icon {
    color: #ef4444;
    font-size: 18px;
}

.toast-message {
    font-size: 14px;
    color: #1e293b;
}

/* ========== 个人资料页面 ========== */
.profile-avatar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 24px;
    color: white;
}

.avatar-circle {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.avatar-info h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.avatar-info p {
    font-size: 13px;
    opacity: 0.8;
}

.profile-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 24px 0;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
}

.profile-stat-item {
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.profile-stat-item .stat-num {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 4px;
}

.profile-stat-item .stat-label {
    font-size: 12px;
    color: #64748b;
}

.cart-icon {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--danger-color);
    color: white;
    font-size: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count.is-empty {
    display: none;
}

/* ========== Banner轮播 ========== */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
}

.banner-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.banner-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.banner-prev,
.banner-next {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.3);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.banner-prev:hover,
.banner-next:hover {
    background-color: rgba(255,255,255,0.5);
}

/* ========== 通用标题 ========== */
.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-dark);
}

/* ========== 分类区域 ========== */
.categories {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.category-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 32px;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    min-width: 140px;
}

.category-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.category-name {
    font-weight: 500;
}

/* ========== 商品区域 ========== */
.products {
    padding: 80px 0;
    background-color: var(--bg-light);
}

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

.product-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 200px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-image-fallback {
    display: none;
}

.product-image.image-fallback .product-image-fallback {
    display: block;
}

.product-info {
    padding: 16px;
}

.product-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-merchant {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--danger-color);
}

.product-price .original {
    font-size: 14px;
    color: var(--text-gray);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.product-actions .btn {
    flex: 1;
    padding: 8px;
    font-size: 13px;
}

/* ========== 商家入驻 ========== */
.merchant-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.merchant-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.benefit-item {
    text-align: center;
    padding: 32px;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
}

.benefit-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.benefit-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.benefit-item p {
    font-size: 14px;
    color: var(--text-gray);
}

.merchant-apply {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
}

.merchant-apply h3 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 32px;
}

.merchant-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.required {
    color: var(--danger-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.input-hint {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 13px;
}

.checkbox-label a {
    color: var(--primary-color);
}

/* ========== 数据统计 ========== */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    color: white;
}

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

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ========== 关于我们 ========== */
.about-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.about-info h3,
.about-contact h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.about-info p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-contact p {
    font-size: 15px;
    margin-bottom: 12px;
}

/* ========== 购物车侧边栏 ========== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: var(--bg-white);
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    font-size: 18px;
}

.cart-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-gray);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex: 0 0 80px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.cart-image-fallback {
    display: none;
}

.cart-item-image.image-fallback .cart-image-fallback {
    display: block;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--danger-color);
    margin-bottom: 8px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove {
    color: var(--danger-color);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    margin-left: auto;
}

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

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.total-price {
    font-size: 20px;
    color: var(--danger-color);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== 弹窗 ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-lg {
    max-width: 600px;
}

.modal-xl {
    max-width: 900px;
}

.modal-sm {
    max-width: 400px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-gray);
}

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

.tab-btn {
    padding: 12px 0;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 弹窗表单的提交按钮与最后一个字段保持清晰间距。 */
.modal-content form > button[type="submit"] {
    margin-top: 12px;
}

/* ========== 收货地址表单 ========== */
.payment-container,
.alipay-container,
.wechatpay-container,
.bankpay-container,
.order-detail {
    padding: 10px 0;
}

.payment-header,
.alipay-header,
.wechatpay-header,
.bankpay-header,
.order-detail-header {
    text-align: center;
    margin-bottom: 24px;
}

.payment-header h3,
.alipay-header h3,
.wechatpay-header h3,
.bankpay-header h3,
.order-detail-header h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.payment-order-no,
.alipay-order-info,
.wechatpay-order-info,
.bankpay-order-info,
.order-detail-order-no {
    font-size: 13px;
    color: var(--text-gray);
}

.payment-amount {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.payment-amount-label {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.payment-amount-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--danger-color);
}

.payment-address {
    padding: 16px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.payment-address h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-gray);
}

.payment-methods h4 {
    font-size: 16px;
    margin-bottom: 16px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option input {
    display: none;
}

.payment-option:has(input:checked) {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.payment-option .payment-icon {
    font-size: 24px;
    margin-right: 12px;
}

.payment-option .payment-info {
    flex: 1;
}

.payment-option .payment-name {
    font-weight: 500;
    display: block;
}

.payment-option .payment-desc {
    font-size: 12px;
    color: var(--success-color);
}

.payment-security,
.bankpay-security {
    text-align: center;
    padding: 12px;
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 16px;
}

/* ========== 支付二维码 ========== */
.qrcode-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-loading {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

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

.qrcode-loading p {
    font-size: 13px;
    color: var(--text-gray);
}

.qrcode-info {
    text-align: center;
}

.qrcode-info p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.qrcode-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--danger-color);
}

.alipay-status,
.wechatpay-status {
    text-align: center;
    padding: 16px;
    margin-bottom: 20px;
}

.status-waiting {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.status-hint {
    font-size: 12px;
    color: var(--text-gray);
}

.status-success {
    color: var(--success-color);
    font-size: 16px;
    font-weight: 500;
}

.status-fail {
    color: var(--danger-color);
    font-size: 16px;
    font-weight: 500;
}

.alipay-actions,
.wechatpay-actions {
    display: flex;
    gap: 12px;
}

.alipay-actions .btn,
.wechatpay-actions .btn {
    flex: 1;
}

/* ========== 银行卡支付 ========== */
.bank-card-input {
    margin-bottom: 20px;
}

.bankpay-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.bankpay-amount strong {
    font-size: 24px;
    color: var(--danger-color);
}

/* ========== 支付成功/失败 ========== */
.success-content,
.fail-content {
    text-align: center;
    padding: 20px 0;
}

.success-icon,
.fail-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.success-content h3 {
    font-size: 24px;
    color: var(--success-color);
    margin-bottom: 12px;
}

.fail-content h3 {
    font-size: 24px;
    color: var(--danger-color);
    margin-bottom: 12px;
}

.success-content p,
.fail-content p {
    color: var(--text-gray);
    margin-bottom: 8px;
}

.order-no {
    font-size: 14px;
    margin-bottom: 16px;
}

.success-details {
    background-color: var(--bg-light);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    text-align: left;
}

.success-details p {
    font-size: 13px;
    margin-bottom: 6px;
}

.success-actions,
.fail-actions {
    display: flex;
    gap: 12px;
}

.success-actions .btn,
.fail-actions .btn {
    flex: 1;
}

/* ========== 订单列表 ========== */
.orders-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #eff6ff;
}

.orders-list {
    max-height: 400px;
    overflow-y: auto;
}

.order-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--bg-light);
    font-size: 13px;
}

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

.order-status.pending { background-color: #fef3c7; color: #92400e; }
.order-status.paid { background-color: #dbeafe; color: #1e40af; }
.order-status.shipped { background-color: #e0e7ff; color: #3730a3; }
.order-status.completed { background-color: #d1fae5; color: #065f46; }

.order-card-body {
    padding: 16px;
}

.order-card-products {
    margin-bottom: 12px;
}

.order-card-product {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.order-card-product-image {
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex: 0 0 50px;
    overflow: hidden;
}

.order-card-product-info {
    flex: 1;
}

.order-card-product-title {
    font-size: 13px;
    margin-bottom: 4px;
}

.order-card-product-price {
    font-size: 13px;
    color: var(--danger-color);
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}

.order-card-total {
    font-weight: 600;
}

.order-card-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* ========== 订单详情 ========== */
.order-detail-section {
    margin-bottom: 24px;
}

.order-detail-section h4 {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.order-detail-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-detail-product {
    display: flex;
    gap: 12px;
    padding: 12px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
}

.order-detail-product-image {
    width: 60px;
    height: 60px;
    background-color: var(--bg-white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex: 0 0 60px;
    overflow: hidden;
}

.order-card-product-image img,
.order-detail-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.order-image-fallback {
    display: none;
}

.order-card-product-image.image-fallback .order-image-fallback,
.order-detail-product-image.image-fallback .order-image-fallback {
    display: block;
}

.order-detail-product-info {
    flex: 1;
}

.order-detail-product-title {
    font-size: 14px;
    margin-bottom: 4px;
}

.order-detail-product-price {
    font-size: 14px;
    color: var(--danger-color);
}

.order-detail-product-subtotal {
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

/* ========== 安全保障 ========== */
.security-section {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.security-content {
    display: flex;
    justify-content: space-around;
    gap: 40px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.security-icon {
    font-size: 40px;
}

.security-text h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.security-text p {
    font-size: 13px;
    color: var(--text-gray);
}

/* ========== 页脚 ========== */
.footer {
    background-color: #1e293b;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-section p {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
}

.footer-links {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    margin: 0 12px;
}

.footer-links a:hover {
    color: white;
}

.footer-service-time {
    margin-bottom: 12px;
}

.footer-service-time p {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
}

.icp-info {
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.icp-info a {
    color: #94a3b8;
}

.icp-info a:hover {
    color: white;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .merchant-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .banner-content h1 {
        font-size: 32px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .security-content {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        gap: 16px;
    }
    
    .category-item {
        min-width: 100px;
        padding: 16px;
    }
}
