@charset "utf-8";

/* ==============================================
   基础样式与全局设置
   ============================================== */

/* 容器样式 */
.oak-lipin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 按钮基础样式 */
.oak-lipin-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    font-size: 1rem;
    width: 100%;
}

/* 主要按钮样式 */
.oak-lipin-btn-primary {
    background: linear-gradient(135deg, #165DFF, #0E42D2);
    color: white;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.25);
}
/* 主要按钮点击效果 */
.oak-lipin-btn-primary:active {
    transform: translateY(0);
}

/* 禁用按钮样式 */
.oak-lipin-btn-disabled {
    background: #E5E6EB;
    color: #86909C;
    cursor: not-allowed;
    box-shadow: none;
}
/* 卡片基础样式 */
.oak-lipin-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(226, 232, 240, 0.5);
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

/* 卡片悬停效果 */
.oak-lipin-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

/* ==============================================
   消息提示样式
   ============================================== */

/* 右上角消息提示容器 */
#messageContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    z-index: 9999;
    margin-left: auto;
}

/* 消息提示框基础样式 */
.oak-lipin-alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(150%);
    animation: slideIn 0.3s ease forwards;
}

/* 消息滑入动画 */
@keyframes slideIn {
    from { transform: translateX(150%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 消息图标 */
.oak-lipin-alert-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

/* 消息内容 */
.oak-lipin-alert-content strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* 成功消息样式 */
.oak-lipin-alert-success {
    background-color: #E8FFF3;
    color: #00B42A;
}

/* 警告消息样式 */
.oak-lipin-alert-warning {
    background-color: #FFF7E8;
    color: #FF7D00;
}

/* 错误消息样式 */
.oak-lipin-alert-danger {
    background-color: #FFE8E8;
    color: #F53F3F;
}

/* 消息淡出动画 */
.oak-lipin-alert.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

/* 消息淡出动画定义 */
@keyframes fadeOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(150%); opacity: 0; }
}

/* 桌面端消息位置调整 */
@media (min-width: 768px) {
    #messageContainer {
        left: auto;
        margin-left: 0;
    }
}

/* ==============================================
   礼品卡片样式
   ============================================== */

/* 礼品卡片容器 */
.oak-lipin-gift-card {
    margin-bottom: 1.5rem;
    position: relative;
}

/* 礼品卡片图片区域 */
.oak-lipin-gift-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

/* 礼品卡片图片悬停效果 */
.oak-lipin-gift-card:hover .oak-lipin-gift-card-image img {
    transform: scale(1.03);
}

/* 礼品卡片图片 */
.oak-lipin-gift-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* 礼品卡片内容区域 */
.oak-lipin-gift-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 礼品卡片标题 */
.oak-lipin-gift-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    flex: 1;
    margin-bottom: 1rem;
    color: #1D2129;
}

/* 礼品卡片积分显示 */
.oak-lipin-gift-points {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgb(255 255 255 / 54%);
    backdrop-filter: blur(4px);
    padding: 0px 10px;
    border-radius: 9999px;
    font-weight: 600;
    color: #ff0000;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 积分图标 */
.oak-lipin-gift-points i {
    margin-right: 0.25rem;
}

/* ==============================================
   网格布局样式
   ============================================== */

/* 礼品网格布局 */
.oak-lipin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* 平板端网格布局调整 */
@media (max-width: 1024px) {
    .oak-lipin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 移动端网格布局调整 */
@media (max-width: 640px) {
    .oak-lipin-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================================
   分类筛选样式
   ============================================== */

/* 筛选容器 */
.oak-lipin-filters {
    display: flex;
    flex-wrap: wrap; /* 桌面端依然保持换行 */
    gap: 0.75rem;
    align-items: center;
    padding: 0.5rem 0; /* 增加内边距让触摸更舒适 */
}

/* 筛选按钮基础样式 */
.oak-lipin-filter-btn {
    padding: 0 15px;
    border-radius: 9999px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid #E5E6EB;
    background-color: white;
    color: #272E3B;
    cursor: pointer;
    white-space: nowrap; /* 防止按钮文字换行 */
}

/* 活跃筛选按钮样式 */
.oak-lipin-filter-btn.active {
    background-color: rgba(22, 93, 255, 0.1);
    color: #165DFF;
    border-color: rgba(22, 93, 255, 0.2);
    font-weight: 500;
}

/* 筛选按钮悬停效果 */
.oak-lipin-filter-btn:not(.active):hover {
    background-color: #F2F3F5;
}

/* 兑换历史链接按钮 */
.oak-duihuan-link {
    padding: 0 15px;
    background: linear-gradient(135deg, #165DFF, #0E42D2);
    border-radius: 9999px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    color: #ffffff;
    cursor: pointer;
    margin-left: auto;
    white-space: nowrap;
}

/* 移动端筛选样式调整 */
@media (max-width: 767px) {
    .oak-lipin-filters {
        gap: 0.75rem;
        flex-wrap: nowrap; /* 移动端不换行 */
        overflow-x: auto; /* 启用横向滚动 */
        padding-bottom: 1rem; /* 为滚动条留出空间 */
        -webkit-overflow-scrolling: touch; /* 平滑滚动效果 */
        scrollbar-width: none; /* 隐藏滚动条 */
    }
    
    /* 隐藏WebKit浏览器的滚动条 */
    .oak-lipin-filters::-webkit-scrollbar {
        display: none;
    }
    
    .oak-lipin-filter-btn {
        padding: 0 15px;
        font-size: 0.85rem;
        flex: none; /* 取消弹性分配，保持按钮固有宽度 */
        min-width: auto;
    }
    
    .oak-duihuan-link {
        margin-left: 0.75rem; /* 与其他按钮保持一致间距 */
        flex: none; /* 取消弹性分配 */
        margin-top: 0; /* 取消顶部 margin */
    }
}

/* ==============================================
   用户信息区域样式
   ============================================== */

/* 用户信息容器 */
.oak-lipin-user-info {
    display: flex;
    flex-direction: column;
    background: linear-gradient(79deg, #1e1e1e, #0E42D2);
    padding: 1.5rem;
    border-radius: 0.75rem;
    color: white;
    margin-bottom:15px;
    box-shadow: 0 6px 20px rgba(22, 93, 255, 0.2);
}

/* 桌面端用户信息布局调整 */
@media (min-width: 768px) {
    .oak-lipin-user-info {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem 2rem;
    }
}

/* 用户信息文字样式 */
.oak-lipin-user-info h2 {
    color: white;
    margin-bottom: 0.25rem;
}

.oak-lipin-user-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* 用户积分显示区域 */
.oak-lipin-user-points {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

/* 桌面端用户积分位置调整 */
@media (min-width: 768px) {
    .oak-lipin-user-points {
        margin-top: 0;
    }
}

/* 用户积分数值样式 */
.oak-lipin-user-points-value {
    font-size: 2rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

/* 用户积分图标样式 */
.oak-lipin-user-points-icon {
    font-size: 1.75rem;
    margin-right: 0.75rem;
}

/* ==============================================
   页面标题样式
   ============================================== */

/* 页面标题容器 */
.oak-lipin-page-header {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.5);
    padding-top: 20px;
    text-align: center;
}

/* 页面标题文字样式 */
.oak-lipin-page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
}

/* 页面标题描述样式 */
.oak-lipin-page-header p {
    font-size: 1.1rem;
    color: #4E5969;
    max-width: 800px;
    margin: 0 auto;
}

/* ==============================================
   无内容状态样式
   ============================================== */

/* 无礼品状态容器 */
.oak-lipin-no-gifts {
    grid-column: 1 / -1;
    padding: 4rem 2rem;
    text-align: center;
}

/* 无礼品图标样式 */
.oak-lipin-no-gifts-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #F2F3F5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.oak-lipin-no-gifts-icon i {
    font-size: 2.5rem;
    color: #C9CDD4;
}

/* 无礼品标题样式 */
.oak-lipin-no-gifts-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #272E3B;
    margin-bottom: 0.5rem;
}

/* 无礼品描述样式 */
.oak-lipin-no-gifts-text {
    color: #4E5969;
    max-width: 400px;
    margin: 0 auto;
}

/* ==============================================
   分页样式
   ============================================== */

/* 分页容器 */
.oak-lipin-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0 0.5rem;
}

/* 分页按钮基础样式 */
.oak-lipin-pagination a,
.oak-lipin-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    min-width: 40px;
    height: 40px;
    box-sizing: border-box;
}

/* 分页链接样式 */
.oak-lipin-pagination a {
    background-color: white;
    color: #165DFF;
    border: 1px solid #E5E6EB;
}

/* 分页链接悬停效果 */
.oak-lipin-pagination a:hover {
    background-color: rgba(22, 93, 255, 0.1);
    border-color: rgba(22, 93, 255, 0.2);
}

/* 当前页样式 */
.oak-lipin-pagination span.current {
    background-color: #165DFF;
    color: white;
    font-weight: 500;
}

/* 省略号样式 */
.oak-lipin-pagination span.dots {
    color: #86909C;
    border: none;
    padding: 8px 10px;
}

/* 移动端分页样式调整 */
@media (max-width: 576px) {
    .oak-lipin-pagination {
        gap: 0.35rem;
        margin-top: 2rem;
    }
    
    .oak-lipin-pagination a,
    .oak-lipin-pagination span {
        padding: 8px 12px;
        min-width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

/* ==============================================
   兑换历史样式
   ============================================== */

/* 兑换历史容器 */
.oak-lipin-history {
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    margin:10px auto;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

/* 兑换历史头部 */
.oak-lipin-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.oak-lipin-history-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1D2129;
    margin: 0;
}

/* 历史记录滚动容器 */
.oak-lipin-history-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 10px auto;
    padding: 0 15px 20px;
    position: relative;
    display: block;
    width: 100%;
    touch-action: pan-x;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    scrollbar-width: thin;
}

/* 移动端滚动提示 */
@media (max-width: 768px) {
    .oak-lipin-history-scroll::after {
        content: "→ 向右滑动查看更多";
        position: absolute;
        right: 15px;
        bottom: 0;
        transform: none;
        width: auto;
        height: auto;
        background-image: none;
        color: #86909C;
        font-size: 0.8rem;
        animation: scrollHint 2s infinite;
        white-space: nowrap;
        pointer-events: none;
    }
    
    /* 滚动提示动画 */
    @keyframes scrollHint {
        0% { right: 15px; opacity: 0.6; }
        50% { right: 10px; opacity: 1; }
        100% { right: 15px; opacity: 0.6; }
    }
}

/* 历史记录表单容器 */
.oak-lipin-history-form {
    width: 100%;
    min-width: 900px;
    border: 1px solid #E5E6EB;
    border-radius: 0.75rem;
    overflow: hidden;
    transform: translateZ(0);
}

/* 确保滚动区域可交互 */
.oak-lipin-history-scroll,
.oak-lipin-history-form,
.oak-lipin-history-form-body {
    pointer-events: auto;
}

/* 表单头部 */
.oak-lipin-history-form-header {
    display: grid;
    grid-template-columns: 35% 20% 15% 15% 15%;
    background-color: #F7F8FA;
    border-bottom: 1px solid #E5E6EB;
}

.oak-lipin-history-form-header div {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: #86909C;
    font-size: 0.9rem;
}

/* 表单内容 */
.oak-lipin-history-form-body {
    background-color: white;
}

/* 历史记录项 */
.oak-lipin-history-row {
    display: grid;
    grid-template-columns: 35% 20% 15% 15% 15%;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #F2F3F5;
    transition: background-color 0.2s ease;
}

/* 移动端历史记录项交互调整 */
@media (max-width: 768px) {
    .oak-lipin-history-row {
        pointer-events: none;
    }
    
    .oak-lipin-history-row * {
        pointer-events: auto;
    }
}

/* 最后一个历史记录项去除下边框 */
.oak-lipin-history-row:last-child {
    border-bottom: none;
}

/* 历史记录项悬停效果 */
.oak-lipin-history-row:hover {
    background-color: #F7F8FA;
}

/* 礼品信息列 */
.oak-lipin-history-gift {
    display: flex;
    align-items: center;
}

/* 礼品图片 */
.oak-lipin-history-gift-image {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

.oak-lipin-history-gift-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 礼品名称 */
.oak-lipin-history-gift-name {
    font-weight: 500;
    color: #1D2129;
    width: auto;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 时间列样式 */
.oak-lipin-history-time {
    color: #4E5969;
    font-size: 0.9rem;
}

/* 积分列样式 */
.oak-lipin-history-points {
    color: #FF7D00;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.oak-lipin-history-points i {
    margin-right: 0.25rem;
    font-size: 0.9rem;
}

/* 状态标签 */
.oak-lipin-history-status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    width: fit-content;
}

/* 待处理状态 */
.oak-lipin-history-status-pending {
    background-color: rgba(255, 125, 0, 0.1);
    color: #FF7D00;
}

/* 已发货状态 */
.oak-lipin-history-status-shipped {
    background-color: rgba(22, 93, 255, 0.1);
    color: #165DFF;
}

/* 已完成状态 */
.oak-lipin-history-status-completed {
    background-color: rgba(0, 180, 42, 0.1);
    color: #00B42A;
}

/* 已取消状态 */
.oak-lipin-history-status-canceled {
    background-color: rgba(245, 63, 63, 0.1);
    color: #F53F3F;
}

/* 无历史记录状态 */
.oak-lipin-no-history {
    padding: 4rem 2rem;
    text-align: center;
}

/* 无历史记录图标 */
.oak-lipin-no-history-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #F2F3F5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.oak-lipin-no-history-icon i {
    font-size: 2.5rem;
    color: #C9CDD4;
}

/* 无历史记录标题 */
.oak-lipin-no-history-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #272E3B;
    margin-bottom: 0.5rem;
}

/* 无历史记录描述 */
.oak-lipin-no-history-text {
    color: #4E5969;
    max-width: 400px;
    margin: 0 auto;
}

/* 历史记录分页 */
.oak-lipin-history-pagination {
    margin: 10px auto;
    text-align: center;
}

.oak-lipin-history-pagination a,
.oak-lipin-history-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    margin-right: 5px;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    min-width: 40px;
    height: 40px;
    box-sizing: border-box;
}

.oak-lipin-history-pagination a {
    background-color: white;
    color: #165DFF;
    border: 1px solid #E5E6EB;
}

.oak-lipin-history-pagination a:hover {
    background-color: rgba(22, 93, 255, 0.1);
    border-color: rgba(22, 93, 255, 0.2);
}

.oak-lipin-history-pagination span.current {
    background-color: #165DFF;
    color: white;
    font-weight: 500;
}

.oak-lipin-history-pagination span.dots {
    color: #86909C;
    background-color: transparent;
    border: none;
    padding: 8px 10px;
}

/* 移动端历史记录分页调整 */
@media (max-width: 576px) {
    .oak-lipin-history-pagination {
        margin: 10px auto;
    }
    
    .oak-lipin-history-pagination a,
    .oak-lipin-history-pagination span {
        padding: 8px 12px;
        margin-right: 3px;
        min-width: 38px;
        height: 38px;
        font-size: 15px;
    }
    
    .oak-lipin-history-pagination a.prev,
    .oak-lipin-history-pagination a.next {
        padding: 8px 10px;
        font-size: 14px;
    }
}

/* 移动端历史记录表格调整 */
@media (max-width: 768px) {
    .oak-lipin-history-form-header div,
    .oak-lipin-history-row {
        padding: 0.75rem 1rem;
    }
    
    .oak-lipin-history-status {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* ==============================================
   积分礼品兑换样式
   ============================================== */

/* 积分兑换容器 */
.oak-jifenduihuan{
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    margin: 10px auto;
    transition: all 0.3s ease;
}

/* ==============================================
   兑换规则弹窗样式
   ============================================== */

/* 弹窗背景层 */
.oak-lipin-notice-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
    z-index: 99999;
}

/* 弹窗激活状态 */
.oak-lipin-notice-modal.active {
    opacity: 1;
    visibility: visible;
}

/* 弹窗内容容器 */
.oak-lipin-notice-modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 700px;
    width: 100%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 999991;
}

/* 弹窗激活时内容缩放效果 */
.oak-lipin-notice-modal.active .oak-lipin-notice-modal-content {
    transform: scale(1);
}

/* 弹窗头部 */
.oak-lipin-notice-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    position: relative;
    z-index: 10;
}

/* 弹窗标题 */
.oak-lipin-notice-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* 弹窗关闭按钮 */
.oak-lipin-notice-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #64748b;
    transition: color 0.2s ease;
    padding: 0.25rem;
    margin: 0;
    z-index: 11;
}

/* 弹窗关闭按钮悬停效果 */
.oak-lipin-notice-modal-close:hover {
    color: #334155;
}

/* 弹窗内容区域 */
.oak-lipin-notice-modal-body {
    padding: 1.5rem;
    color: #475569;
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 弹窗底部 */
.oak-lipin-notice-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    text-align: center;
    justify-content: flex-end;
    background-color: white;
    position: relative;
    z-index: 10;
}

/* 弹窗按钮基础样式 */
.oak-lipin-notice-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    margin-left: 0.75rem;
}

/* 弹窗主要按钮 */
.oak-lipin-notice-btn-primary {
    background: linear-gradient(135deg, #165DFF, #0E42D2);
    color: white;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.25);
}

/* 弹窗主要按钮悬停效果 */
.oak-lipin-notice-btn-primary:hover {
    background-color: #2563eb;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* 弹窗次要按钮 */
.oak-lipin-notice-btn-secondary {
    background-color: white;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* 弹窗次要按钮悬停效果 */
.oak-lipin-notice-btn-secondary:hover {
    background-color: #f1f5f9;
}

/* 弹窗链接样式 */
.oak-lipin-notice-link {
    color: #999999;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

/* 弹窗规则标题 */
.oak-lipin-notice-rule h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* 弹窗规则段落 */
.oak-lipin-notice-rule p {
    margin-bottom: 0.75rem;
}

/* 弹窗规则列表 */
.oak-lipin-notice-rule ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.oak-lipin-notice-rule ul li {
    margin-bottom: 0.5rem;
}

/* 弹窗免责声明 */
.oak-lipin-notice-disclaimer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
    color: #64748b;
    font-size: 0.9rem;
}

/* ==============================================
   购物车样式
   ============================================== */

/* 购物车图标容器 */
.oak-shopping-cart {
    position: fixed;
    right: 20px;
    bottom: 30px;
    z-index: 9998;
}

/* 购物车图标 */
.oak-cart-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #165DFF, #0E42D2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
    cursor: pointer;
    position: relative;
}

/* 购物车数量标记 */
.oak-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #F53F3F;
    color: white;
    font-size: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 购物车弹窗 */
.oak-cart-panel {
    width: 380px;
    background-color: white;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    position: fixed;
    right: 20px;
    bottom: 80px; /* 与购物车按钮顶部对齐 */
    max-height: 70vh; /* 降低电脑端高度至70%视窗高度 */
    padding: 15px;
    display: none;
    z-index: 99999;
    flex-direction: column;
    transform: none !important;
    max-width: 380px;
    margin: 0;
    border-bottom: none;
}

/* 购物车内容区域 */
.oak-cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
}

/* 购物车底部结算区 */
.oak-cart-summary {
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

/* 购物车激活状态 */
.oak-cart-panel.active {
    display: flex;
}

/* 空购物车状态 */
.oak-cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #86909C;
    margin: auto;
}

/* 移动端购物车弹窗 */
@media (max-width: 768px) {
    .oak-shopping-cart {
        right: 15px;
        bottom: 150px;
    }
    
    .oak-cart-panel {
        position: fixed;
        width: 100vw; /* 使用视窗宽度100% */
        height: 100vh; /* 使用视窗高度100% */
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        border-radius: 0;
        padding: 20px;
        max-height: 100vh;
        max-width: 100vw;
        margin: 0; /* 清除所有外边距 */
        box-sizing: border-box; /* 确保padding不增加总宽度 */
    }
    
    body.oak-cart-open {
        overflow: hidden;
        padding-right: 0 !important; /* 移除可能的滚动条间隙 */
    }
    
    .oak-cart-items {
        max-height: calc(100vh - 180px);
        flex: 1;
        overflow-y: auto;
        margin-bottom: 15px;
    }
    
    .oak-cart-item {
        padding: 12px 0;
    }
    
    .oak-cart-item img {
        width: 60px;
        height: 60px;
    }
    
    .oak-cart-item-info h4 {
        font-size: 15px;
        max-width: calc(100% - 60px);
    }
    
    .oak-cart-summary form {
        flex-direction: column;
        gap: 12px;
    }
    
    .oak-cart-summary form .oak-lipin-btn {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
    }
    
    .oak-cart-header {
        padding: 10px 0 15px;
        margin-bottom: 15px;
        border-bottom: 2px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: white;
        position: relative;
        z-index: 10;
    }
    
    .oak-cart-header h3 {
        font-size: 1.2rem;
        margin: 0;
    }
    
    .oak-cart-close {
        font-size: 1.2rem;
        padding: 0.25rem;
        cursor: pointer;
        z-index: 11;
    }
}

/* 购物车头部 */
.oak-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.oak-cart-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1D2129;
}

/* 购物车关闭按钮 */
.oak-cart-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #86909C;
}

/* 购物车项 */
.oak-cart-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

/* 最后一个购物车项去除下边框 */
.oak-cart-item:last-child {
    border-bottom: none;
}

/* 购物车项图片 */
.oak-cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

/* 购物车项信息 */
.oak-cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.oak-cart-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #1D2129;
    width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oak-cart-item-info p {
    margin: 0;
    font-size: 13px;
    color: #FF7D00;
}

/* 购物车项移除按钮 */
.oak-cart-remove button {
    background: none;
    border: none;
    color: #86909C;
    cursor: pointer;
    font-size: 16px;
    min-width: 24px;
    text-align: center;
}

.oak-cart-remove button:hover {
    color: #F53F3F;
}

/* 购物车结算信息 */
.oak-cart-summary p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 500;
}

.oak-cart-summary p span {
    color: #FF7D00;
}

/* 购物车结算表单 */
.oak-cart-summary form {
    display: flex;
    gap: 10px;
}

/* 空购物车图标 */
.oak-cart-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #E5E6EB;
}

.oak-cart-empty p {
    margin: 5px 0;
}

/* ==============================================
   礼品按钮样式调整
   ============================================== */

/* 礼品操作按钮容器 */
.oak-lipin-gift-actions {
    display: flex;
    gap: 10px;
}

/* 内联表单样式 */
.inline-form {
    flex: 1;
}

/* 次要按钮样式 */
.oak-lipin-btn-secondary {
    background-color: #f5f7fa;
    color: #165DFF;
    border: 1px solid #E5E6EB;
}


/* ==============================================
   弹窗背景滚动控制
   ============================================== */

/* 弹窗显示时禁止背景滚动 */
body.oak-cart-open,
body.oak-notice-open,
body.oak-duihuan-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ==============================================
   礼品分类标签样式
   ============================================== */

/* 礼品分类容器 */
.oak-lipin-gift-categories {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    padding: 5px 0;
    margin: 0 0 10px 0;
}

/* 分类标签样式 */
.oak-lipin-category-tag {
    background: #f0f7ff;
    color: #165DFF;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
}

/* ==============================================
   购物车数量样式
   ============================================== */

/* 购物车数量容器 */
.oak-cart-item-actions {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

/* 数量文本样式 */
.oak-cart-item-quantity {
    margin-right: 10px;
    color: #6c757d;
    font-weight: 500;
}

/* ==============================================
   兑换历史弹窗样式
   ============================================== */

/* 兑换历史弹窗背景 */
.oak-duihuan-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

/* 兑换历史弹窗内容 */
.oak-duihuan-popup {
    background-color: white;
    width: 100%;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: oak-duihuan-popup-animation 0.3s ease;
    z-index: 999991;
}

/* 弹窗动画 */
@keyframes oak-duihuan-popup-animation {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 弹窗头部 */
.oak-duihuan-popup-header {
    padding: 16px;
    background: linear-gradient(135deg, #165DFF, #0E42D2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* 弹窗标题 */
.oak-duihuan-popup-title {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

/* 弹窗关闭按钮 */
.oak-duihuan-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #fff;
    transition: color 0.2s ease;
    padding: 0.25rem;
    z-index: 11;
}

/* 弹窗内容区域 */
.oak-duihuan-popup-content {
    padding: 20px;
    line-height: 1.6;
    color: #495057;
    max-height: 70vh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

/* 弹窗底部 */
.oak-duihuan-popup-footer {
    padding: 5px;
    border-top: 1px solid #e9ecef;
    text-align: center;
    color:#cdcdcd;
    font-size: 13px;
}

/* 移动端兑换历史弹窗调整 */
@media (max-width: 768px) {
    .oak-duihuan-popup {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        max-width: none;
        border-radius: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .oak-duihuan-popup-content {
        max-height: none;
        flex: 1;
        padding: 15px;
        overflow-y: auto;
    }
    
    .oak-duihuan-popup-header {
        padding: 14px 15px;
    }
    
    .oak-duihuan-popup-title {
        font-size: 1.1rem;
    }
    
    .oak-duihuan-close-btn {
        font-size: 1.2rem;
    }
    
    .oak-duihuan-popup-footer {
        padding: 10px 15px;
        font-size: 12px;
    }
}

/* 移动端兑换规则弹窗调整 */
@media (max-width: 768px) {
    .oak-lipin-notice-modal-content {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        max-width: none;
        border-radius: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .oak-lipin-notice-modal-body {
        max-height: none;
        flex: 1;
        padding: 15px;
        overflow-y: auto;
    }
    
    .oak-lipin-notice-modal-header {
        padding: 14px 15px;
        border-bottom-width: 2px;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .oak-lipin-notice-modal-title {
        font-size: 1.1rem;
    }
    
    .oak-lipin-notice-modal-close {
        font-size: 1.2rem;
    }
    
    .oak-lipin-notice-modal-footer {
        padding: 12px 15px;
        border-top-width: 2px;
        position: sticky;
        bottom: 0;
        z-index: 10;
    }
    
    .oak-lipin-notice-btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}

/* ==============================================
   抽奖演示样式
   ============================================== */

/* 内部容器样式 - 全宽显示 */
.oak-zhanshi-choujiang-container {
    display: flex;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* 九宫格区域 - 保持适当大小但允许灵活调整 */
.oak-zhanshi-choujiang-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 12px;
    border-radius: 15px 0 0 15px;
    min-width: 330px;
    flex-shrink: 0; /* 防止九宫格被压缩 */
    background-image: url(https://cdn.8i5.net/2025/08/background-choujiang2.png);
    background-size: cover;
}

/* 九宫格项目样式 - 图标在上方 */
.oak-zhanshi-choujiang-grid-item {
    border: 3px solid #e0e0e0;
    background-image: url(https://img.8i5.net/image/prize-gezi-background-1.png);
    background-size: cover;
    color: white;
    padding: 8px 5px;
    text-align: center;
    border-radius: 15px;
    font-size: 12px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 图标样式调整 */
.oak-zhanshi-choujiang-grid-item i {
    margin-bottom: 4px;
    font-size: 16px;
}

.oak-zhanshi-choujiang-grid-item-icon{
    color: #ffc107;
}

/* 中间项的特殊样式 */
.oak-zhanshi-choujiang-grid-item2.start {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    font-weight: bold;
    color: white;
    padding: 8px 5px;
    text-align: center;
    border-radius: 15px;
    font-size: 12px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 右侧文字区域 - 全宽填充剩余空间，使用flex布局容纳按钮 */
.oak-zhanshi-choujiang-text-section {
    padding: 15px;
    background-color: #f9f9f9;
    flex: 1; /* 占据剩余所有空间 */
    min-width: 0; /* 允许内容在必要时收缩 */
    display: flex;
    flex-direction: column;
}

/* 文字内容区域 */
.oak-zhanshi-choujiang-text-content {
    flex: 1; /* 让文字内容占据上方空间 */
}

/* 文字区域标题 */
.oak-zhanshi-choujiang-text-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

/* 文字区域段落 */
.oak-zhanshi-choujiang-text-section p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 14px;
    word-break: normal; /* 让文字接近边缘再换行 */
}

/* 高亮文本 */
.oak-zhanshi-choujiang-text-section .highlight {
    color: #E91E63;
    font-weight: 500;
}

/* 抽奖按钮样式 */
.oak-zhanshi-choujiang-button {
    background: linear-gradient(135deg, #F44336, #E91E63);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    align-self: center; /* 水平居中 */
    margin-top: 20px; /* 与上方文字保持距离 */
}

/* ==============================================
   兑换确认弹窗样式
   ============================================== */

/* 兑换确认内容 - 修改为左右布局 */
.oak-redeem-confirm-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
}

/* 兑换确认图片 - 左侧显示 */
.oak-redeem-confirm-image {
    flex: 0 0 120px;
    margin-bottom: 0;
}

.oak-redeem-confirm-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 兑换确认信息 - 右侧显示 */
.oak-redeem-confirm-info {
    flex: 1;
    text-align: left;
}

.oak-redeem-confirm-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1D2129;
    margin-bottom: 10px;
}

.oak-redeem-confirm-info p {
    margin: 8px 0;
    color: #666;
    line-height: 1.5;
}

/* 积分信息样式 */
.oak-redeem-confirm-points {
    color: #FF7D00;
    font-weight: 500;
    font-size: 16px;
    margin: 10px 0;
}

/* 兑换说明样式 */
.oak-redeem-confirm-description {
    font-size: 14px;
    color: #86909C;
    line-height: 1.6;
    margin-top: 15px;
}

/* 移动端适配 - 改为垂直布局 */
@media (max-width: 768px) {
    .oak-redeem-confirm-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }
    
    .oak-redeem-confirm-image {
        flex: 0 0 100px;
        margin-bottom: 15px;
    }
    
    .oak-redeem-confirm-image img {
        width: 100px;
        height: 100px;
    }
    
    .oak-redeem-confirm-info {
        text-align: center;
    }
}


/* 轮播样式 */
.oak-lipin-carousel {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.oak-lipin-carousel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(https://cdn.8i5.net/2025/12/lunbo1.gif);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    filter: blur(4px);
    transform: scale(1.02);
    z-index: -1;
    opacity: 0.95;
}

.oak-lipin-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.oak-lipin-carousel-item {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.oak-lipin-carousel-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.oak-lipin-carousel-image {
    flex: 0 0 250px;
    height: 250px;
    border-radius: 0.75rem;
    overflow: hidden;
    /* 替换为礼品列表图片同款阴影（更轻量） */
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05); 
}

.oak-lipin-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.oak-lipin-carousel:hover .oak-lipin-carousel-image img {
    transform: scale(1.05);
}

.oak-lipin-carousel-info {
    flex: 1;
    padding: 1rem;
}

.oak-lipin-carousel-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.oak-lipin-carousel-points {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ff0000;
    margin-bottom: 1.5rem;
}

.oak-lipin-carousel-points i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.oak-lipin-carousel-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.oak-lipin-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

/* 圆点指示器样式 - 保留颜色 */
.oak-lipin-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.oak-lipin-carousel-indicator.active {
    background-color: #ebc874;
    transform: scale(1.2);
}

/* 响应式调整 - 保留移动端布局要求 */
@media (max-width: 768px) {
    .oak-lipin-carousel {
        height: auto;
        min-height: 400px;
        /* 移动端阴影更轻量 */
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
    }
    
    .oak-lipin-carousel-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .oak-lipin-carousel-image {
        flex: 0 0 200px;
        height: 200px;
    }
    
    .oak-lipin-carousel-title {
        font-size: 1.5rem;
    }
    
    /* 移动端积分居中显示 */
    .oak-lipin-carousel-points {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    /* 移动端两个按钮同一行显示 */
    .oak-lipin-carousel-actions {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .oak-lipin-carousel-actions .oak-lipin-btn,
    .oak-lipin-carousel-actions .oak-lipin-notice-btn {
        flex: 1;
        margin: 0;
        padding: 0.75rem 0;
    }
}