/* ============================================================
   台湾红色主题 - 完整CSS
   所有颜色已提取到 :root 变量中，无任何遗漏
   变量注释说明了使用位置
   保持原版所有规则、选择器、媒体查询、动画不变
   ============================================================ */

:root {
    /* ========== 主色调 - 红色系 ========== */
    --red: #e02b41;                    /* 主红色：active标签下划线、选中边框、价格、按钮背景、收藏激活、闪购标题前条等 */
    --red-dark: #c91d35;               /* 深红：闪购特殊标签、优惠券hover */
    --red-light: #ff6b6b;              /* 浅红：闪购买家数量、价格标签渐变、按钮渐变、通知图标 */
    --red-pale: #ffd6d6;               /* 淡红：优惠券通知背景 */
    --red-bg-light: #fff0f0;           /* 浅红背景：选中规格、促销选项选中、错误输入框背景 */
    --red-bg-tag: #fff0f4;             /* 更浅红背景：评论标签默认背景 */
    --red-gradient-start: #ff4d4f;     /* 红色渐变起点（立减券背景） */
    --red-gradient-end: #d9363e;       /* 红色渐变终点（立减券背景） */
    --red-badge-bg: #ff6b81;           /* 闪购购买人数文字颜色 */
    --red-border-dashed: #e02b41;      /* 虚线边框色（促销未选中） */
    --red-pulse-start: rgba(224,43,65,0.4); /* 脉冲动画起始色 */
    --red-pulse-end: rgba(224,43,65,0);    /* 脉冲动画结束色 */
    --red-favorite: #e02b41;           /* 收藏激活颜色 */
    --red-tax: #e02b41;                /* 税额文字颜色 */
    --red-tag: #e02b41;                /* 促销标签背景 */
    --red-dash: #e02b41;               /* 虚线高亮边框 */
    --red-countdown: red;              /* 倒计时文字颜色（纯红） */
    --red-quantity-hint: red;          /* 商品数量提示颜色 */
    --red-flash-buyer: #ff6b81;         /* 闪购买家行为文字 */
    --red-flash-no-wait: red;           /* 闪购免等待文字 */
    --red-flash-quick-buy: red;         /* 闪购快速购买按钮背景 */
    --red-flash-quick-buy-hover: #ffc2c2; /* 闪购快速购买按钮hover渐变起点 */
    --red-flash-quick-buy-hover-end: #ff8a8a; /* 闪购快速购买按钮hover渐变终点 */

    /* ========== 辅助色 - 橙色/黄色系 ========== */
    --orange: #e67e23;                 /* 橙色：配额提醒文字、闪购配额提醒文字 */
    --orange-light: #ffc107;           /* 橙色：星星颜色（未使用star变量时） */
    --orange-bg: #fff8e6;              /* 橙色背景：配额提醒背景 */
    --orange-border: #ffd699;          /* 橙色边框：配额提醒边框 */
    --yellow: #ffd700;                 /* 亮黄：闪购“免等待”标签、通知高亮文字 */
    --yellow-bg: #fff5e1;              /* 浅黄背景：闪购配额提醒渐变终点 */
    --yellow-gradient-start: #fff8e6;  /* 配额提醒渐变起点 */

    /* ========== 绿色/成功色系 ========== */
    --green: #4CAF50;                  /* 成功绿：已领取优惠券、折扣金额、配送信息图标、安全支付图标 */
    --green-dark: #45a049;             /* 深绿：优惠券已领取渐变终点 */
    --green-darker: #2e7d32;           /* 更深的绿：已领取优惠券金额背景 */
    --green-bg: #e8f5e9;               /* 浅绿背景：自动优惠券提示背景 */
    --green-border: #4caf50;           /* 绿色边框：自动优惠券提示边框 */
    --green-saving: green;              /* 省钱的绿色提示文字 */
    --green-tag-bg: green;              /* 省钱标签背景绿色 */
    --green-line-button: #28a745;       /* LINE按钮图标颜色 */
    --green-pay-security: #4CAF50;      /* 支付安全图标颜色 */

    /* ========== 蓝色/链接色系 ========== */
    --blue: #1890ff;                   /* 链接蓝：服务弹窗标题、规格提示图标、优惠券详情链接 */
    --blue-dark: #1e90ff;              /* 深蓝：输入框聚焦边框、自定义下拉框hover边框 */
    --blue-light: #e1f0ff;             /* 浅蓝：商店徽章背景 */
    --blue-pale: #f8f9ff;              /* 极浅蓝：优惠券卡片渐变起点 */
    --blue-bg-light: #f0f4ff;          /* 浅蓝背景：优惠券卡片渐变终点 */
    --blue-badge: #e1f0ff;             /* 商店徽章背景蓝 */
    --blue-text: #3498db;              /* 商店徽章文字蓝、优惠券金额文字 */
    --blue-status-bg: #e8f4fc;         /* 优惠券状态背景蓝 */
    --blue-status-border: #3498db;     /* 优惠券状态左边框蓝 */
    --blue-coupon-card: #3498db;       /* 优惠券详情卡片虚线边框 */
    --blue-coupon-check: #3498db;      /* 优惠券选中对勾颜色 */
    --blue-tag-text: #4a8bd6;          /* 评论标签文字蓝 */
    --blue-spec-hint: #1890ff;         /* 规格提示文字及图标 */
    --blue-view-coupon: #1890ff;       /* 查看优惠券详情链接 */

    /* ========== 中性色 - 文字/背景/边框 ========== */
    --white: #ffffff;                  /* 纯白：卡片背景、按钮文字、模态框背景、弹窗背景 */
    --black: #000000;                  /* 纯黑（极少使用） */
    --gray-darkest: #333333;           /* 最深灰：主标题、商品标题、重要文字 */
    --gray-dark: #2c3e50;              /* 深灰：支付方式名称、优惠券标题 */
    --gray-medium: #666666;            /* 中灰：副标题、标签文字、表单label、评价文字 */
    --gray-light: #999999;             /* 浅灰：原价、辅助说明、占位符、日期、评论计数 */
    --gray-pale: #f8f9fa;              /* 灰白背景：运输保险、配送信息、评论区加载更多hover */
    --gray-border-default: #e0e0e0;    /* 默认边框：表单项、配送方式按钮、语言切换器 */
    --border-light: #eee;              /* 浅边框：标签页下划线、评论分割线、商品信息分割线 */
    --border-card: #f0f0f0;            /* 卡片边框：闪购商品列表分隔线 */
    --border-input: #ddd;              /* 输入框边框：普通输入框 */
    --border-focus: #1e90ff;           /* 输入框聚焦边框 */
    --bg-body: #f5f5f5;                /* 页面背景色 */
    --bg-card: #ffffff;                /* 卡片背景：商品详情、评论卡片、产品相册 */
    --bg-header: #ffffff;              /* 头部背景 */
    --bg-footer: #ffffff;              /* 底部固定栏背景 */
    --bg-gray: #f8f8f8;                /* 浅灰背景：禁用规格、促销选项默认背景、价格区块背景 */
    --bg-tab: #ffffff;                 /* 标签栏背景 */
    --bg-tag: #f0f7ff;                /* 蓝色标签背景（评论中的商品标签） */
    --bg-highlight: #fff5f5;           /* 高亮背景：闪购按钮背景 */
    --bg-service: #f5f5f5;             /* 服务弹窗关闭按钮背景 */
    --bg-purchase-header: #f9f9f9;     /* 购买页头部背景 */
    --bg-security: #f9f9f9;            /* 安全区块背景 */
    --bg-guarantee: transparent;       /* 保障区块背景（透明，实际继承） */
    --bg-notify: #fff8f0;              /* 偏远地区提示背景 */
    --bg-tw-city-hint: #fff8f0;        /* 台湾城市提示背景 */

    /* ========== 渐变色专用 ========== */
    --gradient-red-start: #ff6b6b;            /* 红色渐变起点（按钮、优惠券、购买按钮） */
    --gradient-red-end: #e02b41;              /* 红色渐变终点（按钮、优惠券、购买按钮） */
    --gradient-green-start: #4CAF50;          /* 绿色渐变起点（优惠券已领取状态） */
    --gradient-green-end: #45a049;            /* 绿色渐变终点（优惠券已领取） */
    --gradient-pink-start: #ffcccc;           /* 粉色渐变起点（闪购用户头像背景） */
    --gradient-pink-end: #ff9999;             /* 粉色渐变终点（闪购用户头像背景） */
    --gradient-yellow-start: #fff8e6;         /* 黄色渐变起点（闪购配额提醒） */
    --gradient-yellow-end: #fff5e1;           /* 黄色渐变终点（闪购配额提醒） */
    --gradient-blue-start: #f8f9ff;           /* 蓝色渐变起点（优惠券详情卡片） */
    --gradient-blue-end: #f0f4ff;             /* 蓝色渐变终点（优惠券详情卡片） */
    --gradient-loading-start: #f0f0f0;        /* 加载动画渐变起点 */
    --gradient-loading-mid: #e0e0e0;          /* 加载动画渐变中间 */
    --gradient-loading-end: #f0f0f0;          /* 加载动画渐变终点 */
    --gradient-edge: linear-gradient(to right, rgba(255,0,0,0.1), transparent); /* 边缘指示器渐变 */
    --gradient-fullscreen-bg: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent); /* 全屏头部渐变背景 */

    /* ========== 阴影 ========== */
    --shadow-default: 0 2px 10px rgba(0,0,0,0.1);      /* 默认阴影：卡片、弹窗 */
    --shadow-light: 0 2px 5px rgba(0,0,0,0.05);        /* 轻阴影：标签栏 */
    --shadow-heavy: 0 4px 15px rgba(0,0,0,0.2);        /* 重阴影：头部粘性导航 */
    --shadow-red: 0 4px 10px rgba(224,43,65,0.3);      /* 红色阴影：确认购买按钮 */
    --shadow-voucher: 0 -2px 15px rgba(215,113,113,0.3); /* 优惠券弹窗阴影 */
    --overlay-dark: rgba(0,0,0,0.5);                   /* 暗遮罩：模态框背景 */
    --overlay-dark-heavy: rgba(0,0,0,0.7);             /* 深色遮罩：全屏查看器背景 */

    /* ========== 特殊状态色 ========== */
    --error: #e02b41;                  /* 错误红：表单验证错误边框、错误提示文字 */
    --error-bg: #fff0f0;               /* 错误输入框背景 */
    --warning: #e57373;                /* 警告浅红：选择率文字 */
    --warning-bg: #fff0f0;              /* 警告背景：配送方式选中背景 */
    --disabled: #ccc;                  /* 禁用文字颜色 */
    --disabled-bg: #f8f8f8;            /* 禁用背景 */

    /* ========== 杂项 ========== */
    --star: #ff9500;                   /* 评分星星颜色（评论模块） */
    --star-yellow: #ffc107;             /* 黄色星星（价格区） */
    --delivery: #4CAF50;               /* 配送信息文字颜色（绿色） */
    --phone-prefix: #777;              /* 电话前缀颜色 */
    --border-dashed-blue: #3498db;     /* 优惠券卡片虚线边框蓝 */
    --checkmark-border: #bdc3c7;       /* 复选框未选中边框 */
    --divider: #e8eaed;                /* 优惠券模态框分隔线 */
    --icon-gray: #a0aec0;              /* 支付图标灰色 */
    --placeholder: #999;               /* 占位符颜色 */
    --security-icon: #4CAF50;          /* 安全图标绿色 */

    /* ========== 字体 ========== */
    --font-family-base: "PingFang SC", "Microsoft YaHei", sans-serif;

    /* ========== 布局尺寸 ========== */
    --container-max-width: 720px;
    --header-height-sticky: 42px;
}

/* ============================================================
   第一部分：基础公用样式
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family-base);
}

/* RTL 模式下交换左右箭头位置和图标方向 */
[dir="rtl"] .carousel-btn#prev-btn {
    right: 10px;
    left: auto;
    transform: scaleX(-1);
}
[dir="rtl"] .carousel-btn#next-btn {
    left: 10px;
    right: auto;
    transform: scaleX(-1);
}
[dir="rtl"] .fullscreen-nav-btn#fullscreen-prev,
[dir="rtl"] .fullscreen-nav-btn#fullscreen-next {
    transform: scaleX(-1);
}
[dir="rtl"] .fullscreen-nav-btn#fullscreen-prev {
    left: auto;
    right: 20px;
}
[dir="rtl"] .fullscreen-nav-btn#fullscreen-next {
    right: auto;
    left: 20px;
}

/* 电话输入框容器相对定位 */
.phone-input-container {
    position: relative;
}
.phone-input-container::before {
    content: attr(data-prefix);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--phone-prefix);
    font-size: 16px;
    z-index: 1;
    background: transparent;
}
.phone-input-container .form-input {
    padding-left: 50px !important;
}
.phone-input-container .floating-label {
    left: 50px !important;
}
html[dir="rtl"] .phone-input-container::before {
    left: auto;
    right: 12px;
}
html[dir="rtl"] .phone-input-container .form-input {
    padding-left: 0 !important;
    padding-right: 50px !important;
}
html[dir="rtl"] .phone-input-container .floating-label {
    left: auto !important;
    right: 50px !important;
}

/* 运输保险区域 - 默认主题 */
.shipping-insurance {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    background: var(--gray-pale);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 15px 0;
    border: 1px solid #e9ecef;
}
.insurance-icons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.insurance-icon {
    height: 24px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
}
.insurance-icon-fa {
    font-size: 24px;
    color: #6c757d;
}
.insurance-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #495057;
}
.insurance-text i {
    color: var(--green);
}
@media (max-width: 576px) {
    .shipping-insurance {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .insurance-icons {
        flex-wrap: wrap;
    }
}

body {
    padding-top: 0 !important;
    background-color: var(--bg-body);
    color: #333;
    line-height: 1.6;
    padding-bottom: 100px;
}
.container {
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0;
}
.container > :not(:first-child) {
    margin-top: 0;
}
.header {
    background-color: var(--bg-header);
    box-shadow: var(--shadow-default);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 20px;
}
.sticky-header {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: var(--container-max-width);
    background: rgba(255,255,255,0.98);
    z-index: 1000;
    transform: translateX(-50%) translateY(-100%);
    transition: transform 0.3s ease;
    padding: 8px 0;
    will-change: transform;
    left: 50%;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    height: var(--header-height-sticky);
    display: flex;
    justify-content: center;
    align-items: center;
}
.sticky-header.visible {
    transform: translateX(-50%) translateY(0);
}
.sticky-header .tab {
    margin: 0 15px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    font-size: 14px;
    position: relative;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
}
.sticky-header .tab:hover {
    color: #e03e2d;
}
.sticky-header .tab.active {
    font-weight: 600;
    color: #333;
}
.sticky-header .tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 2px;
    background-color: #e03e2d;
}
.sticky-header .tab.active:hover {
    color: #333;
}
.lazy-media {
    opacity: 0;
    transition: opacity 0.5s ease;
}
.lazy-media.loaded {
    opacity: 1;
}
.lazy-media.loading {
    position: relative;
    background: linear-gradient(90deg, var(--gradient-loading-start) 25%, var(--gradient-loading-mid) 50%, var(--gradient-loading-end) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.tabs {
    display: flex;
    padding: 0 12px;
    box-shadow: var(--shadow-light);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
    justify-content: center;
    border-bottom: 1px solid var(--border-light);
    flex: 1;
}
.tabs::-webkit-scrollbar {
    display: none;
}
.tab {
    margin: 0 2px;
    flex-shrink: 0;
    padding: 15px 12px !important;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}
.tab.active {
    color: var(--red);
}
.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--red);
}
#back-to-top {
    position: fixed;
    bottom: 100px;
    width: 46px;
    max-width: var(--container-max-width);
    right: 10px;
    height: 46px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
#back-to-top svg {
    width: 45px;
    height: 45px;
    fill: var(--white);
}
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    height: 100%;
    z-index: 1000;
}
.service-modal-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
}
.service-modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.service-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.service-modal-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--blue);
}
.service-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-service);
    cursor: pointer;
}
.service-modal-close svg {
    width: 20px;
    height: 20px;
    stroke: #333;
}
.service-modal-subtitle {
    font-size: 14px;
    color: var(--gray-light);
    margin-bottom: 20px;
}
.service-modal-list {
    overflow-y: auto;
    flex: 1;
    padding-right: 5px;
}
.service-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}
.service-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.service-item-icon {
    width: 32px;
    height: 32px;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-item-content {
    flex: 1;
}
.service-item-title {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
}
.service-item-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}
.edge-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 5%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,0,0,0.1), transparent);
    z-index: 2000;
    pointer-events: none;
    display: none;
}
.main-image {
    border-radius: 0 !important;
    margin-bottom: 5px !important;
    height: 500px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.image-footer {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    width: auto;
}
.thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}
.thumbnail {
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}
.thumbnail.active {
    border-color: var(--red);
}
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}
.carousel-btn {
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.5);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}
.carousel-btn:hover {
    background-color: rgba(0,0,0,0.8);
}
.product-gallery {
    padding: 0 !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    box-shadow: var(--shadow-default);
    margin-bottom: -20px;
    position: relative;
}
.product-info {
    background-color: var(--bg-card);
    border-radius: 20px;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    box-shadow: var(--shadow-default);
    margin-bottom: 10px;
    margin-top: -20px;
    padding: 1px !important;
}
.flash-sale-container {
    margin-top: 0px;
    margin: 0 auto;
    width: 98%;
    background: var(--red);
    border-radius: 20px;
    padding: 0px;
    max-width: var(--container-max-width);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}
.product-comments {
    border: 1px solid #FFF;
    width: 98%;
    margin: 0 auto;
    padding-top: 10px !important;
    background-color: var(--bg-card);
    border-radius: 20px;
    max-width: var(--container-max-width);
    padding: 20px;
    box-shadow: var(--shadow-default);
    margin-bottom: 10px;
}
.product-detail-title {
    padding-top: 5px !important;
    font-size: 20px;
    font-weight: bold;
    background-color: var(--bg-gray);
    border-radius: 0px;
    padding: 0px;
    border: 0px;
    margin: 0 auto;
    max-width: var(--container-max-width);
    margin-bottom: 5px;
    text-align: center;
}
.product-detail {
    padding-top: 0px !important;
    background-color: var(--bg-card);
    border-radius: 0px;
    padding: 0px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    box-shadow: var(--shadow-default);
    margin-bottom: 0px;
    line-height: 0;
    font-size: 0;
}
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3px;
}
.product-title-container {
    flex: 1;
}
.product-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-right: 15px;
}
.product-subtitle {
    font-size: 16px;
    color: #666;
    margin-top: 10px;
}
.rating-stars {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}
.star {
    color: var(--star-yellow);
    font-size: 18px;
}
.price-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: var(--bg-gray);
    padding: 15px;
    border-radius: 4px;
    margin-top: 8px;
    margin-bottom: 0px !important;
}
.price-label {
    font-size: 14px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--red), var(--gradient-red-start));
    padding: 6px 12px;
    border-radius: 20px;
    margin-left: 8px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(224,43,65,0.3);
    border: 1px solid #ff4757;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}
.price-label-amount {
    font-size: 16px;
    font-weight: 800;
    margin-left: 3px;
}
.final-price {
    font-size: 20px;
    color: var(--red);
    font-weight: bold;
    vertical-align: middle;
}
.final-price-currency {
    font-size: 20px;
    color: var(--red);
    font-weight: bold;
    vertical-align: middle;
}
.original-price {
    font-size: 16px;
    color: var(--gray-light);
    text-decoration: line-through;
    margin-left: 0px;
}
.original-price-title {
    font-size: 16px;
    color: var(--gray-light);
    margin-left: 5px;
}
.voucher-title {
    color: var(--white);
    font-weight: bold;
}
.voucher-desc {
    color: rgba(255,255,255,0.9);
}
.instant-discount-section {
    background: linear-gradient(135deg, var(--red-gradient-start), var(--red-gradient-end));
    border-radius: 0;
    padding: 6px 10px;
    margin: 0px 0px;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0;
    margin-top: 5px !important;
}
.instant-discount-section > * {
    font-size: 14px;
}
.instant-discount-section.claimed {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    padding: 8px 10px;
}
.instant-discount-section.claimed .discount-text {
    font-weight: bold;
    color: var(--white);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}
.instant-discount-section.claimed .discount-amount-title {
    color: var(--white);
    font-size: 16px;
    margin-right: 8px;
}
.instant-discount-section.claimed .claim-btn .countdown-timer {
    font-size: 12px;
    margin-left: 5px;
    font-weight: normal;
}
.instant-discount-section.claimed .discount-separator {
    background: rgba(255,255,255,0.4);
}
.instant-discount-section.claimed .claim-btn {
    background: var(--white);
    color: var(--red);
    padding: 8px 16px;
    border-radius: 4px;
    margin: 0;
    position: relative;
    min-width: 120px;
}
.instant-discount-section.claimed .discount-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 8px;
}
.voucher-notification.claimed {
    background: linear-gradient(90deg, var(--green), var(--green-dark));
    padding: 8px 15px;
}
.voucher-notification.claimed .voucher-info {
    flex: 1;
    min-width: 0;
}
.voucher-notification.claimed .voucher-title {
    color: var(--white);
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.voucher-notification.claimed .voucher-desc {
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.voucher-notification.claimed .voucher-close {
    color: var(--white);
}
.claim-btn {
    background: var(--white);
    color: var(--red);
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-top: 0;
    font-size: 13px;
}
.claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-radius: 6px;
}
.instant-discount-section {
    margin-top: 5px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: linear-gradient(135deg, var(--red), var(--gradient-red-start));
    border-radius: 4px;
}
.instant-discount-section.claimed {
    background: linear-gradient(135deg, var(--red), var(--gradient-red-start));
    flex-wrap: wrap;
}
.instant-discount-section.claimed .discount-text {
    font-weight: bold;
    color: var(--white);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 8px;
}
.instant-discount-section.claimed .discount-amount-title {
    color: var(--white);
    font-size: 16px;
    margin-right: 8px;
}
.instant-discount-section.claimed .discount-countdown {
    color: var(--white);
    display: none;
}
.instant-discount-section.claimed .discount-separator {
    background: rgba(255,255,255,0.4);
    margin: 0 8px;
    height: 20px;
}
.instant-discount-section.claimed .discount-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.instant-discount-section.claimed .claim-btn {
    background: var(--white);
    color: var(--red);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    margin: 0;
}
.instant-discount-section.claimed .claim-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.instant-discount-section.claimed .discount-hint {
    display: block !important;
}
@media (min-width:769px) {
    .instant-discount-section.claimed .discount-button-container {
        margin-left: 10px;
    }
}
.voucher-notification.claimed {
    background: linear-gradient(90deg, var(--green), var(--green-dark));
    padding: 8px 15px;
}
.voucher-notification.claimed .voucher-amount {
    background: #388e3c;
    color: var(--white);
    border: 1px solid #2c6b2f;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.voucher-notification.claimed .voucher-info {
    flex: 1;
    min-width: 0;
}
.voucher-notification.claimed .voucher-title {
    color: var(--white);
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.voucher-notification.claimed .voucher-desc {
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.voucher-notification.claimed .voucher-close {
    color: var(--white);
}
.voucher-notification {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: 100%;
    max-width: var(--container-max-width);
    background: linear-gradient(90deg, var(--red-pale), #ffb6b6);
    color: #333;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    box-shadow: var(--shadow-voucher);
    border-radius: 0;
    transition: transform 0.5s ease, opacity 0.4s ease;
    opacity: 0;
    height: 46px;
    pointer-events: auto !important;
}
.voucher-notification.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto !important;
}
.voucher-icon {
    position: relative;
    width: 36px;
    height: 36px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.voucher-amount {
    background: var(--red);
    padding: 5px 5px;
    border-radius: 0;
    font-size: 12px;
    color: var(--white);
    text-align: center;
    min-width: 60px;
}
.voucher-info {
    flex: 1;
    padding: 0 15px;
}
.voucher-title {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 2px;
    line-height: 1.2;
    color: #333;
}
.voucher-desc {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.1;
    color: #a53030;
}
.voucher-claim {
    background: linear-gradient(90deg, var(--gradient-red-start), var(--red));
    color: var(--white);
    border: none;
    padding: 6px 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    font-size: 13px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}
.voucher-claim:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background: linear-gradient(90deg, #ff7b7b, #e03b51);
}
.voucher-claim:active {
    transform: translateY(0);
}
.voucher-close {
    background: transparent;
    border: none;
    color: #333;
    width: 26px;
    height: 26px;
    cursor: pointer;
    margin-left: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.voucher-close:hover {
    transform: rotate(90deg);
}
.touch-active {
    transform: scale(0.95);
    opacity: 0.8;
    transition: transform 0.1s ease, opacity 0.1s ease;
}
#voucher-claim, #claim-discount, #voucher-close {
    cursor: pointer;
    pointer-events: auto;
}
.voucher-claim, .voucher-close {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10000;
    position: relative;
}
.voucher-notification * {
    pointer-events: auto !important;
}
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}
.voucher-notification.claimed {
    background: linear-gradient(90deg, var(--green), var(--green-dark));
    color: var(--white);
}
.voucher-claim.claimed {
    background: var(--green);
    color: var(--white);
}
.claim-btn.claimed {
    background: #f8f9fa;
    color: var(--green);
}
.coupon-auto-hint {
    background-color: var(--green-bg);
    border: 1px solid var(--green-border);
    border-radius: 4px;
    padding: 10px 15px;
    margin: 10px 0;
    color: var(--green-darker);
    font-size: 14px;
    display: flex;
    align-items: center;
}
.detail-image {
    pointer-events: auto;
    cursor: pointer;
}
.discount-amount-title {
    font-weight: 800;
    padding: 0 8px;
    min-width: 50px;
    font-size: 18px;
}
.discount-separator {
    height: 24px;
    width: 1px;
    background: rgba(255,255,255,0.4);
    margin: 0 8px;
}
.discount-text {
    flex: 1;
    font-weight: bold;
    min-width: 140px;
    padding: 0 3px;
}
.discount-countdown {
    font-weight: bold;
    margin: 0 8px;
    font-family: monospace;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}
.promotion-tag {
    display: inline-block;
    background-color: var(--red);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 10px;
}
.promotion-off {
    display: inline-block;
    color: red;
    padding: 3px 3px;
    font-size: 16px;
    margin-left: 3px;
    font-weight: bold;
}
.promotion-word {
    color: var(--red);
    margin: 3px 0;
    font-size: 14px;
}
.promotion-quantity-section {
    margin: 5px 0;
}
.quantity-label {
    font-size: 14px;
    margin-bottom: 8px;
    color: #666;
    font-weight: bold;
}
.promotion-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: 10px;
    margin-top: 5px;
}
.promotion-option {
    padding: 5px 10px;
    border: 1px solid var(--border-input);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.promotion-option.selected {
    border-color: var(--red);
    color: var(--red);
    background-color: var(--red-bg-light);
}
.saving-tag {
    position: absolute;
    top: -10px;
    right: -5px;
    color: var(--white);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    background-color: var(--green-tag-bg) !important;
}
.quota-reminder {
    background-color: var(--orange-bg);
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 14px;
    color: var(--orange);
    display: flex;
    align-items: center;
}
.quota-icon {
    margin-right: 8px;
    font-size: 18px;
}
.spec-section {
    margin: 0px 0;
}
.spec-group {
    margin-bottom: 15px;
}
.spec-name {
    font-size: 16px;
    margin-bottom: 8px;
    color: #666;
    font-weight: bold;
}
.spec-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.spec-value {
    padding: 8px 15px;
    border: 1px solid var(--border-input);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    flex-basis: calc(50% - 10px);
    max-width: calc(50% - 10px);
}
.spec-value.selected {
    border-color: var(--red);
    color: var(--red);
    background-color: var(--red-bg-light);
}
.spec-value.disabled {
    color: var(--disabled);
    cursor: not-allowed;
    background-color: var(--disabled-bg);
}
.spec-value img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin-right: 8px;
    border-radius: 4px;
}
.saving-hint {
    color: var(--green-saving) !important;
    font-size: 14px;
    margin-top: 5px;
    font-weight: bold;
}
.total-price-label {
    color: #666;
    margin-right: 10px;
}
.total-price-value {
    color: var(--red);
    font-weight: bold;
}
.fullscreen-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 5000;
    overflow: hidden;
}
.fullscreen-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5001;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}
.fullscreen-index {
    color: var(--white);
    font-size: 16px;
    font-weight: bold;
    padding: 5px 12px;
    background: rgba(0,0,0,0.5);
    border-radius: 15px;
}
.fullscreen-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
}
.fullscreen-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.fullscreen-nav {
    position: absolute;
    align-items: center;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 5002;
}
.fullscreen-nav-btn {
    width: 44px;
    height: 44px;
    z-index: 5003;
    background-color: rgba(0,0,0,0.5);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.7;
    pointer-events: auto;
}
.fullscreen-nav-btn:hover {
    background-color: rgba(0,0,0,0.8);
    opacity: 1;
}
.fullscreen-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.fullscreen-content {
    pointer-events: none;
}
.fullscreen-image {
    pointer-events: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.save-image-btn {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: 0 20px;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
    font-size: 18px;
}
.save-image-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}
.save-image-btn i {
    font-size: 18px;
}
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    max-width: var(--container-max-width);
    background: var(--bg-footer);
    display: flex;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    height: 50px;
    align-items: center;
    justify-content: center;
}
@media (max-width:768px) {
    .fixed-footer {
        width: 100%;
        max-width: 100%;
        left: 0;
        transform: none;
    }
}
.action-btn {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 15px;
    font-size: 14px;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    height: 100%;
    gap: 1px;
}
.icon-container {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.action-btn svg {
    width: 24px;
    height: 24px;
    fill: #666;
    transition: all 0.3s ease;
}
.action-btn:hover svg {
    fill: #e03e2d;
    transform: scale(1.1);
}
.action-btn span {
    display: block;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.btn-buy {
    flex: 1.5;
    background: linear-gradient(90deg, var(--gradient-red-start), var(--red));
    color: var(--white);
    border: none;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    height: 100%;
    transition: all 0.3s ease;
}
.btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(224,43,65,0.4);
}
.btn-buy i {
    font-size: 20px;
}
.promotion-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}
.promotion-icon {
    width: 24px;
    height: 24px;
    background-color: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 14px;
}
.promotion-text {
    font-size: 14px;
    color: #666;
}
.detail-image, .detail-image2 {
    margin-bottom: 10px;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}
.detail-video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: -10px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
}
.dot.active {
    background-color: var(--red);
}
.flash-sale-header {
    text-align: center;
    margin-top: 2px;
    margin-bottom: 2px;
}
.flash-sale-header h1 {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 0px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.flash-sale-header p {
    color: var(--white);
    font-size: 16px;
}
.flash-sale-section {
    border: 1px solid var(--red);
    border-radius: 20px;
    padding: 1px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(224,43,65,0.1);
}
.flash-sale-special-offer-tag {
    position: absolute;
    top: 12px;
    right: -30px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white);
    padding: 5px 25px;
    font-weight: bold;
    font-size: 17px;
    transform: rotate(45deg);
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    z-index: 2;
}
.flash-sale-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    padding-right: 60px;
}
.flash-sale-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    position: relative;
    padding-left: 12px;
}
.flash-sale-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 22px;
    background: var(--red);
    border-radius: 3px;
}
.flash-sale-buyers-count {
    color: var(--red-badge-bg);
    font-size: 15px;
    font-weight: normal;
    min-width: 140px;
}
.flash-sale-content {
    position: relative;
    height: 150px;
    overflow: hidden;
    margin: 8px 0;
}
.flash-sale-buyer-group {
    display: flex;
    flex-direction: column;
    animation: slideUp 3s linear infinite;
}
.flash-sale-buyer-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    transition: all 0.3s;
    border-bottom: 1px dashed #f0f0f0;
}
.flash-sale-buyer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-pink-start), var(--gradient-pink-end));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}
.flash-sale-avatar {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 30px;
    border: 1px solid #eee;
}
.flash-sale-buyer-info {
    flex: 1;
}
.flash-sale-buyer-name {
    font-weight: bold;
    margin-bottom: 2px;
    font-size: 15px;
    color: #333;
}
.flash-sale-buyer-action {
    font-size: 13px;
    display: inline-block;
    padding: 3px 7px;
    border-radius: 4px;
    background-color: #fff5f5;
    border: 1px solid #ffd6d6;
    color: var(--red-badge-bg);
    margin-right: 5px;
}
.flash-sale-buyer-product {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}
.flash-sale-buyer-btn-container {
    position: relative;
    margin-left: 12px;
    flex-shrink: 0;
    padding-top: 20px;
}
.flash-sale-no-wait {
    position: absolute;
    top: 0;
    left: 10%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 11px;
    color: var(--red-flash-no-wait);
    background: var(--yellow);
    padding: 4px 10px;
    border-radius: 8px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    animation: pulse 1.5s infinite;
}
.flash-sale-quick-buy-btn {
    background: var(--red-flash-quick-buy);
    color: #FFFFFF;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(224,43,65,0.25);
}
.flash-sale-quick-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(224,43,65,0.35);
    background: linear-gradient(to bottom, var(--red-flash-quick-buy-hover), var(--red-flash-quick-buy-hover-end));
}
.flash-sale-quota-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    gap: 8px;
    flex-wrap: nowrap;
}
.flash-sale-quota-reminder {
    background: linear-gradient(135deg, var(--gradient-yellow-start), var(--gradient-yellow-end));
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 15px;
    color: var(--orange);
    font-weight: bold;
    border: 1px solid var(--orange-border);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(230,126,35,0.12);
}
.flash-sale-quota-icon {
    margin-right: 6px;
    font-size: 16px;
    animation: pulse 2s infinite;
}
.flash-sale-price-hint {
    font-size: 13px;
    color: #999;
    font-style: italic;
    white-space: nowrap;
}
.delivery-info {
    display: flex;
    align-items: center;
    background: var(--gray-pale);
    padding: 10px 18px;
    border-radius: 8px;
    margin-top: 12px;
    border: 1px solid var(--border-default);
    font-size: 15px;
    color: var(--delivery);
    font-weight: bold;
    justify-content: center;
}
.delivery-info svg {
    margin-right: 8px;
    width: 22px;
    height: 22px;
}
@keyframes slideUp {
    0% { transform: translateY(100%); opacity: 0; }
    8% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(0); opacity: 1; }
    75% { transform: translateY(-5px); opacity: 0.9; }
    80% { transform: translateY(-10px); opacity: 0.8; }
    85% { transform: translateY(-25px); opacity: 0.6; }
    90% { transform: translateY(-50px); opacity: 0.4; }
    95% { transform: translateY(-80px); opacity: 0.2; }
    100% { transform: translateY(-100%); opacity: 0; }
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.product-stats {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    margin: 0 auto;
    gap: 10px;
}
.favorite-btn-container {
    margin-left: auto;
}
.favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #ccc;
}
.favorite-btn.active i {
    color: var(--red-favorite);
}
.favorite-count {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}
#product-comments .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}
#product-comments .section-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
}
#product-comments .comment-count {
    font-size: 16px;
    font-weight: normal;
    color: #666;
}
#product-comments .comment-stats {
    display: flex;
    align-items: center;
    gap: 2px;
}
#product-comments .positive-rate {
    color: var(--red);
    font-size: 15px;
    font-weight: bold;
}
#product-comments .comment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0px 0px;
    background: #fff;
}
#product-comments .tag {
    padding: 5px 14px;
    background: var(--red-bg-tag);
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #ffe0e4;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}
#product-comments .tag-count {
    color: #888;
    font-size: 12px;
}
#product-comments .comments-container {
    padding: 0px 0px;
}
#product-comments .comment-item {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}
#product-comments .comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1px;
    align-items: center;
}
#product-comments .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
#product-comments .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}
#product-comments .comment-avatar img {
    vertical-align: middle;
    margin: 0 8px 0 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.3);
}
#product-comments .comment-area {
    color: #999;
    font-size: 12px;
}
#product-comments .comment-user {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}
#product-comments .comment-date {
    color: #999;
    font-size: 14px;
}
#product-comments .comment-rating {
    color: var(--star);
    margin: 8px 0;
    font-size: 17px;
}
#product-comments .comment-content {
    color: #333;
    line-height: 1.6;
    margin-bottom: 5px;
    font-size: 15px;
}
#product-comments .comment-tags {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}
#product-comments .comment-tag {
    background: var(--bg-tag);
    color: var(--blue-tag-text);
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 12px;
}
#product-comments .comment-media {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
#product-comments .comment-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #eee;
}
#product-comments .comment-video {
    width: 150px;
    height: 100px;
    border-radius: 6px;
    background-color: #000;
    position: relative;
    cursor: pointer;
    border: 1px solid #eee;
}
#product-comments .video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 30px;
    opacity: 0.8;
}
#product-comments .load-more {
    text-align: center;
    padding: 5px;
    color: var(--red);
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
}
#product-comments .load-more:hover {
    background: #f2f2f2;
}
#product-comments .loading {
    text-align: center;
    padding: 30px;
    color: #999;
}
#product-comments .loading i {
    animation: spin 1s linear infinite;
    margin-right: 10px;
}
#product-comments .no-comments {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 16px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.comment-tags-container {
    position: relative;
    margin-bottom: 15px;
}
.comment-tags-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    transition: max-height 0.3s ease;
    overflow: hidden;
}
.comment-tags-inner.collapsed {
    max-height: 120px;
}
.comment-tags-more {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    cursor: pointer;
    color: #6c757d;
    font-size: 14px;
    transition: all 0.3s ease;
    user-select: none;
}
.comment-tags-more:hover {
    background: #e9ecef;
    color: #495057;
}
.comment-tags-more i {
    margin-left: 6px;
    font-size: 12px;
    transition: transform 0.3s ease;
}
.comment-tags-more:hover i {
    transform: translateY(1px);
}
.guarantee-section {
    border-radius: 8px;
    padding: 5px;
    margin: 5px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.guarantee-item {
    display: flex;
    align-items: center;
    gap: 1px;
    font-size: 14px;
}
.guarantee-item i {
    color: var(--red);
    font-size: 18px;
}
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--green);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}
.notification.show {
    opacity: 1;
    transform: translateX(0);
}
.notification i {
    font-size: 20px;
}
#success-page-container {
    position: relative;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 20px;
}
#page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
#page-loading i {
    color: var(--red);
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
.fullscreen-purchase {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 3000;
    overflow-y: auto;
    display: none;
}
.purchase-header {
    background-color: var(--bg-purchase-header);
    padding: 5px 15px;
    position: sticky;
    top: 0;
    z-index: 10000;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-default);
}
.back-button {
    display: flex;
    align-items: center;
    padding: 3px 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.back-button svg {
    width: 24px;
    height: 24px;
    margin-right: 3px;
}
.countdown-banner {
    color: #333;
    border-radius: 0px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}
.line-button {
    display: flex;
    align-items: center;
    padding: 3px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.line-button svg {
    width: 24px;
    height: 24px;
    margin-left: 6px;
    fill: var(--green-line-button);
}
.countdown {
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
    color: var(--red-countdown);
}
.countdown span {
    display: inline-block;
    min-width: 2.1ch;
    text-align: center;
}
.purchase-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}
.purchase-content {
    padding: 0px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}
.product-info-purchase {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.product-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.text-info-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.product-title-purchase {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    text-align: left;
    margin-bottom: 5px;
    width: 100%;
}
.product-quantity-hint {
    font-size: 14px;
    color: var(--red-quantity-hint);
    text-align: left;
    margin-top: 5px;
    width: 100%;
}
.product-price-purchase {
    font-size: 24px;
    color: var(--red);
    font-weight: bold;
}
.spec-section-purchase {
    margin: 10px 0;
}
.spec-group-purchase {
    margin-bottom: 15px;
    position: relative;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s;
}
.spec-group-purchase.unselected {
    /* 空规则，保留 */
}
.spec-name-purchase {
    font-size: 15px;
    margin-bottom: 3px;
    color: #666;
    font-weight: bold;
}
.spec-values-purchase {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.spec-value-purchase {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
    min-width: calc(50% - 10px);
    margin-bottom: 0px;
    padding: 5px;
    font-size: 14px;
    box-sizing: border-box;
    border: 1px solid var(--border-input);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    text-align: center;
}
.spec-value.selected, .spec-value-purchase.selected {
    border-color: var(--red) !important;
    color: var(--red) !important;
    background-color: var(--red-bg-light) !important;
}
.spec-value-purchase .saving-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--green);
    white-space: normal;
    line-height: 1.3;
}
.dash-highlight {
    position: relative;
    z-index: 10;
}
.dash-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px dashed var(--red-dash);
    border-radius: 4px;
    pointer-events: none;
    z-index: 10;
}
.phone-input-container {
    position: relative;
}
.phone-input-container::after {
    /* 空规则，保留 */
}
.form-group-float .form-input.large-font {
    font-size: 18px;
    letter-spacing: 0.5px;
}
#purchase-address {
    font-size: 16px;
}
select {
    width: 100%;
    padding: 10px 20px;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-bottom: 0px;
    background: var(--white);
}
.form-group-float {
    position: relative;
    margin-bottom: 25px;
}
.form-group-float label {
    position: absolute;
    top: 50%;
    left: 15px;
    font-size: 15px;
    color: var(--gray-light);
    pointer-events: none;
    transition: all 0.2s ease;
    transform: translateY(-50%);
    background: transparent;
    padding: 0 5px;
    z-index: 1;
    max-width: calc(100% - 30px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.form-group-float .form-input:focus + label,
.form-group-float .form-input:not(:placeholder-shown) + label,
.form-group-float select:focus + label,
.form-group-float select:not([value=""]) + label {
    top: 0;
    font-size: 13px;
    color: var(--gray-light);
    background: transparent;
    padding: 0 0px;
    transform: translateY(-50%) scale(0.85);
}
.form-group-float .form-input {
    height: 48px;
    padding: 18px 15px 8px;
    border: 1px solid var(--border-input);
    border-radius: 6px;
    font-size: 13px;
    width: 100%;
    background-color: #fff;
    transition: all 0.3s;
}
.form-group-float .form-input:focus, .form-group-float select:focus {
    border-color: var(--border-focus);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30,144,255,0.2);
}
.form-group-float.error .form-input {
    padding: 16px 12px 0;
    height: 48px;
    border: 1px solid var(--border-input);
    border-color: var(--error) !important;
    background-color: #fff !important;
}
.form-error-msg {
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 100%;
    padding: 3px 15px;
    color: var(--error);
    font-size: 13px;
    margin-top: 5px;
    display: none;
}
.form-group-float.error label {
    color: var(--gray-light);
}
.red {
    color: var(--error);
    font-weight: bold;
    margin-left: 2px;
}
.name-msg, .address-msg {
    margin-top: -10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--error);
}
.flex-btw-start.name-box {
    flex-direction: row;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.flex-btw-start.name-box .form-group-float {
    flex: 1;
}
.form-line {
    display: flex;
    align-items: center;
    padding-top: 15px;
    font-size: 18px;
    color: #666;
}
.delivery-time .form-input {
    padding-top: 17px;
    padding-bottom: 10px;
}
.form-group-float select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}
.user-form-purchase {
    width: 96%;
    margin: 0 auto;
}
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}
.form-group {
    flex: 1;
    min-width: 200px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}
.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-input);
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #fff;
}
.form-input:hover {
    border-color: var(--border-focus);
}
.form-input.error {
    background-color: var(--error-bg);
    border-color: var(--error) !important;
    box-shadow: 0 0 0 2px rgba(224,43,65,0.2);
}
.form-input::placeholder {
    color: var(--placeholder);
}
.form-hint {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    display: block;
}
.spec-hint {
    display: flex;
    align-items: center;
    padding: 2px 10px;
    margin: 0 auto;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--blue-spec-hint);
    width: 98%;
}
.spec-hint svg {
    width: 18px;
    height: 18px;
    color: var(--blue-spec-hint);
    flex-shrink: 0;
}
#postal-code-container {
    position: relative;
}
#postal-code {
    font-family: monospace;
    font-size: 20px;
}
.form-group-float.error .postal-code-separator {
    background: #e74c3c;
}
.checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-input);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.view-coupon-detail {
    font-size: 12px;
    color: var(--blue-view-coupon);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}
.view-coupon-detail svg {
    margin-right: 2px;
}
.coupon-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
.coupon-modal-content {
    background: var(--white);
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s ease-out;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.coupon-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--divider);
}
.coupon-modal-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--gray-dark);
}
.coupon-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #7f8c8d;
    font-size: 20px;
}
.coupon-usage-info {
    margin-bottom: 20px;
}
.available-coupons {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gray-dark);
}
.selected-coupon-info {
    font-size: 14px;
    color: #7f8c8d;
}
.discount-amount-text {
    color: #e74c3c;
    font-weight: 500;
}
.coupon-detail-card {
    background: linear-gradient(135deg, var(--gradient-blue-start), var(--gradient-blue-end));
    border: 1px dashed var(--blue-coupon-card);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
}
.coupon-amount-large {
    font-size: 32px;
    font-weight: bold;
    color: var(--blue-text);
    margin-bottom: 8px;
}
.coupon-expiry {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 12px;
}
.coupon-store-info {
    margin-bottom: 15px;
}
.store-badge {
    background-color: var(--blue-badge);
    color: var(--blue-text);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-right: 10px;
    font-weight: 500;
}
.store-name {
    font-size: 14px;
    color: var(--gray-dark);
    font-weight: 500;
}
.coupon-terms {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
}
.coupon-check-icon {
    margin-right: 8px;
    color: #e74c3c;
}
.coupon-checkbox {
    display: flex;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
}
.coupon-checkbox input {
    display: none;
}
.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--checkmark-border);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    display: inline-block;
    transition: all 0.2s ease;
}
.coupon-checkbox input:checked + .checkmark {
    background-color: var(--blue-coupon-check);
    border-color: var(--blue-coupon-check);
}
.coupon-checkbox input:checked + .checkmark:after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.coupon-confirm-btn {
    background-color: #e74c3c;
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}
.coupon-confirm-btn:hover {
    background-color: #c0392b;
}
.confirm-coupon-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}
.confirm-coupon-content {
    background: var(--white);
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s ease-out;
}
.confirm-coupon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--divider);
}
.confirm-coupon-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--gray-dark);
}
.confirm-coupon-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #7f8c8d;
    font-size: 20px;
}
.confirm-coupon-message {
    text-align: center;
    margin-bottom: 25px;
}
.confirm-warning-icon {
    margin-bottom: 15px;
    color: #e74c3c;
    font-size: 40px;
}
.confirm-coupon-message p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.5;
}
.confirm-coupon-desc {
    font-size: 15px;
    color: #7f8c8d;
}
.confirm-coupon-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}
.confirm-cancel-btn, .confirm-ok-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.confirm-cancel-btn {
    background-color: #ecf0f1;
    color: var(--gray-dark);
}
.confirm-cancel-btn:hover {
    background-color: #dde4e6;
}
.confirm-ok-btn {
    background-color: #e74c3c;
    color: var(--white);
}
.confirm-ok-btn:hover {
    background-color: #c0392b;
}
.coupon-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    background-color: var(--blue-status-bg);
    border-left: 4px solid var(--blue-status-border);
    font-size: 14px;
    display: flex;
    align-items: center;
}
.coupon-status i {
    margin-right: 10px;
    color: var(--blue-status-border);
    font-size: 18px;
}
@media (max-width:600px) {
    .confirm-coupon-buttons {
        flex-direction: column;
    }
}
.fee-details-purchase {
    padding: 5px;
    width: 96%;
    margin: 10px 0;
}
.fee-details-purchase .fee-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 15px;
}
.fee-details-purchase .fee-item.total {
    font-weight: bold;
    font-size: 17px;
    padding-top: 12px;
    margin-top: 5px;
    border-bottom: none;
}
.fee-details-purchase .fee-item .price {
    font-size: 12px;
    font-weight: 400;
}
.fee-details-purchase .fee-item.total .price {
    font-size: 16px;
    font-weight: bold;
}
.fee-item.total-name {
    font-weight: bold;
    font-size: 14px;
}
.fee-small-text {
    font-size: 12px;
    color: #bdbdbd;
    margin-left: 5px;
}
.security-section {
    background: var(--bg-security);
    border-radius: 8px;
    padding: 5px;
    margin: 0px 0;
}
.security-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 12px;
}
.security-title svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.fee-item.total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
    font-weight: bold;
}
.tax-text {
    font-size: 12px;
    color: var(--red-tax);
    margin-left: 2px;
}
.discount-amount {
    color: var(--red);
    font-weight: 500;
}
.fee-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.fee-item span:first-child {
    text-align: left;
}
.fee-item span:last-child {
    text-align: right;
    min-width: 80px;
}
.security-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}
.security-cert {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}
.security-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pay-service-img {
    height: 30px;
    object-fit: contain;
}
.discount-item {
    color: var(--green);
}
.quantity-display, .coupon-amount, .subtotal-amount {
    font-weight: 500;
}
.currency {
    font-size: 0.9em;
    margin-right: 2px;
}
.currency-small {
    font-size: 0.5em;
    margin-right: 2px;
}
.price {
    font-weight: 500;
}
.payment-content {
    padding: 5px 5px 5px;
}
.payment-section-title {
    width: 98%;
    margin: 0 auto;
    margin-top: 5px;
}
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 2px;
}
.payment-option {
    display: flex;
    align-items: center;
    padding: 2px 5px;
    cursor: pointer;
    position: relative;
    border-radius: 10px;
    transition: background 0.2s;
}
.payment-option.selected .payment-custom-radio .payment-check-icon {
    fill: var(--white);
}
.payment-radio {
    margin-right: 14px;
    position: relative;
    width: 20px;
    height: 20px;
}
.payment-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
.payment-custom-radio {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd6e4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.payment-option.selected .payment-custom-radio {
    border-color: var(--red);
}
.payment-check-icon {
    width: 12px;
    height: 8px;
    color: var(--red);
    opacity: 0;
    transition: opacity 0.2s;
}
.payment-option.selected .payment-check-icon {
    opacity: 1;
}
.payment-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-dark);
}
.payment-icons {
    display: flex;
    gap: 6px;
    margin-left: auto;
}
.payment-icon {
    width: 160px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.payment-icon img {
    max-width: 100%;
    max-height: 100%;
}
.payment-credit-card-form {
    margin-top: 10px;
    padding: 0 0 10px;
    width: 98%;
    display: none;
}
.payment-option.selected[data-method="credit"] ~ .payment-credit-card-form {
    display: block;
}
.payment-form-group {
    margin-bottom: 16px;
}
.payment-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #4a5568;
}
.payment-input-with-icon {
    position: relative;
}
.payment-form-input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: var(--gray-dark);
    background: var(--white);
}
.payment-form-input:focus {
    border-color: #4a90e2;
    outline: none;
}
.payment-input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--icon-gray);
    font-size: 16px;
}
.payment-card-row {
    display: flex;
    gap: 12px;
}
.payment-card-group {
    flex: 1;
}
.payment-expiry-input {
    display: flex;
    align-items: center;
    gap: 5px;
}
.payment-expiry-input .payment-form-input {
    text-align: center;
    padding: 13px 10px;
}
.payment-divider {
    color: var(--icon-gray);
}
.payment-security-notice {
    margin-top: 5px;
    font-size: 14px;
    color: #4a5568;
    display: flex;
}
.payment-security-notice svg {
    width: 18px;
    height: 18px;
    color: var(--security-icon);
}
.purchase-footer {
    position: sticky;
    bottom: 0;
    z-index: 10000;
    max-width: var(--container-max-width);
    margin: 0 auto;
    background-color: var(--white);
    padding: 5px 10px;
    box-shadow: 0 -1px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-confirm-purchase {
    background: linear-gradient(135deg, var(--red), var(--gradient-red-start));
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-red);
}
.btn-confirm-purchase:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(224,43,65,0.4);
}
.btn-confirm-purchase svg {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}
.total-price-purchase {
    font-size: 28px;
    font-weight: bold;
    color: var(--red);
}
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-dark);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4000;
    display: none;
}
.confirm-modal-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.confirm-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}
.confirm-message {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #666;
}
.confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.btn-confirm {
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}
.btn-continue {
    background: linear-gradient(135deg, #4da6ff, green);
    color: var(--white);
    flex: 2;
    border: none;
}
.btn-continue:hover {
    background: linear-gradient(135deg, green, #0066cc);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,102,204,0.2);
}
.btn-giveup {
    background-color: #f8f8f8;
    color: #666;
    flex: 1;
    border: 1px solid #ddd;
}
.btn-giveup:hover {
    background-color: #f0f0f0;
}
.compact-spec {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.compact-spec .spec-value-purchase {
    padding: 4px 12px;
    min-width: 50px;
    text-align: center;
    flex: none;
}
.purchase-footer .countdown-banner {
    background: linear-gradient(135deg, var(--red), var(--gradient-red-start));
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}
.countdown-text {
    display: none;
}
.icon-label {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #333;
}
.icon-label svg {
    width: 14px;
    height: 14px;
}
.label-icon {
    flex-shrink: 0;
    vertical-align: middle;
    position: relative;
    top: -1px;
}
.label-text {
    line-height: 1.5;
}
.yb-custom-select {
    position: relative;
    width: 100%;
    margin-bottom: 25px;
    z-index: 9999;
}
.yb-selected-option {
    height: 48px;
    padding: 18px 15px;
    border: 1px solid var(--border-input);
    border-radius: 6px;
    font-size: 16px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
}
.yb-selected-option:hover {
    border-color: var(--border-focus);
}
.yb-options-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-input);
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 10000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 5px;
}
.yb-option {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #FFF;
    display: block;
}
.yb-option:hover {
    background-color: #f1f8ff;
}
.yb-option.selected {
    background-color: #e1f0fa;
    font-weight: 600;
    color: #2980b9;
}
.yb-custom-arrow {
    transition: transform 0.3s;
}
.yb-custom-select.active .yb-custom-arrow {
    transform: rotate(180deg);
}
.yb-custom-select.error .yb-selected-option {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 1px rgba(224,43,65,0.2);
}
.yb-custom-select.error .yb-custom-arrow path {
    fill: var(--error);
}
#province-select + .form-error-msg {
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 100%;
}
.purchase-footer {
    display: flex;
    align-items: center;
    gap: 15px;
}
.promotion-section-purchase {
    width: 98%;
    margin: 0 auto;
    margin-bottom: 15px;
}
.promotion-section-purchase.unselected {
    border: 0px dashed var(--red-border-dashed);
    border-radius: 8px;
    padding: 10px;
    animation: pulseWarning 1.5s infinite;
}
#promotion-error {
    display: none;
    color: var(--red);
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}
@keyframes pulseWarning {
    0% { border-color: var(--red); }
    50% { border-color: rgba(224,43,65,0.3); }
    100% { border-color: var(--red); }
}
.promotion-options-purchase {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.promotion-option-purchase {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 5px 10px;
    border: 1px solid var(--border-input);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    flex: 1;
    text-align: center;
    background-color: var(--bg-gray);
}
.promotion-option-purchase.selected {
    border-color: var(--red);
    color: var(--red);
    background-color: var(--red-bg-light) !important;
}
.promotion-option-purchase.has-recommend {
    position: relative;
    border: 1px solid var(--red) !important;
    background: linear-gradient(135deg, #fff9f9, #ffffff) !important;
}
.multi-spec-container {
    width: 98%;
    border-radius: 20px;
    margin: 0 auto;
    overflow: hidden;
    padding: 10px;
}
.multi-spec-item {
    padding: 5px;
    margin-bottom: 0px;
}
.item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.item-number {
    font-weight: bold;
}
.item-price {
    color: var(--red);
    font-weight: bold;
}
.spec-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin-left: 10px;
    border-radius: 4px;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--red-pulse-start); }
    70% { box-shadow: 0 0 0 10px var(--red-pulse-end); }
    100% { box-shadow: 0 0 0 0 var(--red-pulse-end); }
}
.top-notification-bar {
    position: fixed;
    top: 20px;
    transform: translateY(-100%);
    display: none;
    z-index: 2000;
    background: rgba(0,0,0,0.85);
    color: var(--white);
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    max-width: calc(100% - 40px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.5s ease-in-out;
}
.top-notification-bar.active {
    display: flex;
    transform: translateY(0);
}
.notification-icon {
    margin-right: 10px;
    color: var(--red-light);
    animation: pulse 1.5s infinite;
}
.notification-content {
    display: flex;
    align-items: center;
}
.notification-time {
    color: #7ec0ee;
    font-weight: 600;
    text-shadow: 0 0 4px rgba(126,192,238,0.4);
    animation: gentle-pulse 2s infinite alternate;
}
@keyframes gentle-pulse {
    0% { opacity: 0.9; text-shadow: 0 0 4px rgba(126,192,238,0.4); }
    100% { opacity: 1; text-shadow: 0 0 8px rgba(126,192,238,0.6); }
}
.notification-avatar {
    vertical-align: middle;
    margin: 0 8px 0 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.3);
}
.notification-highlight {
    color: var(--yellow);
    font-weight: bold;
    margin: 0 5px;
}
.notification-product {
    font-weight: bold;
    color: var(--red);
    margin: 0 5px;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.dynamic-tags-container {
    position: fixed;
    bottom: 95px;
    width: 100%;
    max-width: var(--container-max-width);
    background-color: transparent;
    padding: 8px 15px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s, transform 0.5s;
}
.dynamic-tags-container.visible {
    opacity: 1;
    transform: translateY(0);
}
.dynamic-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: floatUp 3.5s forwards;
    opacity: 0;
    transform: translateY(20px);
}
.dynamic-tag .number {
    color: var(--red);
    font-weight: bold;
}
.dynamic-tag svg {
    width: 14px;
    height: 14px;
    color: var(--red);
}
@keyframes floatUp {
    0% { opacity: 0; transform: translateY(20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}
.error-toast {
    position: fixed;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 25px;
    z-index: 9999;
    font-size: 14px;
    display: none;
    animation: fadeInOut 2s forwards;
}
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    20% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}
.form-error {
    color: var(--error);
    font-size: 12px;
    margin-top: 4px;
    display: none;
}
.spec-error {
    color: var(--error);
    font-size: 13px;
    margin-top: 8px;
    display: none;
}
@media (max-width:768px) {
    .desktop-only { display: none !important; }
    .carousel-controls, .fullscreen-nav-btn, .save-image-btn { display: none !important; }
    .product-gallery { width: 100%; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; }
    .main-image { width: 100% !important; height: auto !important; min-height: 300px; border-radius: 0 !important; background-size: cover !important; background-position: center !important; }
    .thumbnails { width: 100%; overflow-x: auto; padding: 10px 5px; margin-top: 10px; }
    .thumbnail { width: 80px !important; height: 80px !important; flex-shrink: 0; }
    .container { padding-left: 0 !important; padding-right: 0 !important; }
    .header { padding-left: 10px; padding-right: 10px; }
    .flex-btw-start.name-box { flex-direction: row !important; gap: 10px; }
    .flex-btw-start.name-box:has(#first-zip) { flex-direction: row !important; gap: 5px; }
    .flex-btw-start.name-box:has(#purchase-province) { flex-direction: row !important; gap: 5px; }
    .flex-btw-start.name-box .form-group-float { flex: 1; min-width: calc(50% - 5px); }
    .form-line { display: flex; align-items: center; padding: 0 5px; font-size: 18px; color: #666; }
    .spec-values-purchase.compact-spec { grid-template-columns: repeat(4, minmax(80px, 1fr)) !important; }
    .spec-value-purchase {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .spec-value-purchase img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        margin-bottom: 8px;
    }
    .spec-value-purchase img.spec-image {
        width: 120px;
        height: 120px;
        margin: 0 auto 5px;
    }
    .spec-values-purchase.compact-spec:has(.spec-value-purchase:nth-child(2):not(:has(.spec-value-purchase:nth-child(3)))) {
        display: flex;
        justify-content: space-between;
    }
    .spec-values-purchase.compact-spec:has(.spec-value-purchase:nth-child(2):not(:has(.spec-value-purchase:nth-child(3)))) .spec-value-purchase {
        flex: 0 0 48%;
    }
    .saving-hint { font-size: 10px; margin-top: 3px; }
    .form-input, .yb-selected-text, .yb-option, .floating-label { font-size: 16px !important; }
    .form-group-float { margin-bottom: 30px; }
    .form-error-msg { bottom: -22px; font-size: 12px; }
    .form-group-float .form-input, .form-group-float select { height: auto; min-height: 48px; padding: 16px 15px 6px; font-size: 16px; }
    .form-group-float label { top: 50%; transform: translateY(-50%); font-size: 16px; background: transparent; }
    .form-group-float .form-input:focus + label, .form-group-float .form-input:not(:placeholder-shown) + label, .form-group-float select:focus + label, .form-group-float select:not([value=""]) + label { top: 0; font-size: 13px; transform: translateY(0) scale(0.85); background: transparent; }
    .total-price { text-align: left; }
    .sticky-header .tab { padding: 8px 15px; font-size: 0.9rem; }
    .flash-sale-section { padding: 8px; margin: 0px auto; }
    .flash-sale-special-offer-tag { top: 10px; right: -32px; font-size: 14px; padding: 3px 20px; }
    .flash-sale-title-row { flex-direction: column; align-items: flex-start; padding-right: 0; margin-bottom: 12px; }
    .flash-sale-title { font-size: 20px; margin-bottom: 0px; }
    .flash-sale-buyers-count { font-size: 14px; min-width: auto; margin-top: 0; }
    .flash-sale-content { height: 160px; margin: 6px 0; }
    .flash-sale-quota-container { flex-direction: row; gap: 6px; margin-top: 8px; padding-top: 6px; }
    .flash-sale-quota-reminder { padding: 5px 12px; font-size: 14px; }
    .flash-sale-price-hint { font-size: 12px; }
    .delivery-info { padding: 8px 14px; font-size: 14px; margin-top: 10px; }
    .countdown-text { display: inline; }
    .edge-indicator { display: block; }
    .fullscreen-nav { display: none !important; }
    .fullscreen-content { touch-action: pan-y; }
    .fullscreen-close { width: 36px; height: 36px; font-size: 20px; }
    .fullscreen-index { font-size: 14px; padding: 3px 10px; }
    .fullscreen-image { max-width: 100%; max-height: 100%; object-fit: contain; touch-action: pan-y; }
}
.promotion-option-purchase.promotion-recommended {
    position: relative;
    border: 1px solid var(--red) !important;
    min-height: 70px !important;
}
.promotion-recommend-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    text-align: center;
    z-index: 10;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.95);
    border-radius: 4px;
    padding: 4px 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.promotion-recommend-tag.folded {
    width: auto;
    padding: 4px 8px;
}
.promotion-recommend-tag.folded .recommend-line2 {
    display: none;
}
.promotion-recommend-tag:hover {
    width: 140px;
    padding: 6px 8px;
}
.promotion-recommend-tag:hover .recommend-line2 {
    display: block;
}
.recommend-line1 {
    color: var(--red);
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}
.recommend-line1 i {
    color: var(--red);
    margin-right: 3px;
}
.recommend-line2 {
    font-size: 9px;
    line-height: 1.2;
    text-align: center;
    margin-top: 3px;
}
.recommend-line2 .saving-text {
    color: #28a745;
    font-weight: 600;
    margin-right: 4px;
}
.recommend-line2 .popularity-text {
    color: var(--warning);
}
.promotion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}
.promotion-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    padding-right: 10px;
}
.promotion-option-purchase.recommended {
    border: 2px solid var(--red) !important;
    background-color: #fff5f5 !important;
}
.promotion-content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
}
.promotion-main-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
    min-height: auto !important;
}
.promotion-name {
    flex: 1 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.4 !important;
    padding-right: 15px !important;
    text-align: left !important;
}
.recommendation-badge {
    display: flex !important;
    align-items: center !important;
    background: var(--red) !important;
    color: var(--white) !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    gap: 4px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.recommendation-badge svg {
    width: 12px !important;
    height: 12px !important;
    color: var(--white) !important;
}
.recommend-text {
    color: var(--white) !important;
    font-size: 11px !important;
    font-weight: bold !important;
}
.promotion-details {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
    width: 100% !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
}
.saving-info {
    color: #28a745 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
}
.selection-rate {
    color: var(--warning) !important;
    font-size: 11px !important;
}

/* ---------- 台湾配送方式 ---------- */
.tw-delivery-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    width: 100%;
    margin: 5px 0;
}
.tw-delivery-btn {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid var(--border-default);
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tw-delivery-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin: 0;
}
.tw-delivery-btn span {
    font-size: 13px;
    color: #555;
    font-weight: normal;
    white-space: nowrap;
}
.tw-delivery-btn.selected {
    background: var(--warning-bg);
    border-color: var(--red);
}
.tw-delivery-btn.selected span {
    color: var(--red);
    font-weight: bold;
}
.tw-delivery-btn:hover {
    background: #f5f5f5;
}
.tw-city-hint {
    font-size: 13px;
    color: var(--red);
    background: var(--bg-tw-city-hint);
    padding: 8px 12px;
    border-radius: 8px;
    margin: 5px 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tw-city-hint i {
    font-size: 14px;
}

/* ---------- 语言切换器 ---------- */
.lang-switcher-wrapper {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 999;
    font-size: 13px;
}
.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    background: rgba(0,0,0,0.05);
    border-radius: 30px;
    transition: background 0.2s;
}
.lang-current:hover {
    background: rgba(0,0,0,0.1);
}
.lang-flag {
    font-size: 18px;
    line-height: 1;
}
.lang-current-name {
    font-size: 13px;
}
.lang-arrow {
    transition: transform 0.2s;
}
.lang-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: var(--white);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    list-style: none;
    padding: 8px 0;
    min-width: 140px;
    z-index: 1000;
}
.lang-dropdown li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.lang-dropdown li:hover {
    background: #f5f5f5;
}
.lang-dropdown li.selected {
    background: #e0e0e0;
    font-weight: 500;
}
.lang-dropdown .lang-flag {
    width: 28px;
    text-align: center;
}
.lang-dropdown .lang-name {
    flex: 1;
    white-space: nowrap;
}

@media (max-width:480px) {
    .promotion-main-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .recommendation-badge {
        align-self: flex-start !important;
    }
    .promotion-details {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }
    .promotion-name {
        padding-right: 0 !important;
    }
}
@media (min-width:769px) {
    .fullscreen-nav { display: flex; }
    .carousel-controls { display: flex; }
    .product-gallery { max-width: 600px; margin: 0 auto; border-radius: 8px; }
    .main-image { height: 500px; background-size: contain; background-position: center; border-radius: 4px; }
    .thumbnails { justify-content: center; }
    .thumbnail { width: 100px; height: 100px; }
}
@media (max-width:480px) {
    .flash-sale-quota-reminder { font-size: 13px; padding: 4px 10px; }
    .flash-sale-price-hint { font-size: 11px; }
    .flash-sale-buyer-avatar { width: 34px; height: 34px; font-size: 15px; }
    .flash-sale-buyer-name { font-size: 14px; }
    .flash-sale-buyer-btn-container { padding-top: 18px; }
}
@media (max-width:600px) {
    .purchase-header { z-index: 10000; padding: 5px; }
    .countdown-banner { font-size: 13px; }
}
@media (max-width:480px) {
    .payment-content { padding: 5px 20px 20px; }
    .payment-card-row { flex-direction: column; gap: 15px; }
}
@media (max-width:768px) {
    #voucher-claim, #claim-discount { min-height: 44px; min-width: 44px; }
    .voucher-claim, .voucher-close { min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; }
}