
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

/* 弹窗遮罩层 */
.mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none; /* 默认隐藏弹窗 */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* 提高层级，确保覆盖原网页内容 */
}

/* 支付弹窗主体 */
.pay-modal {
    width: 90%;
    max-width: 420px;
    background: linear-gradient(180deg, #1f2e46, #141e30);
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(12, 189, 255, 0.2), 0 4px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(12, 189, 255, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 10000;
}

/* 弹窗头部 */
.modal-header {
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(12, 189, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #cccccc;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-btn:hover {
    background: rgba(255, 69, 0, 0.2);
    color: #ff4500;
    transform: rotate(90deg);
}

/* 弹窗内容（套餐列表） */
.modal-content {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

/* 套餐卡片通用样式 */
.package-card {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* 套餐卡片选中状态 */
.package-card.active {
    border-color: #0cbfff;
    background: rgba(12, 189, 255, 0.1);
    box-shadow: 0 0 15px rgba(12, 189, 255, 0.3);
}

/* 选中标识 */
.package-card.active::after {
    content: "✓";
    position: absolute;
    top: 16px;
    right: 20px;
    color: #0cbfff;
    font-size: 20px;
    font-weight: bold;
}

/* 套餐卡片悬浮效果 */
.package-card:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(12, 189, 255, 0.2);
}

/* 套餐名称 */
.package-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* 套餐描述 */
.package-desc {
    color: #cccccc;
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* 套餐权益列表 */
.package-benefits {
    list-style: none;
    margin-bottom: 10px;
}

.package-benefits li {
    color: #b3b3b3;
    font-size: 11px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.package-benefits li::before {
    content: "•";
    color: #0cbfff;
    font-size: 14px;
    line-height: 1;
}

/* 权益高亮（超级会员专属） */
.package-benefits li.super-only {
    color: #ffd700;
}

.package-benefits li.super-only::before {
    content: "★";
    color: #ffd700;
}

/* 价格区域 */
.price-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 当前价格 */
.current-price {
    color: #0cbfff;
    font-size: 20px;
    font-weight: bold;
}

/* 原价（划线价） */
.original-price {
    color: #999999;
    font-size: 14px;
    text-decoration: line-through;
}

/* 超级套餐特殊标记 */
.super-package {
    position: relative;
}

.super-package::before {
    content: "超级推荐";
    position: absolute;
    top: 3px;
    right: 20px;
    background: linear-gradient(90deg, #ffd700, #ff9900);
    color: #141e30;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    z-index: 1;
}

/* 弹窗底部（支付按钮） */
.modal-footer {
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(12, 189, 255, 0.2);
}

/* 支付按钮 */
.pay-btn {
    width: 100%;
    padding: 14px 0;
    background: linear-gradient(90deg, #0cbfff, #0a8ccc);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(12, 189, 255, 0.3);
}

.pay-btn:hover {
    background: linear-gradient(90deg, #0a8ccc, #0cbfff);
    box-shadow: 0 6px 15px rgba(12, 189, 255, 0.5);
    transform: translateY(-2px);
}

.pay-btn:active {
    transform: translateY(0);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(12, 189, 255, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(12, 189, 255, 0.5);
}

/* 新增：打开弹窗按钮样式（适配原网页风格） */
.open-pay-modal {
    px: 6;
    py: 3;
    border-radius: 9999px;
    text-base: 1;
    font-semibold: 1;
    transition-all: 1;
    border: 1px solid #ffd700;
    color: #ffd700;
    background: white;
    hover:bg-yellow-50;
    shadow-lg: 1;
    shadow-yellow-500/10;
    cursor: pointer;
}

.open-pay-modal:hover {
    background: rgba(255, 215, 0, 0.1);
}
