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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

.poster-container {
    width: 100vw;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
}

/* 宣传背景图 */
.background-image {
    width: 100%;
    height: 70vh;
    background-image: linear-gradient(to right, rgba(106, 17, 203, 0.2), rgba(37, 117, 252, 0.2)), url('');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.background-image::before {
    content: "";
    color: white;
    font-size: 48px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: pulse 2s infinite;
}

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

/* 产品卡片 */
.product-card {
    width: 85%;
    max-width: 400px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-top: -125px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 10;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.product-name {
    font-size: 24px;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}

.product-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
}

/* 购买区域 */
.purchase-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
	flex-direction: column;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: #f8f8f8;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

#quantity {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 18px;
    outline: none;
}

.buy-button {
    padding: 12px 30px;
    background: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(106, 17, 203, 0.4);
}

.buy-button:active {
    transform: translateY(0);
}

/* 协议部分 */
.agreement-section {
    width: 85%;
    max-width: 400px;
    margin-top: 15px;
    /*padding: 0 15px;*/
}

.agreement-label {
    display: block;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    position: relative;
    padding-left: 28px;
    line-height: 24px;
    white-space: nowrap;
}

#agreement-checkbox {
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.agreement-link {
    color: #2575fc;
    text-decoration: none;
}

.agreement-link:hover {
    text-decoration: underline;
}

/* 模态弹窗样式 */
.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 cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-content {
    width: 90%;
    max-width: 500px;
    max-height: 66.67vh;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* 加载指示器 */
.modal-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 10;
}

.modal-loader.active {
    display: block;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2575fc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: #e9ecef;
    color: #666;
}

.modal-body {
    flex: 1;
    overflow: hidden;
    min-height: 400px;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 12px 16px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-body {
        min-height: 300px;
    }
}        gap: 20px;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .buy-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .background-image {
        height: 70vh;
    }
    
    .background-image::before {
        font-size: 28px;
    }
    
    .product-card {
        margin-top: -50px;
        padding: 15px;
        width: 90%;
    }
    
    .product-name {
        font-size: 20px;
    }
    
    .product-description {
        font-size: 13px;
    }
    
    .agreement-section {
        width: 90%;
        margin-top: 10px;
    }
    
    /* 移动设备上的卡券悬浮按钮样式 */
    .coupon-button-container {
        top: 15px;
        right: 15px;
    }
    
    .coupon-button {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .coupon-icon {
        width: 14px;
        height: 14px;
    }
}

/* 错误提示框样式 */
.error-toast {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #5b5858;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 80%;
}

.error-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.error-icon {
    flex-shrink: 0;
}

.error-message {
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

/* 卡券按钮样式 - 右上角悬浮 */
.coupon-button-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.coupon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3373c8 0%, #3d55d6  100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    white-space: nowrap;
}

.coupon-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.45);
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #45a049 0%, #7cb342 100%);
}

.coupon-button:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.coupon-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.coupon-button:hover .coupon-icon {
    transform: rotate(15deg) scale(1.2);
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    .coupon-button {
        max-width: 180px;
        font-size: 13px;
        padding: 9px 18px;
    }
}

@media (max-width: 480px) {
    .coupon-button-container {
        /* 移除可能干扰固定定位的margin */
    }
    
    .coupon-button {
        max-width: 100%;
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .coupon-icon {
        width: 14px;
        height: 14px;
    }
}

.detail{
	color:#2575fc;
	margin-left:30px;
}