/**
 * OneNav会员系统样式
 */

/* 会员卡片样式 */
.membership-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.membership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.membership-card.current {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 会员价格样式 */
.price {
    margin: 20px 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.price .currency {
    font-size: 1.2rem;
    vertical-align: super;
}

.price .amount {
    font-size: 2.5rem;
}

.price .duration {
    font-size: 1rem;
    color: #6c757d;
    font-weight: normal;
}

.price .free {
    font-size: 2.5rem;
    color: #28a745;
}

/* 会员特权列表 */
.features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.features li:last-child {
    border-bottom: none;
}

/* 会员状态徽章 */
.membership-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.membership-status .iconfont {
    margin-right: 5px;
}

/* 会员价格表 */
.membership-pricing-table .card {
    margin-bottom: 20px;
}

.membership-pricing-table .card-header {
    font-weight: bold;
    text-align: center;
}

/* 受保护内容提示 */
.onenav-protected-content {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.onenav-protected-content i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
    color: #ffc107;
}

/* 会员积分 */
.points-history .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.points-history .points-earn {
    color: #28a745;
}

.points-history .points-spend {
    color: #dc3545;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .price .amount {
        font-size: 2rem;
    }

    .membership-pricing-table .col-md-4 {
        margin-bottom: 20px;
    }
}

/* 会员等级比较表 */
.membership-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.membership-comparison-table th,
.membership-comparison-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.membership-comparison-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.membership-comparison-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.membership-comparison-table .feature-name {
    text-align: left;
    font-weight: 500;
}

.membership-comparison-table .check-icon {
    color: #28a745;
}

.membership-comparison-table .close-icon {
    color: #dc3545;
}

/* 会员特权网格 */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.benefit-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card .icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #007bff;
}

.benefit-card .title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.benefit-card .description {
    color: #6c757d;
    margin-bottom: 0;
}

/* 会员特权手风琴 */
.benefits-accordion .card {
    margin-bottom: 10px;
}

.benefits-accordion .card-header {
    background-color: #f8f9fa;
    cursor: pointer;
}

.benefits-accordion .card-header .icon {
    transition: transform 0.3s ease;
}

.benefits-accordion .card-header[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

/* 会员等级信息 */
.level-info .level-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.level-info .level-description {
    color: #6c757d;
    margin-bottom: 15px;
}

.level-info .level-price {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.level-info .level-duration {
    color: #6c757d;
    margin-bottom: 15px;
}

.level-info .level-capabilities {
    margin-bottom: 0;
}

.level-info .level-capabilities li {
    padding: 5px 0;
}
