/* 萌谷子样式表 - v1.0.23 */
/* 基础样式 - 禁止缩放 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overscroll-behavior: none;
}

:root {
    --primary-color: #0d7e0d;
    --secondary-color: #0d7e0d;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    background-color: #f5f7ff;
    color: var(--dark-color);
    line-height: 1.6;
    padding-bottom: 80px; /* 为底部按钮留出空间 */
    min-height: 100vh;
    position: relative;
}
/* 背景纹理效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(115, 179, 141, 0.3) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(156, 197, 161, 0.3) 0%, transparent 20%),
        linear-gradient(45deg, transparent 49%, rgba(115, 179, 141, 0.2) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(156, 197, 161, 0.2) 50%, transparent 51%);
    background-size: 400px 400px, 400px 400px, 100px 100px, 100px 100px;
    background-position: 0 0, 0 0, 0 0, 0 0;
    z-index: -1;
    pointer-events: none;
    animation: subtleMove 30s infinite ease-in-out;
}

@keyframes subtleMove {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 400px 400px, -400px -400px, 100px 100px, -100px -100px;
    }
}



/* 为卡片元素添加微妙的纹理 */
.series-item, .gift-results, .summary-card, .modal-content {
    position: relative;
    overflow: hidden;
}

.series-item::before,
.gift-results::before,
.summary-card::before,
.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

/* 确保内容在纹理之上 */
.series-header, .series-content, .gift-results > *, .summary-card > *, .modal-header, .modal-body {
    position: relative;
    z-index: 1;
}

/* 为产品卡片添加更细微的纹理 */
.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    z-index: 0;
    opacity: 0;
    transition: var(--transition);
    border-radius: 10px;
    pointer-events: none;
}

.product-item:hover::before {
    opacity: 0.6;
}

.product-item:hover::before {
    opacity: 0.6;
}

/* 底部汇总区域纹理 */
.footer-summary .summary-card::before {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
}

/* 响应式调整 */
@media (max-width: 576px) {
    body::before {
        background-size: 300px 300px, 300px 300px, 80px 80px, 80px 80px;
        animation: subtleMove 40s infinite linear;
    }
    
    @keyframes subtleMove {
        0% {
            background-position: 0 0, 0 0, 0 0, 0 0;
        }
        100% {
            background-position: 300px 300px, -300px -300px, 80px 80px, -80px -80px;
        }
    }
}
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px;
    position: relative;
}

/* 头部样式 */
.header { 
    background: linear-gradient(135deg, #73B38D 0%, #9CC5A1 100%);
    color: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    flex-shrink: 0;
}

.logo-container h1 {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.version {
    display: block;
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 2px;
}

/* 规则浮窗按钮 */
.rules-float-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgb(207 101 101 / 20%);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(93, 106, 251, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: var(--transition);
    flex-direction: column;
    padding: 0;
}

.rules-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(93, 106, 251, 0.5);
}

.rules-float-btn i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.rules-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4757;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 满赠规则弹窗 */
.rules-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    margin: 0;
}

.modal-header i {
    margin-right: 10px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 0px;
    height: 0px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 2rem;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(0deg);
}
.modal-body {
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
}

.rules-content {
    padding: 20px;
}

.rule-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

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

.rule-series {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.rule-series i {
    margin-right: 10px;
}

.rule-desc {
    background-color: #f8f9ff;
    padding: 15px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.rule-desc p {
    margin-bottom: 8px;
}

.rule-desc p:last-child {
    margin-bottom: 0;
}

/* 商品系列样式 */
.series-list {
    margin-bottom: 20px;
}

.series-item {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.series-header {
    background-color: #f0f2ff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #eaeaea;
    transition: var(--transition);
}

.series-header.active {
    background-color: #e6e9ff;
}

.series-header:hover {
    background-color: #e6e9ff;
}

.series-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--secondary-color);
}

.series-title i {
    margin-right: 10px;
    transition: var(--transition);
}

.series-header.active .series-title i.fa-chevron-right {
    transform: rotate(90deg);
}

.series-total {
    font-size: 1.1rem;
    font-weight: 600;
}

.series-amount {
    color: var(--primary-color);
}

.series-count {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-left: 5px;
}

.series-content {
    padding: 15px;
    display: none;
}

.series-content.active {
    display: block;
}

/* 商品网格样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.product-item {
    background-color: #f9faff;
    border-radius: 10px;
    padding: 15px;
    transition: var(--transition);
    border: 1px solid #e6e9ff;
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-image:hover img {
    transform: scale(1.05);
}

.placeholder-icon {
    font-size: 3rem;
    color: #adb5bd;
}

.product-info {
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1rem;
    color: var(--dark-color);
    line-height: 1.3;
    min-height: 2.6em;
}

.product-code {
    color: var(--gray-color);
    font-size: 0.8rem;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

.product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* 数量控制样式 */
.quantity-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.qty-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.qty-btn:hover {
    background-color: #4a59fa;
    transform: scale(1.1);
}

.qty-btn.decrease {
    background-color: #6c757d;
}

.qty-btn.decrease:hover {
    background-color: #5a6268;
}

.quantity-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: white;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* 总金额汇总区域 */
.total-summary {
    margin-bottom: 20px;
}

.summary-card {
    background: linear-gradient(135deg, #cb06b6 0%, #f34072 100%);
    border-radius: var(--border-radius);
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    box-shadow: var(--box-shadow);
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.summary-item.highlight {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 20px;
}

.summary-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.summary-label i {
    margin-right: 8px;
    font-size: 1rem;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: 700;
}

/* 满赠结果样式 */
.gift-results {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 5px 10px 5px 10px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px; /* 根据底部汇总区域高度调整 */
}

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

.section-header h3 {
    color: var(--secondary-color);
    margin: 0;
    display: flex;
    align-items: center;
}

.section-header h3 i {
    margin-right: 10px;
}

.refresh-btn {
    background-color: #f0f2ff;
    color: var(--secondary-color);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.refresh-btn:hover {
    background-color: #e6e9ff;
}

.refresh-btn i {
    margin-right: 5px;
}

.gift-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gift-item {
    background-color: #f8f9ff;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--primary-color);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.gift-name {
    font-weight: 600;
    color: var(--dark-color);
}

.gift-quantity {
    background-color: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.no-gifts {
    text-align: center;
    color: var(--gray-color);
    padding: 30px 20px;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.no-gifts i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #dee2e6;
    display: block;
}

/* 图片查看器样式 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

#enlargedImage {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-viewer {
    position: absolute;
    top: -40px;
    right: 0;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-viewer:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 底部按钮样式 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.btn {
    padding: 14px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.btn i {
    margin-right: 8px;
}

.btn-reset {
    background-color: #f8f9fa;
    color: var(--gray-color);
    border: 2px solid #dee2e6;
}

.btn-reset:hover {
    background-color: #e9ecef;
}

.btn-calc {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-calc:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 123, 172, 0.3);
}

/* 响应式调整 */
@media (max-width: 576px) {
    .header {
        padding: 12px 15px;
    }
    
    .logo-container h1 {
        font-size: 1.2rem;
    }
    
    .product-grid {
        gap: 12px;
    }
    
    .product-item {
        padding: 12px;
    }
    
    .product-image {
        height: 120px;
    }
    
    .summary-value {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 12px 16px;
        min-width: 120px;
        font-size: 0.9rem;
    }
    
    .rules-float-btn {
        width: 50px;
        height: 50px;
        bottom: 200px;
        right: 15px;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer {
        padding: 20px 30px;
    }
}
/* 添加缺失的样式 */
.gift-series-title {
    font-weight: 600;
    color: var(--secondary-color);
    margin: 15px 0 8px 0;
    padding-bottom: 5px;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
}

.gift-series-title i {
    margin-right: 8px;
}

.toast-message {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 2000;
    font-size: 0.9rem;
    animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
    0% { opacity: 0; bottom: 80px; }
    10% { opacity: 1; bottom: 100px; }
    90% { opacity: 1; bottom: 100px; }
    100% { opacity: 0; bottom: 120px; }
}

/* 确保规则弹窗在最上层 */
.rules-modal {
    z-index: 1000;
}

/* 确保浮窗按钮不会被遮挡 */
.rules-float-btn {
    z-index: 900;
}
// CSS样式更新 - 在现有CSS文件中添加
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-image img.placeholder {
    object-fit: contain;
    padding: 20px;
}

.product-image img:hover {
    transform: scale(1.05);
}

.product-image:hover img {
    transform: scale(1.05);
}
/* 小型重置按钮 */
.btn-reset-small {
    background-color: #f0f2ff;
    color: var(--secondary-color);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.btn-reset-small:hover {
    background-color: #e6e9ff;
    transform: translateY(-2px);
}

.btn-reset-small i {
    margin-right: 5px;
}
/* 底部汇总金额区域 */
.footer-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 15px 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.footer-summary .summary-card {
    background: linear-gradient(135deg, #49A078 0%, #73B38D 100%);
    border-radius: var(--border-radius);
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    box-shadow: var(--box-shadow);
}

.footer-summary .summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.footer-summary .summary-item.highlight {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 20px;
}

.footer-summary .summary-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    opacity: 0.9;
    justify-content: center; /* 添加居中 */
}

.footer-summary .summary-label i {
    /* 如果完全移除图标，可以删除这个样式或设置为不显示 */
    display: none; /* 添加这行确保图标不显示 */
}

.footer-summary .summary-value {
    font-size: 1.6rem;
    font-weight: 700;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .footer-summary {
        padding: 12px 15px;
    }
    
    .footer-summary .summary-card {
        padding: 12px;
    }
    
    .footer-summary .summary-value {
        font-size: 1.3rem;
    }
}

@media (min-width: 768px) {
    .footer-summary {
        padding: 20px 30px;
    }
    
    .footer-summary .summary-value {
        font-size: 1.8rem;
    }
}
/* 系列头部样式 */
.gift-series-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(93, 106, 251, 0.1), rgba(255, 123, 172, 0.1));
    padding: 12px 15px;
    margin: 15px 0 10px 0;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.gift-series-header:first-child {
    margin-top: 0;
}

.series-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.series-info i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.series-name {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
}

.series-total-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.series-count {
    color: var(--gray-color);
    font-size: 0.9rem;
    background: rgba(220, 225, 222, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
}

.series-amount {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    background: rgba(220, 225, 222, 0.5);
    padding: 4px 8px;
    border-radius: 6px;
    min-width: 80px;
    text-align: center;
}

/* 赠品容器 */
.gifts-container {
    margin-bottom: 15px;
}

/* 赠品项样式调整 */
.gift-item {
    background-color: #f8f9ff;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--primary-color);
    animation: slideIn 0.3s ease;
}

.gift-name {
    font-weight: 600;
    color: var(--dark-color);
}

.gift-quantity {
    background-color: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
/* 系列内容区域动画 */
.series-content {
    padding: 15px;
    display: none;
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 0;
}

.series-content.active {
    display: block;
    max-height: 5000px; /* 足够大的值确保内容完全展开 */
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 5000px;
    }
}

/* 系列标题的箭头动画 */
.series-title i.fa-chevron-right {
    transition: transform 0.3s ease;
}

.series-header.active .series-title i.fa-chevron-right {
    transform: rotate(90deg);
}

/* 系列标题的悬停效果 */
.series-header {
    position: relative;
    transition: all 0.2s ease;
}

.series-header:hover {
    background-color: #e6e9ff !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* 在现有CSS中添加以下样式 */

/* 赠品图片容器 */
.gift-images-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9ff;
    border-radius: 8px;
}

.gift-image-item {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e6e9ff;
}

.gift-image-item:hover {
    transform: scale(1.05);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gift-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f5f5f5;
}

.gift-image-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.7rem;
    padding: 2px 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gift-image-item:hover .gift-image-name {
    opacity: 1;
}

/* 规则项中的图片区域 */
.rule-gift-images {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

/* 无图片时的占位样式 */
.no-gift-images {
    text-align: center;
    color: var(--gray-color);
    font-style: italic;
    font-size: 0.9rem;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 6px;
    margin-top: 10px;
}

/* 赠品图片加载失败样式 */
.gift-image.failed {
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-image.failed::after {
    content: "图片加载失败";
    color: #6c757d;
    font-size: 0.7rem;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .gift-image-item {
        width: 50px;
        height: 50px;
    }
    
    .gift-images-container {
        gap: 8px;
    }
}
/* 图片查看器手势相关样式 */
#enlargedImage {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: move; /* 拖拽时显示手型 */
    user-select: none; /* 防止文本选中 */
    touch-action: none; /* 禁用浏览器默认触摸行为 */
    transform-origin: center center; /* 缩放中心点 */
    transition: transform 0.1s ease; /* 平滑过渡 */
}

/* 缩放提示 */
.image-viewer::after {
  /*   content: "双指捏合缩放 • 双击恢复";*/
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-viewer.active::after {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .image-viewer::after {
        font-size: 0.8rem;
        padding: 6px 12px;
        bottom: 15px;
    }
}
/* 满赠结果区域样式更新 */
.gift-item {
    background-color: #f8f9ff;
    border-radius: 10px;
    padding: 12px 15px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid var(--primary-color);
    animation: slideIn 0.3s ease;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gift-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    background-color: #eef1ff;
}

.gift-image-small {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e6e9ff;
    background-color: white;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    transition: transform 0.3s ease;
}

.gift-item:hover .gift-thumbnail {
    transform: scale(1.1);
}

.gift-info {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gift-name {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
}

.gift-quantity {
    background-color: var(--primary-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-left: 10px;
    cursor: default; /* 数量区域不触发点击 */
}

.gift-quantity:hover {
    background-color: #0b6b0b;
    transform: scale(1.05);
}

/* 赠品容器调整 */
.gifts-container {
    margin-bottom: 15px;
}

/* 无赠品状态 */
.no-gifts {
    text-align: center;
    color: var(--gray-color);
    padding: 5px 5px;
    font-style: italic;
    background-color: #ffffff;
    border-radius: 10px;
}

.no-gifts i {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #dee2e6;
    display: block;
}

.no-gifts p {
    margin: 0;
    font-size: 0.7rem;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .gift-item {
        padding: 10px 12px;
        gap: 12px;
    }
    
    .gift-image-small {
        width: 45px;
        height: 45px;
    }
    
    .gift-name {
        font-size: 0.95rem;
    }
    
    .gift-quantity {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}
