 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        html, body {
            width: 100%;
            min-height: 100%;
            /* 东南亚风格浅绿色背景 + 树叶平铺装饰 */
            background:
                /* 树叶拼图平铺背景 */
                url('leaves.png');

            background-size: 200px auto;
            background-repeat: repeat;
            background-color: #e8f5e9;
            background-attachment: fixed;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Roboto, sans-serif;
        }

        /* 顶部导航 */
        .header {
            background: #1a4d2e;
            color: white;
            padding: 0 16px 16px;
            padding-top: calc(12px + env(safe-area-inset-top));
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .header-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .header-content {
            max-width: 800px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* 品牌区域 */
        .brand-area {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo-icon {
            width: 42px;
            height: 42px;
            background: #ffd700;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: #1a4d2e;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .logo-text {
            display: flex;
            flex-direction: column;
        }

        .logo-title {
            font-size: 36px;
            font-weight: 800;
            /*font-family: 'ZCOOL XiaoWei', serif;*/
            color: #ffffff;
            letter-spacing: 2px;
        }

        .logo-slogan {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.85);
            font-weight: 400;
            letter-spacing: 1px;
        }

        /* 滚动公告 */
        .marquee-bar {
            background: rgba(255, 255, 255, 0.1);
            padding: 8px 0;
            overflow: hidden;
            border-radius: 8px;
            position: relative;
        }

        .marquee-content {
            display: flex;
            animation: marquee 20s linear infinite;
            white-space: nowrap;
        }

        .marquee-content:hover {
            animation-play-state: paused;
        }

        @keyframes marquee {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        .marquee-item {
            padding: 0 30px;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.9);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .marquee-item .hot {
            background: #ffd700;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            color: #333;
        }

        .header-btn {
            background: #ffd700;
            border: none;
            color: #1a1a2e;
            width: 42px;
            height: 42px;
            border-radius: 12px;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }

        .header-btn:active {
            transform: scale(0.9);
        }

        /* 轮播图（紧贴顶部导航，无间距无圆角，干净利落） */
        .banner-container {
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
            position: relative;
            border-radius: 0;
            overflow: hidden;
            background: #fff;
        }

        .banner-slider {
            display: flex;
            transition: transform 0.4s ease;
        }

        .banner-slide {
            min-width: 100%;
            height: 160px;
            position: relative;
        }

        .banner-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .banner-slide .overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 12px 16px;
            background: rgba(0, 0, 0, 0.45);
            color: white;
        }

        .banner-slide .overlay h3 {
            font-size: 16px;
            margin-bottom: 4px;
        }

        .banner-slide .overlay p {
            font-size: 12px;
            opacity: 0.9;
        }

        .banner-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 36px;
            height: 36px;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            border-radius: 50%;
            color: #333;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            z-index: 10;
        }

        .banner-nav.prev {
            left: 10px;
        }

        .banner-nav.next {
            right: 10px;
        }

        .banner-nav:active {
            background: #fff;
        }

        .banner-dots {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 6px;
        }

        .banner-dot {
            width: 6px;
            height: 6px;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 50%;
            cursor: pointer;
        }

        .banner-dot.active {
            background: white;
            width: 18px;
            border-radius: 3px;
        }

        /* 分类导航 */
        .category-nav {
            background: #ffffff;
            padding: 14px 16px;
            margin: 12px;
            border-radius: 16px;
            display: flex;
            gap: 10px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .category-nav::-webkit-scrollbar {
            display: none;
        }

        .category-item {
            padding: 10px 18px;
            background: #f5f5f5;
            border-radius: 25px;
            font-size: 13px;
            color: #666;
            white-space: nowrap;
            cursor: pointer;
            transition: all 0.3s ease;
            flex-shrink: 0;
            border: 2px solid transparent;
        }

        .category-item.active {
            background: #1a4d2e;
            color: #ffffff;
            font-weight: 600;
            border-color: #1a4d2e;
            box-shadow: 0 2px 8px rgba(26, 77, 46, 0.3);
        }

        .category-item:active {
            transform: scale(0.95);
        }

        /* 商品列表 */
        .product-section {
            padding: 16px 12px;
            max-width: 800px;
            margin: 0 auto;
        }

        .section-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-title i {
            color: #ffd700;
        }

        .section-title::after {
            content: '';
            flex: 1;
            height: 1px;
            background: #e0e0e0;
            margin-left: 8px;
        }

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

        /* 商品卡片 */
        .product-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            border: 1px solid rgba(0, 0, 0, 0.04);
        }

        .product-card:active {
            transform: scale(0.98);
            box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
        }

        .product-image {
            width: 100%;
            aspect-ratio: 1;
            background: #e8f5e9;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }

        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .product-card:active .product-image img {
            transform: scale(1.05);
        }

        .product-image .placeholder {
            font-size: 40px;
            color: #ddd;
        }

        .product-info {
            padding: 10px;
        }

        .product-name {
            font-size: 13px;
            color: #333;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            min-height: 36px;
            margin-bottom: 8px;
        }

        .product-desc {
            font-size: 11px;
            color: #999;
            line-height: 1.3;
            margin-bottom: 8px;
            /* 水平排版：单行显示，超出部分省略号截断 */
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            min-height: 14px;
        }

        .product-bottom {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .product-price {
            color: #ff4d4f;
            font-size: 15px;
            font-weight: 600;
        }

        .product-price small {
            font-size: 11px;
        }

        .buy-btn {
            background: #1a4d2e;
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 16px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
        }

        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #1a4d2e;
            display: flex;
            padding: 8px 0;
            padding-bottom: calc(8px + env(safe-area-inset-bottom));
            box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
            z-index: 100;
        }

        .nav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 10px;
            cursor: pointer;
            text-decoration: none;
            transition: all 0.3s ease;
            padding: 6px;
        }

        .nav-item i {
            font-size: 20px;
            transition: all 0.3s ease;
        }

        .nav-item.active {
            color: #ffd700;
        }

        .nav-item:active {
            transform: scale(0.95);
        }

        .bottom-spacer {
            height: 60px;
        }

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

        .modal-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background: white;
            width: 100%;
            max-width: 500px;
            border-radius: 20px 20px 0 0;
            padding: 20px;
            padding-bottom: calc(20px + env(safe-area-inset-bottom));
            transform: translateY(100%);
            transition: transform 0.3s;
        }

        .modal-overlay.show .modal-content {
            transform: translateY(0);
        }

        .modal-handle {
            width: 36px;
            height: 4px;
            background: #ddd;
            border-radius: 2px;
            margin: 0 auto 16px;
        }

        .modal-product {
            display: flex;
            gap: 12px;
            padding-bottom: 16px;
            border-bottom: 1px solid #f5f5f5;
            margin-bottom: 16px;
        }

        .modal-product-img {
            width: 70px;
            height: 70px;
            background: #f5f5f5;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
        }

        .modal-product-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .modal-product-info {
            flex: 1;
        }

        .modal-product-name {
            font-size: 14px;
            color: #333;
            margin-bottom: 6px;
        }

        .modal-product-price {
            color: #ff4d4f;
            font-size: 17px;
            font-weight: 600;
        }

        .delivery-options {
            margin-bottom: 16px;
        }

        .delivery-title {
            font-size: 13px;
            color: #666;
            margin-bottom: 10px;
        }

/* ===== 购买数量选择器（起始1，加减调整；兼容新旧电脑/手机浏览器）===== */

.quantity-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 16px;
}

.quantity-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.quantity-stepper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

/* flex gap 的兼容兜底：不识别 gap 的老浏览器（IE/旧内核/国产兼容模式）用 margin 分隔 */
.quantity-stepper > * {
    margin-left: 4px;
    margin-right: 4px;
}

.quantity-stepper > *:first-child {
    margin-left: 0;
}

.quantity-stepper > *:last-child {
    margin-right: 0;
}

/* 现代浏览器：用 gap，清除兜底 margin */
@supports (gap: 4px) {
    .quantity-stepper {
        gap: 4px;
    }
    .quantity-stepper > * {
        margin-left: 0;
        margin-right: 0;
    }
}

.qty-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border: 1.5px solid #1a4d2e;
    background: #fff;
    color: #1a4d2e;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    line-height: 1;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    z-index: 2;
    -webkit-transition: background 0.15s, color 0.15s;
    transition: background 0.15s, color 0.15s;
}

/* 桌面鼠标端悬停反馈（:active 在电脑上只在按下瞬间生效） */
.qty-btn:hover {
    background: #e8f5e9;
}

.qty-btn:active {
    background: #1a4d2e;
    color: #fff;
}

.qty-num {
    min-width: 44px;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #1a4d2e;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ===== 全屏跳转/提交加载（绿色圆圈 + 百分比，与连接客服加载同款）===== */

.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.page-loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid #e8f5e9;
    border-top-color: #1a4d2e;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

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

.page-loading-overlay .loading-text {
    margin-top: 14px;
    color: #1a4d2e;
    font-size: 15px;
    font-weight: 500;
}

.page-loading-overlay .loading-percent {
    margin-top: 6px;
    color: #999;
    font-size: 13px;
    font-weight: 600;
}

/* ===== 图片加载：CSS 转圈 + 百分比（跨浏览器可靠，与发送图片进度环同款）===== */

.img-loading {
    position: absolute;
    inset: 0;
}

.modal-product-img {
    position: relative;
}

.img-loading-indicator {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.img-loading.loaded .img-loading-indicator {
    display: none;
}

/* 旋转圆环（CSS border 方案，避免 SVG transform 错位） */
.img-spinner {
    width: 34px;
    height: 34px;
    border: 3.5px solid rgba(26, 77, 46, 0.15);
    border-top-color: #1a4d2e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.img-percent {
    margin-top: 4px;
    font-size: 11px;
    color: #1a4d2e;
    font-weight: 600;
}

        .delivery-btns {
            display: flex;
            gap: 10px;
        }

        .delivery-btn {
            flex: 1;
            padding: 12px;
            border: 2px solid #e8e8e8;
            border-radius: 10px;
            background: white;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .delivery-btn.selected {
            border-color: #1a4d2e;
            background: #e8f5e9;
            color: #1a4d2e;
        }

        .form-group {
            margin-bottom: 12px;
        }

        .form-label {
            font-size: 12px;
            color: #666;
            margin-bottom: 6px;
            display: block;
        }

        .form-input {
            width: 100%;
            padding: 12px 14px;
            border: 1.5px solid #e8e8e8;
            border-radius: 10px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s;
        }

        .form-input:focus {
            border-color: #1a4d2e;
        }

        /* 手机号输入框下方的注意提示 */
        .form-hint {
            margin-top: 6px;
            font-size: 11px;
            line-height: 1.4;
            color: #999;
        }

        .submit-btn {
            width: 100%;
            padding: 14px;
            background: #1a4d2e;
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 8px;
        }

        .toast {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.75);
            color: white;
            padding: 12px 24px;
            border-radius: 24px;
            font-size: 14px;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
        }

        .toast.show {
            opacity: 1;
            visibility: visible;
        }