/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* 轮播图样式 */
.carousel-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 21/9; /* 添加默认宽高比 */
    max-height: 180px; /* 移动端限制最大高度 */
    transition: max-height 0.3s ease; /* 添加高度过渡效果 */
}

.carousel-container.images-loaded {
    /* 图片加载完成后应用的样式 */
    opacity: 1;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: auto;
    touch-action: pan-x; /* 支持触摸滑动 */
}

.carousel-item {
    min-width: 100%;
    position: relative;
    display: none;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* 移除文字说明样式 */
/* .carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px;
    text-align: center;
}

.carousel-caption h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
} */

/* 添加左右箭头样式 */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    /* 默认在移动端隐藏左右箭头 */
    display: none;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* 导航箭头字符样式 */
.nav-arrow {
    font-size: 20px;
    font-weight: bold;
    color: #ff4d4f;
    line-height: 1;
}

.carousel-dots {
    text-align: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.dot {
    height: 8px;
    width: 8px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: white;
}

/* 四个方格服务区 - 按照截图样式修改 */
.service-grid {
    display: flex;
    flex-wrap: nowrap; /* 禁止换行，确保在一行显示 */
    justify-content: space-between;
    background-color: white;
    border-radius: 12px;
    padding: 15px 10px;
    margin-bottom: 20px;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    overflow-x: auto; /* 允许在小屏幕上横向滚动 */
    -webkit-overflow-scrolling: touch; /* 提供iOS上的平滑滚动 */
    scrollbar-width: none; /* Firefox */
}

/* 隐藏Chrome和Safari的滚动条 */
.service-grid::-webkit-scrollbar {
    display: none;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 5px;
    background-color: transparent;
    border: none;
    box-shadow: none;
    flex: 0 0 25%; /* 固定宽度25%，不伸缩 */
    transition: all 0.3s ease; /* 平滑过渡所有属性 */
    text-align: center;
    cursor: pointer; /* 添加指针样式表明可点击 */
}

.service-item:hover {
    transform: translateY(-3px); /* 悬停时向上移动 */
}

.service-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #f0f7ff; /* 更浅的背景色 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* 添加轻微阴影 */
}

.service-icon-img {
    width: 24px; /* 设置图标图片的宽度 */
    height: 24px; /* 设置图标图片的高度 */
    object-fit: contain; /* 确保图片完整显示 */
}

.service-icon.blue {
    background-color: #e3f2fd;
}

.service-icon.green {
    background-color: #e8f5e9;
}

.service-icon.orange {
    background-color: #fff3e0;
}

.service-icon.red {
    background-color: #ffebee;
}

.service-text h3 {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    margin-top: 5px; /* 添加上边距使其与图标分隔更明显 */
    white-space: nowrap; /* 防止文本换行 */
}

.service-text p {
    font-size: 0.75rem;
    color: #666;
    margin-top: 2px;
    display: block; /* 显示描述文字 */
}

/* 分类标签页样式 */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-direction: row;
    background-color: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-tab {
    background-color: #f8f9fb;
    border-radius: 8px;
    padding: 15px;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: start;
    box-shadow: none;
}

.category-tab.active {
    background-color: #4285f4;
    color: white;
}

.category-tab h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.category-tab p {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* 添加背景图标 */
.category-tab[data-category="professional"]::after {
    content: "✓";
    position: absolute;
    bottom: 0;
    right: 10px;
    font-size: 2.5rem;
    opacity: 0.1;
    color: inherit;
}

.category-tab[data-category="donation"]::after {
    content: "♥";
    position: absolute;
    bottom: 0;
    right: 10px;
    font-size: 2.5rem;
    opacity: 0.1;
    color: inherit;
}

/* 排序选项 */
.sort-options {
    display: flex;
    background-color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sort-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #666;
}

.sort-btn:not(:last-child) {
    border-right: 1px solid #eee;
}

.sort-btn.active {
    background-color: #f5f7fa;
    color: #4285f4;
    font-weight: 600;
}

.sort-btn:hover {
    background-color: #f5f7fa;
}

/* 商品列表 */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

/* 新的商品卡片样式 */
.product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    padding: 15px;
    position: relative; /* 添加相对定位以支持活动标签 */
}

.product-card-inner {
    display: flex;
    flex-direction: row;
}

.product-left {
    flex: 0 0 120px;
    margin-right: 12px;
    height: 120px;
    position: relative;
}

.product-left img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

.product-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-right h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.product-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.tag-auto, .tag-stock, .tag-sto {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 5px;
}

.tag-auto {
    background-color: #FFF3E0;
    color: #FF9800;
}

.tag-sto {
    background-color: #ffe8e6;
    color: #ff4d4f;
}

.tag-stock {
    background-color: #e6f7ff;
    color: #1890ff;
}

/* 底部价格区域 */
.product-price-action {
    margin-top: auto;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

/* 底部价格和按钮区域 - 重新设计为底部条形区域 */
.bottom-action {
    margin-top: 15px;
    background-color: #fff2f0;
    border-radius: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    width: 100%;
    position: relative; /* 为倒计时徽章提供定位上下文 */
    padding-top: 15px; /* 增加顶部内边距为倒计时徽章留出空间 */
}

/* 价格和礼品信息容器 */
.price-gift-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0; /* 防止flex子项溢出 */
}

.product-price {
    font-size: 1rem;
    color: #ff4d4f;
    font-weight: 600;
    margin-bottom: 4px;
}

/* 赠品信息样式 - 调整为底部区域内使用 */
.gift-info {
    margin-top: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
}

.gift-image {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 6px;
    border: 1px solid #d9d9d9;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.gift-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 0.75rem;
    line-height: 1.2;
    color: #52c41a;
}

.gift-value {
    color: #ff4d50;
    font-weight: bold;
    margin-top: 0;
    margin-left: 3px;
    font-size: 0.75rem;
}

.buy-now-btn {
    background-color: #ff4d4f;
    color: white;
    border: none;
    padding: 7px 12px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(255, 77, 79, 0.25);
}

.arrow-icon {
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    padding: 2px;
}

.buy-now-btn:hover {
    background-color: #ff7875;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 20px 0;
    color: #888;
    font-size: 0.8rem;
    border-top: 1px solid #eee;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .carousel-container {
        max-width: 100%; /* 电脑端自适应宽度 */
        max-height: 300px; /* 平板/桌面端限制最大高度 */
    }
    
    .carousel {
        height: auto; /* 高度自适应 */
    }

    .carousel-item img {
        height: auto; /* 图片高度自适应 */
        max-height: 300px; /* 限制最大高度 */
    }

    .service-grid {
        max-width: 800px; /* 增加最大宽度 */
        margin-left: auto;
        margin-right: auto;
        padding: 20px;
        overflow-x: visible; /* 电脑端不需要滚动 */
        justify-content: center; /* 中央对齐 */
        gap: 20px; /* 添加间距 */
    }

    .service-item {
        padding: 15px;
        flex: 0 0 auto; /* 不固定宽度，自适应内容 */
        min-width: 120px; /* 设置最小宽度 */
        max-width: 150px; /* 设置最大宽度 */
        border-radius: 8px; /* 添加圆角 */
        transition: all 0.3s ease;
    }
    
    .service-item:hover {
        transform: translateY(-5px); /* 悬停时向上移动更多 */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* 悬停时添加阴影 */
        background-color: #f9f9f9; /* 悬停时背景色变化 */
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
        transition: all 0.3s ease;
    }
    
    .service-icon-img {
        width: 30px; /* 大屏幕上更大的图标 */
        height: 30px;
    }
    
    .service-item:hover .service-icon {
        transform: scale(1.1); /* 悬停时图标放大 */
    }
    
    .service-text h3 {
        font-size: 1.1rem;
        margin-top: 10px;
    }
    
    .service-text p {
        display: block;
        font-size: 0.85rem;
        margin-top: 5px;
        white-space: normal; /* 允许文本换行 */
    }

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

    /* 在平板和桌面端显示左右箭头 */
    .carousel-prev,
    .carousel-next {
        display: flex;
    }
    
    /* 导航箭头在大屏幕上稍微大一点 */
    .nav-arrow {
        font-size: 24px;
    }
}

@media (min-width: 1024px) {
    .product-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .carousel-item img {
        max-height: 400px; /* 大屏幕上的最大高度 */
    }
    
    /* 移除固定高度设置 */
    .carousel {
        height: auto;
    }

    /* 移除固定高度设置 */
    .carousel-item img {
        height: auto;
    }

    .carousel-container {
        max-height: 400px; /* 大屏幕上的最大高度 */
    }

    .service-grid {
        max-width: 1000px; /* 大屏幕设备增加宽度 */
        padding: 25px;
        gap: 30px; /* 增加间距 */
    }

    .service-item {
        min-width: 150px; /* 增加大屏幕下的最小宽度 */
        max-width: 180px; /* 增加大屏幕下的最大宽度 */
    }

    .service-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .service-text h3 {
        font-size: 1.2rem;
    }

    .service-text p {
        font-size: 0.9rem;
    }
    
    /* 导航箭头在更大屏幕上更大一点 */
    .nav-arrow {
        font-size: 28px;
    }
}

/* 客服弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.modal-container {
    background-color: white;
    width: 90%;
    max-width: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal-close {
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.qrcode-container {
    margin: 10px auto;
    width: 200px;
    height: 200px;
}

.qrcode-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qrcode-tip {
    margin-top: 15px;
    font-weight: 600;
    color: #333;
}

.service-time {
    margin-top: 5px;
    color: #666;
    font-size: 0.9rem;
}

/* 客服弹窗按钮样式 */
.customer-service-btns {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.cs-btn {
    padding: 8px 25px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(24, 144, 255, 0.25);
}

.cs-btn:hover {
    background-color: #40a9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(24, 144, 255, 0.35);
}

/* 商品购买弹窗样式 */
.iframe-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.iframe-modal-container {
    background-color: white;
    width: 95%;
    max-width: 900px;
    height: 85vh;
    max-height: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s;
}

.iframe-modal-overlay.active .iframe-modal-container {
    transform: scale(1);
}

.iframe-modal-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.iframe-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.iframe-modal-close {
    border: none;
    background: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.iframe-modal-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 0;
    display: flex;
}

/* iframe加载容器样式 */
.iframe-result-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #fff;
    overflow: hidden;
}

.result-frame {
    width: 100%;
    height: calc(100% + 50px); /* 高度增加50px，用于隐藏头部导航 */
    border: none;
    background-color: #fff;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: -50px; /* 向上偏移50px，正好隐藏头部导航栏 */
    left: 0;
}

.result-frame.loaded {
    opacity: 1;
}

/* 加载效果样式 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff4d4f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 1rem;
    color: #333;
    text-align: center;
    max-width: 80%;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 移动设备优化 */
@media (max-width: 768px) {
    .iframe-modal-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-height: none;
    }
    
    .iframe-modal-header {
        padding: 10px 15px;
    }
    
    .iframe-modal-header h3 {
        font-size: 1rem;
    }
}

/* 为小屏幕设备专门调整标签页样式 */
@media (max-width: 480px) {
    .service-grid {
        padding: 15px 10px;
        justify-content: space-between; /* 确保在小屏幕上均匀分布 */
    }
    
    .service-item {
        padding: 5px 2px;
        flex: 0 0 25%; /* 确保每个项目占25%空间 */
        /* 移除min-width和max-width，确保等分布局 */
    }
    
    .service-icon {
        width: 45px; /* 减小图标尺寸 */
        height: 45px;
        margin-bottom: 5px; /* 减小底部间距 */
    }
    
    .service-icon-img {
        width: 25px; /* 调整移动端图标大小 */
        height: 25px;
    }
    
    .service-text h3 {
        font-size: 0.75rem; /* 减小字体 */
        margin-top: 3px;
        white-space: nowrap; /* 确保不换行 */
    }
    
    .service-text p {
        font-size: 0.65rem; /* 更小的描述文字 */
        line-height: 1.2;
        margin-top: 1px; /* 减小间距 */
    }
    
    .category-tab h2 {
        font-size: 1rem;
    }
    
    .category-tab p {
        font-size: 0.75rem;
    }
    
    .category-tab {
        padding: 5px 20px;
    }

    /* 删除旧的倒计时容器移动端样式 */
    
    .countdown-badge {
        right: 70px;
        top: -12px;
        min-width: 120px;
        height: 22px;
        font-size: 0.75rem;
        padding: 2px 8px 4px 8px;
    }
    
    .countdown-prefix {
        font-size: 0.7rem;
    }
    
    .bottom-action {
        padding-top: 13px;
        flex-wrap: wrap;
    }
    
    .price-gift-container {
        margin-bottom: 0px;
        width: 100%;
    }
    
    .gift-text {
        font-size: 0.7rem;
    }
    
    .gift-value {
        font-size: 0.75rem;
    }
    
    .gift-image {
        width: 22px;
        height: 22px;
        margin-right: 0px;
    }
}

/* 基础样式 - 适用于移动设备 */
.top-section {
    display: block; /* 默认是垂直布局 */
}

/* 中等屏幕样式 */
@media (min-width: 768px) and (max-width: 991px) {
    .top-section {
        display: block; /* 确保中等屏幕仍然是垂直布局 */
    }
    
    .carousel-container {
        margin-bottom: 20px; /* 确保轮播图和服务区之间有足够间距 */
    }
}

/* 电脑端样式覆盖 */
@media (min-width: 992px) {
    .container {
        max-width: 1200px;
        padding: 15px;
    }

    /* 创建大屏幕的顶部区域容器 */
    .top-section {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 30px;
        align-items: flex-start; /* 确保顶部对齐 */
    }

    /* 调整轮播图在大屏幕上的尺寸和样式 */
    .carousel-container {
        flex: 0 0 65%; /* 占据行宽的65% */
        max-width: 65%;
        max-height: 360px;
        margin: 0;
        border-radius: 12px;
        overflow: hidden;
    }

    .carousel-item img {
        border-radius: 12px;
        object-fit: cover;
        width: 100%;
        max-height: 360px;
    }

    /* 调整服务区在大屏幕上的样式 */
    .service-grid {
        flex: 0 0 32%; /* 占据行宽的32% */
        max-width: 32%;
        flex-direction: column;
        height: auto; /* 改为自适应高度 */
        padding: 12px 10px;
        margin: 0;
        overflow-y: visible; /* 改为可见溢出 */
        overflow-x: hidden;
        border-radius: 12px;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-wrap: wrap;
    }

    .service-item {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        padding: 8px;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.3s ease;
        border-radius: 6px;
        margin-bottom: 5px;
    }

    .service-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .service-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0;
        margin-right: 10px;
        transition: all 0.3s ease;
    }
    
    .service-icon-img {
        width: 16px; /* 调整大屏幕垂直布局的图标大小 */
        height: 16px;
    }

    .service-text {
        flex: 1;
    }

    .service-text h3 {
        font-size: 0.9rem;
        font-weight: 500;
        margin-top: 0;
        white-space: normal;
        transition: color 0.3s ease;
    }

    .service-text p {
        font-size: 0.7rem;
        display: block;
        margin-top: 2px;
        color: #666;
        line-height: 1.2;
    }

    /* 服务项悬停效果 */
    .service-item:hover {
        transform: translateX(5px);
        background-color: #f9f9f9;
    }
    
    .service-item:hover .service-icon {
        transform: scale(1.1);
    }
    
    .service-item:hover .service-text h3 {
        color: #4285f4; /* 悬停时文字变色 */
    }
}

/* 大屏幕样式 - 超过1200px的设备 */
@media (min-width: 1200px) {
    .container {
        max-width: 1300px;
    }
    
    .top-section {
        gap: 25px;
    }
    
    /* 调整大屏幕下的比例 */
    .carousel-container {
        flex: 0 0 70%;
        max-width: 70%;
        max-height: 380px;
    }
    
    .service-grid {
        flex: 0 0 28%;
        max-width: 28%;
        padding: 12px;
    }
    
    .carousel-item img {
        max-height: 380px;
    }
    
    .service-item {
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .service-icon-img {
        width: 18px; /* 调整超大屏幕的图标大小 */
        height: 18px;
    }
    
    .service-text h3 {
        font-size: 0.95rem;
    }
    
    .service-text p {
        font-size: 0.75rem;
        margin-top: 3px;
    }
}

/* 添加所有响应式布局的过渡效果 */
.top-section,
.carousel-container,
.service-grid,
.service-item,
.service-icon,
.service-text,
.service-text h3,
.service-text p {
    transition: all 0.3s ease-in-out;
}

/* 活动商品相关样式 */
.activity-badge {
    position: absolute;
    top: 0px;
    left: 0px;
    background: linear-gradient(135deg, #ff4d4f, #ff7875);
    color: white;
    padding: 4px 12px;
    border-radius: 10px 0px 15px 0px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(255, 77, 79, 0.4);
    z-index: 10;
    animation: pulse 1.5s infinite;
    transform-origin: center center;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(255, 77, 79, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(255, 77, 79, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(255, 77, 79, 0.4);
    }
}

/* 强调活动商品卡片样式 */
.product-card[data-product-id="cert360"] {
    border: 2px solid #ff4d4f;
    box-shadow: 0 5px 15px rgba(255, 77, 79, 0.1);
    transform: translateY(-3px);
    transition: all 0.3s ease;
    overflow: hidden; /* 改为hidden以确保内容不溢出 */
    padding-top: 15px; /* 减少顶部填充 */
}

.product-card[data-product-id="cert360"]:hover {
    box-shadow: 0 8px 20px rgba(255, 77, 79, 0.15);
    transform: translateY(-5px);
}

.product-card[data-product-id="cert360"] .product-right h3 {
    margin-top: 5px; /* 为标题增加一些顶部边距，避免与活动标签重叠 */
}

.product-card[data-product-id="cert360"] .bottom-action {
    background-color: #ffebe6; /* 稍微深一点的背景色 */
    border: 0px solid #ffccc7; /* 添加边框 */
    border-radius: 5px; /* 减小圆角 */
    position: relative;
    border: 1px solid #ffccc7;
}

/* 添加活动商品价格区域的装饰边框 */
.product-card[data-product-id="cert360"] .bottom-action::before,
.product-card[data-product-id="cert360"] .bottom-action::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid #ff4d4f;
    border-radius: 2px;
    z-index: 1;
}

/* 左上角装饰 */
.product-card[data-product-id="cert360"] .bottom-action::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

/* 右下角装饰 */
.product-card[data-product-id="cert360"] .bottom-action::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.product-card[data-product-id="cert360"] .buy-now-btn {
    background-color: #ff4d4f;
    font-weight: bold;
    padding: 8px 14px; /* 稍微大一点的按钮 */
    box-shadow: 0 3px 8px rgba(255, 77, 79, 0.3);
}

/* 赠品标签样式 */
.gift-label {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background-color: #52c41a;
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(82, 196, 26, 0.4);
    z-index: 5;
}

/* 倒计时徽章样式 - 按照截图设计 */
.countdown-badge {
    position: absolute;
    top: -18px;
    right: 10px;
    background: url(https://preview.cloud.189.cn/image/imageAction?param=6C0373E8799B32DBA378F40D449B5F94D15956D61B9EC455B971B3C215588A2DB22D0DFE9A6A88C46D1421E7E60FF7C26E880BCCF41EEA81FF921E7A4B60D7A80300406774A32194A24A48E1D65973E08635B50AD21B77EFC8785AA5EA208344475978546F5421C2F45E6A04E9C3B028) no-repeat center / 100% 100%;
    color: white;
    font-weight: bold;
    font-size: 0.75rem; /* 减小字体大小 */
    padding: 3px 10px 1px 8px;
    min-width: 140px;
    height: 30px;
    line-height: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.countdown-prefix {
    font-size: 0.7rem; /* 减小前缀字体大小 */
    margin-right: 2px;
}

#activity-countdown {
    font-family: 'Arial', sans-serif;
    font-weight: normal;
    letter-spacing: -0.5px; /* 稍微减少字符间距使毫秒部分看起来更紧凑 */
    font-size: 0.75rem; /* 设置字体大小 */
}

/* 代理中心弹窗样式 */
.agent-info {
    text-align: center;
    padding: 10px 0;
}

.agent-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 2px solid #ffebee;
    padding: 5px;
    background-color: white;
}

.agent-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.agent-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
    font-size: 0.95rem;
}

.agent-contact {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.agent-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: none;
    background-color: #ff4d4f;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.agent-btn:hover {
    background-color: #ff7875;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 77, 79, 0.2);
}

.agent-btn-secondary {
    background-color: #f5f5f5;
    color: #666;
}

.agent-btn-secondary:hover {
    background-color: #e8e8e8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
} 