/* ==================== 重置樣式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

html, body {
    height: 100%;
    width: 100%;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.4;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

/* 淘寶色系 */
:root {
    --primary-color: #ff4400;
    --primary-light: #fff7f4;
    --secondary-color: #ff6b00;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e0e0e0;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --success-color: #00b46e;
    --warning-color: #ff6b00;
    --error-color: #ff3b30;
    --price-color: #ff4400;
}

/* ==================== 應用佈局 ==================== */
#app {
    min-height: 100vh;
    background: var(--bg-color);
    margin: 0 auto;
    position: relative;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* 加載動畫 */
#app-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff5000 0%, #ff6b00 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ==================== 頭部樣式 ==================== */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    height: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 20px;
    color: var(--primary-color);
}

/* ==================== 主內容區域 ==================== */
.main-content {
    margin-top: 0;
    width: 100%;
}

/* ==================== 品牌欄 ==================== */
.brands-container-sticky {
    position: sticky;
    top: 50px;
    background: var(--card-bg);
    padding: 8px 12px 6px;
    border-bottom: 1px solid var(--border-color);
    margin: 0;
    z-index: 99;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 50px;
    width: 100%;
}

.brands-filter {
    background: var(--card-bg);
    max-width: 1200px;
    margin: 0 auto;
}

.brands-container {
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 6px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.brands-container::-webkit-scrollbar {
    display: none;
}

.brand-item {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
    border-radius: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #ffccd5;
    flex-shrink: 0;
    white-space: nowrap;
    user-select: none;
    text-align: center;
    box-shadow: 0 1px 3px rgba(255, 80, 0, 0.1);
    min-width: 50px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(255, 68, 0, 0.3);
}

.brand-item:active {
    transform: scale(0.95);
}

/* ==================== 橫幅區域 ==================== */
.hero-banner {
    margin: 5px auto 2px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #ff5000 0%, #ff6b00 100%);
    height: 68px;
    box-shadow: 0 2px 8px rgba(255, 80, 0, 0.15);
}

.banner-content {
    position: relative;
    padding: 5px 16px;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.banner-main-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: #fff;
    line-height: 1.2;
}

.banner-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 0;
}

.banner-tag {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    line-height: 1;
}

/* ==================== 客服區域 ==================== */
.customer-service {
    margin: 2px auto 20px;
    padding: 12px;
    background: linear-gradient(135deg, #fff9f6 0%, #fff5f0 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 80, 0, 0.15);
    box-shadow: 0 2px 8px rgba(255, 80, 0, 0.05);
    max-width: 1200px;
    width: calc(100% - 24px);
}

.customer-service::before {
    content: '在線客服';
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding-left: 8px;
    position: relative;
}

.customer-service::before::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 14px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 6px;
}

.service-card {
    background: linear-gradient(145deg, var(--card-bg), #ffffff);
    border-radius: 8px;
    padding: 12px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 68, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.service-card.line-service {
    background: linear-gradient(145deg, #f8fff8, #ffffff);
    border-color: rgba(0, 185, 0, 0.2);
}

.service-card.wechat-service {
    background: linear-gradient(145deg, #f0fff0, #ffffff);
    border-color: rgba(9, 187, 7, 0.2);
}

.service-header {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
}

.service-header i {
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
    margin-top: 2px;
}

.line-service .service-header i {
    background: linear-gradient(135deg, #00B900, #00D100);
    color: white;
}

.wechat-service .service-header i {
    background: linear-gradient(135deg, #09bb07, #1AAD19);
    color: white;
}

.service-title {
    flex: 1;
}

.service-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.qr-hint {
    font-size: 9px;
    color: var(--text-light);
    line-height: 1.2;
}

.service-body {
    text-align: center;
}

.qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.qr-placeholder {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 68, 0, 0.1);
    margin: 0 auto;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.qr-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
    box-sizing: border-box;
    display: block;
}

.account-id {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.9);
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== 商品分類標題 ==================== */
.section-header {
    margin: 16px auto 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: calc(100% - 24px);
}

.section-header h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    padding-left: 10px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ==================== 商品網格 ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 0 auto 16px;
    max-width: 1200px;
    width: calc(100% - 24px);
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:active {
    transform: scale(0.98);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promotion-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    z-index: 1;
}

.product-info-container {
    padding: 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 60px;
}

.product-title-row {
    margin-bottom: 6px;
    flex: 1;
}

.product-title {
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.3;
    height: 32px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0;
}

.price-action-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: auto;
}

.price-sales-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-start;
}

.product-price {
    color: var(--price-color);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    line-height: 1;
    height: 18px;
}

.product-price::before {
    content: '' !important;
}

.sales-row {
    display: flex;
    align-items: center;
    margin-top: 0;
    line-height: 1;
    height: 16px;
}

.product-sales {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
}

.stock-warning {
    color: var(--warning-color);
    font-weight: 500;
    font-size: 10px;
}

.btn-buy-grid {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(255, 80, 0, 0.2);
    line-height: 1;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    align-self: stretch;
}

.btn-buy-grid:active {
    transform: scale(0.95);
    opacity: 0.9;
}

/* ==================== 浮動購物車按鈕 ==================== */
.floating-cart-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ff5000 0%, #ff6b00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(255, 80, 0, 0.4);
    z-index: 90;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: white;
    color: #ff5000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ff5000;
}

/* ==================== 模態框 ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 1001;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card-bg);
    width: 100%;
    max-width: 750px;
    max-height: 80vh;
    border-radius: 16px 16px 0 0;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--card-bg);
    z-index: 1;
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.modal-close:active {
    background-color: rgba(0, 0, 0, 0.05);
}

.modal-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

/* 訂單成功模態框專用樣式 */
.success-modal {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 16px;
    max-width: 400px;
}

.success-icon {
    font-size: 60px;
    color: #52c41a;
    margin-bottom: 20px;
}

.success-modal h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.success-modal p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.success-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.btn-secondary {
    padding: 12px 30px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* ==================== 商品詳情頁 ==================== */
.product-detail-container {
    padding-bottom: 80px;
}

.product-gallery {
    position: relative;
    height: 375px;
    background: #fafafa;
    margin: -16px -16px 16px;
    overflow: hidden;
}

.gallery-slider {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.gallery-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gallery-control.prev {
    left: 12px;
}

.gallery-control.next {
    right: 12px;
}

.gallery-indicator {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.gallery-dot.active {
    width: 20px;
    background: white;
    border-radius: 3px;
}

.product-info-header {
    margin-bottom: 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-price-large {
    color: var(--price-color);
    margin-bottom: 12px;
}

.product-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.stock-info {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 8px 12px;
    background: var(--bg-color);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.product-specs {
    margin-bottom: 20px;
}

.spec-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.spec-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spec-option {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--card-bg);
    text-align: center;
    min-width: 80px;
}

.spec-option.active {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 500;
}

.spec-option.disabled {
    color: var(--text-light);
    border-color: var(--border-color);
    background: var(--bg-color);
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
}

.spec-option.disabled::after {
    content: '售罄';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    background: var(--error-color);
    color: white;
    padding: 1px 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 0 -16px 20px;
}

.quantity-label {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 50%;
    font-size: 18px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quantity-btn:disabled {
    color: var(--text-light);
    border-color: var(--border-color);
    cursor: not-allowed;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
}

.stock-limit-hint {
    font-size: 12px;
    color: var(--warning-color);
    text-align: center;
    margin-top: 8px;
    font-weight: 500;
    background: #fff7e6;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ffd591;
}

.product-description-section {
    margin-bottom: 20px;
}

.product-description-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.description-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    position: relative;
    background: var(--card-bg);
    z-index: 1;
}

.btn-add-cart, .btn-buy-now {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add-cart {
    background: var(--card-bg);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-buy-now {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-add-cart:disabled, .btn-buy-now:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-unit {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
}

.price-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    color: var(--price-color);
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
    margin-top: 8px;
}

/* ==================== 購物車頁面樣式 ==================== */
.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 12px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image i {
    font-size: 24px;
    color: #ccc;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart-item-spec {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--price-color);
    margin-bottom: 8px;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 50%;
    font-size: 16px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-quantity-btn:active {
    background: #f5f5f5;
}

.cart-quantity-input {
    width: 40px;
    height: 28px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: white;
}

.cart-item-remove {
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.cart-item-remove:hover {
    background: #fff5f5;
    color: var(--error-color);
}

.cart-summary {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 16px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.cart-total.final {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.cart-total.final span:last-child {
    color: var(--price-color);
    font-size: 18px;
}

.free-shipping-notice {
    background: linear-gradient(135deg, #fff7e6 0%, #fff2d4 100%);
    border: 1px solid #ffd591;
    border-radius: 6px;
    padding: 12px;
    margin: 16px 0;
}

.free-shipping-notice h3 {
    font-size: 14px;
    color: #fa8c16;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.free-shipping-notice p {
    font-size: 12px;
    color: #d46b08;
    margin: 0;
}

.cart-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-clear-cart {
    flex: 1;
    padding: 12px;
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-cart:active {
    background: #f5f5f5;
    transform: scale(0.98);
}

.btn-checkout {
    flex: 2;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-checkout:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* ==================== 結賬頁面樣式 ==================== */
.checkout-section {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.checkout-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.checkout-items {
    margin-bottom: 20px;
}

.checkout-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 12px;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item-image i {
    font-size: 20px;
    color: #ccc;
}

.checkout-item-info {
    flex: 1;
    min-width: 0;
}

.checkout-item-name {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.checkout-item-price {
    font-size: 13px;
    color: var(--text-secondary);
}

.checkout-item-total {
    font-size: 14px;
    font-weight: 700;
    color: var(--price-color);
    min-width: 80px;
    text-align: right;
}

.checkout-total {
    margin-top: 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.total-row.final {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.total-row.final span:last-child {
    color: var(--price-color);
    font-size: 18px;
}

/* 表單樣式 */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-label.required::after {
    content: '*';
    color: var(--error-color);
    margin-left: 4px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-primary);
    background: white;
    transition: all 0.2s;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 68, 0, 0.1);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.form-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.line-notice {
    background: linear-gradient(135deg, #f0fff0 0%, #e6ffe6 100%);
    border: 1px solid #91d5ff;
    border-radius: 6px;
    padding: 12px;
    margin: 20px 0;
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.line-notice i {
    color: #00B900;
    font-size: 16px;
    margin-top: 1px;
}

.btn-submit-order {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.btn-submit-order:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.btn-submit-order i {
    font-size: 18px;
}

/* ==================== 重要提示頁面 ==================== */
.order-confirmation-modal {
    max-width: 500px !important;
    max-height: 90vh !important;
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.order-confirmation-modal .modal-header {
    background: linear-gradient(135deg, #ff5000 0%, #ff6b00 100%) !important;
    color: white !important;
    padding: 16px 20px !important;
    border-bottom: none !important;
}

.order-confirmation-modal .modal-header h2 {
    color: white !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.order-confirmation-modal .modal-close {
    color: white !important;
    font-size: 28px !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
}

.order-confirmation-modal .modal-body {
    padding: 20px !important;
    max-height: calc(90vh - 60px) !important;
    overflow-y: auto !important;
}

.important-notice-box {
    background: linear-gradient(135deg, #fff7e6 0%, #fff2d4 100%) !important;
    border: 2px solid #ffd591 !important;
    border-radius: 10px !important;
    padding: 16px !important;
    margin-bottom: 20px !important;
    text-align: left !important;
    box-shadow: 0 2px 8px rgba(250, 140, 22, 0.1) !important;
}

.important-notice-box h3 {
    color: #d46b08 !important;
    margin-bottom: 10px !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-weight: 700 !important;
}

.important-notice-box h3 i {
    font-size: 20px !important;
    color: #ff9900 !important;
}

.important-notice-box p {
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding-left: 30px !important;
}

.service-selection-section {
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    border-radius: 10px !important;
    border: 1px solid #e9ecef !important;
}

.selection-title {
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 15px !important;
    font-size: 15px !important;
    text-align: left !important;
}

.qr-buttons-container {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
    flex-direction: row !important;
    width: 100% !important;
}

.qr-select-btn {
    flex: 1 !important;
    padding: 14px !important;
    border: 2px solid transparent !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    min-height: 50px !important;
}

.qr-select-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.qr-select-btn.active {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.qr-select-btn:not(.active) {
    opacity: 0.8 !important;
}

.qr-select-btn[data-type="line"] {
    background: linear-gradient(135deg, #00B900 0%, #00D100 100%) !important;
    color: white !important;
    border-color: #00B900 !important;
}

.qr-select-btn[data-type="line"].active {
    background: linear-gradient(135deg, #00A000 0%, #00C000 100%) !important;
    border-color: #009000 !important;
    box-shadow: 0 4px 15px rgba(0, 185, 0, 0.3) !important;
}

.qr-select-btn[data-type="wechat"] {
    background: linear-gradient(135deg, #09bb07 0%, #1AAD19 100%) !important;
    color: white !important;
    border-color: #09bb07 !important;
}

.qr-select-btn[data-type="wechat"].active {
    background: linear-gradient(135deg, #08aa06 0%, #199C18 100%) !important;
    border-color: #07a006 !important;
    box-shadow: 0 4px 15px rgba(9, 187, 7, 0.3) !important;
}

.qr-select-btn i {
    font-size: 20px !important;
}

.qr-display-container {
    text-align: center !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: white !important;
    border-radius: 10px !important;
    border: 1px solid #e9ecef !important;
}

.qr-title {
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 15px !important;
    font-size: 16px !important;
    text-align: center !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #f0f0f0 !important;
}

.qr-image-container {
    width: 180px !important;
    height: 180px !important;
    margin: 0 auto 15px !important;
    background: white !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border: 1px solid #ddd !important;
    padding: 10px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.qr-image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

.qr-hint-text {
    color: #666 !important;
    font-size: 13px !important;
    margin-bottom: 12px !important;
    text-align: center !important;
    line-height: 1.4 !important;
}

.qr-account-display {
    padding: 10px 15px !important;
    border-radius: 25px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin: 0 auto !important;
    min-width: 150px !important;
    transition: all 0.3s ease !important;
    background: linear-gradient(135deg, #f0fff0 0%, #e6ffe6 100%) !important;
    border: 1px solid #b7eb8f !important;
    color: #333 !important;
}

.qr-account-display i {
    font-size: 18px !important;
    color: #00B900 !important;
}

.qr-account-display.wechat-account i {
    color: #09bb07 !important;
}

.countdown-box {
    background: linear-gradient(135deg, #f6ffed 0%, #e6ffe6 100%) !important;
    border: 2px solid #b7eb8f !important;
    border-radius: 10px !important;
    padding: 16px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}

.countdown-header {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #52c41a !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

.countdown-header i {
    font-size: 20px !important;
    color: #52c41a !important;
}

.countdown-header span {
    color: #ff4400 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    margin: 0 5px !important;
}

.countdown-bar-container {
    height: 8px !important;
    background: #e8e8e8 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    margin-bottom: 10px !important;
}

.countdown-bar {
    height: 100% !important;
    background: linear-gradient(90deg, #52c41a 0%, #73d13d 100%) !important;
    width: 0% !important;
    transition: width 1s linear !important;
    border-radius: 4px !important;
}

.countdown-hint {
    font-size: 13px !important;
    color: #666 !important;
    margin-top: 8px !important;
}

.order-total-display {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    border-radius: 10px !important;
    border: 1px solid #e9ecef !important;
}

.order-total-amount {
    color: #ff4400 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    margin-left: 10px !important;
}

.confirmation-buttons {
    display: flex !important;
    gap: 15px !important;
    margin-top: 20px !important;
    flex-direction: row !important;
    width: 100% !important;
}

.btn-secondary {
    flex: 1 !important;
    padding: 16px !important;
    border: 2px solid #ddd !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    text-align: center !important;
    background: white !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
    min-height: 52px !important;
}

.btn-secondary:hover {
    background: #f8f9fa !important;
    border-color: #ccc !important;
    transform: translateY(-2px) !important;
}

.btn-primary {
    flex: 2 !important;
    padding: 16px !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    text-align: center !important;
    background: linear-gradient(135deg, #ff5000 0%, #ff6b00 100%) !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    transition: all 0.3s ease !important;
    min-height: 52px !important;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff4000 0%, #ff5a00 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(255, 80, 0, 0.3) !important;
}

.btn-primary:disabled {
    background: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-primary i {
    font-size: 18px !important;
}

/* ==================== 響應式設計 ==================== */
@media (max-width: 320px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    
    .product-image-container {
        height: 180px;
    }
    
    .product-title {
        font-size: 11px;
        height: 26px;
        line-height: 1.25;
    }
    
    .product-price {
        font-size: 12px;
        height: 16px;
    }
    
    .btn-buy-grid {
        padding: 3px 8px;
        font-size: 9px;
        height: 20px;
        min-width: 40px;
    }
    
    .product-sales {
        font-size: 9px;
        height: 12px;
    }
    
    .stock-warning {
        font-size: 8px;
    }
    
    .brand-item {
        padding: 5px 10px;
        font-size: 11px;
        min-width: 45px;
        max-width: 90px;
    }
    
    .hero-banner {
        height: 90px;
        margin: 4px 10px 2px;
    }
    
    .banner-content {
        padding: 12px 10px;
    }
    
    .banner-main-title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .banner-tag {
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .customer-service {
        padding: 10px;
    }
    
    .service-header i {
        font-size: 16px;
        width: 28px;
        height: 28px;
    }
    
    .service-header h3 {
        font-size: 13px;
    }
    
    .qr-placeholder {
        width: 70px;
        height: 70px;
    }
    
    .modal-content {
        max-height: 85vh;
    }
    
    .qr-buttons-container {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .confirmation-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .btn-secondary, .btn-primary {
        width: 100% !important;
        flex: none !important;
    }
    
    .qr-image-container {
        width: 110px !important;
        height: 110px !important;
    }
    
    .btn-secondary, .btn-primary {
        padding: 12px !important;
        font-size: 14px !important;
        min-height: 44px !important;
    }
    
    .order-total-amount {
        font-size: 20px !important;
    }
}

@media (min-width: 321px) and (max-width: 375px) {
    .product-image-container {
        height: 190px;
    }
    
    .product-title {
        font-size: 12.5px;
        height: 33px;
    }
    
    .product-price {
        font-size: 13.5px;
    }
    
    .btn-buy-grid {
        padding: 5px 11px;
        font-size: 10.5px;
    }
}

@media (min-width: 376px) and (max-width: 414px) {
    .hero-banner {
        height: 120px;
    }
    
    .product-image-container {
        height: 210px;
    }
}

@media (min-width: 768px) {
    #app {
        max-width: none;
        margin: 0 auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 2px;
        margin: 0 20px 20px;
    }
    
    .product-image-container {
        height: 240px;
    }
    
    .hero-banner {
        margin: 5px 20px 2px;
        border-radius: 10px;
        height: 100px;
    }
    
    .customer-service {
        margin: 2px 20px 20px;
        border-radius: 10px;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .brands-container-sticky {
        padding: 8px 20px 6px;
        margin-top: 50px;
    }
    
    .section-header {
        margin: 16px 20px 12px;
    }
    
    .product-card {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }
    
    .service-card {
        padding: 14px 10px;
        border-radius: 10px;
    }
    
    .qr-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .banner-content {
        padding: 15px;
    }
    
    .banner-main-title {
        font-size: 22px;
    }
    
    .banner-tag {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .modal-content {
        max-height: 85vh;
        max-width: 800px;
        border-radius: 16px;
        animation: modalSlideUp 0.3s ease;
    }
    
    @keyframes modalSlideUp {
        from { 
            transform: translateY(100px);
            opacity: 0; 
        }
        to { 
            transform: translateY(0);
            opacity: 1; 
        }
    }
    
    .product-detail-container {
        padding-bottom: 20px;
    }
    
    .checkout-section, .cart-summary {
        padding: 20px;
    }
    
    .checkout-item, .cart-item {
        padding: 16px;
    }
    
    .floating-cart-btn {
        right: 50%;
        margin-right: -600px;
        bottom: 40px;
    }
    
    .order-confirmation-modal {
        max-width: 95% !important;
        max-height: 85vh !important;
        border-radius: 12px 12px 0 0 !important;
    }
    
    .qr-image-container {
        width: 150px !important;
        height: 150px !important;
    }
    
    .btn-secondary, .btn-primary {
        padding: 14px !important;
        font-size: 15px !important;
        min-height: 48px !important;
    }
}

@media (min-width: 1200px) {
    #app {
        max-width: none;
        margin: 0 auto;
    }
    
    .products-grid {
        gap: 2px;
        margin: 0 30px 30px;
    }
    
    .product-image-container {
        height: 260px;
    }
    
    .hero-banner {
        max-width: 1200px;
        margin: 5px auto 2px;
    }
    
    .customer-service {
        max-width: 1200px;
        margin: 2px auto 20px;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .brands-container-sticky {
        max-width: 1200px;
        margin: 50px auto 0;
        padding: 8px 30px 6px;
    }
    
    .section-header {
        max-width: 1200px;
        margin: 16px auto 12px;
    }
    
    .main-content {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .floating-cart-btn {
        right: 50%;
        margin-right: -600px;
        bottom: 40px;
    }
}

/* 橫屏適配 */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-banner {
        height: 100px;
    }
    
    .product-image-container {
        height: 180px;
    }
    
    .product-gallery {
        height: 300px;
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .product-actions {
        padding: 8px 12px;
    }
    
    .btn-add-cart, .btn-buy-now {
        flex: 1;
        height: 44px;
        border: none;
        border-radius: 22px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    
    .product-info {
        min-height: 55px;
        padding: 4px;
    }
    
    .product-title {
        font-size: 10px;
        height: 22px;
        line-height: 1.2;
        margin-bottom: 2px;
    }
    
    .product-price {
        font-size: 11px;
        height: 14px;
    }
    
    .btn-buy-grid {
        padding: 2px 6px;
        font-size: 8px;
        height: 18px;
        min-width: 35px;
    }
    
    .product-sales {
        font-size: 8px;
        height: 10px;
    }
    
    .stock-warning {
        font-size: 7px;
    }
}

/* 深色模式適配 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --card-bg: #2a2a2a;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --text-light: #999999;
        --border-color: #404040;
        --primary-light: #3a1f1a;
    }
    
    body {
        background: var(--bg-color);
    }
    
    .brands-container-sticky {
        background: var(--card-bg);
    }
    
    .customer-service {
        background: linear-gradient(135deg, #2a1f1a 0%, #1a1510 100%);
    }
    
    .banner-tag {
        background: rgba(0, 0, 0, 0.95);
        color: var(--primary-color);
    }
}

/* 確保body在模態框打開時不滾動 */
body.modal-open {
    overflow: hidden !important;
}

/* 價格顯示修復 */
.product-price {
    height: 24px;
    line-height: 24px;
    overflow: visible;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.product-info {
    padding: 12px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 橫幅標籤顏色統一 */
.banner-tag {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.banner-tag.shipping-tag {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-color) !important;
}
/* ==================== 簡化的重要提示頁面 ==================== */
.order-confirmation-simple {
    max-width: 420px !important;
    max-height: 90vh !important;
    background: white !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.order-confirmation-simple .modal-header {
    background: linear-gradient(135deg, #ff5000 0%, #ff6b00 100%) !important;
    color: white !important;
    padding: 16px 20px !important;
    border-bottom: none !important;
}

.order-confirmation-simple .modal-header h2 {
    color: white !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.order-confirmation-simple .modal-body {
    padding: 20px !important;
    max-height: calc(90vh - 60px) !important;
    overflow-y: auto !important;
}

/* 訂單總金額框 */
.order-summary-box {
    background: linear-gradient(135deg, #f6ffed 0%, #f0fff0 100%);
    border: 1px solid #b7eb8f;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.order-summary-title {
    font-size: 14px;
    color: #52c41a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.order-summary-amount {
    margin-bottom: 12px;
}

.amount-label {
    font-size: 14px;
    color: #333;
}

.amount-value {
    font-size: 28px;
    font-weight: 800;
    color: #ff4400;
    margin-left: 8px;
}

.order-summary-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #d9d9d9;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

/* 重要提示框 */
.important-notice-simple {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0fdff 100%);
    border: 1px solid #91d5ff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.notice-header h3 {
    font-size: 16px;
    color: #1890ff;
    margin: 0;
    font-weight: 600;
}

.notice-content p {
    color: #333;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.notice-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-content li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

/* 二維碼區域 */
.qr-code-simple {
    text-align: center;
    margin-bottom: 20px;
    padding: 16px;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
}

.qr-code-simple .qr-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.qr-code-simple .qr-image-container {
    width: 160px;
    height: 160px;
    margin: 0 auto 12px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #ddd;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.qr-code-simple .qr-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.qr-account-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0fff0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border: 1px solid #b7eb8f;
}

/* 倒計時 */
.countdown-simple {
    margin-bottom: 20px;
}

.countdown-text {
    text-align: center;
    font-size: 14px;
    color: #fa8c16;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.countdown-text span {
    font-weight: 700;
    color: #ff4400;
    font-size: 16px;
}

.countdown-progress {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.countdown-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #52c41a 0%, #73d13d 100%);
    width: 0%;
    transition: width 1s linear;
    border-radius: 3px;
}

/* 確認按鈕 */
.confirmation-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-cancel {
    flex: 1;
    padding: 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: white;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.btn-confirm {
    flex: 2;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #ccc 0%, #ddd 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-confirm.enabled {
    background: linear-gradient(135deg, #ff5000 0%, #ff6b00 100%);
    cursor: pointer;
}

.btn-confirm.enabled:hover {
    background: linear-gradient(135deg, #ff4000 0%, #ff5a00 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 80, 0, 0.3);
}

/* 底部提示 */
.footer-note {
    text-align: center;
    padding: 10px;
    color: #722ed1;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f9f0ff;
    border-radius: 6px;
    border: 1px solid #d3adf7;
}

/* 響應式調整 */
@media (max-width: 576px) {
    .order-confirmation-simple {
        max-width: 95% !important;
        border-radius: 12px 12px 0 0 !important;
    }
    
    .confirmation-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-cancel, .btn-confirm {
        width: 100%;
        flex: none;
    }
    
    .qr-code-simple .qr-image-container {
        width: 140px;
        height: 140px;
    }
    
    .amount-value {
        font-size: 24px;
    }
}

@media (max-width: 320px) {
    .qr-code-simple .qr-image-container {
        width: 120px;
        height: 120px;
    }
    
    .amount-value {
        font-size: 22px;
    }
    
    .btn-confirm, .btn-cancel {
        padding: 12px;
        font-size: 14px;
    }
}