/* 个人中心页面专用样式 */

/* 页面头部 */
.page-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid var(--gray-300);
    grid-column: 1;
}

.back-home-btn:hover {
    background: var(--primary-mint);
    color: white;
    border-color: var(--primary-mint);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.section-title.centered {
    margin-bottom: 0;
    text-align: center;
    grid-column: 2;
}

/* 主内容区 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 用户信息区 */
.user-info-section {
    margin-bottom: 30px;
}

.user-info {
    display: flex;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.nickname-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.nickname {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-id {
    font-size: 16px;
    color: var(--gray-500);
}

.message-btn-container {
    position: relative;
    margin-left: auto;
}

.message-btn {
    background: linear-gradient(135deg, #A7E8BD 0%, #89CFF0 100%);
    color: white;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(167, 232, 189, 0.3);
}

.message-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(167, 232, 189, 0.4);
}

.message-red-dot {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FF4444;
    border-radius: 12px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(255, 68, 68, 0.3);
}

.red-dot-count {
    font-size: 12px;
    color: white;
    font-weight: 600;
    padding: 0 4px;
    line-height: 1;
}

.identity-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.identity-label {
    font-size: 16px;
    color: var(--text-secondary);
}

.identity-item {
    font-size: 16px;
    color: var(--text-primary);
}

.status-icon {
    margin-left: 4px;
}

/* 区块标题 */
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: block;
}

/* 画师入驻申请区 */
.artist-application-section {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.benefits {
    margin-bottom: 24px;
}

.benefit-item {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.application-btn {
    width: 100%;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    font-size: 16px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.application-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(167, 232, 189, 0.4);
}

.application-btn:disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 画师已通过区 */
.artist-approved-section {
    margin-bottom: 30px;
}

.enter-artist-btn {
    width: 100%;
    height: 50px;
    background: var(--gradient-accent);
    color: white;
    font-size: 16px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.enter-artist-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.4);
}

/* 交易管理区域 */
.trade-management-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.trade-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.trade-btn-container {
    position: relative;
}

.trade-btn {
    width: 100%;
    height: 100px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trade-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.btn-text {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.trade-red-dot {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FF4444;
    border-radius: 12px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(255, 68, 68, 0.3);
    z-index: 10;
}

/* 账户与结算区 */
.account-section {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.balance-text {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 500;
}

.settlement-btn {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

.settlement-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.4);
}

.account-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.action-btn {
    height: 44px;
    background: var(--gray-100);
    color: var(--text-primary);
    font-size: 14px;
    border-radius: 22px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.account-note {
    font-size: 14px;
    color: #4ECDC4;
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
    background: #F0F8FF;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #4ECDC4;
}

/* 常用设置区 */
.settings-section {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.settings-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

/* 开发者模式 */
.developer-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #F0F0F0;
}

.developer-btn {
    background: linear-gradient(135deg, #9C27B0 0%, #673AB7 100%);
    color: white;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
    margin: 0 auto;
    display: block;
}

.developer-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(156, 39, 176, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        padding: 0 16px;
    }
    
    .user-info {
        padding: 20px;
    }
    
    .avatar {
        width: 60px;
        height: 60px;
    }
    
    .nickname {
        font-size: 20px;
    }
    
    .trade-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .trade-btn {
        height: 80px;
    }
    
    .account-actions,
    .settings-actions {
        grid-template-columns: 1fr;
    }
    
    .balance-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .trade-buttons {
        grid-template-columns: 1fr;
    }
    
    .nickname-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .message-btn-container {
        margin-left: 0;
        margin-top: 8px;
    }
}
