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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #1a1a2e;
    color: #333;
    padding-bottom: 60px;
}

/* 顶部搜索栏 */
.search-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #2a2a40;
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background: #353555;
    padding: 8px 15px;
    border-radius: 20px;
    margin-right: 15px;
}

.search-bar input {
    border: none;
    background: none;
    flex: 1;
    font-size: 14px;
    color: #fff;
    placeholder-color: #8888a0;
}

.user-icon {
    font-size: 20px;
}

/* 轮播图 */
.banner-slider {
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
    margin: 0 8px 0 8px;  /* 调整左边距，让图片稍微往右移 */
    width: calc(100% - 24px);
}

.banner-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* 信息栏 */
.info-bar {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    gap: 10px;
}

.news-button {
    width: 70px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #353555;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.news-button:active {
    transform: scale(0.98);
}

.news-icon {
    font-size: 16px;
}

.scroll-notice {
    flex: 1;
    height: 40px;
    overflow: hidden;
    position: relative;
    background: #353555;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.notice-content {
    position: absolute;
    animation: scroll 20s linear infinite;
}

.notice-content span {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    color: #b8b8d0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.success-icon {
    color: #6c63ff;
    font-size: 14px;
}

.notice-content em {
    color: #6c63ff;
    font-style: normal;
    font-weight: 500;
}

@keyframes scroll {
    0% {
        top: 0;
    }
    100% {
        top: -400px; /* 40px * 10 */
    }
}

/* 商品区域 */
.product-section {
    padding: 15px;
}

.product-card {
    background: #2a2a40;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-bottom: 15px;  /* 添加卡片之间的间距 */
}

.product-content {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    position: relative;
}

.product-image {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.product-info {
    flex: 1;
    padding-top: 5px;
}

.info-header {
    margin-right: 90px;  /* 为更大的按钮留出更多空间 */
}

.product-info h3 {
    font-size: 16px;
    color: #fff;
    font-weight: 700;
    line-height: 1.4;
}

.sub-title {
    font-size: 14px;
    color: #8888a0;
    font-weight: 400;
    margin-left: 8px;
}

.star-rating {
    margin-top: 8px;
}

.star {
    font-size: 8px;
    margin-right: 2px;
    color: #ffd700;
}

.comment-btn {
    padding: 6px 24px;
    background: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-btn:active {
    transform: scale(0.95);
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #2a2a40;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.modal-header h3 {
    color: #fff;
    font-size: 18px;
}

.close-btn {
    color: #8888a0;
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
}

.modal-body {
    padding: 20px;
}

.rating-section, .comment-section {
    margin-bottom: 20px;
}

.rating-section h4, .comment-section h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 16px;
}

.rating-stars {
    display: flex;
    gap: 8px;
}

.rating-star {
    font-size: 24px;
    color: #8888a0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.rating-star.active {
    color: #ffd700;
}

textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    border: 1px solid #353555;
    border-radius: 8px;
    background: #353555;
    color: #fff;
    resize: none;
    font-size: 14px;
}

textarea::placeholder {
    color: #8888a0;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* 奖励弹窗样式 */
.reward-modal {
    text-align: center;
    max-width: 300px;
    padding: 20px;
}

.reward-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.reward-icon {
    font-size: 40px;
    margin-bottom: 5px;
}

.reward-body h3 {
    color: #fff;
    font-size: 18px;
}

.reward-amount {
    color: #ff9500;
    font-size: 24px;
    font-weight: bold;
}

.confirm-btn {
    width: 100%;
    padding: 12px;
    background: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn:active {
    transform: scale(0.98);
}

/* 通知栏样式 */
.notification {
    position: fixed;
    top: -100px;
    left: 0;
    right: 0;
    z-index: 2000;
    transition: top 0.3s ease;
    padding: 0 8px;
}

.notification.show {
    top: 0;
}

.notification-content {
    background: #ffffff;
    margin: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notification-left,
.notification-right {
    flex-shrink: 0;
}

.notification-middle {
    flex: 1;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.notification-title {
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.notification-text {
    color: #666666;
    font-size: 12px;
}

/* 通知栏样式 */
.notification-wrapper {
    cursor: pointer;
}

/* 支付记录页面样式 */
.payment-record {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8f8f8;
    z-index: 3000;
    overflow: hidden;  /* 防止整个页面滚动 */
}

.payment-record.show {
    display: block;
}

.payment-header {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 12px 15px;
    background: #ededed;
    position: relative;
    border-bottom: 1px solid #d9d9d9;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 16px;
    color: #000;
    position: absolute;
    left: 12px;
}

.back-arrow {
    font-size: 24px;
    font-weight: normal;
    line-height: 1;
}

.header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 17px;
    color: #000;
    font-weight: 500;
}

.header-right {
    position: absolute;
    right: 12px;
    display: flex;
    gap: 15px;
    font-size: 18px;
    color: #576b95;
}

.payment-content {
    padding: 12px 0;
    background: #f8f8f8;
    height: calc(100vh - 94px);  /* 减去头部和底部的高度 */
    overflow-y: auto;  /* 允许内容垂直滚动 */
    -webkit-overflow-scrolling: touch;  /* 在iOS上支持惯性滚动 */
}

.payment-time {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin: 20px 0 10px;
}

.payment-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin: 8px 12px;
    margin-bottom: 15px;
}

.reward-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.reward-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.reward-header span {
    font-size: 14px;
    color: #000;
    font-weight: normal;
}

.reward-desc {
    color: #000;
    font-size: 14px;
    margin-bottom: 24px;
}

.reward-section {
    text-align: center;
}

.reward-label {
    color: #999;
    font-size: 14px;
    margin-bottom: 12px;
    text-align: center;
}

.payment-amount {
    font-size: 40px;
    font-weight: 500;
    color: #000;
    margin: 0 0 32px;
    text-align: center;
}

.reward-method {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #f5f5f5;
}

.method-label {
    color: #999;
    font-size: 14px;
}

.method-value {
    color: #000;
    font-size: 14px;
}

.payment-detail {
    text-align: left;
    color: #000;
    font-size: 14px;
    position: relative;
    padding: 16px 0 0;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-detail::after {
    content: '>';
    position: absolute;
    right: 0;
    color: #999;
}

/* 底部导航栏样式 */
.payment-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #fff;
    display: flex;
    align-items: center;
    border-top: 1px solid #f0f0f0;
}

.footer-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 40px;
    color: #000;
    font-size: 12px;
    gap: 8px;
    position: relative;  /* 为分隔线定位做准备 */
}

/* 添加分隔线 */
.footer-item:first-child::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15px;
    bottom: 15px;
    width: 1px;
    border-right: 1px dashed #d8d8d8;
}

/* 第一个菜单项（我的账单）的特殊样式 */
.footer-item:first-child {
    padding-right: 60px;
}

.footer-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.reward-tip {
    color: #ff9500;
    font-size: 16px;
    font-weight: 500;
}

.comment-btn-wrapper {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
} 