/**
 * 会员中台模块样式
 * 创建时间：2025-12-20
 */

/* ============================================
   会员等级卡片
   ============================================ */
.member-levels-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.level-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.level-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.level-icon {
    font-size: 24px;
}

.level-type {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.level-badge {
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

.level-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.level-description {
    font-size: 14px;
    opacity: 0.9;
}

.upgrade-progress {
    margin-top: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.progress-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.5s ease;
}

.progress-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

.max-level-badge {
    text-align: center;
    padding: 15px;
    background: #fff3cd;
    border-radius: 6px;
    color: #856404;
    font-weight: 500;
}

.level-benefits {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.benefits-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.benefit-item {
    display: inline-block;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 13px;
    color: #495057;
}

/* 代理申请卡片 */
.agent-application {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.application-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.application-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.application-description {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
    max-width: 300px;
}

/* ============================================
   积分账户卡片
   ============================================ */
.points-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.points-account-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
}

.account-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.account-icon {
    font-size: 24px;
}

.account-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.account-balance {
    text-align: center;
    margin-bottom: 20px;
}

.balance-main {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.balance-label {
    font-size: 14px;
    color: #666;
}

.account-details {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.detail-item span:first-child {
    color: #666;
}

.detail-item span:last-child {
    font-weight: 500;
    color: #333;
}

.account-description {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.account-actions {
    display: flex;
    gap: 10px;
}

/* ============================================
   团队卡片
   ============================================ */
.team-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.team-empty {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.empty-hint {
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
}

/* ============================================
   诊断汇总
   ============================================ */
.diagnosis-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.summary-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-5px);
}

.summary-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.summary-count {
    font-size: 28px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 14px;
    color: #666;
}

/* ============================================
   模态框样式
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-dialog {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-dialog.modal-lg {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

/* ============================================
   表单样式
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}

.balance-display {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

/* ============================================
   按钮样式
   ============================================ */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-outline {
    background: white;
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.btn-outline:hover {
    background: #4CAF50;
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-link {
    background: none;
    border: none;
    color: #4CAF50;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.btn-link:hover {
    color: #45a049;
}

/* ============================================
   表格样式
   ============================================ */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: #f8f9fa;
}

.table th {
    padding: 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    padding: 12px;
    font-size: 14px;
    color: #212529;
    border-bottom: 1px solid #dee2e6;
}

.table tr:hover {
    background: #f8f9fa;
}

.text-center {
    text-align: center;
}

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

.text-warning {
    color: #ffc107;
}

.text-muted {
    color: #6c757d;
}

/* ============================================
   提示框
   ============================================ */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert strong {
    font-weight: 600;
}

/* ============================================
   输入组
   ============================================ */
.input-group {
    display: flex;
    gap: 10px;
}

.input-group .form-control {
    flex: 1;
}

.invite-url-container {
    margin-bottom: 20px;
}

.invite-qrcode {
    text-align: center;
    padding: 20px;
}
