/* ===== 嘉屿商城 电商通用样式 ===== */

/* ===== 首页三栏布局 ===== */
.main-content { background: #fff; }
.content-container { max-width: 1200px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: 200px 1fr 220px; gap: 16px; }

.left-sidebar { }
.category-list { background: #fff; border: 1px solid #f0f0f0; border-radius: var(--radius-md); }
.category-item { display: flex; align-items: center; padding: 10px 16px; gap: 10px; cursor: pointer; transition: all 0.2s; }
.category-item:hover { background: var(--primary-bg); color: var(--primary); }
.category-item:hover a { color: var(--primary); }
.category-item .icon { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; color: #ff6600; }
.category-item .icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.category-item a { flex: 1; color: #333; font-size: 13px; }
.ad-block .ad-image { height: 54px; margin: 10px 0; display: flex; align-items: center; justify-content: center; }
.ad-block .ad-image svg { width: 46px; height: 46px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.home-assurance-icon { width: 36px; height: 36px; margin: 0 auto; color: #ff6600; }
.home-assurance-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.guess-like { background: #fff; border: 1px solid #f0f0f0; border-radius: var(--radius-md); padding: 16px; margin-top: 16px; }
.guess-like h3 { font-size: 14px; color: #333; margin-bottom: 12px; border-bottom: 1px solid #f0f0f0; padding-bottom: 8px; }

.center-main { }
.banner-carousel { position: relative; background: #fff; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 16px; }
.carousel-container { height: 320px; position: relative; }
.carousel-slides { display: flex; height: 100%; transition: transform 0.5s ease; }
.slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; font-weight: 700; }
.slide-content { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.slide-purple { background: linear-gradient(135deg, #8e2de2, #4a00e0); }
.slide-blue { background: linear-gradient(135deg, #00c6ff, #0072ff); }
.slide-orange { background: linear-gradient(135deg, #ff7300, #ff4500); }
.slide-red { background: linear-gradient(135deg, #ee0979, #ff6a00); }
.slide-green { background: linear-gradient(135deg, #11998e, #38ef7d); }
.slide-content h2 { font-size: 32px; margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.slide-content p { font-size: 16px; opacity: 0.9; }

.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; background: rgba(0,0,0,0.3); color: #fff; border-radius: 50%; font-size: 22px; line-height: 36px; text-align: center; cursor: pointer; transition: all 0.3s; }
.carousel-arrow:hover { background: rgba(0,0,0,0.6); }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
.carousel-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.carousel-dots .dot { width: 8px; height: 8px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; transition: all 0.3s; }
.carousel-dots .dot.active { width: 22px; border-radius: 4px; background: #fff; }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; background: #fff; padding: 12px; border-radius: var(--radius-md); }
.product-card { background: #fff; border: 1px solid #f0f0f0; border-radius: var(--radius-md); overflow: hidden; transition: all 0.3s; cursor: pointer; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary); }
.product-card-img { width: 100%; aspect-ratio: 1; background: #f5f5f5; display: flex; align-items: center; justify-content: center; font-size: 56px; position: relative; overflow: hidden; }
.product-card-img img.product-card-photo { width: 100%; height: 100%; object-fit: cover; }
.product-card-img .tag-hot { position: absolute; top: 8px; left: 8px; background: var(--danger); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 3px; z-index: 2; }
.product-card-body { padding: 10px; }
.product-card-name { font-size: 13px; color: #333; line-height: 1.4; height: 36px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 6px; }
.product-card-price { color: var(--danger); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.product-card-price small { font-size: 12px; font-weight: 400; }
.product-card-meta { font-size: 11px; color: var(--text-mute); display: flex; justify-content: space-between; }
.product-card-shop { font-size: 11px; color: #888; margin-top: 4px; }

.right-sidebar { }
.ad-block { background: #fff; border-radius: var(--radius-md); padding: 16px; margin-bottom: 12px; text-align: center; }
.ad-block h3 { font-size: 14px; color: #fff; margin-bottom: 8px; }
.ad-block .ad-image { font-size: 48px; margin: 10px 0; }
.ad-block p { color: #fff; font-size: 12px; opacity: 0.9; margin-bottom: 8px; }
.ad-block .ad-link { background: rgba(255,255,255,0.2); color: #fff; padding: 4px 12px; border-radius: 12px; font-size: 12px; display: inline-block; }
.ad-orange { background: linear-gradient(135deg, #ff7300, #ff4500); }
.ad-pink { background: linear-gradient(135deg, #ee0979, #ff6a00); }
.ad-blue { background: linear-gradient(135deg, #00c6ff, #0072ff); }
.ad-green { background: linear-gradient(135deg, #11998e, #38ef7d); }

/* ===== 商品详情页 ===== */
.product-detail-page { padding: 16px 0; }
.product-detail-grid { display: grid; grid-template-columns: 420px 1fr; gap: 24px; background: #fff; padding: 20px; border-radius: var(--radius-md); }
.product-gallery .main-image { width: 100%; aspect-ratio: 1; background: #f5f5f5; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 120px; margin-bottom: 10px; overflow: hidden; }
.product-gallery .main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery .thumbs { display: flex; gap: 8px; }
.product-gallery .thumb { width: 60px; height: 60px; background: #f5f5f5; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 28px; border: 2px solid transparent; cursor: pointer; overflow: hidden; }
.product-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery .thumb.active { border-color: var(--primary); }

.product-info h1 { font-size: 22px; color: #333; margin-bottom: 6px; line-height: 1.4; }
.product-info .sub { color: var(--text-sub); font-size: 13px; margin-bottom: 16px; }
.price-block { background: linear-gradient(135deg, #fff5f0, #ffe8d9); padding: 16px 20px; border-radius: var(--radius-md); margin-bottom: 16px; }
.price-current { color: var(--danger); font-size: 32px; font-weight: 700; }
.price-current small { font-size: 16px; font-weight: 400; }
.price-original { color: var(--text-mute); text-decoration: line-through; margin-left: 12px; font-size: 14px; }
.price-meta { margin-top: 8px; display: flex; gap: 16px; font-size: 12px; color: var(--text-sub); }

.spec-row { display: flex; padding: 12px 0; border-bottom: 1px dashed #f0f0f0; }
.spec-label { width: 80px; color: var(--text-sub); flex-shrink: 0; }
.spec-options { display: flex; gap: 8px; flex-wrap: wrap; }
.spec-option { padding: 6px 16px; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; font-size: 13px; }
.spec-option.active { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }

.qty-control { display: inline-flex; align-items: center; border: 1px solid #ddd; border-radius: 4px; }
.qty-btn { width: 32px; height: 32px; background: #fafafa; }
.qty-btn:hover { background: #f0f0f0; }
.qty-input { width: 60px; height: 32px; text-align: center; border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd; }

.action-row { display: flex; gap: 12px; margin-top: 24px; }
.action-row .btn { flex: 0 0 auto; padding: 8px 20px; font-size: 14px; }
.action-add-cart { background: #ff9d00 !important; }
.action-buy-now { background: var(--primary) !important; }

.product-tabs { background: #fff; margin-top: 16px; border-radius: var(--radius-md); }
.tab-headers { display: flex; border-bottom: 2px solid #f0f0f0; }
.tab-header { padding: 14px 24px; cursor: pointer; color: #333; font-weight: 500; }
.tab-header.active { color: var(--primary); border-bottom: 2px solid var(--primary); margin-bottom: -2px; }
.tab-content { padding: 20px; }

/* ===== 购物车 ===== */
.cart-page { background: #fff; border-radius: var(--radius-md); padding: 20px; }
.cart-empty { text-align: center; padding: 80px 20px; }
.cart-empty .icon { font-size: 80px; color: #ddd; margin-bottom: 20px; }
.cart-empty h3 { color: var(--text-sub); margin-bottom: 8px; }
.cart-empty p { color: var(--text-mute); margin-bottom: 20px; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { background: #fafafa; padding: 12px; text-align: left; color: var(--text-sub); font-weight: normal; }
.cart-table td { padding: 16px 12px; border-bottom: 1px solid #f0f0f0; }
.col-check { width: 40px; }
.col-img { width: 80px; }
.cart-product-img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.cart-product-name { color: #333; }
.cart-product-desc { color: var(--text-mute); font-size: 12px; margin-top: 4px; }

.cart-summary { background: #fafafa; padding: 16px; margin-top: 16px; display: flex; justify-content: space-between; align-items: center; border-radius: var(--radius-md); }
.cart-summary .total-info { font-size: 14px; }
.cart-summary strong { color: var(--danger); font-size: 20px; margin: 0 4px; }

/* ===== 确认订单 ===== */
.checkout-page { padding: 20px 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 16px; }
.checkout-section { background: #fff; border-radius: var(--radius-md); padding: 24px; margin-bottom: 16px; }
.checkout-section h3 { font-size: 16px; color: #333; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.form-row { display: flex; padding: 8px 0; align-items: flex-start; }
.form-row label { width: 100px; color: var(--text-sub); flex-shrink: 0; padding-top: 8px; }
.form-row input, .form-row textarea, .form-row select { flex: 1; padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--primary); }

.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 14px; border: 2px solid #eee; border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s; }
.pay-method.active { border-color: var(--primary); background: var(--primary-bg); }
.pay-method input[type="radio"] { width: 16px; height: 16px; accent-color: var(--primary); }
.pay-method-icon { font-size: 28px; }
.pay-method-label strong { display: block; color: #333; margin-bottom: 4px; }
.pay-method-label span { font-size: 12px; color: var(--text-mute); }

.pay-info-box { margin-top: 16px; padding: 20px; background: linear-gradient(135deg, #fff5f0, #fff); border-radius: var(--radius-md); border-left: 4px solid var(--primary); }
.pay-info-title { font-size: 16px; font-weight: 600; color: var(--primary); margin-bottom: 12px; }
.pay-info-row { display: flex; padding: 6px 0; font-size: 13px; }
.pay-info-row > span:first-child { width: 130px; color: var(--text-sub); }
.pay-info-row > span:last-child { flex: 1; color: #333; font-weight: 500; }

.order-sidebar { background: #fff; border-radius: var(--radius-md); padding: 20px; height: fit-content; position: sticky; top: 20px; }
.order-item-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #f0f0f0; }
.order-item-img { width: 50px; height: 50px; background: #f5f5f5; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.order-item-info { flex: 1; }
.order-item-name { font-size: 13px; color: #333; }
.order-item-meta { font-size: 12px; color: var(--text-mute); margin-top: 4px; }
.order-totals { padding-top: 12px; }
.order-total-row { display: flex; justify-content: space-between; padding: 6px 0; }
.order-total-row.grand { font-size: 16px; font-weight: 700; color: var(--danger); padding-top: 12px; border-top: 1px solid #f0f0f0; margin-top: 8px; }
.submit-order-btn { width: 100%; padding: 14px; font-size: 16px; margin-top: 16px; }

/* ===== 我的订单 ===== */
.orders-page { padding: 20px 0; }
.orders-tabs { display: flex; gap: 4px; margin-bottom: 16px; background: #fff; padding: 4px; border-radius: var(--radius-md); }
.orders-tab { padding: 10px 24px; background: none; border-radius: 4px; color: #666; }
.orders-tab.active { background: var(--primary); color: #fff; }

.order-card { background: #fff; border-radius: var(--radius-md); padding: 20px; margin-bottom: 12px; }
.order-card-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.order-card-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-sub); }
.order-status { padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.order-status.pending { background: #fff7e6; color: var(--warning); border: 1px solid #ffe7ba; }
.order-status.paid { background: #f6ffed; color: var(--success); border: 1px solid #b7eb8f; }
.order-status.shipped { background: #e6f7ff; color: var(--info); border: 1px solid #91d5ff; }
.order-status.completed { background: #f6ffed; color: var(--success); border: 1px solid #b7eb8f; }
.order-status.cancelled { background: #f5f5f5; color: var(--text-mute); border: 1px solid #d9d9d9; }

.order-card-body { padding: 12px 0; }
.order-card-products { display: flex; gap: 12px; flex-wrap: wrap; padding: 12px 0; }
.order-card-product { display: flex; gap: 8px; align-items: center; padding: 6px; background: #fafafa; border-radius: 4px; flex: 1; min-width: 240px; }
.order-card-product-img { width: 48px; height: 48px; background: #f5f5f5; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.order-card-product-info { flex: 1; }
.order-card-product-name { font-size: 13px; }
.order-card-product-meta { font-size: 12px; color: var(--text-mute); }

.order-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px dashed #f0f0f0; }
.order-total-amount { color: var(--danger); font-size: 18px; font-weight: 700; }

/* ===== 订单详情 ===== */
.order-detail-page { padding: 20px 0; }
.order-detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 16px; }
.order-info-section { background: #fff; border-radius: var(--radius-md); padding: 20px; margin-bottom: 12px; }
.order-info-section h3 { font-size: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.info-item .label { font-size: 12px; color: var(--text-mute); margin-bottom: 4px; }
.info-item .value { color: #333; font-weight: 500; }

.bank-info-table { width: 100%; }
.bank-info-table td { padding: 8px 12px; color: #fff; }
.bank-info-table td.label { width: 140px; opacity: 0.7; }
.bank-info-table td.value { font-weight: 500; }

.alipay-qr-box { text-align: center; padding: 20px; }
.alipay-qr-box img { width: 200px; height: 200px; border: 1px solid #eee; }
.alipay-qr-box p { color: #fff; font-size: 12px; margin-top: 8px; }

.confirm-pay-btn { width: 100%; padding: 14px; font-size: 16px; margin-bottom: 10px; }

/* ===== 弹窗 ===== */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal-mask.show { display: flex; }
.modal-box { background: #fff; border-radius: var(--radius-lg); padding: 24px; width: 90%; max-width: 480px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 12px; right: 16px; font-size: 28px; color: var(--text-mute); cursor: pointer; line-height: 1; }
.modal-close:hover { color: #333; }
.modal-detail { display: grid; grid-template-columns: 200px 1fr; gap: 20px; }

/* ===== 表单 ===== */
.auth-form .form-group { margin-bottom: 16px; }
.auth-form .form-group label { display: block; margin-bottom: 6px; color: var(--text-sub); font-size: 13px; }
.auth-form input { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 4px; }
.auth-form input:focus { border-color: var(--primary); }
.code-input-row { display: flex; gap: 8px; min-width: 0; }
.code-input-row input { width: auto; min-width: 0; flex: 1 1 0; }
.code-canvas { flex: 0 0 100px; box-sizing: border-box; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; }

.auth-card { max-width: 420px; margin: 60px auto; background: #fff; padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo .brand-logo { display: inline-flex; width: 56px; height: 56px; background: linear-gradient(135deg, #ff7300, #ff4500); color: #fff; border-radius: 12px; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; margin-bottom: 12px; }
.auth-logo h1 { font-size: 22px; color: #333; margin-bottom: 4px; }
.auth-logo p { color: var(--text-mute); font-size: 13px; }
.auth-error { display: none; padding: 10px 14px; background: #fff1f0; border: 1px solid #ffa39e; border-radius: 4px; color: var(--danger); font-size: 13px; margin-bottom: 12px; }
.auth-error.show { display: block; }
.auth-tip { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-sub); }
.auth-tip a { color: var(--primary); }

.page-auth { min-height: calc(100vh - 200px); display: flex; align-items: center; background: linear-gradient(135deg, #fff5f0, #fff); padding: 20px; }

/* ===== 个人中心 ===== */
.user-center-page { padding: 20px 0; }
.user-center-grid { display: grid; grid-template-columns: 240px 1fr; gap: 16px; }
.user-sidebar { background: #fff; border-radius: var(--radius-md); padding: 24px 0; height: fit-content; }
.user-sidebar-header { text-align: center; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; margin-bottom: 12px; }
.user-avatar { width: 80px; height: 80px; margin: 0 auto 12px; border-radius: 50%; background: linear-gradient(135deg, #ff7300, #ff4500); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 28px; }
.user-nickname { font-size: 16px; color: #333; margin-bottom: 4px; }
.user-phone { font-size: 13px; color: var(--text-mute); }
.user-sidebar-menu a { display: flex; align-items: center; gap: 10px; padding: 12px 24px; color: #333; font-size: 14px; }
.user-sidebar-menu a:hover, .user-sidebar-menu a.active { background: var(--primary-bg); color: var(--primary); }
.user-content { background: #fff; border-radius: var(--radius-md); padding: 24px; }
.user-content h3 { font-size: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.info-row { display: flex; padding: 10px 0; border-bottom: 1px dashed #f0f0f0; }
.info-row .label { width: 100px; color: var(--text-sub); }
.info-row .value { flex: 1; color: #333; }

/* ===== 商品列表页 ===== */
.products-page { padding: 20px 0; }
.products-toolbar { background: #fff; padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.filter-tabs { display: flex; gap: 16px; }
.filter-tab { padding: 6px 14px; cursor: pointer; color: var(--text-sub); border-radius: 4px; font-size: 13px; }
.filter-tab.active { background: var(--primary); color: #fff; }
.products-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ===== 店铺首页 ===== */
.shop-home-page { padding: 20px 0; }
.shop-header { background: linear-gradient(135deg, #ff7300, #ff4500); border-radius: var(--radius-md); padding: 30px; color: #fff; display: flex; align-items: center; gap: 24px; margin-bottom: 16px; }
.shop-logo { width: 80px; height: 80px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 40px; flex-shrink: 0; }
.shop-info { flex: 1; }
.shop-info h1 { font-size: 24px; margin-bottom: 6px; }
.shop-tags { display: flex; gap: 8px; margin-bottom: 8px; }
.shop-tag { background: rgba(255,255,255,0.2); padding: 3px 10px; border-radius: 4px; font-size: 12px; }
.shop-stats { font-size: 13px; opacity: 0.9; display: flex; gap: 12px; }
.shop-actions { display: flex; gap: 8px; }
.shop-action-btn { padding: 8px 20px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.shop-action-btn.follow { background: #fff; color: var(--primary); }
.shop-action-btn.contact { background: transparent; border: 1px solid #fff; color: #fff; }

.shop-nav { background: #fff; padding: 0 24px; border-radius: var(--radius-md); margin-bottom: 16px; display: flex; gap: 32px; }
.shop-nav a { padding: 14px 0; font-size: 14px; color: var(--text-sub); border-bottom: 2px solid transparent; }
.shop-nav a.active { color: var(--primary); border-bottom-color: var(--primary); }

.shop-filter { background: #fff; padding: 12px 20px; border-radius: var(--radius-md); margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.shop-goods-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }

/* ===== 物流跟踪 ===== */
.logistics-page { padding: 20px 0; }
.logistics-card { background: #fff; border-radius: var(--radius-md); padding: 24px; margin-bottom: 16px; }
.logistics-header { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.logistics-icon { width: 56px; height: 56px; background: var(--primary-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.logistics-info { flex: 1; }
.logistics-info h3 { font-size: 16px; margin-bottom: 4px; }
.logistics-info p { color: var(--text-mute); font-size: 13px; }
.logistics-status { padding: 6px 14px; background: var(--success); color: #fff; border-radius: 4px; font-size: 12px; }

.timeline { padding: 16px 0; }
.timeline-item { display: flex; gap: 16px; padding: 12px 0; position: relative; }
.timeline-dot { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #ddd; flex-shrink: 0; margin-top: 4px; position: relative; z-index: 1; }
.timeline-item:not(:last-child)::before { content: ''; position: absolute; left: 7px; top: 20px; bottom: -12px; width: 2px; background: #ddd; }
.timeline-item.active .timeline-dot { background: var(--primary); border-color: var(--primary); }
.timeline-item.active .timeline-dot::after { content: ''; position: absolute; inset: 2px; background: #fff; border-radius: 50%; }
.timeline-content { flex: 1; }
.timeline-content .desc { color: #333; font-weight: 500; }
.timeline-item.active .timeline-content .desc { color: var(--primary); }
.timeline-content .time { font-size: 12px; color: var(--text-mute); margin-top: 4px; }

/* ===== Toast ===== */
.toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.85); color: #fff; padding: 12px 24px; border-radius: var(--radius-md); z-index: 2000; font-size: 14px; box-shadow: var(--shadow-lg); animation: toast-in 0.3s ease; }
.toast.success { background: rgba(82, 196, 26, 0.95); }
.toast.error { background: rgba(245, 34, 45, 0.95); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -60%); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* ===== 贴吧 / 信息发布 ===== */
.auth-success { display: none; padding: 10px 14px; background: #f6ffed; border: 1px solid #b7eb8f; border-radius: 4px; color: #52c41a; font-size: 13px; margin-bottom: 12px; }
.auth-success.show { display: block; }

.tieba-entry-card {
    display: block;
    background: linear-gradient(135deg, #ff7300, #ff4500);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin: 16px 0;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}
.tieba-entry-card:hover { transform: translateY(-2px); }
.tieba-entry-card::after {
    content: '📝';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 56px;
    opacity: 0.18;
}
.tieba-entry-card h3 { font-size: 20px; margin-bottom: 6px; }
.tieba-entry-card p { font-size: 13px; opacity: 0.92; }
.tieba-entry-card .tieba-tags { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tieba-entry-card .tieba-tag { background: rgba(255,255,255,0.22); padding: 2px 10px; border-radius: 12px; font-size: 12px; }

.post-item-card { background:#fff; padding:14px; border:1px solid #f0f0f0; border-radius:6px; margin-bottom:12px; transition:all 0.2s; }
.post-item-card:hover { border-color:#ff7300; box-shadow:0 2px 8px rgba(255,115,0,0.08); }

/* ===== 充值步骤条 ===== */
.recharge-steps { display:flex; gap:8px; align-items:center; flex-wrap:wrap; padding:8px 0 16px; border-bottom:1px solid #f0f0f0; }
.recharge-steps .step { display:flex; align-items:center; gap:6px; color:#999; font-size:13px; }
.recharge-steps .step span { display:inline-flex; width:24px; height:24px; border-radius:50%; background:#eee; color:#999; align-items:center; justify-content:center; font-weight:600; }
.recharge-steps .step.active { color:#ff6600; font-weight:600; }
.recharge-steps .step.active span { background:#ff6600; color:#fff; }
.recharge-steps .step:not(:last-child)::after { content:'›'; margin-left:8px; color:#ccc; }

.recharge-packages { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:8px; }
.pkg-card { border:2px solid #eee; border-radius:8px; padding:16px; text-align:center; cursor:pointer; transition:all 0.2s; background:#fff; }
.pkg-card:hover { border-color:#ffb37c; }
.pkg-card.active { border-color:#ff6600; background:#fff5f0; box-shadow:0 0 0 3px rgba(255,102,0,0.08); }
.pkg-card .pkg-amount { font-size:24px; font-weight:700; color:#f5222d; }
.pkg-card .pkg-label { color:#666; font-size:13px; margin-top:4px; }
.recharge-paymethods { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:8px; }

/* ===== 钱包 ===== */
.wallet-balance { background:linear-gradient(135deg,#ff7300,#ff4500); color:#fff; border-radius:var(--radius-md); padding:30px 24px; margin-bottom:8px; }
.wallet-amount { font-size:42px; font-weight:700; margin:8px 0 16px; }
.wallet-actions { display:flex; gap:8px; }
.wallet-actions .btn-primary { background:#fff; color:#ff6600; border-color:#fff; }
.wallet-actions .btn-outline { background:transparent; color:#fff; border-color:rgba(255,255,255,0.6); }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .content-container { grid-template-columns: 1fr; }
    .product-detail-grid, .checkout-grid, .order-detail-grid, .user-center-grid { grid-template-columns: 1fr; }
    .products-list, .shop-goods-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .products-list, .shop-goods-list, .products-grid { grid-template-columns: repeat(2, 1fr); }
    .pay-methods { grid-template-columns: 1fr; }
    .order-sidebar { position: static; }
    .recharge-packages, .recharge-paymethods { grid-template-columns: repeat(2, 1fr); }
    .tieba-page-grid { grid-template-columns: 1fr; }
    .wallet-amount { font-size: 32px; }
}

/* ===== 贴吧首页 ===== */
.tieba-page-grid { display: grid; grid-template-columns: 220px 1fr 240px; gap: 16px; }
.tieba-rule-card { background: #fff; border-radius: var(--radius-md); padding: 16px; }
.tieba-rule-card h4 { font-size: 15px; margin-bottom: 10px; color: #333; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; }
.tieba-rule-card ul { list-style: none; padding: 0; margin: 0 0 10px; color: #666; font-size: 13px; line-height: 1.9; }
.tieba-rule-card ul li { padding-left: 14px; position: relative; }
.tieba-rule-card ul li::before { content: '·'; position: absolute; left: 4px; color: #ff6600; font-weight: 700; }

.tieba-main { background: #fff; border-radius: var(--radius-md); padding: 16px; }
.tieba-hero { padding: 0 0 14px; border-bottom: 1px solid #f0f0f0; margin-bottom: 14px; }
.tieba-hero h2 { font-size: 22px; color: #ff6600; margin-bottom: 6px; }
.tieba-hero p { color: #999; font-size: 13px; }
.tieba-post-card { padding: 16px; border-bottom: 1px dashed #f0f0f0; transition: background 0.2s; }
.tieba-post-card:hover { background: #fafafa; }
.tieba-post-card:last-child { border-bottom: none; }
.tieba-post-cat { display: inline-block; background: #fff5f0; color: #ff6600; padding: 2px 10px; border-radius: 10px; font-size: 12px; margin-bottom: 8px; }
.tieba-post-title a { color: #333; font-size: 16px; font-weight: 600; }
.tieba-post-title a:hover { color: #ff6600; }
.tieba-post-content { color: #666; font-size: 13px; line-height: 1.7; margin: 8px 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; }
.tieba-post-meta { display: flex; gap: 16px; font-size: 12px; color: #999; padding-top: 8px; border-top: 1px dashed #f0f0f0; }

