/* 会员页面样式 */

/* 主容器 */
.main-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    min-height: calc(100vh - 400px);
}

.member-container {
    padding: 20px 0;
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 25px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.crown-icon-large {
    width: 32px;
    height: 32px;
}

.page-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* 当前会员状态 */
.current-member-status {
    background: linear-gradient(135deg, rgba(149, 29, 29, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
    border: 2px solid #951D1D;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.status-icon {
    width: 20px;
    height: 20px;
}

.status-title {
    font-size: 16px;
    font-weight: 600;
    color: #951D1D;
}

.member-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 6px;
    font-size: 14px;
}

.member-item-name {
    font-weight: 600;
    color: #212529;
}

.member-item-expire {
    color: #6c757d;
    font-size: 13px;
}

.member-item-expire.expired {
    color: #dc3545;
}

/* 区块标题 */
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.selection-hint {
    font-size: 14px;
    color: #6c757d;
    font-weight: 400;
}

/* 煤种会员选择区域 */
.coal-member-section {
    margin-bottom: 25px;
}

.coal-member-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.coal-member-card {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.coal-member-card:hover {
    border-color: #951D1D;
    box-shadow: 0 4px 16px rgba(149, 29, 29, 0.15);
    transform: translateY(-2px);
}

.coal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.coal-member-card .coal-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.coal-info {
    flex: 1;
}

.coal-member-card .coal-name {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 3px;
}

.coal-member-card .coal-desc {
    font-size: 12px;
    color: #6c757d;
}

.member-options {
    display: flex;
    gap: 10px;
}

.option-btn {
    flex: 1;
    cursor: pointer;
    display: block;
}

.option-btn input[type="checkbox"],
.option-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 10px 6px;
    transition: all 0.3s;
}

.option-btn:hover .btn-content {
    border-color: #951D1D;
    background: rgba(149, 29, 29, 0.05);
}

.option-btn input:checked + .btn-content {
    border-color: #951D1D;
    background: linear-gradient(135deg, rgba(149, 29, 29, 0.1) 0%, rgba(122, 23, 23, 0.1) 100%);
    box-shadow: 0 0 0 3px rgba(149, 29, 29, 0.1);
}

.btn-label {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

.option-btn input:checked + .btn-content .btn-label {
    color: #951D1D;
}

.btn-price {
    font-size: 16px;
    font-weight: 700;
    color: #951D1D;
}

/* 订单汇总 */
.order-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.item-label {
    color: #6c757d;
    font-weight: 500;
}

.item-value {
    color: #212529;
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: #dee2e6;
    margin: 5px 0;
}

.summary-item.total {
    font-size: 16px;
    padding-top: 5px;
}

.total-price {
    color: #951D1D;
    font-size: 24px;
    font-weight: 700;
}

.total-price .price-symbol {
    font-size: 16px;
}

/* 提交区域 */
.submit-section {
    text-align: center;
}

.submit-btn {
    background: linear-gradient(135deg, #951D1D 0%, #7A1717 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 14px 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(149, 29, 29, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(149, 29, 29, 0.4);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.submit-hint {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

.link {
    color: #951D1D;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .coal-member-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 28px;
    }
    
    .member-options {
        flex-direction: column;
        gap: 8px;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}
