/* 增长公会页面样式 */
.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.guild-card {
    background: var(--color-white);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.guild-card.highlight {
    background: var(--color-yellow);
    border-color: #d97706;
}

.guild-card h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.guild-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* 推荐链接 */
.referral-box {
    background: var(--color-white);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.input-with-button {
    display: flex;
    gap: 0.5rem;
}

.input-with-button input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    font-size: 0.875rem;
}

.btn-copy {
    padding: 0.75rem 1.5rem;
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.btn-copy:hover {
    opacity: 0.9;
}

.btn-copy.btn-primary {
    background: var(--color-red);
}

/* 仪表盘网格 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 等级显示 */
.level-display {
    text-align: center;
    padding: 2rem 0;
}

.level-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.level-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.level-code {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.875rem;
}

.progress-section {
    margin-top: 2rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.6);
}

.progress-bar {
    width: 100%;
    height: 0.75rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-red);
    transition: width 0.3s;
}

.next-level-info {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.6);
}

/* 收益显示 */
.earnings-display {
    padding: 1rem 0;
}

.earnings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.earnings-item:last-of-type {
    border-bottom: none;
}

.earnings-label {
    color: rgba(0, 0, 0, 0.6);
}

.earnings-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.earnings-value.primary {
    font-size: 2rem;
    color: var(--color-red);
}

.btn-withdraw {
    width: 100%;
    padding: 1rem;
    background: var(--color-blue);
    color: var(--color-white);
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: opacity 0.3s;
}

.btn-withdraw:hover {
    opacity: 0.9;
}

/* 佣金矩阵表格 */
.table-responsive {
    overflow-x: auto;
}

.commission-table {
    width: 100%;
    border-collapse: collapse;
}

.commission-table thead {
    background: var(--color-red);
    color: var(--color-white);
}

.commission-table th,
.commission-table td {
    padding: 1rem 1.5rem;
    text-align: center;
}

.commission-table th:first-child,
.commission-table td:first-child {
    text-align: left;
}

.commission-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.commission-table .label-cell {
    font-weight: 600;
}

.commission-table .bonus-cell {
    color: var(--color-yellow);
    font-weight: 600;
}

.commission-table .total-row {
    background: rgba(220, 38, 38, 0.1);
    font-weight: bold;
}

.commission-table .total-cell {
    color: var(--color-red);
    font-size: 1.125rem;
}

/* 业绩统计 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--color-white);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-red);
    margin-bottom: 0.5rem;
}

.stat-value.blue {
    color: var(--color-blue);
}

.stat-value.yellow {
    color: #d97706;
}

.stat-label {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.875rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .commission-table {
        font-size: 0.875rem;
    }
    
    .commission-table th,
    .commission-table td {
        padding: 0.75rem 0.5rem;
    }
}

