/* 初始化CSS */
img {border: none;vertical-align:middle}
em{ font-style:normal;}
ul, li, dl, dd, dt, ol{ list-style: none; }
a { outline: none; text-decoration: none; cursor: pointer;}
table { border-collapse:collapse; border-spacing:0; }
h1,h2,h3,h4,h5,h6 {font-size:100%;font-weight:normal;}
input,select{vertical-align: middle;}
i{font-style: normal;}
html{overflow-x: hidden;}
.bottom,.bottom a{color: #fff; font-size: 12px;}
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: url(../images/bg.jpg) no-repeat center top #8a0000;
    color: #333;
    
}

/* 清除浮动 */
.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
.clearfix {
    zoom: 1; /* 触发IE hasLayout */
}

/* 横幅区域 */


.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1200px;
    margin-left: -600px;
    margin-top: -50px;
    text-align: center;
    color: #fff;
}

.title {
    font-size: 48px;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 24px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 主容器 */
.main-container {
    
    width: 100%;
    padding: 30px 0;
    padding-top: 350px;
}

.content-wrapper {
    width: 1200px;
    margin: 0 auto;
}

/* 用户卡片 */
.user-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    zoom: 1; /* 触发IE hasLayout */
}

.user-card:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.user-info {
    float: left;
    width: 400px;
}

.avatar {
    float: left;
    width:130px;
    height: 130px;
    margin-right: 15px;
    border-radius: 30px;
    overflow: hidden;
    border:1px solid #ddd;
}

.avatar img {
    width: 100%;
}

.user-details {
    float: left;
    padding-top: 5px;
}

.username {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 5px 0;
}

.user-id {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.points-info {
    float: left;
    width: 300px;
    background-color: #fff9f2;
    border-radius: 8px;
    padding: 15px;

}

.points-label {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
}

.points-value {
    font-size: 28px;
    font-weight: bold;
    color: #ff5e62;
    margin-bottom: 5px;
}

.points-today {
    font-size: 14px;
    color: #ff9966;
}

.action-buttons {
    float: right;
    padding-top: 15px;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease; /* 添加过渡效果 */
}

.btn-outline {
    border: 1px solid #ff9966;
    color: #ff9966;
    background-color: transparent;
}

.btn-outline:hover {
    background-color: #ff9966;
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 153, 102, 0.3);
}

.btn-primary {
    background-color: #ff5e62;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #ff3b4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 94, 98, 0.4);
}

/* 兑换区域 */
.exchange-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 20px 0;
    padding-left: 10px;
    border-left: 4px solid #ff5e62;
    position: relative; /* 添加相对定位 */
    z-index: 5;
}

/* 提示图标样式 */
.info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background-color: #ff9966;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    cursor: help;
    position: relative;
    top: -2px;
}

/* 提示内容样式 */
.info-content {
    position: absolute;
    width: 320px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: #333;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.5;
    text-align: left;
    z-index: 100;
    top: 25px;
    left: 0;
}

.info-content p {
    margin: 5px 0;
}
.products-list {
    zoom: 1; /* 触发IE hasLayout */
}

.products-list:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.product-item {
    float: left;
    width: 195px;
    margin: 0 15px;
    margin-bottom: 20px;
    text-align: center;
    
}

.product-image {
    background:url(../images/lbg.jpg);
    border-radius: 8px;
    width: 193px;
    margin-bottom: 10px;
    height: 230px;
    line-height: 100px;
    position: relative; /* 添加相对定位 */
    border:1px solid #ddd;
    padding-top: 30px;
    text-align: center;
}
.product-tip{
    background: #eee;
    position: absolute;
    top:0;left: 0px;
    line-height: 20px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 2px;
    color: #ff6c00;
}
.nobg{
    background:url(../images/showbg.jpg);
} 
.product-image img {
    max-width: 130px;
    max-height: 200px;
    vertical-align: middle;
    display: inline-block;
}
.product-image .cishu{
    width: 195px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 12px;
    color: red;
}
.product-image .prop{
    margin-top: 50px;
    width: 100px;
}
.nobgoods{
    width: 130px;
    margin-top: 30px;
}
/* 商品数量样式 */
.product-quantity {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #ff5e62;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: normal;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.product-name {
    font-size: 14px;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 14px;
    color: #ff5e62;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.exchange-btn {
    display: block;
    width: 100%;
    padding: 6px 0;
    background-color: #ff5e62;
    color: #fff;
    border-radius: 15px;
    font-size: 14px;
    transition: all 0.3s ease; /* 添加过渡效果 */
}

.exchange-btn:hover {
    background-color: #ff3b4a;
    box-shadow: 0 2px 8px rgba(255, 94, 98, 0.4);
    transform: translateY(-1px);
}

.exchange-btn.locked {
    background-color: #ccc;
    cursor: not-allowed;
}

.exchange-btn.locked:hover {
    background-color: #bbb;
    transform: none;
    box-shadow: none;
}

/* 弹窗样式 */
#pointsInfoModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    text-align: center;
}

#pointsInfoModal:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.modal-content {
    display: inline-block;
    vertical-align: middle;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 400px;
    text-align: left;
}

.modal-content h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 15px 0;
    text-align: center;
}

.modal-text {
    margin-bottom: 20px;
    color: #888;
    font-size:14px;
}

.modal-text b {
    margin: 10px 0;
    line-height: 1.5;
    color: #333;
}

.modal-buttons {
    text-align: center;
}

/* 弹窗按钮样式 */
.modal-buttons .btn {
    min-width: 100px;
}

.modal-buttons .btn:hover {
    transform: translateY(-2px);
}

/* 积分历史记录弹窗样式 */
#pointsHistoryModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    text-align: center;
}

#pointsHistoryModal:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.history-modal {
    width: 400px;
    height: 380px;
    position: relative;
    padding-top: 15px;
    padding-bottom: 15px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    color: #999;
    text-decoration: none;
    font-weight: bold;
}

.close-btn:hover {
    color: #333;
}

.month-selector {
    text-align: center;
    margin: 15px 0;
    position: relative;
    height: 30px;
    line-height: 30px;
}

.current-month {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.month-nav {
    position: absolute;
    top: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: #666;
    font-size: 18px;
    text-decoration: none;
}

.month-nav.prev {
    left: 100px;
}

.month-nav.next {
    right: 100px;
}

.month-nav:hover {
    color: #ff5e62;
}

.history-records {
    height: 270px;
    overflow: hidden;
    position: relative;
}

.record-list {
    height: 100%;
    overflow-y: auto;
    padding: 0 20px;
}

.record-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    text-align: left;
    zoom: 1; /* 触发IE hasLayout */
}

.record-item:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.record-date {
    width: 100%;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.record-date .weekday {
    width:60px;
    display: block;
    text-align: left;
    float: left;
    margin-left: 5px;
    color: #999;
    font-weight: normal;
}

.record-date .points-sum {
    width:200px;
    display: block;
    text-align: right;
    float: right;
    color: #ff5e62;
}

.record-detail {
    margin-left: 15px;
    font-size: 12px;
    color: #666;
}

.record-detail-item {
    margin: 5px 0;
    zoom: 1; /* 触发IE hasLayout */
}

.record-detail-item:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.record-detail-time {
    float: left;
    color: #999;
    width: 50px;
}

.record-detail-desc {
    float: left;
    width: 200px;
}

.record-detail-points {
    float: right;
    color: #ff5e62;
}

.no-records {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    text-align: center;
    margin-top: -10px;
    color: #999;
    font-size: 14px;
}
.wh_title{text-align: center;line-height: 60px;font-size: 20px;font-weight: bold;}
