 
 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

html {
    font-size: 14px;
}

body {
    font-family: "PingFang SC", "Helvetica Neue", Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.5;
    color: #333;
    background: #F8F8F8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ====== 隐藏滚动条 ====== */
::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* ====== 浮动按钮区域 ====== */
.floating-buttons {
    position: fixed;
    z-index: 1000;
}

/* 右上角二维码按钮 */
.qrcode-top-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
}

.qrcode-btn {
    display: block;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 255);
    transition: all 0.3s ease;
    border: 2px  #FFFFFF;
}

.qrcode-btn:hover, .qrcode-btn:active {
    background: white;
    transform: translateY(-1px);
}

.qrcode-btn img {
    width: 45px;
    height: 45px;
    vertical-align: middle;
    padding:3px;
     
}

/* 价格浮动按钮 - 顶部 */
.price-float-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 8px 16px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.price-float-btn:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.price-float-btn .price-value {
    font-size: 18px;
    font-weight: 700;
    color: #FF0000;
    margin-right: 4px;
}

.price-float-btn .price-unit {
    font-size: 12px;
    color: #666;
    margin-right: 8px;
}

.buy-now-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #FF3333, #FF6600);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    margin-left: 8px;
}

.buy-now-btn:hover {
    background: linear-gradient(135deg, #FF6600, #FF3333);
    transform: translateY(-1px);
}

/* 右下角操作按钮 */
.action-buttons-right {
    position: fixed;
    bottom: 100px;
    right: 15px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    text-decoration: none;
}

.action-btn:hover, .action-btn:active {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.action-btn img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

/* 购物车按钮特殊样式 */
.cart-btn {
    background: linear-gradient(135deg, #FF3333, #FF6600);
}

.cart-btn:hover {
    background: linear-gradient(135deg, #FF6600, #FF3333);
}

/* 购物车数量徽章 */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    background: white;
    color: #FF3333;
    border-radius: 10px;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid #FF3333;
    z-index: 1002;
}

/* ====== 主内容区域 ====== */
.content {
    max-width: 100%;
    padding: 80px 0 100px;
}

/* ====== 商品卡片 ====== */
.product-card {
    background: white;
    margin: 0 0 8px 0;
    padding: 16px;
    position: relative;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 6px;
    line-height: 1.4;
}

.product-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.price-range {
    display: flex;
    align-items: baseline;
    margin: 12px 0;
}

.price-label {
    font-size: 14px;
    color: #000000;
    margin-right: 8px;
}

.price-value {
    font-size: 22px;
    font-weight: 700;
    color: #FF0000;
    margin-right: 4px;
}

.price-unit {
    font-size: 14px;
    color: #666;
}

.price-divider {
    margin: 0 8px;
    color: #FF0000;
    font-weight: 400;
}

.product-point {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 12px 0;
    padding: 12px 0;
    border-top: 1px solid #F0F0F0;
    border-bottom: 1px solid #F0F0F0;
}

/* ====== 商品数据统计 ====== */
.product-stats {
    display: flex;
    align-items: center;
    margin-top: 12px;
    font-size: 12px;
    color: #999;
}

.stats-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.stats-item .icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    opacity: 0.7;
}

.stats-item.sold {
    color: #FF6600;
}

/* ====== 媒体内容区域 ====== */
.media-section {
    background: white;
    margin-bottom: 8px;
    overflow: hidden;
}

.product-video {
    width: 97%;
	margin-left:1.5% ;
    height: auto;
    background: #000;
    display: block;
}

.product-image {
    width: 97%;
	margin-left:1.5% ;
	border-radius: 5px;
    height: auto;
 
    display: block;
    background: #F5F5F5;
}

/* ====== 用户评价 ====== */
.reviews-section {
    background: white;
    margin-bottom: 8px;
    padding: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F0F0F0;
}

.section-title {
    font-size: 17px;
    font-weight: 600;
    color: #000;
    display: flex;
    align-items: center;
}

.review-count {
    color: #999;
    font-weight: 400;
    margin-left: 8px;
}

.view-all {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    padding: 4px 8px;
}

.view-all:hover {
    color: #000;
}

/* ====== 评价项 ====== */
.review-item {
    padding: 16px 0;
    border-bottom: 1px solid #F8F8F8;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    background: #F0F0F0;
}

.review-user-info {
    flex: 1;
}

.review-username {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.review-time {
    font-size: 12px;
    color: #999;
}

.review-rating {
    color: #FF9900;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.review-content {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 12px;
}

.review-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.review-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    object-fit: cover;
    background: #F5F5F5;
    cursor: pointer;
}

.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-reviews-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.3;
}

.no-reviews-text {
    font-size: 14px;
    margin-bottom: 16px;
}

.btn-add-review {
    display: inline-block;
    padding: 8px 24px;
    background: #000;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-add-review:hover {
    background: #333;
    transform: translateY(-1px);
}

/* ====== 关注用户 ====== */
.followers-section {
    background: white;
    padding: 16px;
    margin-bottom: 8px;
}

.followers-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.follower-avatar {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    background: #F5F5F5;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ====== 页脚 ====== */
.footer {
    text-align: center;
    padding: 20px 16px;
    color: #999;
    font-size: 12px;
    line-height: 1.6;
    background: white;
}

.footer-logo {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

/* ====== SKU面板 ====== */
.sku-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 75vh;
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.sku-panel.active {
    transform: translateY(0);
}

.sku-header {
    padding: 16px 20px;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    border-radius: 16px 16px 0 0;
}

.sku-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.close-btn {
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>') no-repeat center;
    border: none;
    cursor: pointer;
    opacity: 0.7;
}

.sku-list {
    padding: 0 20px 20px;
    max-height: calc(75vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sku-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #F8F8F8;
}

.sku-item:last-child {
    border-bottom: none;
}

.sku-image {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 16px;
    background: #F5F5F5;
    cursor: pointer;
    flex-shrink: 0;
}

.sku-info {
    flex: 1;
    min-width: 0;
}

.sku-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sku-price {
    font-size: 17px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
}

.sku-stock {
    font-size: 12px;
    color: #999;
}

.quantity-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #FF0000;
    color: white;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 8px;
}

.add-to-cart-btn {
    padding: 8px 20px;
    background: #FF0000;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    margin-left: 12px;
}

.add-to-cart-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

/* ====== 遮罩层 ====== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(2px);
}

/* ====== 图片查看器 ====== */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.image-viewer.active {
    opacity: 1;
}

.image-viewer img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.close-viewer {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 2001;
    opacity: 0.8;
}

.viewer-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 2001;
    opacity: 0.8;
}

.viewer-nav span {
    color: white;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
}

/* ====== 成功提示 ====== */
.success-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    z-index: 3000;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.success-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ====== 返回顶部按钮 ====== */
.back-to-top {
    position: fixed;
    bottom: 180px;
    right: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.back-to-top:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.back-to-top img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

/* ====== 响应式调整 ====== */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }
    
    .price-float-btn {
        padding: 6px 12px;
    }
    
    .price-float-btn .price-value {
        font-size: 16px;
    }
    
    .buy-now-btn {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .action-btn {
        width: 44px;
        height: 44px;
    }
    
    .followers-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 768px) {
    .content {
        max-width: 750px;
        margin: 0 auto;
    }
    
    .product-card, .media-section, .reviews-section, .followers-section {
        border-radius: 12px;
        margin-bottom: 12px;
    }
    
    .price-float-btn {
        left: calc(50% - 375px + 15px);
    }
    
    .qrcode-top-btn {
        right: calc(50% - 375px + 15px);
    }
    
    .action-buttons-right {
        right: calc(50% - 375px + 15px);
    }
    
    .back-to-top {
        right: calc(50% - 375px + 15px);
    }
}

/* ====== 动画效果 ====== */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== 加载动画 ====== */
.skeleton {
    background: linear-gradient(90deg, #F0F0F0 25%, #E8E8E8 50%, #F0F0F0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
 