/* 移动端基础样式 */
        :root {
            --primary-color: #ffc107; /* 主题黄 */
            --accent-color: #ff5722;  /* 强调红/橘色 */
        }
        
        * { 
            box-sizing: border-box; 
            margin: 0; 
            padding: 0; 
            -webkit-tap-highlight-color: transparent;
        }
        
        html, body {
            width: 100%;
            height: 100%;
            overflow-x: hidden;
        }
        
        body { 
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; 
            background-color: #e8e8e8; 
            color: #333; 
            font-size: 14px;
            line-height: 1.5;
            min-height: 100vh;
            position: relative;
        }
        
        img { max-width: 100%; display: block; }

        /* 移动端固定宽度容器 */
        .page-container {
            width: 100%;
            margin: 0 auto;
            min-height: 100vh;
            position: relative;
            background-color: #f4f4f4;
            display: flex;
            flex-direction: column;
            padding-bottom: 120px; /* 为底部两个固定栏留出空间 */
        }

        main {
            /* 让 main 区域也使用 flex 布局 */
            display: flex;
            flex-direction: column;
            /* 占据除了 footer 之外的所有剩余空间 */
            flex-grow: 1; 
            /* 关键：防止 flex item 在内容过多时溢出父容器，确保 overflow 生效 */
            overflow: hidden;
        }

        .scroll-wrapper {
            /* 关键：让这个容器可滚动 */
            overflow-y: auto;
            /* 关键：让它撑满 main 区域的剩余空间 */
            flex-grow: 1;
            padding: 0 10px; /* 维持原来 main 的左右边距 */
        }

        /* --- Header --- */
        .header {
            position: absolute; top: 10px; left: 10px; z-index: 10;
        }
        .back-btn {
            width: 32px; height: 32px; background-color: rgba(0,0,0,0.5); border: none; border-radius: 50%; color: white; font-size: 20px; display: flex; align-items: center; justify-content: center;
        }

        /* --- Product Details --- */
        .product-hero img { width: 100%; }
        /* --- Sticky Product Header --- */
        .sticky-product-header {
            position: -webkit-sticky; /* For Safari compatibility */
            position: sticky;
            top: 0;
            z-index: 9;
            /* Add a background color to prevent scrolling content from showing through */
            background-color: #f4f4f4; 
            /* Add padding to maintain space between the sticky header and the list */
            padding-bottom: 10px;
        }

        .product-info {
            background-color: #fff;
            padding: 20px 15px;
            /* Remove the bottom margin, as spacing is now handled by the wrapper's padding */
            margin: -20px 10px 0;
            border-radius: 12px;
            position: relative;
            z-index: 5;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        }
        .product-title-row { display: flex; justify-content: space-between; align-items: flex-start; }
        .product-title { font-size: 20px; font-weight: bold; }
        .quantity-selector { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: bold; }
        .quantity-btn { width: 24px; height: 24px; border: 1px solid #ddd; background-color: #fff; border-radius: 50%; font-size: 20px; color: #666; display: flex; align-items: center; justify-content: center; }
        /* 为滚动区内的描述添加样式 */
        .scroll-wrapper .product-description {
            font-size: 13px;
            color: #888;
            line-height: 1.6;
            padding: 10px 5px 15px 5px; /* 增加上下和左右的内边距，保持视觉效果 */
            background-color: #fff; /* 让它和下方的选项区背景色一致 */
            margin: 0 -10px; /* 抵消父元素的 padding，让背景色能通栏显示 */
            padding-left: 25px; /* 把抵消的内边距加回来 */
            padding-right: 25px;
        }

        /* --- Options Section --- */
        .options-section {
            background-color: #fff; padding: 20px 15px; margin: 0 10px 10px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        }
        .options-title { font-size: 16px; font-weight: bold; margin-bottom: 5px; }
        .options-subtitle { font-size: 12px; color: #999; margin-bottom: 20px; }
        .options-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px 10px; }
        
        .option-item { position: relative; display: flex; flex-direction: column; }
        .option-item input[type="radio"] { display: none; }
        .option-item label { 
            display: flex; /* 确保label是flex容器 */
            flex-direction: column; 
            text-align: center; 
            cursor: pointer; 
            height: 100%; 
        }
        .option-item .image-container { position: relative; margin-bottom: 8px; }
        .option-item img { width: 90px; height: 90px; object-fit: contain; margin: 0 auto; }
        .option-item .tag { position: absolute; top: 0; left: 0; color: white; font-size: 10px; padding: 2px 5px; border-radius: 5px 0 5px 0; }
        .tag.new { background-color: var(--accent-color); }
        .tag.hot { background-color: #e91e63; }
        .option-name { font-size: 12px; flex-grow: 1; margin-bottom: 4px; }

        /* ▼▼▼ 新增价格样式 ▼▼▼ */
        .option-item .option-price {
            font-size: 14px;
            font-weight: bold;
            color: #fa541c; /* 使用醒目的价格颜色 */
            margin-top: auto; /* 关键：将价格推到卡片底部，和名称分开 */
            padding-top: 4px;
        }

        /* 【新增】不可选项的样式调整 */
        .option-item.non-selectable {
            cursor: default; /* 鼠标指针变为默认样式，不可点击 */
        }
        .option-item.non-selectable .option-content {
            display: flex;
            flex-direction: column;
            text-align: center;
            height: 100%;
        }
        .add-extra-btn { width: 20px; height: 20px; background-color: var(--primary-color); border: none; border-radius: 50%; font-weight: bold; color: #333; }

        /* Custom Radio Button Checkmark */
        .option-item input[type="radio"] + label::after {
            content: '✔'; position: absolute; top: 5px; right: 5px; width: 18px; height: 18px; background-color: var(--primary-color); color: white; border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 12px;
        }
        .option-item input[type="radio"]:checked + label::after { display: flex; }
        .option-item input[type="radio"]:checked + label { /* Optional: add a border to the selected item's label */ box-shadow: 0 0 0 2px var(--primary-color); border-radius: 8px; }

        /* --- Terms & Conditions --- */
        .terms-section { padding: 15px; font-size: 11px; color: #aaa; line-height: 1.5; }

        /* --- 移动端固定底部按钮 --- */
        .footer-container {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
        }
        
        .price-footer { 
            width: 100%; 
            background-color: #fff; 
            padding: 10px 15px; 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            border-top: 1px solid #eee; 
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        }
        
        .price-breakdown { font-size: 12px; color: #888; }
        .final-price-btn { background-color: var(--accent-color); color: white; border: none; border-radius: 20px; padding: 8px 15px; font-size: 14px; }
        .final-price-btn .price { font-size: 16px; font-weight: bold; }

        .cart-footer { 
            width: 40%; 
            background-color: var(--primary-color); 
            color: #333; 
            border: none; 
            padding: 15px; 
            font-size: 18px; 
            font-weight: bold; 
            float: right;
        }
