/* Header */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226,232,240,0.6); transition: all 0.3s ease;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; flex-shrink: 0; }
.logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary), var(--primary-hover)); border-radius: var(--radius-md); display: grid; place-items: center; color: white; font-size: 18px; }
.logo-icon-img { width: 36px; height: 36px; border-radius: var(--radius-md); object-fit: cover; }
.nav { display: flex; align-items: center; flex: 1; justify-content: center; }
.nav > ul { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav > ul > li { position: relative; display: inline-flex; align-items: center; }
.nav a { font-size: 15px; font-weight: 500; position: relative; transition: color 0.2s; }
.nav a:hover { color: var(--primary); }
.nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.2s; }
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.search-box { position: relative; }
.search-box input { width: 220px; height: 40px; padding: 0 36px 0 16px; border-radius: var(--radius-lg); border: none; background: #F1F5F9; font-size: 14px; outline: none; transition: all 0.2s; }
.search-box input:focus { box-shadow: inset 0 0 0 1.5px var(--primary); background: white; }
.search-box button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; color: var(--text-secondary); }
.icon-btn { width: 40px; height: 40px; border-radius: var(--radius-md); background: #F1F5F9; display: grid; place-items: center; color: var(--text-primary); transition: all 0.2s; position: relative; }
.icon-btn:hover { background: #E2E8F0; }
.cart-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--error); color: white; font-size: 11px; font-weight: 700; border-radius: var(--radius-full); display: grid; place-items: center; }
.lang-switcher { display: inline-flex; align-items: center; }
.lang-switcher:hover .lang-current { background: #E2E8F0; }
.mobile-menu-btn { display: none; }

/* 避免固定 Header 遮挡非首页主内容 */
.site-main { padding-top: 72px; }
body.home .site-main { padding-top: 0; }

/* Hero Slider */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.slider { position: relative; width: 100%; height: 100%; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.slide.active { opacity: 1; }
.slide-bg { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,0.75), transparent 60%), linear-gradient(to right, rgba(15,23,42,0.45), transparent 50%); }
.slide-content { position: absolute; bottom: 15%; left: 0; right: 0; color: white; z-index: 2; }
.slide-tag { display: inline-flex; padding: 6px 14px; background: var(--accent); color: #92400E; font-size: 13px; font-weight: 600; border-radius: var(--radius-full); margin-bottom: 20px; }
.slide-title { font-size: clamp(40px, 6vw, 64px); font-weight: 700; line-height: 1.1; margin-bottom: 16px; max-width: 700px; opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s; }
.slide-subtitle { font-size: clamp(16px, 2vw, 20px); max-width: 560px; margin-bottom: 32px; opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.35s; }
.slide-buttons { display: flex; gap: 16px; opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s; }
.slide.active .slide-title, .slide.active .slide-subtitle, .slide.active .slide-buttons { opacity: 1; transform: translateY(0); }
.slide.active .slide-subtitle { opacity: 0.9; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; font-size: 15px; font-weight: 600; border-radius: var(--radius-lg); transition: all 0.2s ease; }
.btn-primary { background: var(--primary); color: white; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 6px 20px rgba(37,99,235,0.45); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: white; box-shadow: inset 0 0 0 1.5px white; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-secondary { background: white; color: var(--primary); }
.btn-secondary:hover { background: #EFF6FF; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

.slider-indicators { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 10; }
.indicator { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.indicator.active { background: white; transform: scale(1.3); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); display: grid; place-items: center; color: white; z-index: 10; transition: all 0.2s; }
.slider-arrow:hover { background: rgba(255,255,255,0.3); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

/* Section */
.section { padding: 96px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-label { display: inline-flex; padding: 6px 14px; background: #DBEAFE; color: #1E40AF; font-size: 13px; font-weight: 600; border-radius: var(--radius-full); margin-bottom: 16px; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.section-desc { font-size: 17px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* Categories filter */
.category-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 32px; }
.category-chip { padding: 10px 20px; background: white; border: 1.5px solid var(--border); border-radius: var(--radius-full); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.category-chip:hover { border-color: var(--primary); color: var(--primary); }
.category-chip.active { background: var(--primary); border-color: var(--primary); color: white; }

/* Products */
.products-section { background: var(--bg-secondary); }
.products-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.products-count { font-size: 14px; color: var(--text-secondary); }
.products-sort { display: flex; align-items: center; gap: 8px; }
.products-sort select { padding: 8px 14px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: white; font-size: 14px; outline: none; cursor: pointer; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-2xl); padding: 16px; box-shadow: var(--shadow-sm); transition: all 0.3s ease, opacity 0.6s ease, transform 0.6s ease; opacity: 0; transform: translateY(30px); }
.product-card.visible { opacity: 1; transform: translateY(0); }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-image-wrap { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 1; margin-bottom: 16px; background: var(--bg-secondary); cursor: pointer; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-image-wrap img { transform: scale(1.05); }
.product-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }
.badge { padding: 4px 8px; font-size: 12px; font-weight: 600; border-radius: var(--radius-sm); }
.badge-new { background: #DBEAFE; color: #1E40AF; }
.badge-sale { background: #FEF3C7; color: #92400E; }
.quick-view { position: absolute; inset: 0; background: rgba(15,23,42,0.4); display: grid; place-items: center; opacity: 0; transition: opacity 0.3s; }
.product-image-wrap:hover .quick-view { opacity: 1; }
.wishlist-btn { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: var(--radius-md); background: white; display: grid; place-items: center; color: var(--text-secondary); box-shadow: var(--shadow-sm); transition: all 0.2s; }
.wishlist-btn:hover, .wishlist-btn.active { color: var(--error); }
.compare-btn { position: absolute; top: 12px; right: 48px; width: 32px; height: 32px; border: none; border-radius: var(--radius-md); background: white; display: grid; place-items: center; color: var(--text-secondary); box-shadow: var(--shadow-sm); cursor: pointer; transition: all 0.2s; }
.compare-btn:hover { color: var(--primary); transform: scale(1.1); }
.compare-btn.is-active { background: var(--success); color: white; }
.product-name { font-size: 17px; font-weight: 600; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-category { display: inline-block; width: fit-content; padding: 3px 10px; background: #F1F5F9; color: var(--text-secondary); font-size: 12px; border-radius: var(--radius-sm); margin-bottom: 10px; }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.stars { display: flex; gap: 2px; color: var(--accent); }
.rating-count { font-size: 13px; color: var(--text-secondary); }
.product-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.product-price { font-size: 22px; font-weight: 700; color: var(--primary); }
.product-old-price { font-size: 14px; color: #94A3B8; text-decoration: line-through; }
.add-to-cart { width: 100%; padding: 12px; background: var(--primary); color: white; font-size: 14px; font-weight: 600; border-radius: var(--radius-lg); transition: all 0.2s; }
.add-to-cart:hover { background: var(--primary-hover); }

/* Features */
.features-section { background: var(--bg-dark); color: white; }
.features-section .section-title, .features-section .section-desc { color: white; }
.features-section .section-desc { opacity: 0.8; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.feature-card { text-align: center; padding: 32px 24px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-2xl); transition: all 0.3s ease, opacity 0.6s ease, transform 0.6s ease; opacity: 0; transform: translateY(30px); }
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); }
.feature-icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: var(--radius-xl); background: rgba(37,99,235,0.2); display: grid; place-items: center; color: var(--primary); }
.feature-title { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.feature-desc { font-size: 14px; opacity: 0.75; line-height: 1.6; }

/* Footer */
.footer { background: var(--bg-dark); color: white; padding: 32px 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 13px; opacity: 0.6; }

/* Cart Drawer */
.cart-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.6); backdrop-filter: blur(4px); z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s; }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; width: 420px; max-width: 100%; height: 100%; background: white; z-index: 2001; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
.cart-drawer.active { transform: translateX(0); }
.cart-header { padding: 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { font-size: 20px; font-weight: 700; }
.cart-close { width: 36px; height: 36px; border-radius: var(--radius-md); background: #F1F5F9; display: grid; place-items: center; transition: all 0.2s; }
.cart-close:hover { background: #E2E8F0; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.cart-empty svg { margin: 0 auto 16px; color: var(--border); }
.cart-empty h4 { font-size: 16px; margin-bottom: 8px; color: var(--text-primary); }
.cart-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-item-image { width: 80px; height: 80px; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-secondary); flex-shrink: 0; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 14px; color: var(--primary); font-weight: 600; margin-bottom: 10px; }
.cart-item-actions { display: flex; align-items: center; justify-content: space-between; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-control button { width: 28px; height: 28px; border-radius: var(--radius-md); background: #F1F5F9; display: grid; place-items: center; font-size: 16px; transition: all 0.2s; }
.qty-control button:hover { background: #E2E8F0; }
.qty-control span { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.remove-item { color: var(--text-secondary); font-size: 13px; transition: color 0.2s; }
.remove-item:hover { color: var(--error); }
.cart-footer { padding: 24px; border-top: 1px solid var(--border); background: var(--bg-secondary); }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cart-subtotal span:first-child { font-size: 14px; color: var(--text-secondary); }
.cart-subtotal span:last-child { font-size: 20px; font-weight: 700; }
.cart-note { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.cart-footer .btn { margin-bottom: 10px; }

/* Product Modal - Tmall style */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.6); backdrop-filter: blur(4px); z-index: 3000; opacity: 0; visibility: hidden; transition: all 0.3s; display: grid; place-items: center; padding: 20px; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: white; border-radius: var(--radius-3xl); max-width: min(1960px, 94vw); width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-xl); transform: scale(0.95); transition: transform 0.3s; }
.modal-overlay.active .modal { transform: scale(1); }
.modal-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: var(--radius-md); background: white; display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: all 0.2s; z-index: 10; }
.modal-close:hover { background: #F1F5F9; }
.modal-content { display: grid; grid-template-columns: 560px 1fr; }
.modal-gallery { padding: 48px; background: var(--bg-secondary); grid-row: 1; grid-column: 1; }
.modal-main-image { width: 100%; aspect-ratio: 1; border-radius: var(--radius-xl); overflow: hidden; background: white; margin-bottom: 20px; }
.modal-main-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumbs { display: flex; gap: 14px; }
.modal-thumb { width: 96px; height: 96px; border-radius: var(--radius-md); overflow: hidden; border: 2px solid transparent; cursor: pointer; background: white; opacity: 0.7; transition: all 0.2s; }
.modal-thumb:hover, .modal-thumb.active { border-color: var(--primary); opacity: 1; }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 48px; grid-row: 1; grid-column: 2; }
.modal-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.modal-detail-tabs { grid-row: 2; grid-column: 1 / -1; border-top: 1px solid var(--border); background: var(--bg-secondary); }
.detail-tab-nav { display: flex; border-bottom: 1px solid var(--border); background: white; }
.detail-tab-btn { flex: 1; padding: 16px; font-size: 15px; font-weight: 600; color: var(--text-secondary); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.2s; }
.detail-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.detail-tab-panel { display: none; padding: 32px; }
.detail-tab-panel.active { display: block; }
.detail-images { display: flex; flex-direction: column; gap: 16px; }
.detail-images img { width: 100%; border-radius: var(--radius-lg); }
.reviews-summary { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; padding: 20px; background: white; border-radius: var(--radius-lg); }
.reviews-score { text-align: center; }
.reviews-score .score { font-size: 36px; font-weight: 700; color: var(--accent); }
.reviews-score .count { font-size: 13px; color: var(--text-secondary); }
.reviews-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.review-bar { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); }
.review-bar span { width: 36px; }
.review-bar .bar { flex: 1; height: 8px; background: #E2E8F0; border-radius: var(--radius-full); overflow: hidden; }
.review-bar .bar-fill { height: 100%; background: var(--accent); border-radius: var(--radius-full); }
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-item { padding: 20px; background: white; border-radius: var(--radius-lg); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: #DBEAFE; color: var(--primary); display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.review-meta { flex: 1; }
.review-author { font-size: 14px; font-weight: 600; }
.review-date { font-size: 12px; color: var(--text-secondary); }
.review-rating { color: var(--accent); }
.review-content { font-size: 14px; color: var(--text-primary); line-height: 1.7; }
.review-images { display: flex; gap: 8px; margin-top: 12px; }
.review-images img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-md); }
.modal-title { font-size: 22px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; color: var(--text-primary); }
.modal-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.modal-price-box { background: linear-gradient(to right, #FFF7ED, #FEF3C7); border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 20px; }
.modal-price-label { font-size: 12px; color: #92400E; margin-bottom: 6px; }
.modal-price-main { display: flex; align-items: baseline; gap: 12px; }
.modal-price { font-size: 32px; font-weight: 700; color: #DC2626; }
.modal-price::before { content: '¥'; font-size: 20px; margin-right: 2px; }
.modal-old-price { font-size: 14px; color: #94A3B8; text-decoration: line-through; }
.modal-promo { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.promo-tag { padding: 4px 10px; background: #FEE2E2; color: #DC2626; font-size: 12px; font-weight: 600; border-radius: var(--radius-sm); }
.modal-section { display: flex; gap: 16px; margin-bottom: 18px; align-items: flex-start; }
.modal-section-label { width: 56px; font-size: 13px; color: var(--text-secondary); flex-shrink: 0; padding-top: 8px; }
.modal-section-content { flex: 1; }
.sku-options { display: flex; flex-wrap: wrap; gap: 10px; }
.sku-option { padding: 8px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-md); font-size: 13px; cursor: pointer; transition: all 0.2s; background: white; }
.sku-option:hover { border-color: var(--primary); color: var(--primary); }
.sku-option.active { border-color: var(--primary); color: var(--primary); background: #EFF6FF; }
.modal-services { display: flex; flex-wrap: wrap; gap: 12px; }
.modal-service { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-secondary); }
.modal-service svg { color: var(--success); }
.modal-qty { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-md); width: fit-content; }
.modal-qty button { width: 36px; height: 36px; display: grid; place-items: center; font-size: 16px; color: var(--text-secondary); transition: all 0.2s; }
.modal-qty button:hover { background: var(--bg-secondary); }
.modal-qty input { width: 50px; height: 36px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); font-size: 14px; font-weight: 600; outline: none; }
.modal-stock { font-size: 13px; color: var(--text-secondary); margin-top: 8px; }
.modal-actions { display: flex; gap: 12px; margin-top: 24px; }
.btn-buy { background: #FF5000; color: white; }
.btn-buy:hover { background: #E64A00; }
.btn-cart { background: var(--primary); color: white; }
.btn-cart:hover { background: var(--primary-hover); }

/* Auth Modal */
.auth-modal { max-width: 840px; overflow: hidden; }
.auth-modal .modal-close { z-index: 10; }
.auth-container { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.auth-visual { position: relative; }
.auth-visual img { width: 100%; height: 100%; object-fit: cover; }
.auth-visual-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(37,99,235,0.9), rgba(37,99,235,0.3)); display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; color: white; }
.auth-visual-overlay h3 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.auth-visual-overlay p { font-size: 15px; opacity: 0.9; line-height: 1.6; }
.auth-forms { padding: 40px; display: flex; flex-direction: column; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 28px; border-bottom: 2px solid var(--border); }
.auth-tab { flex: 1; padding: 12px; font-size: 15px; font-weight: 600; color: var(--text-secondary); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.auth-form { display: none; flex-direction: column; gap: 18px; }
.auth-form.active { display: flex; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.form-group input { height: 46px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: 14px; outline: none; transition: all 0.2s; }
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-options { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.remember { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); cursor: pointer; }
.remember input { width: 16px; height: 16px; accent-color: var(--primary); }
.form-options a { color: var(--primary); font-weight: 500; }
.form-options a:hover { text-decoration: underline; }
.verify-row { display: flex; gap: 10px; }
.verify-row input { flex: 1; }
.verify-row button { padding: 0 16px; white-space: nowrap; font-size: 13px; }
.verify-row button:disabled { opacity: 0.6; cursor: not-allowed; }
.forgot-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.forgot-header h3 { font-size: 20px; font-weight: 700; }
.back-btn { width: 36px; height: 36px; border-radius: var(--radius-md); background: #F1F5F9; display: grid; place-items: center; transition: all 0.2s; }
.back-btn:hover { background: #E2E8F0; }
.forgot-tip { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* User Center Modal */
.user-modal { max-width: min(1760px, 94vw); overflow: hidden; }
.user-modal .modal-close { z-index: 10; }
.product-modal .modal-content { grid-template-columns: 560px 1fr; }
.user-center { display: grid; grid-template-columns: 240px 1fr; min-height: 720px; }
.user-sidebar { background: #F8FAFC; border-right: 1px solid var(--border); padding: 28px; display: flex; flex-direction: column; }
.user-profile-brief { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.user-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-hover)); color: white; display: grid; place-items: center; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.user-name { font-size: 16px; font-weight: 700; }
.user-level { font-size: 13px; color: var(--text-secondary); }
.user-menu { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.user-menu-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-lg); font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: all 0.2s; }
.user-menu-item:hover { background: white; color: var(--primary); }
.user-menu-item.active { background: white; color: var(--primary); box-shadow: var(--shadow-sm); }
.user-menu-item svg { flex-shrink: 0; }
.user-logout { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-lg); font-size: 14px; font-weight: 500; color: var(--error); transition: all 0.2s; }
.user-logout:hover { background: #FEF2F2; }
.user-main { padding: 36px; overflow-y: auto; max-height: 760px; }
.user-panel { display: none; }
.user-panel.active { display: block; animation: fadeIn 0.3s ease; }
.user-panel-title { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.user-form { display: flex; flex-direction: column; gap: 20px; }
.user-form textarea { padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: 14px; outline: none; resize: vertical; }
.user-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.user-avatar-edit { display: flex; align-items: center; gap: 16px; }
.address-form { display: flex; flex-direction: column; gap: 16px; }
.address-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.address-row.row-3 { grid-template-columns: repeat(3, 1fr); }
.address-field { display: flex; flex-direction: column; gap: 6px; }
.address-field > label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.address-form select, .address-form input[type="text"] { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: 14px; outline: none; background: white; }
.address-form select:focus, .address-form input[type="text"]:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.order-tabs { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.order-tab { padding: 8px 18px; border-radius: var(--radius-full); font-size: 14px; font-weight: 500; color: var(--text-secondary); background: #F1F5F9; transition: all 0.2s; }
.order-tab:hover { background: #E2E8F0; }
.order-tab.active { background: var(--primary); color: white; }
.orders-list { display: flex; flex-direction: column; gap: 16px; }
.order-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.order-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #F8FAFC; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 10px; }
.order-info { display: flex; gap: 20px; font-size: 13px; color: var(--text-secondary); flex-wrap: wrap; }
.order-status { padding: 4px 12px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; }
.order-status.unpaid { background: #FEF3C7; color: #92400E; }
.order-status.paid { background: #DBEAFE; color: #1E40AF; }
.order-status.shipped { background: #DCFCE7; color: #166534; }
.order-status.aftersale { background: #FEE2E2; color: #991B1B; }
.order-body { padding: 20px; }
.order-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.order-item { display: flex; gap: 14px; }
.order-item img { width: 64px; height: 64px; border-radius: var(--radius-md); object-fit: cover; background: var(--bg-secondary); }
.order-item-info { flex: 1; }
.order-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.order-item-meta { font-size: 13px; color: var(--text-secondary); }
.order-item-price { font-size: 14px; font-weight: 700; color: var(--primary); }
.order-address { font-size: 13px; color: var(--text-secondary); padding: 12px; background: #F8FAFC; border-radius: var(--radius-md); margin-bottom: 16px; }
.order-total { display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; font-size: 14px; }
.order-total span:last-child { font-size: 18px; font-weight: 700; color: var(--primary); }
.order-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: var(--radius-md); font-weight: 500; }
.btn-outline-danger { border: 1px solid var(--error); color: var(--error); background: white; }
.btn-outline-danger:hover { background: #FEF2F2; }
.logistics-section { border-top: 1px solid var(--border); padding-top: 16px; }
.logistics-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.logistics-title h4 { font-size: 14px; font-weight: 600; }
.logistics-title span { font-size: 13px; color: var(--text-secondary); }
.logistics-timeline { position: relative; padding-left: 20px; }
.logistics-timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.logistics-step { position: relative; padding-bottom: 16px; }
.logistics-step:last-child { padding-bottom: 0; }
.logistics-step::before { content: ''; position: absolute; left: -17px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--border); border: 2px solid white; }
.logistics-step.active::before { background: var(--success); }
.logistics-step.active .step-time, .logistics-step.active .step-desc { color: var(--success); }
.step-time { font-size: 12px; color: var(--text-secondary); margin-bottom: 2px; }
.step-desc { font-size: 13px; color: var(--text-primary); line-height: 1.5; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Checkout Modal */
.checkout-modal { max-width: min(1400px, 94vw); }
.checkout-layout { display: grid; grid-template-columns: 1.4fr 0.6fr; }
.checkout-main { padding: 40px; }
.checkout-summary { padding: 40px; background: #F8FAFC; border-left: 1px solid var(--border); }
.checkout-title { font-size: 24px; font-weight: 700; margin-bottom: 28px; }
.checkout-section { margin-bottom: 28px; }
.checkout-section-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.checkout-address { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px; background: white; border: 1px solid var(--border); border-radius: var(--radius-xl); }
.checkout-address-name { font-weight: 600; margin-bottom: 6px; }
.checkout-address p:last-child { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.payment-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.payment-method { display: flex; align-items: center; gap: 12px; padding: 16px; background: white; border: 1px solid var(--border); border-radius: var(--radius-xl); cursor: pointer; transition: all 0.2s; position: relative; }
.payment-method:hover { border-color: var(--primary); }
.payment-method.active { border-color: var(--primary); background: #EFF6FF; }
.payment-method input { position: absolute; opacity: 0; }
.payment-icon { display: grid; place-items: center; }
.payment-name { flex: 1; font-size: 14px; font-weight: 600; }
.payment-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); position: relative; transition: all 0.2s; }
.payment-method.active .payment-check { border-color: var(--primary); background: var(--primary); }
.payment-method.active .payment-check::after { content: ''; position: absolute; top: 4px; left: 7px; width: 4px; height: 8px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checkout-note { width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: 14px; outline: none; resize: vertical; }
.checkout-note:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.checkout-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.checkout-item { display: flex; gap: 12px; align-items: center; }
.checkout-item img { width: 52px; height: 52px; border-radius: var(--radius-md); object-fit: cover; background: white; }
.checkout-item-info { flex: 1; }
.checkout-item-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.checkout-item-meta { font-size: 12px; color: var(--text-secondary); }
.checkout-item-price { font-size: 14px; font-weight: 700; }
.checkout-line { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; color: var(--text-secondary); border-bottom: 1px dashed var(--border); }
.checkout-line:last-of-type { border-bottom: none; }
.checkout-total { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-top: 8px; }
.checkout-total span:last-child { color: var(--primary); font-size: 20px; }
.checkout-safe { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 12px; color: var(--text-secondary); }

/* Mobile Menu */
.mobile-menu { position: fixed; inset: 0; background: rgba(15,23,42,0.6); backdrop-filter: blur(4px); z-index: 1500; opacity: 0; visibility: hidden; transition: all 0.3s; }
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu-panel { position: fixed; top: 0; left: 0; width: 300px; max-width: 80%; height: 100%; background: white; z-index: 1501; transform: translateX(-100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); padding: 24px; display: flex; flex-direction: column; }
.mobile-menu.active .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mobile-nav a { padding: 14px 0; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-search { margin-bottom: 24px; }
.mobile-search input { width: 100%; height: 44px; padding: 0 16px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: #F8FAFC; outline: none; }

/* Toast */
.toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--bg-dark); color: white; padding: 14px 24px; border-radius: var(--radius-lg); font-size: 14px; font-weight: 500; z-index: 4000; opacity: 0; transition: all 0.3s; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-xl); }
.toast.active { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { color: var(--success); }

/* Empty state */
.empty-state { text-align: center; padding: 80px 20px; grid-column: 1 / -1; }
.empty-state svg { margin: 0 auto 20px; color: var(--border); }
.empty-state h4 { font-size: 18px; margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); }

/* Console placeholder */
.console-section { position: relative; background: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1920&q=80') center/cover no-repeat; color: white; }
.console-section::before { content: ''; position: absolute; inset: 0; background: rgba(15,23,42,0.72); }
.console-section .container { position: relative; z-index: 1; }
.console-section .section-label { background: rgba(255,255,255,0.15); color: #93C5FD; }
.console-section .section-title { color: white; }

/* 面包屑导航 */
.breadcrumb-container { background: var(--bg-secondary, #F9FAFB); padding: 12px 0; border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-item:last-child { color: var(--text); font-weight: 500; }
.breadcrumb-separator { color: var(--text-muted, #9CA3AF); }

/* 移动端底部导航 */
.mobile-tabbar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top: 1px solid var(--border); box-shadow: 0 -2px 12px rgba(0,0,0,0.06); z-index: 900; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); }
.tabbar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; color: var(--text-secondary); text-decoration: none; font-size: 11px; transition: color 0.2s ease; position: relative; }
.tabbar-item.is-active { color: var(--primary); }
.tabbar-cart .tabbar-badge { position: absolute; top: 0; right: 50%; margin-right: -22px; background: var(--error); color: white; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* Back to top */
.back-to-top { position: fixed; bottom: 32px; right: 32px; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 999; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* ============= 语言切换器 (Keysion 内置多语言) ============= */
.lang-switcher { position: relative; display: inline-flex; align-items: center; }
.lang-switcher .lang-current { display: flex; align-items: center; gap: 6px; background: #F1F5F9; border: 1px solid transparent; padding: 8px 14px; border-radius: var(--radius-lg); cursor: pointer; color: var(--text-primary); font-size: 14px; font-weight: 500; transition: all 0.2s; }
.lang-switcher .lang-current:hover { background: #E2E8F0; border-color: var(--primary); }
.lang-switcher .lang-current img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }
.lang-switcher .lang-flag { font-size: 16px; line-height: 1; }
.lang-switcher .lang-dropdown { position: absolute; top: 100%; right: 0; margin-top: 4px; background: white; border: 1px solid #E5E7EB; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); list-style: none; padding: 4px; min-width: 160px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all 0.2s; z-index: 100; }
.lang-switcher:hover .lang-dropdown,
.lang-switcher.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switcher .lang-item { margin: 0; }
.lang-switcher .lang-item a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; color: var(--text-primary); text-decoration: none; border-radius: 6px; font-size: 13px; transition: background 0.2s; }
.lang-switcher .lang-item a:hover { background: #F3F4F6; }
.lang-switcher .lang-item.active a { background: #DBEAFE; color: var(--primary); }
.lang-switcher .lang-item img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }

/* ============= Product Modal JS 状态补全 ============= */
/* 移除硬编码的人民币符号，让 price_html 自带货币符号正常显示 */
.modal-price::before { content: none; }
.modal-price { display: inline-flex; align-items: baseline; gap: 4px; }
/* 加载占位 */
.modal-overlay.is-loading .modal-main-image { min-height: 200px; background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: keysion-skeleton 1.2s infinite; }
@keyframes keysion-skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
/* 按钮禁用态 */
.modal-actions .btn:disabled,
.modal-actions .btn.is-disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
/* SKU 缺货提示 */
.sku-option.disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
/* 详情图兜底空态 */
.detail-images-empty { text-align: center; padding: 48px 20px; color: var(--text-secondary); font-size: 14px; }
/* 评论评分条动画 */
.review-bar .bar-fill { transition: width 0.5s ease; }
/* 弹窗打开时禁止 body 滚动 */
body.keysion-modal-open { overflow: hidden; }
