* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
    padding-bottom: 120px;
    -webkit-font-smoothing: antialiased;
}

/* 状态栏 */
.status-bar {
    display: none;
}

.status-icons {
    display: flex;
    gap: 5px;
}

/* 顶部导航栏 */
.header {
    display: none;
}

/* 隐藏配送、赠品、保障服务区域 */
.delivery-section,
.gift-services,
.protection-services {
    display: none;
}

.nav-left, .nav-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.search-bar {
    width: 100%;
    max-width: 200px;
    height: 30px;
    background-color: #f5f5f5;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.nav-icon {
    background: none;
    border: none;
    font-size: 20px;
    padding: 5px;
    cursor: pointer;
    color: #333;
}

.back-btn, .share-btn, .menu-btn {
    background: none;
    border: none;
    font-size: 18px;
    padding: 5px 10px;
    cursor: pointer;
    color: #333;
}

/* 商品图片区域 */
.product-images {
    background-color: #fff;
    position: relative;
    padding: 20px 15px;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.image-slider {
    position: relative;
    width: 100%;
    /* 轮播轨道本身不要裁剪，否则 translate 后第二张会被裁掉（出现空白） */
    overflow: visible;
    display: flex; /* 使用flex布局让slide横向排列 */
}

.slide {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 320px;
    opacity: 1; /* 所有slide都可见，通过transform控制位置 */
    flex: 0 0 100%; /* 每个slide占据100%宽度，不缩放 */
    min-width: 100%; /* 确保最小宽度为100% */
    width: 100%; /* 确保宽度为100% */
    flex-shrink: 0; /* 防止收缩 */
}

.phone-images {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 10px;
}

.phone-images::before {
    content: '';
    position: absolute;
    width: 95%;
    height: 95%;
    border: 4px solid #ff0000;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
}

.phone-back, .phone-front {
    width: 140px;
    height: 280px;
    object-fit: cover;
    background: #1a1a1a;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.phone-back {
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a1a 100%);
}

.phone-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.phone-front::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.promo-banner {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    color: #d63031;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.image-indicator {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

/* 颜色选择 */
.color-selector {
    background-color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #eee;
}

.color-label {
    font-size: 14px;
    color: #666;
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-option {
    padding: 5px 15px;
    border: 1px solid #ddd;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
}

.color-option.active {
    background-color: #ff6600;
    color: #fff;
    border-color: #ff6600;
}

/* 商品标题 */
.product-title {
    background-color: #fff;
    padding: 15px;
    border-top: 1px solid #eee;
}

.product-title h1 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: #333;
}

/* 购买提示 */
.purchase-warning {
    background-color: #fff3cd;
    padding: 10px 15px;
    font-size: 12px;
    color: #856404;
    border-top: 1px solid #eee;
}

/* 已选规格 */
.selected-specs {
    background-color: #fff;
    padding: 12px 15px;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #eee;
}

.selected-specs strong {
    color: #ff6600;
    font-weight: 500;
}

/* 商品参数 */
.product-params {
    background-color: #fff;
    padding: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    border-top: 1px solid #eee;
}

.param-item {
    font-size: 14px;
    color: #666;
}

.param-label {
    margin-right: 5px;
}

.compare-link {
    color: #ff6600;
    text-decoration: none;
}

/* 省心购服务 */
.service-section {
    background-color: #fff;
    padding: 15px;
    margin-top: 10px;
    border-top: 1px solid #eee;
}

.service-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.service-items {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.service-items span {
    font-size: 12px;
    color: #ff6600;
    padding: 3px 8px;
    background-color: #fff3e0;
    border-radius: 3px;
}

.return-policy {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* 评价区域 */
.reviews-section {
    background-color: #fff;
    padding: 15px;
    margin-top: 10px;
    border-top: 1px solid #eee;
}

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

.reviews-count {
    font-size: 14px;
    font-weight: 600;
    color: #000; /* 评价数量改为黑色 */
}

.reviews-rate {
    font-size: 14px;
    color: #333;        /* 好评率为深灰色 */
    margin: 0 5px;
    border-left: 1px solid #e0e0e0; /* 浅灰色竖线分隔 */
    padding-left: 6px;
}

.view-all {
    margin-left: auto;
    font-size: 14px;
    color: #000;        /* “查看全部 >”改为黑色 */
    text-decoration: none;
}

.review-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    font-size: 12px;
    color: #666;
    padding: 5px 10px;
    background-color: #f5f5f5;
    border-radius: 15px;
}

.review-item {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.reviewer-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.reviewer-name {
    font-size: 14px;
    color: #666;
}

.stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    flex-shrink: 0;
}

.star-icon {
    width: 14px;
    height: 14px;
    background-image: linear-gradient(180deg, #ffcc66, #ff9900);
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 2l2.39 6.91H22l-5.7 4.14L17.8 20 12 15.9 6.2 20l1.7-6.95L2 8.91h7.61z"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 2l2.39 6.91H22l-5.7 4.14L17.8 20 12 15.9 6.2 20l1.7-6.95L2 8.91h7.61z"/></svg>');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.star-icon.empty {
    background-image: linear-gradient(180deg, #e0e0e0, #bdbdbd);
}

.review-content {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.review-spec {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.review-images {
    display: flex;
    gap: 8px;
}

.review-images img {
    width: 150px;
    height: 150px;
    border-radius: 4px;
    object-fit: cover;
}

/* 评价下方店铺蓝色渐变卡片 */
.store-banner-card {
    margin: 12px -10px 0;
    padding: 18px 16px;
    border-radius: 14px;
    /* 蓝色渐变加深 */
    background: linear-gradient(135deg, #10328f 0%, #0051c4 100%);
    color: #fff;
}

.store-banner-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.store-banner-logo {
    /* 放大上方图片尺寸 */
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.store-banner-logo img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

.store-banner-info {
    flex: none;
    text-align: left;
}

.store-banner-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
}

.store-banner-sub {
    font-size: 14px;
    opacity: 0.9;
}

.store-banner-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.store-banner-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 14px;
    border-radius: 6px;
    border: none;
    background-color: #ffffff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
}

.store-banner-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 14px;
}

.store-banner-btn-primary {
    background-color: #ffffff;
    color: #1b1616;
}

/* 店铺信息 */
.store-section {
    background-color: #fff;
    padding: 15px;
    margin-top: 10px;
    border-top: 1px solid #eee;
}

.store-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.store-logo img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.store-info {
    flex: 1;
}

.store-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.store-badge {
    font-size: 12px;
    color: #ff6600;
    background-color: #fff3e0;
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-block;
}

.store-actions {
    display: flex;
    gap: 10px;
}

.store-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid #0066ff;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.3);
}

.store-btn:active {
    border-color: #0066ff;
    color: #0066ff;
    background-color: #e6f2ff;
}

/* 详情标签页 */
.detail-tabs {
    display: flex;
    background-color: #fff;
    margin-top: 10px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    border-bottom: 4px solid transparent; /* 线条加粗一倍 */
}

.tab.active {
    color: #000;                 /* 导航文字改为黑色 */
    border-bottom-color: #000;   /* 导航下划线改为黑色 */
    font-weight: 500;
}

/* Apple国补专区 */
.subsidy-section {
    background-color: #fff;
    padding: 15px;
    margin-top: 10px;
    border-top: 1px solid #eee;
}

.subsidy-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

/* 购买须知 */
.purchase-instructions {
    background-color: #fff;
    padding: 15px;
    margin-top: 10px;
}

.instructions-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

.instruction-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.instruction-list {
    padding-left: 20px;
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.instruction-list li {
    margin-bottom: 8px;
}

/* 优惠提醒 */
.discount-reminder {
    background-color: #fff3cd;
    padding: 8px 15px;
    font-size: 12px;
    color: #856404;
    text-align: center;
    margin-top: 10px;
}

.countdown {
    color: #ff6600;
    font-weight: bold;
}

/* 底部固定栏 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    padding: 8px 8px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-left {
    display: flex;
    /* 三个图标按钮之间统一的间距 */
    gap: 6px;
}

.footer-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 12px;
    color: #666;
}

.footer-icon-img {
    width: 52px;  /* 原来 26px，放大约 2 倍，和 additional 里保持一致 */
    height: 52px;
    display: block;
}

.footer-center {
    /* 中间留白缩小，让左侧图标更靠近右侧操作按钮 */
    flex: 0 0 8px;
    margin: 0 4px;
}

/* .add-cart-btn and .buy-btn in this section are overridden by the styles at the bottom of the file */

.add-cart-btn:active, .buy-now-btn:active {
    opacity: 0.8;
    transform: scale(0.98);
}

.add-cart-btn, .buy-btn {
    transition: all 0.2s;
}

.mini-cart-btn {
    width: 70px;
    border-radius: 4px;
    border: none;
    background: linear-gradient(90deg, #ffb000, #ff8800);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    cursor: pointer;
    color: #fff;
}

.mini-cart-icon {
    font-size: 18px;
    line-height: 1;
    margin-bottom: 2px;
}

.mini-cart-text {
    font-size: 11px;
    line-height: 1;
}

.mini-cart-btn:active {
    opacity: 0.8;
    transform: scale(0.96);
}

/* 响应式调整 */
@media (max-width: 375px) {
    .phone-back, .phone-front {
        width: 120px;
        height: 240px;
    }
    
    .product-title h1 {
        font-size: 14px;
    }
}

/* 高亮圆圈效果（用于标注特定区域，图片中的标注效果） */
.highlight-red {
    position: relative;
}

.highlight-red::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border: 3px solid red;
    border-radius: 15px;
    pointer-events: none;
    z-index: 1000;
}

.highlight-blue {
    position: relative;
}

.highlight-blue::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    border: 3px solid #0066ff;
    border-radius: 8px;
    pointer-events: none;
    z-index: 1000;
}

/* 优化移动端体验 */
@media (max-width: 414px) {
    .phone-back, .phone-front {
        width: 130px;
        height: 260px;
    }
}

@media (max-width: 375px) {
    .phone-back, .phone-front {
        width: 120px;
        height: 240px;
    }
    
    .product-title h1 {
        font-size: 14px;
    }
    
    .footer {
        padding: 6px 8px;
    }
    
    .add-cart-btn, .buy-btn {
        padding: 10px;
        font-size: 14px;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
    padding-bottom: 120px;
    -webkit-font-smoothing: antialiased;
}

/* 状态栏 */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    background-color: #000;
    color: #fff;
    font-size: 12px;
    height: 24px;
}

.status-icons {
    display: flex;
    gap: 5px;
}

/* 顶部导航栏 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-left, .nav-right {
    display: flex;
    gap: 10px;
}

.back-btn, .share-btn, .menu-btn {
    background: none;
    border: none;
    font-size: 18px;
    padding: 5px 10px;
    cursor: pointer;
    color: #333;
    transition: opacity 0.2s;
}

.back-btn:active, .share-btn:active, .menu-btn:active {
    opacity: 0.6;
}

.share-btn {
    font-size: 14px;
    color: #666;
}

/* 商品图片区域 */
.product-images {
    background-color: #fff;
    position: relative;
    padding: 20px 15px;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.image-slider {
    position: relative;
    width: 100%;
    /* 轮播轨道本身不要裁剪，否则 translate 后第二张会被裁掉（出现空白） */
    overflow: visible;
    display: flex; /* 使用flex布局让slide横向排列 */
}

.slide {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 320px;
    opacity: 1; /* 所有slide都可见，通过transform控制位置 */
    flex: 0 0 100%; /* 每个slide占据100%宽度，不缩放 */
    min-width: 100%; /* 确保最小宽度为100% */
    width: 100%; /* 确保宽度为100% */
    flex-shrink: 0; /* 防止收缩 */
}

.phone-images {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 10px;
}

.phone-images::before {
    content: '';
    position: absolute;
    width: 95%;
    height: 95%;
    border: 4px solid #ff0000;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
}

.phone-back, .phone-front {
    width: 140px;
    height: 280px;
    object-fit: cover;
    background: #1a1a1a;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.phone-back {
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a1a 100%);
}

.phone-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.phone-front::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.promo-banner {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    color: #d63031;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.image-indicator {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

/* 颜色选择 */
.color-selector {
    background-color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #eee;
}

.color-label {
    font-size: 14px;
    color: #666;
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-option {
    padding: 5px 15px;
    border: 1px solid #ddd;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
}

.color-option.active {
    background-color: #ff6600;
    color: #fff;
    border-color: #ff6600;
}

/* 商品标题 */
.product-title {
    background-color: #fff;
    padding: 15px;
    border-top: 1px solid #eee;
}

.product-title h1 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: #333;
}

/* 购买提示 */
.purchase-warning {
    background-color: #fff3cd;
    padding: 10px 15px;
    font-size: 12px;
    color: #856404;
    border-top: 1px solid #eee;
}

/* 已选规格 */
.selected-specs {
    background-color: #fff;
    padding: 12px 15px;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #eee;
}

.selected-specs strong {
    color: #ff6600;
    font-weight: 500;
}

/* 商品参数 */
.product-params {
    background-color: #fff;
    padding: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    border-top: 1px solid #eee;
}

.param-item {
    font-size: 14px;
    color: #666;
}

.param-label {
    margin-right: 5px;
}

.compare-link {
    color: #ff6600;
    text-decoration: none;
}

/* 省心购服务 */
.service-section {
    background-color: #fff;
    padding: 15px;
    margin-top: 10px;
    border-top: 1px solid #eee;
}

.service-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.service-items {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.service-items span {
    font-size: 12px;
    color: #ff6600;
    padding: 3px 8px;
    background-color: #fff3e0;
    border-radius: 3px;
}

.return-policy {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* 评价区域 */
.reviews-section {
    background-color: #fff;
    padding: 15px;
    margin-top: 10px;
    border-top: 1px solid #eee;
}

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

.reviews-count {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.reviews-rate {
    font-size: 14px;
    color: #333;
    margin: 0 5px;
}

.view-all {
    margin-left: auto;
    font-size: 14px;
    color: #000;
    text-decoration: none;
}

.review-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    font-size: 12px;
    color: #666;
    padding: 5px 10px;
    background-color: #f5f5f5;
    border-radius: 15px;
}

.review-item {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.reviewer-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.reviewer-name {
    font-size: 14px;
    color: #666;
}

.stars {
    color: #ff6600;
    font-size: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.review-content {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.review-images {
    display: flex;
    gap: 8px;
}

.review-images img {
    width: 150px;
    height: 150px;
    border-radius: 4px;
    object-fit: cover;
}

/* 店铺信息 */
.store-section {
    background-color: #fff;
    padding: 15px;
    margin-top: 10px;
    border-top: 1px solid #eee;
}

.store-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.store-logo img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.store-info {
    flex: 1;
}

.store-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.store-badge {
    font-size: 12px;
    color: #ff6600;
    background-color: #fff3e0;
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-block;
}

.store-actions {
    display: flex;
    gap: 10px;
}

.store-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid #0066ff;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.3);
}

.store-btn:active {
    border-color: #0066ff;
    color: #0066ff;
    background-color: #e6f2ff;
}

/* 详情标签页 */
.detail-tabs {
    display: flex;
    background-color: #fff;
    margin-top: 10px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: #ff6600;
    border-bottom-color: #ff6600;
    font-weight: 500;
}

/* Apple国补专区 */
.subsidy-section {
    background-color: #fff;
    padding: 15px;
    margin-top: 10px;
    border-top: 1px solid #eee;
}

.subsidy-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

/* 购买须知 */
.purchase-instructions {
    background-color: #fff;
    padding: 15px;
    margin-top: 10px;
}

.instructions-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

.instruction-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.instruction-list {
    padding-left: 20px;
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.instruction-list li {
    margin-bottom: 8px;
}

/* 优惠提醒 */
.discount-reminder {
    background-color: #fff3cd;
    padding: 8px 15px;
    font-size: 12px;
    color: #856404;
    text-align: center;
    margin-top: 10px;
}

.countdown {
    color: #ff6600;
    font-weight: bold;
}

/* 底部固定栏 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-left {
    display: flex;
    /* 三个图标按钮之间统一的间距（与上方保持一致） */
    gap: 6px;
}

.footer-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 12px;
    color: #666;
}

.footer-icon-btn .icon {
    font-size: 18px;
    margin-bottom: 2px;
}

.footer-icon-btn .label {
    font-size: 10px;
}

.footer-center {
    /* 中间留白缩小，让左侧图标更靠近右侧操作按钮 */
    flex: 0 0 4px;
    margin: 0;
}

.add-cart-btn {
    width: 100%;
    padding: 12px;
    background-color: #ff8800;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.footer-right {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 6px;
}

/* 底部右侧两个操作按钮：立即购买 / 加入购物车 */
.buy-now-btn,
.add-cart-btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit; /* 统一字体 */
    text-decoration: none; /* 移除超链接下划线 */
    border-radius: 12px;
    transition: all 0.2s;
    /* 防止小屏/大字体/多语言环境下按钮文字折成两行 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
}

.buy-now-btn {
    background: linear-gradient(90deg, #ff8c00, #ff4500);
    color: #ffffff;
    border: none;
}

/* 此时设计为镂空（空心）样式 */
.add-cart-btn {
    background: #ffffff;
    color: #ff6600;
    border: 1px solid #ff6600;
}

.buy-now-btn:active,
.add-cart-btn:active {
    opacity: 0.85;
    transform: scale(0.97);
}

.buy-price {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.buy-text {
    font-size: 12px;
    line-height: 1.2;
}

/* 响应式调整 */
@media (max-width: 375px) {
    .phone-back, .phone-front {
        width: 120px;
        height: 240px;
    }
    
    .product-title h1 {
        font-size: 14px;
    }
}

/* 高亮圆圈效果（用于标注特定区域，图片中的标注效果） */
.highlight-red {
    position: relative;
}

.highlight-red::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border: 3px solid red;
    border-radius: 15px;
    pointer-events: none;
    z-index: 1000;
}

.highlight-blue {
    position: relative;
}

.highlight-blue::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    border: 3px solid #0066ff;
    border-radius: 8px;
    pointer-events: none;
    z-index: 1000;
}

/* 优化移动端体验 */
@media (max-width: 414px) {
    .phone-back, .phone-front {
        width: 130px;
        height: 260px;
    }
}

@media (max-width: 375px) {
    .phone-back, .phone-front {
        width: 120px;
        height: 240px;
    }
    
    .product-title h1 {
        font-size: 14px;
    }
    
    .footer {
        padding: 4px 6px;
    }
    
    /* 小屏更容易被挤，进一步保证按钮不换行 */
    .add-cart-btn, .buy-now-btn {
        padding: 10px;
        font-size: 14px;
        white-space: nowrap; /* 禁止换行 */
    }

    .add-cart-btn, .buy-now-btn {
        font-size: 13px;  /* 字体缩小 */
        padding: 8px 10px; /* 内边距缩小 */
    }

    /* 小屏缩小左侧图标，给右侧按钮留空间，减少文字被挤压 */
    .footer-icon-img {
        width: 44px;
        height: 44px;
    }

    /* 小屏进一步缩小左侧三按钮之间的“空隙” */
    .footer-icon-btn {
        padding: 3px 3px;
    }
}
