/**
 * 积分与代理模块样式
 * 文件: user-center-points-agent.css
 * 创建时间: 2026-01-19
 */

/* ==================== 基础样式 ==================== */
.points-agent-container {
    padding: 15px;
    background: #f5f7fa;
    min-height: 100vh;
}

/* ==================== 标签导航 ==================== */
.points-tabs {
    display: flex;
    background: #fff;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.points-tabs [data-points-tab] {
    flex: 1;
    min-width: 70px;
    padding: 10px 15px;
    border: none;
    background: none;
    font-size: 14px;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.points-tabs [data-points-tab].active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
}

/* ==================== 积分概览 ==================== */
.points-overview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 25px;
    color: #fff;
    margin-bottom: 15px;
}

.points-total {
    text-align: center;
    margin-bottom: 20px;
}

.points-total .points-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.points-total .points-value {
    font-size: 42px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.points-details {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.points-item {
    text-align: center;
}

.points-item .item-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.points-item .item-value {
    font-size: 18px;
    font-weight: 600;
}

.points-actions {
    display: flex;
    gap: 10px;
}

.points-actions .btn {
    flex: 1;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.points-actions .btn-primary {
    background: #fff;
    color: #667eea;
    border: none;
}

.points-actions .btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

/* ==================== 签到横幅 ==================== */
.signin-banner {
    background: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.signin-banner:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.signin-banner .signin-icon {
    font-size: 28px;
}

.signin-banner .signin-text {
    flex: 1;
    font-size: 15px;
    color: #333;
}

.signin-banner .signin-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.signin-banner.signed {
    background: #f0f9f0;
}

.signin-banner.signed .signin-text {
    color: #28a745;
}

/* ==================== 任务列表 ==================== */
.tasks-header {
    padding: 20px;
    text-align: center;
}

.tasks-header h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.tasks-header p {
    font-size: 13px;
    color: #999;
}

.tasks-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.task-item:last-child {
    border-bottom: none;
}

.task-item.completed {
    opacity: 0.6;
}

.task-icon {
    font-size: 28px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    border-radius: 12px;
}

.task-info {
    flex: 1;
}

.task-info .task-name {
    display: block;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    margin-bottom: 3px;
}

.task-info .task-desc {
    display: block;
    font-size: 12px;
    color: #999;
}

.task-info .task-progress {
    display: inline-block;
    font-size: 11px;
    color: #667eea;
    background: #f0f3ff;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 5px;
}

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

.task-reward .reward-value {
    display: block;
    font-size: 16px;
    color: #ff6b6b;
    font-weight: 600;
}

.task-reward .reward-label {
    font-size: 11px;
    color: #999;
}

.task-btn {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

.task-btn.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.task-btn.btn-disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

/* ==================== 积分商城 ==================== */
.exchange-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.exchange-header h4 {
    font-size: 18px;
    color: #333;
}

.exchange-header .my-points {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
}

.exchange-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-image {
    position: relative;
    height: 140px;
    background: #f5f7fa;
}

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

.product-image .original-price {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    text-decoration: line-through;
}

.product-info {
    padding: 12px;
}

.product-name {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    margin-bottom: 5px;
}

.points-price {
    font-size: 16px;
    color: #ff6b6b;
    font-weight: 600;
}

.cash-price {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

.product-stock {
    font-size: 11px;
    color: #999;
}

.exchange-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* ==================== 代理信息 ==================== */
.agent-overview {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 16px;
    padding: 25px;
    color: #fff;
    margin-bottom: 15px;
}

.agent-level {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.level-badge {
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.upgrade-btn {
    padding: 8px 20px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

.agent-stats {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
}

.stat-item .stat-label {
    font-size: 12px;
    opacity: 0.9;
}

.commission-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.commission-item {
    text-align: center;
    flex: 1;
}

.commission-item .label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.commission-item .value {
    font-size: 16px;
    font-weight: 600;
}

.agent-actions {
    display: flex;
    gap: 10px;
}

.agent-actions .btn {
    flex: 1;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.agent-actions .btn-primary {
    background: #fff;
    color: #11998e;
    border: none;
}

.agent-actions .btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

/* ==================== 绑定推荐人 ==================== */
.bind-parent-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.bind-parent-section h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.bind-form {
    display: flex;
    gap: 10px;
}

.bind-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
}

.bind-form .btn {
    padding: 12px 25px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

/* ==================== 邀请码 ==================== */
.invite-code-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.invite-code-section h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.invite-code-display {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f5f7fa;
    border-radius: 10px;
}

.invite-code-display .code {
    flex: 1;
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    letter-spacing: 3px;
}

.copy-btn {
    padding: 8px 20px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}

/* ==================== 团队列表 ==================== */
.team-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.team-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.team-member {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f7fa;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    flex: 1;
}

.member-name {
    display: block;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.member-phone {
    display: block;
    font-size: 13px;
    color: #999;
}

.member-time {
    display: block;
    font-size: 11px;
    color: #bbb;
}

.member-amount {
    text-align: right;
}

.amount-value {
    display: block;
    font-size: 16px;
    color: #11998e;
    font-weight: 600;
}

.amount-label {
    font-size: 11px;
    color: #999;
}

/* ==================== 弹窗样式 ==================== */
.points-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

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

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

.close-btn {
    font-size: 24px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
}

.modal-footer .btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    cursor: pointer;
}

/* ==================== 充值选项 ==================== */
.recharge-tip {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
}

.recharge-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.recharge-item {
    position: relative;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.recharge-item:hover,
.recharge-item.selected {
    border-color: #667eea;
    background: #f8f9ff;
}

.recharge-item .tag {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #ff6b6b;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
}

.recharge-item .amount {
    display: block;
    font-size: 20px;
    color: #333;
    font-weight: 700;
}

.recharge-item .points {
    display: block;
    font-size: 13px;
    color: #666;
    margin: 5px 0;
}

.recharge-item .bonus {
    display: block;
    font-size: 12px;
    color: #ff6b6b;
}

.custom-amount {
    margin-top: 15px;
}

.custom-amount label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.custom-amount input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
}

/* ==================== 历史记录 ==================== */
.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.history-info .history-desc {
    display: block;
    font-size: 14px;
    color: #333;
}

.history-info .history-time {
    display: block;
    font-size: 12px;
    color: #999;
}

.history-amount {
    font-size: 16px;
    font-weight: 600;
}

.history-amount.positive {
    color: #28a745;
}

.history-amount.negative {
    color: #dc3545;
}

/* ==================== 空状态 ==================== */
.empty-tip {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* ==================== 表单样式 ==================== */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
}

.withdraw-balance {
    text-align: center;
    padding: 20px;
    background: #f5f7fa;
    border-radius: 12px;
    margin-bottom: 20px;
}

.withdraw-balance .label {
    display: block;
    font-size: 13px;
    color: #666;
}

.withdraw-balance .value {
    font-size: 32px;
    color: #11998e;
    font-weight: 700;
}

.withdraw-tip {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 15px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 480px) {
    .exchange-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-image {
        height: 120px;
    }
    
    .recharge-options {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* ==================== 新版标签页样式 ==================== */
.points-tabs,
.agent-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 12px;
    flex-wrap: wrap;
}

.points-tab,
.agent-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.points-tab:hover,
.agent-tab:hover {
    background: white;
    color: #667eea;
}

.points-tab.active,
.agent-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.points-tab .tab-icon,
.agent-tab .tab-icon {
    font-size: 16px;
}

/* 标签页内容 */
.points-tab-contents,
.agent-tab-contents {
    min-height: 300px;
}

.points-tab-content,
.agent-tab-content {
    display: none;
}

.points-tab-content.active,
.agent-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ==================== 积分概览卡片 ==================== */
.points-overview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 25px;
    color: #fff;
    margin-bottom: 15px;
}

.points-total-section {
    text-align: center;
    margin-bottom: 20px;
}

.points-total-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.points-total-value {
    font-size: 48px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.points-breakdown {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.points-breakdown-item {
    text-align: center;
}

.points-breakdown-item .breakdown-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.points-breakdown-item .breakdown-value {
    font-size: 18px;
    font-weight: 600;
}

.points-actions-row {
    display: flex;
    gap: 10px;
}

.points-actions-row .btn {
    flex: 1;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.points-actions-row .btn-primary {
    background: #fff;
    color: #667eea;
}

.points-actions-row .btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

/* ==================== 签到卡片 ==================== */
.signin-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

.signin-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.signin-card .signin-icon {
    font-size: 32px;
}

.signin-card .signin-info {
    flex: 1;
}

.signin-card .signin-title {
    display: block;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.signin-card .signin-desc {
    display: block;
    font-size: 12px;
    color: #999;
}

.signin-card .signin-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: none;
}

.signin-card.signed {
    background: #f0f9f0;
    cursor: default;
}

.signin-card.signed .signin-title {
    color: #28a745;
}

/* ==================== 代理概览卡片 ==================== */
.agent-overview-card {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 16px;
    padding: 25px;
    color: #fff;
    margin-bottom: 15px;
}

.agent-level-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.agent-stats-grid {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.stat-card {
    text-align: center;
}

.stat-card .stat-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
}

.stat-card .stat-label {
    font-size: 12px;
    opacity: 0.9;
}

.commission-balance {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.balance-item {
    text-align: center;
    flex: 1;
}

.balance-item .balance-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.balance-item .balance-value {
    font-size: 16px;
    font-weight: 600;
}

.balance-item .balance-value.highlight {
    font-size: 20px;
}

.agent-actions-row {
    display: flex;
    gap: 10px;
}

.agent-actions-row .btn {
    flex: 1;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.agent-actions-row .btn-primary {
    background: #fff;
    color: #11998e;
}

.agent-actions-row .btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

/* ==================== 邀请码卡片 ==================== */
.invite-code-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.invite-code-card h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

/* ==================== 绑定推荐人卡片 ==================== */
.bind-parent-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.bind-parent-card h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.parent-info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 15px;
}

.parent-info-card .label {
    color: #666;
    margin-right: 10px;
}

.parent-info-card .value {
    color: #333;
    font-weight: 500;
}

/* ==================== 团队标签页 ==================== */
.team-level-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.team-level-tab {
    flex: 1;
    padding: 12px;
    background: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.team-level-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.team-member-card {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 10px;
}

/* ==================== 佣金记录 ==================== */
.commission-header {
    margin-bottom: 15px;
}

.commission-header h4 {
    font-size: 18px;
    color: #333;
}

.commission-list {
    background: #fff;
    border-radius: 12px;
}

.commission-log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.commission-log-item:last-child {
    border-bottom: none;
}

.log-info .log-user {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.log-info .log-time {
    display: block;
    font-size: 12px;
    color: #999;
}

.log-info .log-level {
    display: inline-block;
    font-size: 11px;
    background: #f0f3ff;
    color: #667eea;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 5px;
}

.log-amount {
    text-align: right;
}

.log-amount .amount-value {
    display: block;
    font-size: 16px;
    color: #28a745;
    font-weight: 600;
}

.log-amount .amount-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

.log-amount .amount-status.status-pending {
    background: #fff3e0;
    color: #f57c00;
}

.log-amount .amount-status.status-confirmed {
    background: #e8f5e9;
    color: #388e3c;
}

/* ==================== 兑换商品卡片 ==================== */
.exchange-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ==================== 新版弹窗样式 ==================== */
.pa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pa-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.pa-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1;
}

.pa-modal-lg {
    max-width: 600px;
}

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

.pa-modal-header h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.pa-modal-close {
    font-size: 28px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.pa-modal-body {
    padding: 20px;
}

.pa-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
}

.pa-modal-footer .btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.pa-modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

/* ==================== Toast提示 ==================== */
.pa-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    border-radius: 8px;
    z-index: 10002;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: toastFadeIn 0.3s ease;
}

.pa-toast-success {
    background: #28a745;
    color: white;
}

.pa-toast-error {
    background: #dc3545;
    color: white;
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ==================== 等级卡片 ==================== */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.level-card {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 2px solid transparent;
}

.level-card.current {
    border-color: #667eea;
    background: #f0f3ff;
}

.level-card.upgradable {
    border-color: #11998e;
}

.level-card .current-tag {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #667eea;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
}

.level-card .level-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.level-card .level-benefits {
    margin-bottom: 10px;
}

.level-card .benefit {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
}

.level-card .level-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-bottom: 10px;
}

.level-card .level-requirements span {
    font-size: 10px;
    background: #e0e0e0;
    padding: 2px 8px;
    border-radius: 10px;
    color: #666;
}

.upgrade-level-btn {
    width: 100%;
    padding: 8px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}

/* ==================== 邀请弹窗 ==================== */
.invite-qrcode {
    text-align: center;
    margin-bottom: 20px;
}

.qrcode-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    background: #f5f7fa;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.qrcode-placeholder span {
    font-size: 48px;
}

.invite-info .info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.invite-info .info-row .label {
    font-size: 13px;
    color: #666;
    min-width: 60px;
}

.invite-info .info-row .value {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.invite-info .info-row input {
    flex: 1;
    border: none;
    background: none;
    font-size: 12px;
    color: #666;
}

.copy-btn-sm {
    padding: 5px 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.invite-tip {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

/* ==================== 空状态和加载状态 ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 14px;
}

.loading-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.error-state {
    text-align: center;
    padding: 40px;
    color: #dc3545;
}

/* ==================== 历史记录 ==================== */
.history-header {
    margin-bottom: 15px;
}

.history-header h4 {
    font-size: 18px;
    color: #333;
}

.history-list {
    background: #fff;
    border-radius: 12px;
}

