/* ========== 新增样式 - 匹配图片设计 ========== */

/* 导航栏更新 */
.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;
}

.header {
    top: 0px;
}

/* 图片轮播更新 */
.image-viewport {
    width: 100%;
    overflow: hidden; /* 关键：只在视窗裁剪，不要让轨道自己裁剪 */
}

.image-slider {
    display: flex;
    transition: transform 0.3s ease;
    overflow: visible; /* 修复：避免第二张被 image-slider 自己裁剪导致空白 */
    will-change: transform;
}

.slide {
    min-width: 100%;
    flex-shrink: 0;
}

/* 商品轮播大图尺寸优化 */
.slide-image {
    display: block;
    width: 100%;
    max-width: 430px; /* 在手机屏上更大一些 */
    height: auto;
    min-height: 300px; /* 确保有最小高度 */
    margin: 0 auto;
    object-fit: contain; /* 确保图片完整显示 */
}

.slide-content {
    width: 100%;
}

/* 第一张图片样式 */
.slide-1 {
    background-color: #fff;
    padding: 20px 0;
}

.phone-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
}

.phone-back-img, .phone-front-img {
    width: 150px;
    height: 300px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.phone-back-img::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

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

.phone-front-img::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 30px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
}

.price-info-bottom {
    padding: 15px;
    background-color: #fff;
}

.estimated-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 10px;
}

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

.price-amount {
    font-size: 28px;
    font-weight: bold;
    color: #ffd700;
}

.price-start {
    font-size: 14px;
    color: #666;
    margin-left: 5px;
}

.trade-in-banner {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.trade-in-text {
    background-color: #4caf50;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.activation-notice {
    background-color: #c8e6c9;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
}

/* 第二张图片样式 */
.slide-2 {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff0000 100%);
    padding: 20px 0;
}

.phone-display-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
}

.phone-back-2, .phone-front-2 {
    width: 150px;
    height: 300px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.price-section-gradient {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    color: #fff;
}

.price-left-section {
    display: flex;
    flex-direction: column;
}

.main-price {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.sold-info {
    font-size: 14px;
    opacity: 0.9;
}

.subsidy-section-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lightning {
    font-size: 24px;
}

.subsidy-label {
    font-size: 16px;
    font-weight: 500;
}

/* 价格和促销区域 */
.price-promo-section {
    background-color: #fff;
    padding: 15px;
}

.estimated-price-section {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 10px;
}

.estimated-price-label {
    font-size: 12px;
    color: #666;
}

.estimated-price-value {
    font-size: 28px;
    font-weight: bold;
    color: #ffd700;
}

.price-start-text {
    font-size: 14px;
    color: #666;
    margin-left: 5px;
}

.trade-in-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.trade-in-badge {
    background-color: #4caf50;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.activation-badge {
    background-color: #c8e6c9;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
}

.price-gradient-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff0000 100%);
    border-radius: 8px;
    color: #fff;
    margin-top: 10px;
}

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

.color-selector-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex-shrink: 0;
    min-width: 35px;
    line-height: 1.2;
}

.color-count {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.color-optional {
    font-size: 11px;
    color: #666;
}

.color-selector-options {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.color-selector-options::-webkit-scrollbar {
    display: none;
}

.color-option-item {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    transition: all 0.2s;
}

.color-option-item:active {
    background-color: #f5f5f5;
}

.color-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.color-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.color-name {
    font-size: 13px;
    color: #333;
    white-space: nowrap;
}

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

.color-option-item.active .color-name {
    color: #ff6600;
    font-weight: 500;
}

/* 商品信息区域 */
.product-info-section {
    background-color: #fff;
    padding: 15px;
    border-top: 1px solid #eee;
}

.cloud-diamonds {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.product-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.self-operated-tag {
    background-color: #ff6600;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.product-title-main {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.follow-btn {
    cursor: default;
    user-select: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.follow-btn.active {
    color: #ffd700;
}

.follow-icon-img {
    display: block;
    width: 30px;
    height: 30px;
}

.follow-text {
    font-size: 11px;
    color: #666;
    line-height: 1.1;
    margin-top: 2px;
}

/* 底部图标按钮图片样式 */
.footer-icon-img {
    width: 44px;  /* 可根据视觉再缩小 */
    height: 44px;
    margin-bottom: 2px;
}

/* 店铺蓝卡片内按钮的图标图片（进店逛逛） */
.store-banner-btn-icon-img {
    display: block;
    width: 18px;
    height: 18px;
}

.purchase-notice-text {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    flex: 1;
}

/* 购买须知高亮图标 */
.purchase-notice {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
}

.purchase-notice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.notice-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #ff6600;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.service-chat-icons {
    text-align: right;
    margin-top: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ff6600;
    flex-shrink: 0;
}

/* 优惠活动 */
.promo-activities {
    background-color: #fff;
    padding: 15px;
    border-top: 1px solid #eee;
}

.activities-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.activity-type {
    font-size: 13px;
    color: #666;
    min-width: 40px;
}

.yellow-tag {
    background-color: #ffd700;
    color: #333;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.view-nav-btns {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 10px;
}

.view-btn, .nav-btn {
    font-size: 12px;
    color: #666;
}

/* 主导航标签 */
.main-nav-tabs {
    display: flex;
    background-color: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

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

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

.tab-content {
    display: block;
}

.tab-content.hidden {
    display: none;
}

/* 活动区域 */
.activities-section {
    background-color: #fff;
    padding: 15px;
    border-top: 1px solid #eee;
}

.activity-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.activity-row:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 20px;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.activity-desc {
    font-size: 12px;
    color: #666;
}

.activity-tags-row {
    display: flex;
    gap: 5px;
}

.activity-tag-small {
    background-color: #f5f5f5;
    color: #666;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.activity-arrow {
    color: #999;
    font-size: 18px;
}

/* 以旧换新 */
.trade-in-section-main {
    background-color: #fff;
    padding: 15px;
    border-top: 1px solid #eee;
}

/* 参数下方省心购提示 */
.carefree-purchase {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #ffffff;
    padding: 10px 15px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 12px;
    position: relative;
    overflow: hidden;
}

.carefree-purchase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 0, 0, 0.08) 10px, rgba(255, 0, 0, 0.08) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255, 50, 50, 0.06) 10px, rgba(255, 50, 50, 0.06) 20px);
    background-size: 40px 40px, 40px 40px;
    background-position: 0 0, 0 0;
    animation: flowPattern 3s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.carefree-purchase::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 50, 50, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 100, 100, 0.04) 0%, transparent 60%);
    animation: flowRadial 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes flowPattern {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 40px 40px, -40px -40px;
    }
}

@keyframes flowRadial {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.carefree-purchase > * {
    position: relative;
    z-index: 1;
}

.carefree-icon {
    color: #ffb400; /* 淘宝金黄色 */
    font-size: 18px;
    line-height: 1.2;
    margin-top: 2px;
}

.carefree-content {
    flex: 1;
}

.carefree-first-line {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 2px;
}

.carefree-title {
    font-size: 14px; /* 比正文稍大 */
    color: #ffb400; /* 淘宝金黄色 */
    font-weight: 600;
}

.carefree-main {
    font-size: 12px;
    color: #000;
    line-height: 1.4;
    white-space: nowrap; /* 保证整句在一行显示 */
}

.carefree-sub-line {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

.trade-in-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.trade-in-label {
    font-size: 14px;
    color: #333;
}

.max-discount-tag {
    background-color: #ff0000;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    border: 1px solid #ff0000;
}

.trade-in-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.old-phone, .new-phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

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

.phone-img-placeholder {
    width: 80px;
    height: 160px;
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    border-radius: 15px;
}

.trade-arrow {
    font-size: 24px;
    color: #0066ff;
}

.trade-in-price {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

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

/* 已选规格行 */
.selected-specs-row {
    background-color: #fff;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

/* 已选规格与上方“收货时请仔细验收”之间的灰色间隔 */
.product-info-section + .tab-content > .selected-specs-row {
    border-top: none;
    border-bottom: 1px solid #f5f5f5; /* 与参数/评价之间类似的浅灰分隔 */
    margin-top: 8px;                  /* 拉开一点间距，露出灰底 */
}

.selected-specs-row strong {
    color: #333;
}

.arrow-right {
    color: #999;
    font-size: 18px;
}

/* 参数简要信息行（仿淘宝样式） */
.params-brief-row {
    background-color: #fff;
    padding: 8px 15px 10px;
    display: flex;
    align-items: flex-start;
    border-top: 1px solid #f5f5f5;
    font-size: 12px;
    color: #666;
}

.params-brief-row .param-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;   /* 新增：水平居中 */
    text-align: center;    /* 新增：文字居中 */
}

.params-brief-row .param-item + .param-item {
    border-left: 1px solid #f0f0f0;
    padding-left: 8px;
    margin-left: 8px;
}

.params-brief-row .param-label {
    flex: 0 0 auto;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    border-left: none;
    padding-left: 0;
    margin-left: 0;
}

.params-brief-row .param-main {
    font-size: 12px;
    color: #333;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.params-brief-row .param-sub {
    margin-top: 2px;
    font-size: 11px;
    color: #999;
    line-height: 1.2;
    white-space: nowrap;
}

.params-brief-row .param-compare {
    align-items: center;
}

.params-brief-row .param-compare .param-main {
    display: inline-block;
    padding: 0;
    border-radius: 0;
    border: none;
    background-color: transparent;
    color: #ff6600;
    font-weight: 600;
    font-size: 12px;
    text-align: right;
}

.params-brief-row .param-compare .param-sub {
    margin-top: 4px;
    font-size: 11px;
    color: #999;
    text-align: right;
}

/* 配送信息 */
.delivery-section {
    background-color: #fff;
    padding: 15px;
    border-top: 1px solid #eee;
}

.delivery-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

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

.delivery-address {
    flex: 1;
    font-size: 13px;
    color: #666;
}

.delivery-info {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.delivery-status {
    margin-bottom: 5px;
}

.delivery-details {
    margin-bottom: 5px;
}

.delivery-policy {
    margin-bottom: 5px;
}

.delivery-compensation {
    color: #ff6600;
}

/* 相关评价标题（商品页内） */
.related-reviews-title {
    background-color: #fff;
    padding: 12px 15px 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 店铺卡片下方“商品详情”标题行：左右短横线包裹文字 */
.product-details-title-bar {
    background-color: #fff;
    padding: 12px 15px 8px;
    font-size: 16px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-details-title-bar::before,
.product-details-title-bar::after {
    content: "";
    flex: 1;
    max-width: 40px;
    border-top: 1px solid #e0e0e0;
}

/* 店铺卡片下方“图文详情 / 规格参数 / 售后服务”这行与上下区域的灰色间隔 */
.sub-nav-wrapper {
    background-color: #f5f5f5;      /* 与页面整体灰底一致 */
    margin-top: 8px;                /* 与“商品详情”之间露出一条灰色带 */
    margin-bottom: 8px;             /* 与“Apple国补专区”之间露出一条灰色带 */
    padding: 4px 0;                 /* 灰色带稍微厚一点，类似“参数/评价”之间 */
}

/* 店铺卡片下方的子导航本身保持贴着白底卡片 */
.sub-nav-tabs-inline {
    margin-top: 0;
    margin-bottom: 0;
}

/* Apple 国补专区 - 购买须知区域 */
.apple-subsidy-tag {
    background-color: #fff;
    padding: 12px 15px 8px 20px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    position: relative;
    margin-top: 12px; /* 与上方标签的间距 */
    margin-bottom: 12px; /* 与下方购买须知的间距 */
}

.apple-subsidy-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%; /* 竖条高度为元素高度的60% */
    background-color: #FF6600; /* 淘宝金黄色竖条 */
}

.apple-notice-section {
    background-color: #6f42c1; /* 深紫背景 */
    padding: 16px 12px 20px;
    margin-left: -15px;
    margin-right: -15px;
}

.apple-notice-header {
    text-align: center;
    margin-bottom: 10px;
}

.apple-notice-title {
    font-size: 30px;
    font-weight: 600;
    color: #ffffff;
}

.apple-notice-card {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 12px 12px 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.apple-notice-card-title {
    font-size: 21px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.apple-notice-card-content {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

.apple-notice-card-content p {
    margin-bottom: 4px;
}

/* 保障服务 */
.protection-services {
    background-color: #fff;
    padding: 15px;
    border-top: 1px solid #eee;
}

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

.shield-icon {
    font-size: 18px;
}

.protection-title {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.protection-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.protection-item {
    font-size: 13px;
    color: #666;
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

/* 评价摘要 */
.reviews-summary {
    background-color: #fff;
    padding: 15px;
    border-top: 1px solid #eee;
}

.reviews-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reviews-title {
    font-size: 14px;
    color: #333;
}

.reviews-rate-main {
    font-size: 14px;
    color: #ff6600;
}

/* 子导航标签 */
.sub-nav-tabs {
    display: flex;
    background-color: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

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

.sub-tab.active {
    color: #ff6600;
    border-bottom: none; /* 选中时不要橙色下划线 */
    font-weight: 500;
}

/* 售后服务内容 */
.aftersale-content {
    background-color: #fff;
}

.purchase-instructions-banner {
    background-color: #0066ff;
    padding: 15px;
    text-align: center;
}

.instructions-title-banner {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.instruction-section-main {
    padding: 15px;
    border-top: 1px solid #eee;
}

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

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

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

.highlight-red-text {
    color: #ff0000;
    font-weight: 500;
}

.nav-btn-small {
    color: #999;
    font-size: 12px;
    margin-left: 5px;
}

.instruction-text {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

/* 浮动按钮 */
.floating-buttons {
    position: fixed;
    right: 30px;
    bottom: 200px; /* 往上挪一点，远离底部导航 */
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 42px; /* 再增大一点间距，让两个聊天球之间更明显分开 */
    /* 让上下两个圆按钮按同一垂直中线对齐，避免大小不同导致“错位”感 */
    align-items: center;
}

.service-chat-float {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* 上方“导航”浮动按钮的两行文字样式 */
.nav-float {
    /* 导航圆形按钮：在基础 50px 的聊天球上适度放大到 80px */
    width: 83px;
    height: 83px;
    background-color: #fff;       /* 白色不透明背景 */
    border: 2px solid #c7cec9;    /* 使用描边表示按钮轮廓 */
    color: #000000;
    font-size: 14px;
}

/* 导航图标大小和居中 */
.nav-float .nav-icon {
    width: 32px;
    height: 32px;
    display: block;
}

.nav-float-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.nav-arrow {
    font-size: 24px; /* 箭头加大 */
    margin-bottom: 2px;
}

.nav-label {
    font-size: 19px;
}

/* 店铺蓝卡片内“自营 + 2000万粉丝”一行样式 */
.store-banner-sub {
    display: inline-flex;      /* 自营 + 粉丝数在同一行 */
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.self-operated-tag-small {
    transform: scale(0.9);
    transform-origin: left center;
}

.store-fans-text {
    font-size: 12px;
    color: #fefefe;
}

/* 覆盖原来店铺蓝卡片头部为竖排，改为横排：图片 + 文案同一行 */
.store-banner-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

/* 图片指示器 */
.image-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    z-index: 10;
}

/* 左右箭头按钮 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    user-select: none;
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-arrow-left {
    left: 10px;
}

.slider-arrow-right {
    right: 10px;
}

/* 轮播图片通用样式 */
.slide-image {
    width: 100%;
    display: block;
    min-height: 300px; /* 确保有最小高度 */
    object-fit: contain; /* 确保图片完整显示 */
}

/* 横幅基础样式保持不变 */
.coupon-reminder-banner {
    position: fixed;
    bottom: 63.5px;
    left: 0;
    right: 0;
    background-color: #fdeff1;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    z-index: 999;
    /* box-shadow: 0 -2px 8px rgba(0,0,0,0.1); */
    border-top: 1px solid #fdeff1;
    font-family: "Microsoft YaHei"; /* 全部字体统一为微软雅黑 */
}

.coupon-reminder-icon {
    flex-shrink: 0;
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.coupon-reminder-content {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.coupon-reminder-text {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    white-space: nowrap;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-family: "Microsoft YaHei"; /* 确保文本为微软雅黑 */
}

.coupon-amount {
    color: #d37c19;
    font-family: "Microsoft YaHei"; /* 金额字体 */
}

/* 倒计时容器 */
.coupon-reminder-countdown {
    display: flex;
    align-items: center;
    gap: 1px;          /* 数字框之间间距更紧凑 */
    margin-left: 1px;  /* 紧贴文字 */
    font-family: "Microsoft YaHei"; /* 倒计时字体 */
}

/* 倒计时数字框 */
.coupon-reminder-countdown .time-box {
    font-family: "Microsoft YaHei"; /* 微软雅黑 */
    font-weight: normal;             /* 和 1700.00 元一致 */
    font-size: 13px;                 /* 与文字一致 */
    line-height: 1.4;                /* 视觉上和文本对齐 */
    padding: 0 2px;                  /* 边距尽量小 */
    min-width: 18px;
    text-align: center;
    background: linear-gradient(90deg, #eed2ac, #eed2ac); /* 金橙色 */
    color: #d37c19;
    border-radius: 4px;
}

/* 冒号样式 */
.coupon-reminder-countdown .time-sep {
    font-family: "Microsoft YaHei";
    font-weight: normal;             /* 不加粗 */
    font-size: 13px;
    color: #d4a574;
    line-height: 1.4;                /* 和数字一致 */
}

/* 关闭按钮 */
.coupon-reminder-close {
    background: none;        /* 去掉背景 */
    border: none;            /* 去掉边框 */
    font-size: 20px;         /* 字号保持 */
    font-weight: normal;     /* 不加粗 */
    color: #d4a574;          /* 金橙色 */
    cursor: pointer;
    padding: 0;              /* 去掉内边距 */
    line-height: 1;          /* 紧贴文字 */
    margin-left: 8px;
    flex-shrink: 0;
    display: inline-block;   /* 去掉 flex 布局产生的“框”感 */
    font-family: "Microsoft YaHei"; /* 关闭按钮字体 */
    transition: opacity 0.2s; /* 点击反馈 */
}

.coupon-reminder-close:active {
    opacity: 0.6;            /* 点击时透明度变化 */
}